Commit b50c5130 authored by danfuman's avatar danfuman

修改

parent 110942b5
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.status===0" style="cursor: pointer;margin-right: 16px;color: #0081FF;" @click="handleClick(scope.row,1)">停用</span> <span v-if="scope.row.status===0" style="cursor: pointer;margin-right: 16px;color: #0081FF;" @click="handleClick(scope.row,1)">停用</span>
<span v-if="scope.row.status===1" style="cursor: pointer;margin-right: 16px;color: #0081FF;" @click="handleClick(scope.row,1)">启用</span> <span v-if="scope.row.status===1" style="cursor: pointer;margin-right: 16px;color: #0081FF;" @click="handleClick(scope.row,0)">启用</span>
<span style="cursor: pointer;color: #FF3C3C;" @click="handleClick(scope.row,2)">删除</span> <span style="cursor: pointer;color: #FF3C3C;" @click="handleClick(scope.row,2)">删除</span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
methods: { methods: {
radioBtn(val){ radioBtn(val){
configUpdate({configKey:'customer-badness-date-type',configValue:val}).then(res => { configUpdate({configKey:'customer-badness-date-type',configValue:val}).then(res => {
this.$modal.success(res.msg); this.$message.success(res.msg);
}); });
}, },
getList(){ getList(){
...@@ -181,7 +181,8 @@ ...@@ -181,7 +181,8 @@
console.log(res) console.log(res)
this.isSkeleton = false; this.isSkeleton = false;
this.tableData=res.rows; this.tableData=res.rows;
this.tableDataTotal=res.total this.tableDataTotal=res.total;
}) })
}, },
handleClick(item,key){ handleClick(item,key){
...@@ -209,7 +210,7 @@ ...@@ -209,7 +210,7 @@
console.log(res) console.log(res)
if(res.code === 200){ if(res.code === 200){
this.visible=false; this.visible=false;
this.$modal.success("新增成功"); this.$message.success("新增成功");
this.getList() this.getList()
}else { }else {
this.$message.error(res.msg); this.$message.error(res.msg);
...@@ -237,7 +238,7 @@ ...@@ -237,7 +238,7 @@
handleSave(){ handleSave(){
let time=this.startTime.substring(0,2)+'-'+this.endTime.substring(0,2) let time=this.startTime.substring(0,2)+'-'+this.endTime.substring(0,2)
configUpdate({configKey:'customer-badness-time-frame',configValue:time}).then(res => { configUpdate({configKey:'customer-badness-time-frame',configValue:time}).then(res => {
this.$modal.success(res.msg); this.$message.success(res.msg);
}); });
}, },
converTime(time) { converTime(time) {
......
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