Commit be10520d authored by lixin's avatar lixin

讲师账号只读

parent 3b9f0d62
......@@ -78,7 +78,6 @@
v-if="modalType == 'edit'"
label="讲师编号"
prop="code"
disabled
>
<a-input
v-model="formModel.code"
......@@ -127,28 +126,15 @@
</a-form-model-item>
<a-form-model-item
v-if="modalType == 'edit'"
label="讲师账号"
prop="account"
disabled
>
<a-input
v-model="formModel.account" disabled
v-model="formModel.account" :disabled="isReadOnly"
>
</a-input>
</a-form-model-item>
<a-form-model-item
v-if="modalType == 'add'"
label="讲师账号"
prop="account"
disabled
>
<a-input
v-model="formModel.account"
>
</a-input>
</a-form-model-item>
</a-form-model>
</a-modal>
......@@ -223,6 +209,7 @@ export default {
modalVisible: false,
modalTitle: '添加',
modalType: 'add',
isReadOnly: false,
formModel: {
id: '',
name: '',
......@@ -307,9 +294,11 @@ export default {
if(row == ''){
this.modalTitle = '添加'
this.modalType = 'add'
this.isReadOnly = false;
}else{
this.modalTitle = '编辑'
this.modalType = 'edit'
this.isReadOnly = true;
this.formModel = {...row}
}
},
......
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