| | |
| | | return { |
| | | deptCategory: "", |
| | | deptId: "", |
| | | |
| | | loading1: true, //派遣记录 |
| | | selectionList1: [], |
| | | page1: { |
| | |
| | | type: "tree", |
| | | width: 70, |
| | | labelWidth: 120, |
| | | searchSpan: 3, |
| | | search: true, |
| | | hide: true, |
| | | defaultExpandAll:true, |
| | | // props: { |
| | | // label: "realName", |
| | | // value: "id", |
| | |
| | | { |
| | | label: "保安员", |
| | | prop: "securityName", |
| | | type: "tree", |
| | | // type: "tree", |
| | | width: 70, |
| | | searchSpan: 4, |
| | | search: true, |
| | | labelWidth: 120, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | |
| | | // value: "id", |
| | | // }, |
| | | // dicUrl: `/api/blade-user/page-security-units?dispatch=1&deptId={{key}}`, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择保安", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | // rules: [ |
| | | // { |
| | | // required: true, |
| | | // message: "请选择保安", |
| | | // trigger: "blur", |
| | | // }, |
| | | // ], |
| | | }, |
| | | |
| | | { |
| | |
| | | this.onLoad1(this.page1, this.query1); |
| | | }, |
| | | |
| | | beforeOpen(done, type) { |
| | | beforeOpen(done, type,row) { |
| | | this.initFlag = true; |
| | | if(type=="edit"){ |
| | | // alert(1); |
| | | console.log(row,123); |
| | | const userColumn = this.findObject(this.option1.column, "userIds"); |
| | | userColumn.multiple = false; |
| | | userColumn.dicUrl = "/api/blade-user/security-dispatcher-tree?deptId="+this.userInfo.dept_id+"&id="+this.form.userIds+"&realName="+this.form.securityName; |
| | | } |
| | | if(type=="add"){ |
| | | const userColumn = this.findObject(this.option1.column, "userIds"); |
| | | userColumn.multiple = true; |
| | | userColumn.dicUrl = "/api/blade-user/security-dispatcher-tree?deptId="+this.userInfo.dept_id; |
| | | } |
| | | done(); |
| | | }, |
| | |
| | | prop: "cardid", |
| | | search: true, |
| | | searchLabelWidth: 90, |
| | | searchSpan: 5, |
| | | searchSpan: 4, |
| | | minWidth: 140, |
| | | display: false |
| | | }, |
| | |
| | | search: true, |
| | | searchLabelWidth: 90, |
| | | minWidth: 105, |
| | | searchSpan: 4, |
| | | searchSpan: 3, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | // hide: true, |
| | |
| | | slot: true, |
| | | search: true, |
| | | // searchValue: 7, |
| | | editDisplay: false, |
| | | addDisplay: false, |
| | | searchSpan: 3, |
| | | width: 69, |
| | | dicData: [{ |
| | |
| | | value: 7, |
| | | } |
| | | ], |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择", |
| | | trigger: "blur", |
| | | }, ], |
| | | }, |
| | | |
| | | // { |