重点场所管理改成消防自查,数据筛选为消防自查数据,不展示类型字段
| | |
| | | {{ showStatus(row.status).text }} |
| | | </el-tag> |
| | | </template> |
| | | |
| | | </avue-crud> |
| | | |
| | | |
| | |
| | | |
| | | export default { |
| | | data () { |
| | | |
| | | //手机号格式校验 |
| | | let validatorPhone = function (rule, value, callback) { |
| | | if (value) { |
| | |
| | | searchLabelWidth: 96, |
| | | searchShow: true, |
| | | searchMenuSpan: 3, |
| | | menuWidth: 210, |
| | | |
| | | menuWidth: 160, |
| | | height: "auto", |
| | | calcHeight: 54, |
| | | dialogWidth: 950, |
| | |
| | | searchLabelWidth: 46, |
| | | search: true, |
| | | hide: true, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | width: 110, |
| | |
| | | searchSpan: 4, |
| | | searchLabelWidth: 100, |
| | | search: true, |
| | | align: 'center' |
| | | }, { |
| | | width: 120, |
| | | span: 12, |
| | |
| | | validator: validatorPhone, |
| | | trigger: 'blur' |
| | | }], |
| | | align: 'center' |
| | | }, { |
| | | overHidee: true, |
| | | span: 12, |
| | |
| | | message: "请输入地址", |
| | | trigger: "blur", |
| | | },], |
| | | align: 'center' |
| | | }, { |
| | | width: 110, |
| | | label: "所属街道", |
| | |
| | | message: "请选择所属街道", |
| | | trigger: "blur", |
| | | },], |
| | | align: 'center' |
| | | }, { |
| | | width: 156, |
| | | // hide: true, |
| | |
| | | message: "请选择所属社区", |
| | | trigger: "blur", |
| | | },], |
| | | align: 'center' |
| | | }, |
| | | // { |
| | | // width: 144, |
| | | // label: "创建时间", |
| | | // prop: "createTime", |
| | | // searchSpan: 4, |
| | | |
| | | // }, |
| | | |
| | | { |
| | | width: 100, |
| | | addDisplay: false, |
| | |
| | | }, { |
| | | label: '待接收', |
| | | value: 4 |
| | | }] |
| | | }, { |
| | | width: 100, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | label: '类型', |
| | | prop: 'reportType', |
| | | type: 'radio', |
| | | slot: true, |
| | | searchSpan: 4, |
| | | searchLabelWidth: 66, |
| | | search: true, |
| | | dicData: [{ |
| | | label: '旅馆安全', |
| | | value: 2 |
| | | }, { |
| | | label: '打金店', |
| | | value: 3 |
| | | }, { |
| | | label: '二手手机维修', |
| | | value: 4 |
| | | }, { |
| | | label: '二手车交易', |
| | | value: 5 |
| | | }, { |
| | | label: '校园安全', |
| | | value: 6 |
| | | }] |
| | | }, |
| | | ], |
| | | }], |
| | | align: 'center' |
| | | }], |
| | | }, |
| | | data: [], |
| | | |
| | |
| | | showStatus () { |
| | | return (data) => { |
| | | let tags = {} |
| | | |
| | | if (data == 1) { |
| | | tags = { |
| | | type: 'warning', |
| | |
| | | }, |
| | | searchReset () { |
| | | this.query = {} |
| | | this.page.currentPage = 1 |
| | | this.onLoad(this.page) |
| | | }, |
| | | searchChange (params, done) { |
| | |
| | | |
| | | currentChange (currentPage) { |
| | | this.page.currentPage = currentPage |
| | | this.onLoad(this.page, this.query) |
| | | }, |
| | | sizeChange (pageSize) { |
| | | this.page.pageSize = pageSize |
| | | this.onLoad(this.page, this.query) |
| | | }, |
| | | refreshChange () { |
| | | this.page.currentPage = 1 |
| | | this.onLoad(this.page, this.query) |
| | | }, |
| | | onLoad (page, params = {}) { |
| | |
| | | // } |
| | | // values.dateTime = null |
| | | // } |
| | | values.reportType = 2 |
| | | values.reportType = 8 |
| | | this.loading = true |
| | | getList(page.currentPage, page.pageSize, values).then((res) => { |
| | | const data = res.data.data |