提交 d6e6ece3 编写于 作者: changdi.hao's avatar changdi.hao

feat: try 权限

上级 a387a06b
...@@ -162,6 +162,7 @@ ...@@ -162,6 +162,7 @@
<el-radio-group <el-radio-group
v-model="questionEditList.showType" v-model="questionEditList.showType"
style="margin-left: -65px;" style="margin-left: -65px;"
@change="showTypeChange"
:disabled="formStatus != 'create'" :disabled="formStatus != 'create'"
> >
<el-radio :label="1">单题显示</el-radio> <el-radio :label="1">单题显示</el-radio>
...@@ -393,7 +394,6 @@ ...@@ -393,7 +394,6 @@
<el-form-item <el-form-item
label="登录权限控制" label="登录权限控制"
v-show="questionEditList.showType == 2"
> >
<el-checkbox-group v-model="loginAuthList" class="login-auth" @change="handleLoginAuthChange"> <el-checkbox-group v-model="loginAuthList" class="login-auth" @change="handleLoginAuthChange">
<el-checkbox label="1" :disabled="questionEditList.auditFlag==1">云鹊医APP</el-checkbox> <el-checkbox label="1" :disabled="questionEditList.auditFlag==1">云鹊医APP</el-checkbox>
...@@ -538,13 +538,16 @@ export default { ...@@ -538,13 +538,16 @@ export default {
this.getDownloadPath(); this.getDownloadPath();
}, },
methods: { methods: {
showTypeChange() {
if(this.questionEditList.showType == 2) {
this.addAuditFlag();
}
},
addAuditFlag() { addAuditFlag() {
if(this.questionEditList.auditFlag == 1) { if(this.questionEditList.auditFlag == 1) {
vm.loginAuthList = ["1","2"]; vm.loginAuthList = ["1","2"];
vm.questionEditList.limitNumFla = '1'; vm.questionEditList.limitNumFla = '1';
vm.questionEditList.limitNum = 1; vm.questionEditList.limitNum = 1;
} else {
} }
}, },
// 查询 // 查询
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册