Commit bb1e8e02 authored by Mac's avatar Mac

1

parent 84797cf9
......@@ -418,9 +418,16 @@
<el-table-column prop="CarInfoStr" label="发帖权限">
<template slot-scope="scope">
<div v-if="scope.row.IsFaTie==0">关闭</div>
<div v-if="scope.row.IsFaTie==1">开启</div>
<el-switch
v-model="scope.row.IsFaTie"
@change="ChangeEnabled(scope.row)"
active-color="#409EFF"
:active-value="1"
:inactive-value="0"
>
</el-switch>
<!-- <div v-if="scope.row.IsFaTie==0">关闭</div>
<div v-if="scope.row.IsFaTie==1">开启</div> -->
</template>
</el-table-column>
......@@ -797,6 +804,23 @@ export default {
);
},
ChangeEnabled(row){
console.log(row)
this.apipost(
"/api/Miai/UpdateFaTie",
{ UserIds:row.Id , IsFaTie: row.IsFaTie },
(res) => {
if (res.data.resultCode == 1) {
this.Success(res.data.message)
this.getList();
} else {
this.Error(res.data.message);
this.getList();
}
}
);
},
openChangeDig() {
this.changeState = true;
setTimeout(() => {
......
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