|
@@ -113,7 +113,7 @@
|
|
|
var action= {
|
|
var action= {
|
|
|
set_category: function (field, id, value) {
|
|
set_category: function (field, id, value) {
|
|
|
layList.baseGet(layList.Url({
|
|
layList.baseGet(layList.Url({
|
|
|
- c: 'store.store_category',
|
|
|
|
|
|
|
+ c: 'system.system_store_category',
|
|
|
a: 'set_category',
|
|
a: 'set_category',
|
|
|
q: {field: field, id: id, value: value}
|
|
q: {field: field, id: id, value: value}
|
|
|
}), function (res) {
|
|
}), function (res) {
|
|
@@ -127,11 +127,11 @@
|
|
|
});
|
|
});
|
|
|
layList.switch('is_show',function (odj,value) {
|
|
layList.switch('is_show',function (odj,value) {
|
|
|
if(odj.elem.checked==true){
|
|
if(odj.elem.checked==true){
|
|
|
- layList.baseGet(layList.Url({c:'store.store_category',a:'set_show',p:{is_show:1,id:value}}),function (res) {
|
|
|
|
|
|
|
+ layList.baseGet(layList.Url({c:'system.system_store_category',a:'set_show',p:{is_show:1,id:value}}),function (res) {
|
|
|
layList.msg(res.msg);
|
|
layList.msg(res.msg);
|
|
|
});
|
|
});
|
|
|
}else{
|
|
}else{
|
|
|
- layList.baseGet(layList.Url({c:'store.store_category',a:'set_show',p:{is_show:0,id:value}}),function (res) {
|
|
|
|
|
|
|
+ layList.baseGet(layList.Url({c:'system.system_store_category',a:'set_show',p:{is_show:0,id:value}}),function (res) {
|
|
|
layList.msg(res.msg);
|
|
layList.msg(res.msg);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -154,7 +154,7 @@
|
|
|
layList.tool(function (event,data,obj) {
|
|
layList.tool(function (event,data,obj) {
|
|
|
switch (event) {
|
|
switch (event) {
|
|
|
case 'delstor':
|
|
case 'delstor':
|
|
|
- var url=layList.U({c:'store.store_category',a:'delete',q:{id:data.id}});
|
|
|
|
|
|
|
+ var url=layList.U({c:'system.system_store_category',a:'delete',q:{id:data.id}});
|
|
|
$eb.$swal('delete',function(){
|
|
$eb.$swal('delete',function(){
|
|
|
$eb.axios.get(url).then(function(res){
|
|
$eb.axios.get(url).then(function(res){
|
|
|
if(res.status == 200 && res.data.code == 200) {
|
|
if(res.status == 200 && res.data.code == 200) {
|