Commit b50c5130 authored by danfuman's avatar danfuman

修改

parent 110942b5
......@@ -23,7 +23,7 @@
>
<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===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>
</template>
</el-table-column>
......@@ -168,7 +168,7 @@
methods: {
radioBtn(val){
configUpdate({configKey:'customer-badness-date-type',configValue:val}).then(res => {
this.$modal.success(res.msg);
this.$message.success(res.msg);
});
},
getList(){
......@@ -181,7 +181,8 @@
console.log(res)
this.isSkeleton = false;
this.tableData=res.rows;
this.tableDataTotal=res.total
this.tableDataTotal=res.total;
})
},
handleClick(item,key){
......@@ -209,7 +210,7 @@
console.log(res)
if(res.code === 200){
this.visible=false;
this.$modal.success("新增成功");
this.$message.success("新增成功");
this.getList()
}else {
this.$message.error(res.msg);
......@@ -237,7 +238,7 @@
handleSave(){
let time=this.startTime.substring(0,2)+'-'+this.endTime.substring(0,2)
configUpdate({configKey:'customer-badness-time-frame',configValue:time}).then(res => {
this.$modal.success(res.msg);
this.$message.success(res.msg);
});
},
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