| | |
| | | /> |
| | | </a-form-model-item> |
| | | |
| | | <a-form-model-item label="身份" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-radio-group v-model="model.userType"> |
| | | <a-radio :value="1">普通用户</a-radio> |
| | | <a-radio :value="2">工段主管</a-radio> |
| | | <a-radio :value="3">车间主管</a-radio> |
| | | <a-radio :value="4">公司主管</a-radio> |
| | | </a-radio-group> |
| | | </a-form-model-item> |
| | | <!--<a-form-model-item label="工作流引擎" :labelCol="labelCol" :wrapperCol="wrapperCol">--> |
| | | <!--<j-dict-select-tag v-model="model.activitiSync" placeholder="请选择是否同步工作流引擎" :type="'radio'" dictCode="activiti_sync"/>--> |
| | | <!--</a-form-model-item>--> |
| | |
| | | { validator: this.validateWorkNo }], |
| | | telephone: [{ pattern: /^0\d{2,3}-[1-9]\d{6,7}$/, message: '请输入正确的座机号码' }], |
| | | teamId: [{ required: false, message: '请维护班组' }] |
| | | |
| | | }, |
| | | departIdShow: false, |
| | | title: '操作', |
| | |
| | | }, |
| | | 'model.selectedProduction': { |
| | | handler(newVal, oldVal) { |
| | | console.log('触发监听', 'newVal=', newVal, 'oldVal=', oldVal) |
| | | // if ((newVal !== oldVal && oldVal) || !newVal) this.model.equipmentIds = '' |
| | | if (newVal && this.$refs.selectDeviceModal) this.$refs.selectDeviceModal.queryTreeData(newVal) |
| | | if (newVal && this.$refs.selectDeviceModal) { |
| | | // 如果车间选择前后不一致则重置选择设备 |
| | | if ((oldVal && newVal !== oldVal)) this.model.equipmentIds = '' |
| | | this.$refs.selectDeviceModal.queryTreeData(newVal) |
| | | } |
| | | // 如果清空车间值则重置选择设备 |
| | | if (newVal === '') this.model.equipmentIds = '' |
| | | } |
| | | } |
| | | }, |
| | |
| | | that.getUserRoles(record.id) |
| | | that.getUserDeparts(record.id) |
| | | } |
| | | console.log('that.model', that.model) |
| | | }, |
| | | isDisabledAuth(code) { |
| | | return disabledAuthFilter(code) |
| | |
| | | let c = { label: item.name, value: item.id + '' } |
| | | return c |
| | | }) |
| | | console.log('this.tenantsOptions: ', this.tenantsOptions) |
| | | } |
| | | }) |
| | | }, |
| | |
| | | let c = { label: item.roleName, value: item.id } |
| | | return c |
| | | }) |
| | | console.log('this.rolesOptions: ', this.rolesOptions) |
| | | } |
| | | }) |
| | | }, |
| | | getUserRoles(userid) { |
| | | queryUserRole({ userid: userid }).then((res) => { |
| | | if (res.success) { |
| | | // this.model.selectedroles = res.result.join(',') |
| | | this.$set(this.model, 'selectedroles', res.result.join(',')) |
| | | console.log('that.model.selectedroles=', this.model.selectedroles) |
| | | } |
| | | }) |
| | | }, |
| | |
| | | }) |
| | | } |
| | | |
| | | // that.model.selecteddeparts = selectDepartKeys.join(',') |
| | | this.$set(this.model, 'selecteddeparts', selectDepartKeys.join(',')) |
| | | |
| | | that.nextDepartOptions = departOptions |
| | | console.log('that.nextDepartOptions=', that.nextDepartOptions) |
| | | } |
| | | }) |
| | | |
| | |
| | | }) |
| | | } |
| | | |
| | | // that.model.selectedProduction = selectProductKeys.join(',') |
| | | this.$set(this.model, 'selectedProduction', selectProductKeys.join(',')) |
| | | that.nextProductionOptions = ProductionOptions |
| | | console.log('that.nextProductionOptions=', that.nextProductionOptions) |
| | | } |
| | | }) |
| | | //车间的url |