| | |
| | | >派发 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{type,disabled}" slot="xllxzsForm"> |
| | | <div style="width: 200px;height: 200px"> |
| | | <Map ref="modalForm" /> |
| | | </div> |
| | | </template> |
| | | |
| | | |
| | | </avue-crud> |
| | | |
| | | |
| | | <real-popup ref="realPopupView"></real-popup> |
| | | <el-drawer title="电子地图" append-to-body="true" :visible.sync="showMap"> |
| | | <iframe |
| | |
| | | editDisplay: true, |
| | | viewDisplay: true, |
| | | }, |
| | | // { |
| | | // label: "巡逻路线", |
| | | // prop: "xllx", |
| | | // hide: true, |
| | | // display: true, |
| | | // type: "tree", |
| | | // filter: false, |
| | | // dicUrl: "/api/routeIn/routein/tree", |
| | | // props: { |
| | | // label: "title", |
| | | // }, |
| | | // }, |
| | | { |
| | | label: "巡逻路线", |
| | | prop: "xllx", |
| | | hide: true, |
| | | display: true, |
| | | type: "tree", |
| | | dicUrl: "/api/routeIn/routein/tree", |
| | | props: { |
| | | label: "title", |
| | | }, |
| | | }, |
| | | { |
| | | label: "路线展示", |
| | | labelWidth: "0", |
| | | prop: "xllxzs", |
| | | className: "cityreal3", |
| | | hide: true, |
| | | display: true, |
| | | formslot:true, |
| | | }, |
| | | ], |
| | | }, |
| | | data: [], |
| | |
| | | }, |
| | | immediate: true, |
| | | }, |
| | | // "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, |
| | | // }, |
| | | "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"]), |
| | |
| | | this.dateTime = this.getDate(); |
| | | }, |
| | | mounted(){ |
| | | debugger |
| | | var xb = JSON.parse(window.sessionStorage.getItem('sjsb')); |
| | | var data = this.$route.query; |
| | | if (xb == 1){ |