Commit 95f62487 authored by lixin's avatar lixin

用户新建过滤角色,讲师编辑增加账号显示

parent 80671de2
...@@ -231,7 +231,8 @@ export default { ...@@ -231,7 +231,8 @@ export default {
// console.log(res); // console.log(res);
this.loading = false; this.loading = false;
if (res.resp_code == 200) { if (res.resp_code == 200) {
this.roleList = res.datas; this.roleList = res.datas.slice(0,2);
// this.roleList = res.datas;
} else { } else {
this.$message.info(res.resp_msg); this.$message.info(res.resp_msg);
} }
......
...@@ -125,6 +125,10 @@ ...@@ -125,6 +125,10 @@
:auto-size="{ minRows: 3, maxRows: 5 }" :auto-size="{ minRows: 3, maxRows: 5 }"
/> />
</a-form-model-item> </a-form-model-item>
<a-form-model-item label="讲师账号">
<a-input v-model="formModel.account" disabled v-if="modalType == 'edit'"/>
<a-input v-model="formModel.account" v-if="modalType == 'add'"/>
</a-form-model-item>
</a-form-model> </a-form-model>
</a-modal> </a-modal>
</template> </template>
...@@ -220,6 +224,13 @@ export default { ...@@ -220,6 +224,13 @@ export default {
message: '不能为空', message: '不能为空',
trigger: 'change' trigger: 'change'
} }
],
account: [
{
required: true,
message: '不能为空',
trigger: 'change'
}
] ]
}, },
orgList: [] orgList: []
......
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