| | |
| | | </el-button> |
| | | </template> --> |
| | | |
| | | <!-- <template slot="menuLeft"> |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | type="warning" |
| | | size="mini" |
| | |
| | | @click="handleExport" |
| | | >导出 |
| | | </el-button> |
| | | <el-button |
| | | <!-- <el-button |
| | | type="warning" |
| | | size="mini" |
| | | plain |
| | | icon="el-icon-pie-chart" |
| | | @click="handleExportStatis" |
| | | >导出报表 |
| | | </el-button> |
| | | </template> --> |
| | | </el-button> --> |
| | | </template> |
| | | |
| | | <template slot-scope="{ row }" slot="jtype"> |
| | | <el-tag |
| | |
| | | label: "巡查标题", |
| | | prop: "rname", |
| | | search: true, |
| | | overHidden: true, |
| | | searchSpan: 4, |
| | | span: 12, |
| | | rules: [ |
| | |
| | | { |
| | | label: "巡查内容", |
| | | prop: "content", |
| | | overHidden: true, |
| | | span: 24, |
| | | }, |
| | | // { |
| | |
| | | // }, |
| | | { |
| | | label: "所属辖区", |
| | | sortable:true, |
| | | prop: "jurisdiction", |
| | | searchLabelWidth: 80, |
| | | search: true, |
| | |
| | | prop: "rtype", |
| | | type: "select", |
| | | value: "2", |
| | | search: true, |
| | | searchSpan: 4, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | ], |
| | | dicData: [ |
| | | { |
| | | label: "任务开始", |
| | | label: "任务待开始", |
| | | value: "2", |
| | | }, |
| | | { |
| | |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | }, |
| | | // { |
| | | // label: "积分数值", |
| | | // prop: "integral", |
| | | // type: "select", |
| | | // dicData: [ |
| | | // { |
| | | // label: "5", |
| | | // value: "5", |
| | | // }, |
| | | // { |
| | | // label: "10", |
| | | // value: "10", |
| | | // }, |
| | | // { |
| | | // label: "15", |
| | | // value: "15", |
| | | // }, |
| | | // ], |
| | | // width: 72, |
| | | // // hide: true, |
| | | // minRows: 1, |
| | | // value: 5, |
| | | // // leafOnly: "", |
| | | // addDisplay: true, |
| | | // editDisplay: true, |
| | | // viewDisplay: true, |
| | | // }, |
| | | { |
| | | label: "接收人数", |
| | | prop: "jnum", |
| | |
| | | let that = this; |
| | | row.time = row.timeList[0]; |
| | | row.endtime = row.timeList[1]; |
| | | debugger |
| | | update(row).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | |
| | | }); |
| | | }, |
| | | beforeOpen(done, type) { |
| | | this.form.timeList = []; |
| | | this.form["timeList"][0]= this.form["time"]; |
| | | this.form["timeList"][1]= this.form["endtime"]; |
| | | // console.log(type, "this.formthis.formthis.form"); |
| | | // console.log(type); |
| | | // if (["edit", "view"].includes(type)) { |
| | |
| | | done(); |
| | | return; |
| | | } |
| | | |
| | | this.form.timeList = []; |
| | | this.form["timeList"][0]= this.form["time"]; |
| | | this.form["timeList"][1]= this.form["endtime"]; |
| | | |
| | | if (this.form.line != "" && this.form != undefined) { |
| | | this.form["haveMap"] = "已绘制路径!"; |
| | | } else { |
| | |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | params["tasktype"] = "0"; // 治安巡查 |
| | | if (this.userInfo.role_name != "administrator"){ |
| | | params["jurisdiction"] = this.userInfo.workjurisdiction; |
| | | } |
| | | getList(page.currentPage, page.pageSize, params).then((res) => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | |
| | | |
| | | //数据导出 |
| | | handleExport() { |
| | | this.$confirm("是否导出实时警情数据?", "提示", { |
| | | this.$confirm("是否导出任务数据?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }).then(() => { |
| | | window.open( |
| | | `/api/alarm/alarm/export-alarm?beginTime=${this.$route.query.startTime}&endTime=${this.$route.query.endTime}&waringType=${this.$route.query.waringType}&timeDesc=${this.$route.query.timeDesc}` |
| | | `/api/taskqd/export-task?rname=${this.$route.query.rname}&jurisdiction=${this.$route.query.jurisdiction}&rtype=${this.$route.query.rtype}&tasktype=0` |
| | | ); |
| | | }); |
| | | }, |