| | |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "任务封面", |
| | | prop: "url", |
| | | // align:'center', |
| | | width: 80, |
| | | type: "upload", |
| | | listType: "picture-img", |
| | | action: "/api/blade-resource/oss/endpoint/put-file", |
| | | propsHttp: { |
| | | res: "data", |
| | | url: "link", |
| | | }, |
| | | // hide: true, |
| | | span: 12, |
| | | }, |
| | | |
| | | { |
| | | label: "下发时间", |
| | | type: "datetime", |
| | |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "任务封面", |
| | | prop: "url", |
| | | // align:'center', |
| | | width: 80, |
| | | type: "upload", |
| | | listType: "picture-img", |
| | | action: "/api/blade-resource/oss/endpoint/put-file", |
| | | propsHttp: { |
| | | res: "data", |
| | | url: "link", |
| | | }, |
| | | // hide: true, |
| | | span: 24, |
| | | }, |
| | | // { |
| | | // label: "报警时间", |
| | |
| | | console.log(d); |
| | | // done(); |
| | | // return; |
| | | let that = this; |
| | | add(d).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | that.$store.commit("setRotesData", false); //用vuex传最终数据 清除 |
| | | done(); |
| | | }, |
| | | (error) => { |
| | |
| | | } |
| | | ); |
| | | return; |
| | | // console.log(row, "rowrowrowrowrow"); |
| | | // console.log(this.rotesData, "rowrowrowrowrow"); |
| | | // if (!this.rotesData) { |
| | | // this.$message({ |
| | | // message: "未绘制地图路径,请重试", |
| | | // type: "warning", |
| | | // }); |
| | | // done(); |
| | | // return; |
| | | // } |
| | | // done(); |
| | | //结束后 需要把vuex中路径清除 |
| | | // that.$store.commit("setRotesData", false); |
| | | // return; |
| | | if (typeof row.securityArr != "string") { |
| | | var security = ""; |
| | | row.securityArr.forEach((item) => { |
| | | security = security + item + ","; |
| | | }); |
| | | row.securityArr = security.substring(0, security.length - 1); |
| | | } |
| | | var userId = JSON.parse( |
| | | window.localStorage.getItem("群防群控后台管理系统-userInfo") |
| | | ).content.nick_name; |
| | | |
| | | if (row.jtype != "2") { |
| | | if (row.securityArr == "" || row.securityArr == null) { |
| | | row.jtype = "0"; |
| | | row.alarmPeople = ""; |
| | | } else { |
| | | row.jtype = "1"; |
| | | //已派发保安 |
| | | } |
| | | } |
| | | row.alarmPeople = userId; |
| | | |
| | | add(row).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | loading(); |
| | | } |
| | | ); |
| | | }, |
| | | getxllx(val) { |
| | | var that = this; |
| | |
| | | } |
| | | }, |
| | | rowUpdate(row, index, done, loading) { |
| | | // var userId = JSON.parse( |
| | | // window.localStorage.getItem("群防群控后台管理系统-userInfo") |
| | | // ).content.nick_name; |
| | | // if (typeof row.securityArr != "string") { |
| | | // var security = ""; |
| | | // row.securityArr.forEach((item) => { |
| | | // security = security + item + ","; |
| | | // }); |
| | | // row.securityArr = security.substring(0, security.length - 1); |
| | | // } |
| | | // if (row.jtype != "2") { |
| | | // if (row.securityArr == "" || row.securityArr == null) { |
| | | // row.jtype = "0"; |
| | | // row.alarmPeople = ""; |
| | | // } else { |
| | | // row.jtype = "1"; |
| | | // //已派发保安 |
| | | // } |
| | | // } |
| | | // row.alarmPeople = userId; |
| | | // row.coordinate = ""; |
| | | // console.log(row); |
| | | // row.province = row.$province; //省 |
| | | // row.city = row.$city; //城市 |
| | | // row.district = row.$district; //区县 |
| | | // return; |
| | | let that = this; |
| | | update(row).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | that.$store.commit("setRotesData", false); //用vuex传最终数据 清除 |
| | | done(); |
| | | }, |
| | | (error) => { |