| | |
| | | <j-select-production v-model="model.selectedProduction" :multi="true" @back="backProductionInfo" :backProduction="true" :treeProductOpera="true"></j-select-production> |
| | | </a-form-model-item> |
| | | <a-form-model-item label="班组分配" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="teamId"> |
| | | <j-dict-select-tag |
| | | <j-dict-select-tag |
| | | v-model="model.teamId" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_team,name,id,del_flag = 0" |
| | | placeholder="请维护班组" |
| | | ></j-dict-select-tag> |
| | | </a-form-model-item> |
| | | |
| | | <a-form-model-item label="中心分配" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="areaId"> |
| | | <j-dict-select-tag |
| | | v-model="model.areaId" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_area,name,id,del_flag = 0" |
| | | placeholder="请维护中心" |
| | | ></j-dict-select-tag> |
| | | </a-form-model-item> |
| | | <a-form-model-item label="负责部门" :labelCol="labelCol" :wrapperCol="wrapperCol" v-if="departIdShow==true"> |
| | | <j-multi-select-tag |
| | | :disabled="disableSubmit" |
| | |
| | | </a-spin> |
| | | |
| | | |
| | | <div class="drawer-bootom-button" v-show="!disableSubmit"> |
| | | <div class="drawer-bottom-button" v-show="!disableSubmit"> |
| | | <a-popconfirm title="确定放弃编辑?" @confirm="handleCancel" okText="确定" cancelText="取消"> |
| | | <a-button style="margin-right: .8rem">取消</a-button> |
| | | </a-popconfirm> |
| | |
| | | import { duplicateCheck } from '@/api/api' |
| | | import JSelectProduction from '../../../components/jeecgbiz/JSelectProduction' |
| | | import {mapActions} from 'vuex' |
| | | import { ajaxGetDictItems, getDictItemsFromCache } from '@/api/api' |
| | | |
| | | export default { |
| | | name: "UserModal", |
| | |
| | | nextProductionOptions:[], |
| | | isDepartType:'', |
| | | |
| | | } |
| | | }, |
| | | watch:{ |
| | | visible:{ |
| | | handler(value){ |
| | | if(value) this.initDictData('password_length') |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | }else{ |
| | | this.departIdShow=true; |
| | | } |
| | | } |
| | | }, |
| | | initDictData(dictCode) { |
| | | //根据字典Code, 初始化字典数组 |
| | | ajaxGetDictItems(dictCode, null).then((res) => { |
| | | if (res.success) { |
| | | const regExp = new RegExp("^(?=.*[a-zA-Z])(?=.*\\\d)(?=.*[~!@#$%^&*()_+`\\-={}:\";'<>?,./]).{"+Number(res.result[0].value)+",}$"); |
| | | |
| | | this.validatorRules.password[0]={ |
| | | required:true, |
| | | pattern: regExp, |
| | | message: `密码由${res.result[0].value}位数字、大小写字母和特殊符号组成!`, |
| | | } |
| | | |
| | | } |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | |
| | | padding-bottom:10px; |
| | | } |
| | | |
| | | .drawer-bootom-button { |
| | | .drawer-bottom-button { |
| | | position: absolute; |
| | | bottom: -8px; |
| | | width: 100%; |