| | |
| | | |
| | | <el-dialog :visible.sync="visible" append-to-body destroy-on-close title="审核" width="30%" |
| | | custom-class="flow-design-dialog" :before-close="handleClose"> |
| | | <audit-base @handleSubmit="submitAudit"></audit-base> |
| | | <audit-base ref="auditBase" @handleSubmit="submitAudit"></audit-base> |
| | | </el-dialog> |
| | | |
| | | |
| | | <el-drawer title="无诈申请" :visible.sync="isDetail" :append-to-body="true" size="40%" direction="rtl"> |
| | | <div class="title"> |
| | | <div class="icon">{{ refreshNum }}</div> |
| | |
| | | </div> |
| | | <div class="yh-pic-box"> |
| | | <div class="yh-pic-name"> |
| | | 上报图片 |
| | | 上报附件 |
| | | </div> |
| | | <div class="yh-pic-list"> |
| | | <div class="pic-item" v-for="pic in item.imageUrlsList"> |
| | | <el-image style="width: 100px; height: 100px" :src="pic" :fit="fit" :preview-src-list="item.imageUrlsList"></el-image> |
| | | <el-image style="width: 100px; height: 100px" :src="pic" :fit="fit" |
| | | :preview-src-list="item.imageUrlsList"></el-image> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | applyTaskExamine |
| | | } from "@/api/task/task" |
| | | |
| | | import auditBase from './components/auditBase' |
| | | import { |
| | | mapGetters |
| | | } from "vuex" |
| | |
| | | export default { |
| | | data() { |
| | | //手机号格式校验 |
| | | let validatorPhone = function(rule, value, callback) { |
| | | if (value) { |
| | | if (!/^1[3456789]\d{9}$/.test(value)) { |
| | | callback(new Error('手机号格式有误!')) |
| | | } else { |
| | | callback() |
| | | } |
| | | } |
| | | callback() |
| | | } |
| | | // let validatorPhone = function(rule, value, callback) { |
| | | // if (value) { |
| | | // if (!/^1[3456789]\d{9}$/.test(value)) { |
| | | // callback(new Error('手机号格式有误!')) |
| | | // } else { |
| | | // callback() |
| | | // } |
| | | // } |
| | | // callback() |
| | | // } |
| | | |
| | | return { |
| | | isDetail: false, |
| | |
| | | search: true, |
| | | searchSpan: 4, |
| | | searchLabelWidth: 96, |
| | | align: 'center' |
| | | }, { |
| | | label: "所属街道", |
| | | prop: "streetName", |
| | |
| | | |
| | | provide() { |
| | | return { |
| | | placeElement: this, |
| | | placeElement: this |
| | | } |
| | | }, |
| | | |
| | | components: { |
| | | auditBase, |
| | | campusReporting, |
| | | hotelReporting, |
| | | labelReporting, |
| | |
| | | } |
| | | } |
| | | }, |
| | | |
| | | |
| | | methods: { |
| | | // 点击展开收缩 |
| | | flodQL(index) { |
| | |
| | | reportType: row.reportType |
| | | } |
| | | this.visible = true |
| | | var that = this |
| | | this.$nextTick(() => { |
| | | that.$refs.auditBase.init(row) |
| | | }) |
| | | }, |
| | | |
| | | colseDetail() { |
| | |
| | | |
| | | delete row.smallLabel |
| | | |
| | | add({ |
| | | ...row, |
| | | label |
| | | }).then( |
| | | () => { |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | done() |
| | | }, |
| | | (error) => { |
| | | window.console.log(error) |
| | | loading() |
| | | } |
| | | ) |
| | | // add({ |
| | | // ...row, |
| | | // label |
| | | // }).then( |
| | | // () => { |
| | | // this.onLoad(this.page) |
| | | // this.$message({ |
| | | // type: "success", |
| | | // message: "操作成功!", |
| | | // }) |
| | | // done() |
| | | // }, |
| | | // (error) => { |
| | | // window.console.log(error) |
| | | // loading() |
| | | // } |
| | | // ) |
| | | }, |
| | | |
| | | rowUpdate(row, index, done, loading) { |
| | |
| | | |
| | | delete row.smallLabel |
| | | |
| | | update({ |
| | | ...row, |
| | | label |
| | | }).then( |
| | | () => { |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | done() |
| | | }, |
| | | (error) => { |
| | | window.console.log(error) |
| | | loading() |
| | | } |
| | | ) |
| | | // update({ |
| | | // ...row, |
| | | // label |
| | | // }).then( |
| | | // () => { |
| | | // this.onLoad(this.page) |
| | | // this.$message({ |
| | | // type: "success", |
| | | // message: "操作成功!", |
| | | // }) |
| | | // done() |
| | | // }, |
| | | // (error) => { |
| | | // window.console.log(error) |
| | | // loading() |
| | | // } |
| | | // ) |
| | | }, |
| | | |
| | | rowDel(row) { |
| | |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return remove(this.ids) |
| | | // return remove(this.ids) |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page) |
| | |
| | | this.onLoad(this.page, this.query) |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | const {} = this.query |
| | | this.query = {} |
| | | let values = { |
| | | ...params, |
| | | } |
| | |
| | | } |
| | | }) |
| | | } |
| | | data.records.forEach(item => {}) |
| | | // data.records.forEach(item => {}) |
| | | this.page.total = data.total |
| | | this.data = data.records |
| | | this.loading = false |