Commit 6f257893 authored by 黄奎's avatar 黄奎

页面修改

parent a26c676a
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<el-select style="margin:0 10px" class="w200" @change="msg.pageIndex=1,getList()" v-model="msg.CategoryId" <el-select style="margin:0 10px" class="w200" @change="msg.pageIndex=1,getList()" v-model="msg.CategoryId"
size="small" placeholder="请选择"> size="small" placeholder="请选择">
<el-option label="不限" :value="0"></el-option> <el-option label="不限" :value="0"></el-option>
<el-option v-for="item in StoreList" :key="item.Id" :label="item.Name" :value="item.Id"> <el-option v-for="item in CategoryList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option> </el-option>
</el-select> </el-select>
<span>品牌名称</span> <span>品牌名称</span>
...@@ -62,21 +62,23 @@ ...@@ -62,21 +62,23 @@
WorkDate: '', //开始日期 WorkDate: '', //开始日期
EndWorkDate: '' //结束日期 EndWorkDate: '' //结束日期
}, },
StoreList: [], //门店数据 CategoryList: [], //分类列表
dateList: [], //日期 dateList: [], //日期
} }
}, },
created() {}, created() {
this.getBrandList()
},
mounted() { mounted() {
this.getList(); this.getList();
this.getStoreList()
}, },
methods: { methods: {
//获取门店下拉 //获取分类列表
getStoreList() { getBrandList() {
this.apipost("/api/MContent/GetStoresList", {}, res => { this.apipost("/api/Assess/GetCategoryDropList", {}, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.StoreList = res.data.data; this.CategoryList = res.data.data;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<el-table-column label="操作" width="250px"> <el-table-column label="操作" width="250px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="info" plain @click="showCategoryForm(scope.row)">编辑 </el-button> <el-button size="mini" type="info" plain @click="showCategoryForm(scope.row)">编辑 </el-button>
<el-button size="mini" type="info" plain @click="RemmoveMall(scope.row)">禁用</el-button> <el-button size="mini" type="info" plain @click="RemmoveCategory(scope.row)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -161,11 +161,31 @@ ...@@ -161,11 +161,31 @@
saveData() { saveData() {
this.assetsApipost("/api/Assess/SetCategoryInfo", this.postMsg, res => { this.assetsApipost("/api/Assess/SetCategoryInfo", this.postMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.getList(); this.getList();
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}) })
},
//删除分类
RemmoveCategory(item) {
let that = this;
that.Confirm("是否此分类删除?", function () {
that.apipost(
"/api/Assess/DelCategoryInfo", {
CategoryId: item.Id,
},
res => {
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.getList();
} else {
that.Error(res.data.message);
}
},
);
});
} }
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment