|
|
|
@ -57,14 +57,7 @@ |
|
|
|
|
<el-button type="text" @click="show(scope.row)" v-auth>查看</el-button> |
|
|
|
|
<el-button type="text" @click="edit(scope.row)" v-auth>编辑</el-button> |
|
|
|
|
<el-button type="text" @click="handleDelete(scope.row)" v-auth>删除</el-button> |
|
|
|
|
<el-switch |
|
|
|
|
v-model="scope.row.isDisable" |
|
|
|
|
:active-value="0" |
|
|
|
|
:inactive-value="1" |
|
|
|
|
style="margin: 0 10px 0 5px" |
|
|
|
|
@change="switchOff($event,scope.row,scope.$index)" |
|
|
|
|
v-auth="'/index/list:禁用'" |
|
|
|
|
></el-switch> |
|
|
|
|
<el-switch v-model="scope.row.isDisable" :active-value="0" :inactive-value="1" style="margin: 0 10px 0 5px" @change="switchOff($event,scope.row,scope.$index)" v-auth="'/index/list:禁用'"></el-switch> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
@ -197,7 +190,7 @@ export default { |
|
|
|
|
isDisable: val |
|
|
|
|
} |
|
|
|
|
this.$post(this.api.updateClient,data).then((res) => { |
|
|
|
|
val == 1 ? util.successMsg('禁用成功') : util.successMsg('启用成功') |
|
|
|
|
val == 1 ? util.warningMsg('该院校系统使用权限已关闭') : util.successMsg('该院校系统使用权限已激活') |
|
|
|
|
}).catch((res) => { |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|