|
|
|
@ -14,16 +14,22 @@ |
|
|
|
|
|
|
|
|
|
<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="departId" label="部门"> |
|
|
|
|
<!-- <a-input 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-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="请选择部门"/> |
|
|
|
|
|
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="groupName" label="班组名称"> |
|
|
|
|
<a-input placeholder="请输入班组名称" v-model="model.groupName"/> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<!-- <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="enterprisesManager" label="负责人">--> |
|
|
|
|
<!-- <!– <a-input placeholder="请输入负责人" v-model="model.enterprisesManager"/>–>--> |
|
|
|
|
<!-- <!– <j-select-multi-user placeholder="请选择负责人" v-model="model.enterprisesManager" @change="getMobile()"/>–>--> |
|
|
|
|
<!-- <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-input placeholder="请输入负责人" v-model="model.enterprisesManager"/>--> |
|
|
|
|
<j-select-multi-user placeholder="请选择负责人" v-model="model.enterprisesManager" @change="getQuestionBankList()"/> |
|
|
|
|
<j-select-user-by-dep placeholder="请选择负责人" v-model="model.enterprisesManager" :multi="false" :value='sex' :back-user="true"></j-select-user-by-dep> |
|
|
|
|
{{ model.enterprisesManager }} |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mobile" label="手机号"> |
|
|
|
|
<a-input placeholder="请输入手机号" v-model="model.mobile"/> |
|
|
|
@ -84,22 +90,26 @@ export default { |
|
|
|
|
edit: "/groupx/edit", |
|
|
|
|
sysUserList: "/sys/user/list", |
|
|
|
|
}, |
|
|
|
|
// 选择用户查询条件配置 |
|
|
|
|
selectUserQueryConfig: [ |
|
|
|
|
{key: 'phone', label: '电话'}, |
|
|
|
|
], |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
async getQuestionBankList() { |
|
|
|
|
async getMobile() { |
|
|
|
|
let param = { |
|
|
|
|
"username": this.model.enterprisesManager, |
|
|
|
|
} |
|
|
|
|
let that = this; |
|
|
|
|
const {data: res} = await this.$axios.get('/jeecg-boot/sys/user/list', {params: param}) |
|
|
|
|
// this.questionBankList = res.result |
|
|
|
|
console.log("userlist:"+JSON.stringify(res)) |
|
|
|
|
console.log("the phone:"+JSON.stringify(res.result.records[0].phone)) |
|
|
|
|
console.log("userlist:" + JSON.stringify(res)) |
|
|
|
|
console.log("the 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() { |
|
|
|
|