班组管理问题修改 12.14

zhc4dev
zhc077 2 years ago
parent 83f304ef21
commit c8e920ae25
  1. 20
      ant-design-vue-jeecg/src/views/team/modules/GroupxModal.vue

@ -15,15 +15,21 @@
<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="departId" label="部门"> <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="departId" label="部门">
<!-- <a-input placeholder="请输入部门编号" v-model="model.departId"/>--> <!-- <a-input placeholder="请输入部门编号" v-model="model.departId"/>-->
<!-- <j-select-depart placeholder="请选择部门" v-model="model.departId"/>--> <!-- <j-select-depart placeholder="请选择部门" v-model="model.departId"/>-->
<j-dict-select-tag type="list" v-model="model.departId" dictCode="sys_depart,depart_name,id,org_type='1'" placeholder="请选择部门" /> <j-dict-select-tag type="list" v-model="model.departId" dictCode="sys_depart,depart_name,id,org_type='1'"
placeholder="请选择部门"/>
</a-form-model-item> </a-form-model-item>
<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="groupName" label="班组名称"> <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="groupName" label="班组名称">
<a-input placeholder="请输入班组名称" v-model="model.groupName"/> <a-input placeholder="请输入班组名称" v-model="model.groupName"/>
</a-form-model-item> </a-form-model-item>
<!-- <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="enterprisesManager" label="负责人">-->
<!-- &lt;!&ndash; <a-input placeholder="请输入负责人" v-model="model.enterprisesManager"/>&ndash;&gt;-->
<!-- &lt;!&ndash; <j-select-multi-user placeholder="请选择负责人" v-model="model.enterprisesManager" @change="getMobile()"/>&ndash;&gt;-->
<!-- <j-select-user-by-dep placeholder="请选择负责人" v-model="model.enterprisesManager" @change="getMobile()"/>-->
<!-- </a-form-model-item>-->
<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="enterprisesManager" label="负责人"> <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="enterprisesManager" label="负责人">
<!-- <a-input placeholder="请输入负责人" v-model="model.enterprisesManager"/>--> <j-select-user-by-dep placeholder="请选择负责人" v-model="model.enterprisesManager" :multi="false" :value='sex' :back-user="true"></j-select-user-by-dep>
<j-select-multi-user placeholder="请选择负责人" v-model="model.enterprisesManager" @change="getQuestionBankList()"/> {{ model.enterprisesManager }}
</a-form-model-item> </a-form-model-item>
<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mobile" label="手机号"> <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mobile" label="手机号">
<a-input placeholder="请输入手机号" v-model="model.mobile"/> <a-input placeholder="请输入手机号" v-model="model.mobile"/>
@ -84,12 +90,16 @@ export default {
edit: "/groupx/edit", edit: "/groupx/edit",
sysUserList: "/sys/user/list", sysUserList: "/sys/user/list",
}, },
//
selectUserQueryConfig: [
{key: 'phone', label: '电话'},
],
} }
}, },
created() { created() {
}, },
methods: { methods: {
async getQuestionBankList() { async getMobile() {
let param = { let param = {
"username": this.model.enterprisesManager, "username": this.model.enterprisesManager,
} }
@ -99,7 +109,7 @@ export default {
console.log("userlist:" + JSON.stringify(res)) console.log("userlist:" + JSON.stringify(res))
console.log("the phone:" + JSON.stringify(res.result.records[0].phone)) console.log("the phone:" + JSON.stringify(res.result.records[0].phone))
let phone = JSON.stringify(res.result.records[0].phone); let phone = JSON.stringify(res.result.records[0].phone);
that.model.mobile = phone; this.model.mobile = phone;
}, },
// getMobile() { // getMobile() {

Loading…
Cancel
Save