| | |
| | | getDetatil as getHouseDetail |
| | | } from "@/api/doorplateAddress/doorplateAddress.js" |
| | | import { |
| | | getDept |
| | | } from "@/api/system/dept" |
| | | import { |
| | | mapGetters |
| | | } from "vuex" |
| | | import website from '@/config/website' |
| | |
| | | width: 100, |
| | | label: "诉求来源", |
| | | prop: "issueOrigin", |
| | | disabled: true, |
| | | span: 12, |
| | | searchSpan: 4, |
| | | dataType: "number", |
| | | type: "select", |
| | | dicData: [{ |
| | | label: "热线", |
| | | value: 0 |
| | | }, { |
| | | label: "公安110", |
| | | value: 1 |
| | | }, { |
| | | label: "微信", |
| | | value: 2 |
| | | }, { |
| | | label: "微博", |
| | | value: 3 |
| | | }], |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=ehjb_org", |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey", |
| | | }, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择诉求来源", |
| | | trigger: "blur", |
| | | }, ], |
| | | }, |
| | | { |
| | | label: "诉求内容", |
| | | parent: false, |
| | | prop: "issueContent", |
| | | search: false, |
| | | width: 160, |
| | | overHidden: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择诉求内容", |
| | | trigger: "blur", |
| | | }, ], |
| | | }, |
| | |
| | | trigger: 'blur' |
| | | } |
| | | ], |
| | | }, |
| | | { |
| | | label: "诉求内容", |
| | | parent: false, |
| | | prop: "issueContent", |
| | | search: false, |
| | | type: 'textarea', |
| | | width: 160, |
| | | span: 24, |
| | | overHidden: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择诉求内容", |
| | | trigger: "blur", |
| | | }, ], |
| | | }, |
| | | { |
| | | label: "事发地址", |
| | |
| | | ], |
| | | }, |
| | | data: [], |
| | | dept: {}, |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | getDeptInfo() { |
| | | getDept(this.userInfo.dept_id).then(res => { |
| | | this.dept = res.data.data |
| | | this.form.issueOrigin = res.data.data.sort |
| | | // console.log("*********res.data.data*************" + JSON.stringify(res.data.data)) |
| | | }) |
| | | }, |
| | | openMap() { |
| | | this.$refs.avueInputMap.box = true |
| | | console.log(this.$refs.avueInputMap) |
| | |
| | | values.dateTime = null |
| | | } |
| | | this.loading = true |
| | | this.getDeptInfo(); |
| | | |
| | | getList(page.currentPage, page.pageSize, values).then((res) => { |
| | | const data = res.data.data |
| | | this.page.total = data.total |
| | | this.data = data.records |
| | | this.data.forEach(item => { |
| | | // this.$set(item, 'phoneflag', false) |
| | | // if (item.imageUrls) { |
| | | // if (item.imageUrls.length > 0) { |
| | | // var urls = [] |
| | | // var names = item.imageUrls.split(",") |
| | | // names.forEach(name => { |
| | | // urls.push(website.minioUrl + name) |
| | | // }) |
| | | // item.imageUrls = urls.join(",") |
| | | // } |
| | | // } |
| | | }) |
| | | |
| | | this.loading = false |
| | | this.selectionClear() |
| | | }) |