Merge remote-tracking branch 'origin/master'
3 files modified
1 files added
| New file |
| | |
| | | import request from "@/router/axios" |
| | | |
| | | export const applyTaskExamine = (data) => { |
| | | return request({ |
| | | url: "/api/blade-task/task/examine", |
| | | method: "post", |
| | | data |
| | | }) |
| | | } |
| | |
| | | <el-button type="text" :size="size" icon="el-icon-view" v-if="permission.place_view" plain |
| | | @click="lookDetail(row, 0)">查 看 |
| | | </el-button> |
| | | <el-button type="text" :size="size" icon="el-icon-s-check" v-if="permission.place_check && row.status == 1" |
| | | plain @click="lookDetail(row, 1)">审 核 |
| | | <el-button type="text" :size="size" icon="el-icon-s-check" v-if="permission.place_check && row.status == 1"" plain |
| | | @click=" goAudit(row)">审 核 |
| | | </el-button> |
| | | <el-button type="text" :size="size" icon="el-icon-delete" v-if="permission.place_del" plain |
| | | @click="rowDel(row)">删 除 |
| | |
| | | <hotelReporting @colseDetail="colseDetail" v-if="taskType == 2" ref="hotelReporting"></hotelReporting> |
| | | <labelReporting @colseDetail="colseDetail" v-if="taskType == 3" ref="labelReporting"></labelReporting> |
| | | </el-dialog> |
| | | |
| | | <el-dialog :visible.sync="visible" append-to-body destroy-on-close title="审核" width="30%" |
| | | custom-class="flow-design-dialog" :before-close="handleClose"> |
| | | <el-form ref="auditForm" :model="auditForm" :rules="auditRules"> |
| | | <el-form-item label="审核结论:" prop="status"> |
| | | <el-radio-group v-model="auditForm.status"> |
| | | <el-radio :label="2">通过</el-radio> |
| | | <el-radio :label="3">不通过</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="不通过原因:" prop="remark" v-if="auditForm.status == 3"> |
| | | <el-input type="textarea" v-model="auditForm.remark"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div style="display:flex;justify-content:center"> |
| | | <el-button @click="submitAudit" size="small" type="primary">保 存</el-button> |
| | | <el-button @click="cancelAudit" size="small">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </basic-container> |
| | | </template> |
| | | |
| | |
| | | import { |
| | | mapGetters |
| | | } from "vuex" |
| | | |
| | | import { |
| | | applyTaskExamine |
| | | } from "@/api/publicSecurity/keynoteManage" |
| | | import website from '@/config/website' |
| | | import campusReporting from './components/campusReporting' |
| | | import hotelReporting from './components/hotelReporting' |
| | |
| | | } |
| | | |
| | | return { |
| | | auditRules: { |
| | | status: [{ required: true, message: "必填" }], |
| | | remark: [{ required: true, message: "必填" }], |
| | | }, |
| | | auditForm: {}, |
| | | visible: false, |
| | | taskType: 0, |
| | | curRow: {}, |
| | | roleBox: false, |
| | |
| | | searchLabelWidth: 96, |
| | | searchShow: true, |
| | | searchMenuSpan: 3, |
| | | menuWidth: 160, |
| | | menuWidth: 190, |
| | | height: "auto", |
| | | calcHeight: 54, |
| | | dialogWidth: 950, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | // 弹窗关闭回调 |
| | | handleClose () { |
| | | this.cancelAudit() |
| | | }, |
| | | |
| | | // 取消审核 |
| | | cancelAudit () { |
| | | this.visible = false |
| | | this.auditForm = {} |
| | | this.$refs.auditForm.resetFields() |
| | | }, |
| | | |
| | | // 确认提交审核 |
| | | submitAudit () { |
| | | this.$refs.auditForm.validate((valid) => { |
| | | if (valid) { |
| | | applyTaskExamine(Object.assign(this.auditParams, this.auditForm)).then(res => { |
| | | if (res.data.code == 200) { |
| | | this.$message.warning("审核成功") |
| | | this.onLoad(this.page) |
| | | this.cancelAudit() |
| | | } |
| | | }) |
| | | } else { |
| | | return false |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | // 审核按钮 |
| | | goAudit (row) { |
| | | this.auditParams = { |
| | | id: row.id, |
| | | reportType: row.reportType |
| | | } |
| | | console.log('this.auditParams', this.auditParams) |
| | | this.visible = true |
| | | }, |
| | | |
| | | colseDetail () { |
| | | this.auditBasePopup = false |
| | |
| | | }, |
| | | |
| | | rowSave (row, done, loading) { |
| | | if (row.imageUrls.length > 0) { |
| | | if (row.imageUrls && row.imageUrls.length > 0) { |
| | | var urls = [] |
| | | var split = row.imageUrls.split(",").filter(item => item != '') |
| | | split.forEach(url => { |
| | |
| | | // } |
| | | // values.dateTime = null |
| | | // } |
| | | values.reportType = 8 |
| | | values.reportType = 2 |
| | | this.loading = true |
| | | getList(page.currentPage, page.pageSize, values).then((res) => { |
| | | const data = res.data.data |
| | |
| | | |
| | | methods: { |
| | | showStringDispose (row, type) { |
| | | console.log(row, type) |
| | | row[type] = !row[type] |
| | | }, |
| | | |
| | |
| | | @click="lookDetail(row, 0)">查 看 |
| | | </el-button> |
| | | <el-button type="text" :size="size" icon="el-icon-s-check" v-if="permission.place_check && row.status == 1" |
| | | plain @click="lookDetail(row, 1)">审 核 |
| | | plain @click="goAudit(row)">审 核 |
| | | </el-button> |
| | | <el-button type="text" :size="size" icon="el-icon-delete" v-if="permission.place_del" plain |
| | | @click="rowDel(row)">删 除 |
| | |
| | | <hotelReporting @colseDetail="colseDetail" v-if="taskType == 2" ref="hotelReporting"></hotelReporting> |
| | | <labelReporting @colseDetail="colseDetail" v-if="taskType == 3" ref="labelReporting"></labelReporting> |
| | | </el-dialog> |
| | | |
| | | <el-dialog :visible.sync="visible" append-to-body destroy-on-close title="审核" width="30%" |
| | | custom-class="flow-design-dialog" :before-close="handleClose"> |
| | | <el-form ref="auditForm" :model="auditForm" :rules="auditRules"> |
| | | <el-form-item label="审核结论:" prop="status"> |
| | | <el-radio-group v-model="auditForm.status"> |
| | | <el-radio :label="2">通过</el-radio> |
| | | <el-radio :label="3">不通过</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="不通过原因:" prop="remark" v-if="auditForm.status == 3"> |
| | | <el-input type="textarea" v-model="auditForm.remark"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div style="display:flex;justify-content:center"> |
| | | <el-button @click="submitAudit" size="small" type="primary">保 存</el-button> |
| | | <el-button @click="cancelAudit" size="small">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </basic-container> |
| | | </template> |
| | | |
| | |
| | | import { |
| | | mapGetters |
| | | } from "vuex" |
| | | import { |
| | | applyTaskExamine |
| | | } from "@/api/publicSecurity/keynoteManage" |
| | | |
| | | import website from '@/config/website' |
| | | import campusReporting from '../components/campusReporting' |
| | |
| | | } |
| | | |
| | | return { |
| | | auditRules: { |
| | | status: [{ required: true, message: "必填" }], |
| | | remark: [{ required: true, message: "必填" }], |
| | | }, |
| | | auditForm: {}, |
| | | visible: false, |
| | | taskType: 0, |
| | | curRow: {}, |
| | | roleBox: false, |
| | |
| | | searchLabelWidth: 96, |
| | | searchShow: true, |
| | | searchMenuSpan: 3, |
| | | menuWidth: 160, |
| | | menuWidth: 190, |
| | | height: "auto", |
| | | calcHeight: 54, |
| | | dialogWidth: 950, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | // 弹窗关闭回调 |
| | | handleClose () { |
| | | this.cancelAudit() |
| | | }, |
| | | |
| | | // 取消审核 |
| | | cancelAudit () { |
| | | this.visible = false |
| | | this.auditForm = {} |
| | | this.$refs.auditForm.resetFields() |
| | | }, |
| | | |
| | | // 确认提交审核 |
| | | submitAudit () { |
| | | this.$refs.auditForm.validate((valid) => { |
| | | if (valid) { |
| | | applyTaskExamine(Object.assign(this.auditParams, this.auditForm)).then(res => { |
| | | if (res.data.code == 200) { |
| | | this.$message.warning("审核成功") |
| | | this.onLoad(this.page) |
| | | this.cancelAudit() |
| | | } |
| | | }) |
| | | } else { |
| | | return false |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | // 审核按钮 |
| | | goAudit (row) { |
| | | this.auditParams = { |
| | | id: row.id, |
| | | reportType: row.reportType |
| | | } |
| | | console.log('this.auditParams', this.auditParams) |
| | | this.visible = true |
| | | }, |
| | | |
| | | colseDetail () { |
| | | this.auditBasePopup = false |
| | |
| | | // } |
| | | // values.dateTime = null |
| | | // } |
| | | values.reportType = 2 |
| | | values.reportType = 5 |
| | | this.loading = true |
| | | getList(page.currentPage, page.pageSize, values).then((res) => { |
| | | const data = res.data.data |