| | |
| | | //cascaderItem: ["city", "district"], |
| | | dicUrl: |
| | | "/api/blade-system/dict-biz/child-list?parentId=1356523651644043266", |
| | | control:(val,form)=>{ |
| | | if (val){ |
| | | debugger |
| | | } |
| | | return { |
| | | text2:{ |
| | | display:true |
| | | }, |
| | | text3:{ |
| | | label:'内容3' |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | { |
| | | label: "下发时间", |
| | |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "派发人", |
| | | prop: "alarmPeople", |
| | | width: 90, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | }, |
| | | // { |
| | | // label: "派发人", |
| | | // prop: "alarmPeople", |
| | | // width: 90, |
| | | // addDisplay: false, |
| | | // editDisplay: false, |
| | | // }, |
| | | { |
| | | label: "处警员", |
| | | prop: "securityArr", |
| | |
| | | addDisplay: true, |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | }, |
| | | { |
| | | label: "巡逻路线", |
| | | prop: "xllx", |
| | | hide: true, |
| | | display:true, |
| | | type: "tree", |
| | | filter:false, |
| | | dicUrl: "/api/routeIn/routein/tree", |
| | | props: { |
| | | label: "title" |
| | | }, |
| | | } |
| | | ], |
| | | }, |
| | |
| | | }, |
| | | immediate: true, |
| | | }, |
| | | //随意一个 |
| | | // 'form.deviceName'() { |
| | | // if (this.initFlag) { |
| | | // this.initData(); |
| | | // } |
| | | // } |
| | | |
| | | 'form.alarmType':{ |
| | | handler(val){ |
| | | var xllx =this.findObject(this.option.column,'xllx') |
| | | if(val==="巡逻任务"){ |
| | | xllx.display=true |
| | | xllx.rules=[{ |
| | | required: true, |
| | | message: "请选择巡逻路线", |
| | | trigger: "blur" |
| | | }] |
| | | }else{ |
| | | xllx.display=false |
| | | xllx.rules=[] |
| | | } |
| | | }, |
| | | immediate: true |
| | | }, |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission", "flowRoutes"]), |
| | |
| | | if (row.securityArr == "" || row.securityArr == null) { |
| | | row.jtype = "0"; |
| | | row.alarmPeople = ""; |
| | | }else { |
| | | } else { |
| | | row.jtype = "1"; |
| | | //已派发保安 |
| | | row.alarmPeople = userId; |
| | |
| | | if (row.securityArr == "" || row.securityArr == null) { |
| | | row.jtype = "0"; |
| | | row.alarmPeople = ""; |
| | | }else { |
| | | } else { |
| | | row.jtype = "1"; |
| | | //已派发保安 |
| | | row.alarmPeople = userId; |