Commit 2fc9ed3a authored by 黄奎's avatar 黄奎
parents 74f461bc bb1e8e02
...@@ -418,9 +418,16 @@ ...@@ -418,9 +418,16 @@
<el-table-column prop="CarInfoStr" label="发帖权限"> <el-table-column prop="CarInfoStr" label="发帖权限">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch
<div v-if="scope.row.IsFaTie==0">关闭</div> v-model="scope.row.IsFaTie"
<div v-if="scope.row.IsFaTie==1">开启</div> @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> </template>
</el-table-column> </el-table-column>
...@@ -797,6 +804,23 @@ export default { ...@@ -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() { openChangeDig() {
this.changeState = true; this.changeState = true;
setTimeout(() => { 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