|
|
|
@ -14,14 +14,16 @@ |
|
|
|
|
|
|
|
|
|
<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-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-multi-user placeholder="请选择负责人" v-model="model.enterprisesManager" @change="getQuestionBankList()"/> |
|
|
|
|
</a-form-model-item> |
|
|
|
|
<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mobile" label="手机号"> |
|
|
|
|
<a-input placeholder="请输入手机号" v-model="model.mobile"/> |
|
|
|
@ -87,29 +89,42 @@ export default { |
|
|
|
|
created() { |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
getMobile() { |
|
|
|
|
alert(this.model.enterprisesManager); |
|
|
|
|
this.mobileVal = "sys_user,phone,username,username='" + this.model.enterprisesManager + "'"; |
|
|
|
|
// this.model.mobile = "123456789"; |
|
|
|
|
|
|
|
|
|
async getQuestionBankList() { |
|
|
|
|
let param = { |
|
|
|
|
"username": this.model.enterprisesManager, |
|
|
|
|
} |
|
|
|
|
let that = this; |
|
|
|
|
getAction(this.url.sysUserList, param).then((res) => { |
|
|
|
|
if (res.success) { |
|
|
|
|
console.log("res:" + JSON.stringify(res.result.records[0])) |
|
|
|
|
console.log("res22222222:" + JSON.stringify(res.result.records[0].phone)); |
|
|
|
|
// this.model.mobile = res.result.records[0].phone; |
|
|
|
|
// this.model.mobile = JSON.stringify(res.result.records[0].phone) |
|
|
|
|
if (JSON.stringify(res.result.records[0].phone)!=="") { |
|
|
|
|
that.model.mobile = "15112345678"; |
|
|
|
|
} else { |
|
|
|
|
that.model.mobile = JSON.stringify(res.result.records[0].phone) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
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)) |
|
|
|
|
let phone = JSON.stringify(res.result.records[0].phone); |
|
|
|
|
that.model.mobile = phone; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// getMobile() { |
|
|
|
|
// alert(this.model.enterprisesManager); |
|
|
|
|
// this.mobileVal = "sys_user,phone,username,username='" + this.model.enterprisesManager + "'"; |
|
|
|
|
// // this.model.mobile = "123456789"; |
|
|
|
|
// |
|
|
|
|
// let param = { |
|
|
|
|
// "username": this.model.enterprisesManager, |
|
|
|
|
// } |
|
|
|
|
// let that = this; |
|
|
|
|
// getAction(this.url.sysUserList, param).then((res) => { |
|
|
|
|
// if (res.success) { |
|
|
|
|
// console.log("res:" + JSON.stringify(res.result.records[0])) |
|
|
|
|
// console.log("res22222222:" + JSON.stringify(res.result.records[0].phone)); |
|
|
|
|
// // this.model.mobile = res.result.records[0].phone; |
|
|
|
|
// // this.model.mobile = JSON.stringify(res.result.records[0].phone) |
|
|
|
|
// if (JSON.stringify(res.result.records[0].phone) !== "") { |
|
|
|
|
// that.model.mobile = "15112345678"; |
|
|
|
|
// } else { |
|
|
|
|
// that.model.mobile = JSON.stringify(res.result.records[0].phone) |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// }); |
|
|
|
|
// }, |
|
|
|
|
add() { |
|
|
|
|
//初始化默认值 |
|
|
|
|
this.edit({}); |
|
|
|
|