Merge branch 'master' of http://124.222.105.7:3000/dianliang/dl_site_system
This commit is contained in:
commit
54525e6ce7
@ -156,7 +156,10 @@ public class BusiProdController extends BaseController
|
|||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
public AjaxResult remove(@PathVariable String[] ids){
|
public AjaxResult remove(@PathVariable String[] ids){
|
||||||
List<String> list = new ArrayList<>(Arrays.asList(ids));
|
List<String> list = new ArrayList<>(Arrays.asList(ids));
|
||||||
return toAjax(busiProdNewService.removeByIds(list));
|
BusiProdNew prodNew = busiProdNewService.getById(list.get(0));
|
||||||
|
busiProdNewService.removeByIds(list);
|
||||||
|
busiProdNewService.setAmount(prodNew.getTenantId());
|
||||||
|
return success();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
<el-form-item label="所属分类" prop="catgId">
|
<el-form-item label="所属分类" prop="catgId">
|
||||||
<div class="dl-flex-column">
|
<div class="dl-flex-column">
|
||||||
<treeselect style="width: 200px" v-model="form.catgId" :options="catgOptions" :normalizer="normalizer" :noResultsText="'暂无数据'" placeholder="请选择产品分类" />
|
<treeselect style="width: 200px" v-model="form.catgId" :options="catgOptions" :normalizer="normalizer" :noResultsText="'暂无数据'" placeholder="请选择产品分类" />
|
||||||
<div class="dl-add-catg">添加产品分类</div>
|
<div class="dl-add-catg" @click="goCatgView">添加产品分类</div>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -64,7 +64,15 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="首页推荐" prop="ifReco">
|
<el-form-item label="首页显示" prop="ifReco">
|
||||||
|
<template v-slot:label>
|
||||||
|
<span>首页显示</span>
|
||||||
|
<el-tooltip class="item" effect="dark" content="开启后将在首页优先显示"
|
||||||
|
placement="bottom"
|
||||||
|
>
|
||||||
|
<i class="el-icon-question"></i>
|
||||||
|
</el-tooltip>
|
||||||
|
</template>
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="form.ifReco"
|
v-model="form.ifReco"
|
||||||
>
|
>
|
||||||
@ -161,6 +169,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
goCatgView(){
|
||||||
|
this.$router.push({path:'/busi/category'})
|
||||||
|
},
|
||||||
initCatg(){
|
initCatg(){
|
||||||
//查产品栏目
|
//查产品栏目
|
||||||
listCategory({catgType:"cp"}).then(response => {
|
listCategory({catgType:"cp"}).then(response => {
|
||||||
|
Loading…
Reference in New Issue
Block a user