Merge remote-tracking branch 'origin/master'
6 files modified
2 files added
| | |
| | | }}</el-tag> |
| | | </template> |
| | | |
| | | <template slot-scope="{row, size}" slot="confirmFlag"> |
| | | <el-tag :size="size" :type="showConfirmFlag(row.confirmFlag).type">{{ showConfirmFlag(row.confirmFlag).text |
| | | }}</el-tag> |
| | | </template> |
| | | |
| | | <template slot-scope="{row, size}" slot="source"> |
| | | <el-tag :size="size" :type="showSource(row.source).type">{{ showSource(row.source).text |
| | | }}</el-tag> |
| | |
| | | },], |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | width: 110, |
| | |
| | | label: "九小分类", |
| | | prop: "nineType", |
| | | type: "select", |
| | | display:false, |
| | | display: false, |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=nineType", |
| | | dataType: "number", |
| | | hide: true, |
| | |
| | | label: "阵地类型", |
| | | prop: "frontType", |
| | | type: "select", |
| | | display:false, |
| | | display: false, |
| | | row: true, |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=frontType", |
| | | dataType: "number", |
| | |
| | | prop: "location", |
| | | type: 'map', |
| | | dataType: "string", |
| | | minWidth:250, |
| | | minWidth: 250, |
| | | span: 12, |
| | | value: [117.966460, 28.431002, ""], |
| | | rules: [ |
| | |
| | | label: "备注", |
| | | prop: "remark", |
| | | type: 'textarea', |
| | | hide:true, |
| | | hide: true, |
| | | span: 24, |
| | | rules: [ |
| | | { |
| | |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | label: "经度", |
| | | hide:true, |
| | | hide: true, |
| | | prop: "lng", |
| | | }, |
| | | |
| | |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | label: "纬度", |
| | | hide:true, |
| | | hide: true, |
| | | prop: "lat", |
| | | }, |
| | | |
| | |
| | | |
| | | watch: { |
| | | 'form.isNine': { |
| | | handler(newData) { |
| | | handler (newData) { |
| | | if (newData) { |
| | | let nineTypeColumn = this.findObject( |
| | | this.option.column, |
| | |
| | | }, |
| | | }, |
| | | 'form.isFront': { |
| | | handler(newData) { |
| | | handler (newData) { |
| | | if (newData) { |
| | | let frontTypeColumn = this.findObject( |
| | | this.option.column, |
| | |
| | | {{ 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 |
| | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | :deep(.cur-container-box) { |
| | | padding: 0; |
| | | } |
| | | |
| | | .avue-upload__icon { |
| | | line-height: 6; |
| | | } |
| | |
| | | </template> |
| | | <template slot-scope="{row, size}" slot="principalPhone"> |
| | | <el-button :size="size" type="text" @click="showStringDispose(row, 'principalPhoneflag')" |
| | | v-text="textDispose(row, 'principalPhoneflag', 'principalPhone')"></el-button> |
| | | v-text="textDispose(row, 'principalPhoneflag', 'principalPhone')"> |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{row, size}" slot="policePhone"> |
| | | <el-button :size="size" type="text" @click="showStringDispose(row, 'policePhoneflag')" |
| | | v-text="textDispose(row, 'policePhoneflag', 'policePhone')"> |
| | | </el-button> |
| | | </template> |
| | | <template slot="menuLeft"> |
| | | <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleExport">导出 |
| | |
| | | label: "责任民警联系方式", |
| | | prop: "policePhone", |
| | | align: 'center', |
| | | slot: true, |
| | | width: 120 |
| | | }], |
| | | }, |
| | |
| | | return { |
| | | ...item, |
| | | 'principalIdCardflag': false, |
| | | 'principalPhoneflag': false |
| | | 'principalPhoneflag': false, |
| | | 'policePhoneflag': false |
| | | } |
| | | }) |
| | | } |
| | |
| | | :before-open="beforeOpen" @search-change="searchChange" @search-reset="searchReset" |
| | | @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" |
| | | @refresh-change="refreshChange" @on-load="onLoad"> |
| | | <template slot-scope="{row, size}" slot="principalPhone"> |
| | | <el-button :size="size" type="text" @click="showStringDispose(row, 'principalPhoneflag')" |
| | | v-text="textDispose(row, 'principalPhoneflag', 'principalPhone')"> |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{type,size,row }" slot="menu"> |
| | | <el-button icon="el-icon-detail" :size="size" :type="type" @click.stop="getDetail(row)"> |
| | | 详情 |
| | |
| | | searchLabelWidth: 96, |
| | | searchShow: true, |
| | | searchMenuSpan: 3, |
| | | // menuWidth: 450, |
| | | menuWidth: 100, |
| | | // menu: false, |
| | | height: "auto", |
| | | calcHeight: 54, |
| | |
| | | row: true, |
| | | searchSpan: 4, |
| | | search: true, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | label: "所属社区", |
| | |
| | | row: true, |
| | | searchSpan: 4, |
| | | search: true, |
| | | width: 160, |
| | | overHidden: true, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | label: "所属网格", |
| | |
| | | row: true, |
| | | searchSpan: 4, |
| | | search: true, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | label: "场所名称", |
| | |
| | | row: true, |
| | | searchSpan: 4, |
| | | search: true, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | label: "场所隐患", |
| | |
| | | span: 24, |
| | | row: true, |
| | | searchSpan: 4, |
| | | align: 'center' |
| | | }, |
| | | |
| | | { |
| | |
| | | row: true, |
| | | searchSpan: 4, |
| | | search: true, |
| | | align: 'center' |
| | | }, |
| | | |
| | | { |
| | |
| | | prop: "principalPhone", |
| | | span: 24, |
| | | row: true, |
| | | slot: true, |
| | | searchSpan: 4, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | label: "场所地址", |
| | |
| | | row: true, |
| | | searchSpan: 4, |
| | | searchLabelWidth: 46, |
| | | overHidden: true, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | width: 110, |
| | |
| | | type: "upload", |
| | | listType: "picture-img", |
| | | span: 24, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | label: "创建时间", |
| | |
| | | row: true, |
| | | searchSpan: 4, |
| | | searchLabelWidth: 46, |
| | | align: 'center' |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | } |
| | | }, |
| | | |
| | | textDispose () { |
| | | return (row, flag, type) => { |
| | | console.log('row', row, flag, type) |
| | | if (row[flag] || row[type] == null) { |
| | | return row[type] |
| | | } else { |
| | | if (type == 'principalIdCard') { |
| | | return row[type].replace(/^(.{6})(?:\d+)(.{4})$/, "$1******$2") |
| | | } else { |
| | | return row[type].replace(/^(.{3})(?:\d+)(.{4})$/, "$1****$2") |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | }, |
| | | |
| | | created () { |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | showStringDispose (row, type) { |
| | | console.log(row, type) |
| | | row[type] = !row[type] |
| | | }, |
| | | |
| | | // 点击展开收缩 |
| | | flodQL (index) { |
| | | this.rowDetail.qTypeList[index].isShowQList = !this.rowDetail.qTypeList[index].isShowQList |
| | |
| | | onLoad (page, params = {}) { |
| | | this.loading = true |
| | | getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then((res) => { |
| | | const data = res.data.data |
| | | this.page.total = data.total |
| | | this.data = data.records |
| | | this.data.forEach(item => { |
| | | const data = { |
| | | ...res.data.data, |
| | | records: res.data.data.records.map(item => { |
| | | return { |
| | | ...item, |
| | | 'createTime': item.createTime.slice(0, 16), |
| | | 'principalPhoneflag': false, |
| | | } |
| | | }) |
| | | } |
| | | data.records.forEach(item => { |
| | | if (item.signaturePath.length > 0) { |
| | | var urls = [] |
| | | var names = item.signaturePath.split(",") |
| | |
| | | item.signaturePath = urls.join(",") |
| | | } |
| | | }) |
| | | this.page.total = data.total |
| | | this.data = data.records |
| | | this.loading = false |
| | | this.selectionClear() |
| | | }).catch(err => { |
| | |
| | | background-color: #409EFF; |
| | | } |
| | | |
| | | :deep(.avue-crud__img) { |
| | | height: 30px !important; |
| | | } |
| | | |
| | | .title { |
| | | margin: 10px; |
| | | height: 40px; |
| | |
| | | <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleExport">导出 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{row, size}" slot="status"> |
| | | <el-tag :size="size" :type="showConfirmFlag(row.status).type">{{ showConfirmFlag(row.status).text |
| | | }}</el-tag> |
| | | </template> |
| | | <template slot-scope="{type,size,row }" slot="menu"> |
| | | <el-button icon="el-icon-detail" :size="size" :type="type" @click.stop="getDetail(row)"> |
| | | 详情 |
| | |
| | | searchShow: true, |
| | | searchMenuSpan: 3, |
| | | menu: true, |
| | | menuWidth: 120, |
| | | border: true, |
| | | index: true, |
| | | editBtn: false, |
| | |
| | | searchSpan: 4, |
| | | searchLabelWidth: 106, |
| | | }, { |
| | | label: "审核状态", |
| | | prop: "status", |
| | | align: 'center', |
| | | dicData: [ |
| | | { |
| | | label: "待审核", |
| | | value: 1, |
| | | }, |
| | | { |
| | | label: "审核通过", |
| | | value: 2, |
| | | }, |
| | | { |
| | | label: "审核不通过", |
| | | value: 3, |
| | | }, |
| | | { |
| | | label: "待上报", |
| | | value: 4, |
| | | } |
| | | ], |
| | | search: true, |
| | | searchSpan: 4, |
| | | searchLabelWidth: 106, |
| | | }, { |
| | | label: "检查时间", |
| | | prop: "dateRange", |
| | | type: "daterange", |
| | |
| | | return ids.join(",") |
| | | }, |
| | | |
| | | showConfirmFlag () { |
| | | return (data) => { |
| | | let tags = { |
| | | text: '', |
| | | type: '' |
| | | } |
| | | if (data == 1) { |
| | | tags = { |
| | | text: '待审核', |
| | | type: 'warning' |
| | | } |
| | | } else if (data == 2) { |
| | | tags = { |
| | | text: '审核通过', |
| | | type: 'success' |
| | | } |
| | | } else if (data == 3) { |
| | | tags = { |
| | | text: '审核不通过', |
| | | type: 'danger' |
| | | } |
| | | } else if (data == 4) { |
| | | tags = { |
| | | text: '待上报', |
| | | type: 'info' |
| | | } |
| | | } |
| | | |
| | | return tags |
| | | } |
| | | } |
| | | }, |
| | | |
| | | created () { |
| | |
| | | |
| | | onLoad (page, params = {}) { |
| | | this.loading = true |
| | | if (this.typeStatus == 3) { |
| | | if (this.typeStatus == 1) { |
| | | this.query.status = '1' |
| | | } else if (this.typeStatus == 2) { |
| | | this.query.status = '2' |
| | | } else if (this.typeStatus == 3) { |
| | | this.query.status = '' |
| | | } else { |
| | | this.query.status = this.typeStatus |
| | | } |
| | | getZGQKList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | console.log('getZGQKList', res.data.data) |
| New file |
| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" @row-del="rowDel" |
| | | v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave" |
| | | :before-open="beforeOpen" @search-change="searchChange" @search-reset="searchReset" |
| | | @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" |
| | | @refresh-change="refreshChange" @on-load="onLoad"> |
| | | |
| | | <template slot-scope="{row, size}" slot="menu"> |
| | | <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> |
| | | <el-button type="text" :size="size" icon="el-icon-delete" v-if="permission.place_del" plain |
| | | @click="rowDel(row)">删 除 |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot="status" slot-scope="{row, size}"> |
| | | <el-tag :size="size" :type="showStatus(row.status).type"> |
| | | {{ showStatus(row.status).text }} |
| | | </el-tag> |
| | | </template> |
| | | </avue-crud> |
| | | |
| | | |
| | | <el-dialog title="" append-to-body :visible.sync="auditBasePopup" width="60%"> |
| | | <campusReporting @colseDetail="colseDetail" v-if="taskType == 6" ref="campusReporting"></campusReporting> |
| | | <hotelReporting @colseDetail="colseDetail" v-if="taskType == 2" ref="hotelReporting"></hotelReporting> |
| | | <labelReporting @colseDetail="colseDetail" v-if="taskType == 3" ref="labelReporting"></labelReporting> |
| | | </el-dialog> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | getList, |
| | | removeTask, |
| | | update, |
| | | add, |
| | | } from "@/api/task/task" |
| | | |
| | | import { |
| | | mapGetters |
| | | } from "vuex" |
| | | |
| | | import website from '@/config/website' |
| | | import campusReporting from '../components/campusReporting' |
| | | import hotelReporting from '../components/hotelReporting' |
| | | import labelReporting from '../components/labelReporting' |
| | | |
| | | export default { |
| | | data () { |
| | | //手机号格式校验 |
| | | let validatorPhone = function (rule, value, callback) { |
| | | if (value) { |
| | | if (!/^1[3456789]\d{9}$/.test(value)) { |
| | | callback(new Error('手机号格式有误!')) |
| | | } else { |
| | | callback() |
| | | } |
| | | } |
| | | callback() |
| | | } |
| | | |
| | | return { |
| | | taskType: 0, |
| | | curRow: {}, |
| | | roleBox: false, |
| | | |
| | | form: {}, |
| | | query: {}, |
| | | loading: true, |
| | | |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | }, |
| | | datetime: "", |
| | | selectionList: [], |
| | | option: { |
| | | labelWidth: 96, |
| | | searchLabelWidth: 96, |
| | | searchShow: true, |
| | | searchMenuSpan: 3, |
| | | menuWidth: 160, |
| | | height: "auto", |
| | | calcHeight: 54, |
| | | dialogWidth: 950, |
| | | tip: false, |
| | | // menu: false, |
| | | border: true, |
| | | //stripe:true, |
| | | index: true, |
| | | // viewBtn: true, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | selection: true, |
| | | dialogClickModal: false, |
| | | column: [{ |
| | | span: 12, |
| | | label: "社区", |
| | | prop: "communityName", |
| | | searchSpan: 4, |
| | | searchLabelWidth: 46, |
| | | search: true, |
| | | hide: true, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | width: 110, |
| | | span: 12, |
| | | label: "场所负责人", |
| | | prop: "realName", |
| | | searchSpan: 4, |
| | | searchLabelWidth: 100, |
| | | search: true, |
| | | align: 'center' |
| | | }, { |
| | | width: 120, |
| | | span: 12, |
| | | label: "联系方式", |
| | | prop: "phone", |
| | | searchSpan: 4, |
| | | search: true, |
| | | rules: [{ |
| | | validator: validatorPhone, |
| | | trigger: 'blur' |
| | | }], |
| | | align: 'center' |
| | | }, { |
| | | overHidee: true, |
| | | span: 12, |
| | | label: "地址", |
| | | prop: "addressName", |
| | | searchSpan: 4, |
| | | // search: true, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请输入地址", |
| | | trigger: "blur", |
| | | },], |
| | | align: 'center' |
| | | }, { |
| | | width: 110, |
| | | label: "所属街道", |
| | | // hide: true, |
| | | // search: true, |
| | | parent: false, |
| | | searchSpan: 4, |
| | | prop: "streetCode", |
| | | type: "tree", |
| | | dicUrl: "/api/blade-system/region/getTownTree", |
| | | props: { |
| | | label: "name", |
| | | value: "id" |
| | | }, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择所属街道", |
| | | trigger: "blur", |
| | | },], |
| | | align: 'center' |
| | | }, { |
| | | width: 156, |
| | | // hide: true, |
| | | parent: false, |
| | | searchSpan: 4, |
| | | label: "所属社区", |
| | | prop: "neiCode", |
| | | // search: false, |
| | | type: "tree", |
| | | dicUrl: "/api/blade-system/region/tree", |
| | | props: { |
| | | label: "name", |
| | | value: "id", |
| | | }, |
| | | rules: [{ |
| | | required: true, |
| | | message: "请选择所属社区", |
| | | trigger: "blur", |
| | | },], |
| | | align: 'center' |
| | | }, |
| | | { |
| | | width: 100, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | viewDisplay: false, |
| | | label: '审核状态', |
| | | prop: 'status', |
| | | type: 'radio', |
| | | slot: true, |
| | | dicData: [{ |
| | | label: '待审核', |
| | | value: 1 |
| | | }, { |
| | | label: '已审核', |
| | | value: 2 |
| | | }, { |
| | | label: '未通过', |
| | | value: 3 |
| | | }, { |
| | | label: '待接收', |
| | | value: 4 |
| | | }], |
| | | align: 'center' |
| | | }], |
| | | }, |
| | | data: [], |
| | | |
| | | auditBasePopup: false, |
| | | } |
| | | }, |
| | | |
| | | provide () { |
| | | return { |
| | | placeElement: this, |
| | | } |
| | | }, |
| | | |
| | | components: { |
| | | campusReporting, |
| | | hotelReporting, |
| | | labelReporting, |
| | | }, |
| | | |
| | | watch: {}, |
| | | |
| | | computed: { |
| | | ...mapGetters(["permission", "userInfo"]), |
| | | permissionList () { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.place_add, false), |
| | | viewBtn: this.vaildData(this.permission.place_view, true), |
| | | delBtn: this.vaildData(this.permission.place_del, true), |
| | | // editBtn: this.vaildData(this.permission.place_edit, true), |
| | | } |
| | | }, |
| | | ids () { |
| | | let ids = [] |
| | | this.selectionList.forEach((ele) => { |
| | | ids.push(ele.id) |
| | | }) |
| | | return ids.join(",") |
| | | }, |
| | | showStatus () { |
| | | return (data) => { |
| | | let tags = {} |
| | | if (data == 1) { |
| | | tags = { |
| | | type: 'warning', |
| | | text: '待审核' |
| | | } |
| | | } else if (data == 2) { |
| | | tags = { |
| | | type: 'success', |
| | | text: '已审核' |
| | | } |
| | | } else if (data == 3) { |
| | | tags = { |
| | | type: 'danger', |
| | | text: '未通过' |
| | | } |
| | | } else if (data == 4) { |
| | | tags = { |
| | | type: 'warning', |
| | | text: '待接收' |
| | | } |
| | | } |
| | | |
| | | return tags |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | colseDetail () { |
| | | this.auditBasePopup = false |
| | | this.onLoad(this.page) |
| | | }, |
| | | |
| | | lookDetail (row, applyType) { |
| | | this.auditBasePopup = true |
| | | var that = this |
| | | if (row.reportType == 6) { |
| | | this.taskType = 6 |
| | | this.$nextTick(() => { |
| | | that.$refs.campusReporting.init(row, applyType) |
| | | }) |
| | | } |
| | | if (row.reportType == 2) { |
| | | this.taskType = 2 |
| | | this.$nextTick(() => { |
| | | that.$refs.hotelReporting.init(row, applyType) |
| | | }) |
| | | } |
| | | if (row.reportType == 3 || row.reportType == 4 || row.reportType == 5) { |
| | | this.taskType = 3 |
| | | this.$nextTick(() => { |
| | | that.$refs.labelReporting.init(row, applyType) |
| | | }) |
| | | } |
| | | }, |
| | | auditCur (row) { |
| | | this.curAuditRow = row |
| | | this.auditBasePopup = true |
| | | }, |
| | | |
| | | roleBoxClose () { |
| | | this.curRow = {} |
| | | }, |
| | | |
| | | ManageTenants (item) { |
| | | this.curRow = item |
| | | this.roleBox = true |
| | | }, |
| | | |
| | | rowSave (row, done, loading) { |
| | | if (row.imageUrls.length > 0) { |
| | | var urls = [] |
| | | var split = row.imageUrls.split(",").filter(item => item != '') |
| | | split.forEach(url => { |
| | | var names = url.split("jczz/") |
| | | urls.push(names[1]) |
| | | }) |
| | | row.imageUrls = urls.join(",") |
| | | } |
| | | |
| | | let label = row.label |
| | | |
| | | if (row.smallLabel != '') { |
| | | label = label + ',' + row.smallLabel |
| | | } |
| | | |
| | | delete row.smallLabel |
| | | |
| | | 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) { |
| | | if (row.imageUrls.length > 0) { |
| | | var urls = [] |
| | | var split = row.imageUrls.split(",").filter(item => item != '') |
| | | split.forEach(url => { |
| | | var names = url.split("jczz/") |
| | | urls.push(names[1]) |
| | | }) |
| | | row.imageUrls = urls.join(",") |
| | | } |
| | | |
| | | let label = row.label |
| | | |
| | | if (row.smallLabel != '') { |
| | | label = label + ',' + row.smallLabel |
| | | } |
| | | |
| | | delete row.smallLabel |
| | | |
| | | update({ |
| | | ...row, |
| | | label |
| | | }).then( |
| | | () => { |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | done() |
| | | }, |
| | | (error) => { |
| | | window.console.log(error) |
| | | loading() |
| | | } |
| | | ) |
| | | }, |
| | | |
| | | rowDel (row) { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | row.isDeleted = 1 |
| | | return removeTask(row) |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page) |
| | | |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | }) |
| | | }, |
| | | searchReset () { |
| | | this.query = {} |
| | | this.page.currentPage = 1 |
| | | this.onLoad(this.page) |
| | | }, |
| | | searchChange (params, done) { |
| | | this.query = params |
| | | this.page.currentPage = 1 |
| | | this.onLoad(this.page, params) |
| | | done() |
| | | }, |
| | | selectionChange (list) { |
| | | this.selectionList = list |
| | | }, |
| | | selectionClear () { |
| | | this.selectionList = [] |
| | | this.$nextTick(() => { |
| | | this.$refs.crud && this.$refs.crud.toggleSelection() |
| | | }) |
| | | }, |
| | | handleDelete () { |
| | | if (this.selectionList.length === 0) { |
| | | this.$message.warning("请选择至少一条数据") |
| | | return |
| | | } |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return remove(this.ids) |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | this.$refs.crud.toggleSelection() |
| | | }) |
| | | }, |
| | | |
| | | beforeOpen (done, type) { |
| | | if (["edit", "view"].includes(type)) { |
| | | // getPlace(this.form.id).then((res) => { |
| | | // this.form = res.data.data |
| | | // if (this.form.imageUrls.length) { |
| | | // this.form.imageUrls = this.form.imageUrls.split(",").filter(item => item != '').map(item => website |
| | | // .minioUrl + item).join(',') |
| | | // } |
| | | // if (this.form.placePoiLabelVOList.length) { |
| | | // let lebelTwo = this.form.placePoiLabelVOList.find(item => { |
| | | // return item.type == 2 |
| | | // }) |
| | | // if (lebelTwo) this.form.label = String(lebelTwo.poiCode) |
| | | // let lebelThree = this.form.placePoiLabelVOList.find(item => { |
| | | // return item.type == 3 |
| | | // }) |
| | | // if (lebelThree) this.form.smallLabel = String(lebelThree.poiCode) |
| | | // } |
| | | // done() |
| | | // }) |
| | | } else { |
| | | 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 = {}) { |
| | | const { |
| | | dateTime |
| | | } = this.query |
| | | let values = { |
| | | ...params, |
| | | } |
| | | // if (dateTime) { |
| | | // values = { |
| | | // ...params, |
| | | // startTime: dateTime[0], |
| | | // endTime: dateTime[1], |
| | | // ...this.query, |
| | | // } |
| | | // values.dateTime = null |
| | | // } |
| | | values.reportType = 2 |
| | | this.loading = true |
| | | 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 => { |
| | | if (item.imageUrls && item.imageUrls != '' && item.imageUrls != null && item.imageUrls.length) { |
| | | var urls = [] |
| | | var names = item.imageUrls.split(",").filter(item => item != '') |
| | | names.forEach(name => { |
| | | urls.push(website.minioUrl + name) |
| | | }) |
| | | item.imageUrls = urls.join(",") |
| | | } |
| | | }) |
| | | this.loading = false |
| | | this.selectionClear() |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | :deep(.cur-container-box) { |
| | | padding: 0; |
| | | } |
| | | |
| | | .avue-upload__icon { |
| | | line-height: 6; |
| | | } |
| | | |
| | | .cur-container-box { |
| | | display: flex; |
| | | flex-direction: column; |
| | | width: 100%; |
| | | height: 100%; |
| | | overflow: hidden; |
| | | |
| | | .content-box { |
| | | margin: 0 4px; |
| | | padding: 0 16px; |
| | | height: 0; |
| | | flex: 1; |
| | | overflow: hidden; |
| | | overflow-y: auto; |
| | | } |
| | | |
| | | .footer-btn-box { |
| | | margin-top: 10px; |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | | } |
| | | </style> |
| New file |
| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud :option="option" :table-loading="loading" :data="data" :page.sync="page" ref="crud" @row-del="rowDel" |
| | | v-model="form" :permission="permissionList" @row-update="rowUpdate" @row-save="rowSave" |
| | | :before-open="beforeOpen" @search-change="searchChange" @search-reset="searchReset" |
| | | @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange" |
| | | @refresh-change="refreshChange" @on-load="onLoad"> |
| | | <template slot-scope="{row, size}" slot="principalIdCard"> |
| | | <el-button :size="size" type="text" @click="showStringDispose(row, 'principalIdCardflag')"> |
| | | {{ textDispose(row, 'principalIdCardflag', 'principalIdCard') }} |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{row, size}" slot="principalPhone"> |
| | | <el-button :size="size" type="text" @click="showStringDispose(row, 'principalPhoneflag')" |
| | | v-text="textDispose(row, 'principalPhoneflag', 'principalPhone')"> |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{row, size}" slot="policePhone"> |
| | | <el-button :size="size" type="text" @click="showStringDispose(row, 'policePhoneflag')" |
| | | v-text="textDispose(row, 'policePhoneflag', 'policePhone')"> |
| | | </el-button> |
| | | </template> |
| | | <template slot="menuLeft"> |
| | | <el-button type="warning" size="small" plain icon="el-icon-download" @click="handleExport">导出 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </basic-container> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | mapGetters |
| | | } from "vuex" |
| | | import { |
| | | getDAGLList |
| | | } from "@/api/publicSecurity/ninePlaceManage" |
| | | import NProgress from 'nprogress' |
| | | import 'nprogress/nprogress.css' |
| | | import Qs from "qs" |
| | | import { |
| | | exportBlob |
| | | } from "@/api/common" |
| | | import { |
| | | getToken |
| | | } from '@/util/auth' |
| | | import { |
| | | downloadXls |
| | | } from "@/util/util" |
| | | import { |
| | | dateNow |
| | | } from "@/util/date" |
| | | |
| | | export default { |
| | | data () { |
| | | return { |
| | | form: {}, |
| | | query: {}, |
| | | loading: true, |
| | | |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | }, |
| | | datetime: "", |
| | | selectionList: [], |
| | | option: { |
| | | height: "auto", |
| | | calcHeight: 54, |
| | | dialogWidth: 950, |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 3, |
| | | menu: false, |
| | | border: true, |
| | | index: true, |
| | | editBtn: false, |
| | | delBtn: false, |
| | | addBtn: false, |
| | | dialogClickModal: false, |
| | | column: [{ |
| | | label: "地区", |
| | | prop: "townStreetName", |
| | | align: 'center', |
| | | search: true, |
| | | searchSpan: 3, |
| | | searchLabelWidth: 46, |
| | | labelWidth: 120, |
| | | width: 156 |
| | | }, { |
| | | label: "场所名称", |
| | | prop: "placeName", |
| | | align: 'center', |
| | | search: true, |
| | | searchSpan: 3, |
| | | // searchLabelWidth: 96, |
| | | width: 156 |
| | | }, { |
| | | label: "场所地址", |
| | | prop: "location", |
| | | align: 'center', |
| | | }, |
| | | { |
| | | label: "场所类别", |
| | | prop: "nineType", |
| | | align: 'center', |
| | | dicUrl: "/api/blade-system/dict-biz/tree?code=nineType", |
| | | props: { |
| | | label: "title", |
| | | value: "key", |
| | | }, |
| | | type: 'select', |
| | | search: true, |
| | | searchSpan: 3, |
| | | // searchLabelWidth: 96 |
| | | }, { |
| | | label: "场所负责人", |
| | | prop: "principal", |
| | | align: 'center', |
| | | search: true, |
| | | searchSpan: 4, |
| | | searchLabelWidth: 96, |
| | | width: 110 |
| | | }, { |
| | | label: "身份证信息", |
| | | prop: "principalIdCard", |
| | | align: 'center', |
| | | slot: true, |
| | | width: 160 |
| | | }, { |
| | | label: "联系方式", |
| | | prop: "principalPhone", |
| | | align: 'center', |
| | | slot: true, |
| | | width: 120 |
| | | }, { |
| | | label: "辖区派出所", |
| | | prop: "deptName", |
| | | align: 'center', |
| | | search: true, |
| | | searchSpan: 4, |
| | | searchLabelWidth: 96 |
| | | }, { |
| | | label: "责任民警", |
| | | prop: "policeName", |
| | | align: 'center', |
| | | search: true, |
| | | searchSpan: 4, |
| | | // searchLabelWidth: 96, |
| | | width: 110 |
| | | }, { |
| | | label: "责任民警联系方式", |
| | | prop: "policePhone", |
| | | align: 'center', |
| | | slot: true, |
| | | width: 120 |
| | | }], |
| | | }, |
| | | data: [] |
| | | } |
| | | }, |
| | | |
| | | computed: { |
| | | ...mapGetters(["permission", "userInfo"]), |
| | | permissionList () { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.place_add, true), |
| | | viewBtn: this.vaildData(this.permission.place_view, true), |
| | | delBtn: this.vaildData(this.permission.place_delete, true), |
| | | editBtn: this.vaildData(this.permission.place_edit, true), |
| | | } |
| | | }, |
| | | ids () { |
| | | let ids = [] |
| | | this.selectionList.forEach((ele) => { |
| | | ids.push(ele.id) |
| | | }) |
| | | return ids.join(",") |
| | | }, |
| | | |
| | | textDispose () { |
| | | return (row, flag, type) => { |
| | | if (row[flag] || row[type] == null) { |
| | | return row[type] |
| | | } else { |
| | | if (type == 'principalIdCard') { |
| | | return row[type].replace(/^(.{6})(?:\d+)(.{4})$/, "$1******$2") |
| | | } else { |
| | | return row[type].replace(/^(.{3})(?:\d+)(.{4})$/, "$1****$2") |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | handleExport () { |
| | | this.$confirm("是否导出档案管理数据?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }).then(() => { |
| | | NProgress.start() |
| | | var data = { |
| | | ...this.query |
| | | } |
| | | data = Qs.stringify(data) |
| | | exportBlob( |
| | | `/api/blade-place/place/exportNineType?${this.website.tokenHeader}=${getToken()}&` + data |
| | | ).then(res => { |
| | | console.log('exportBlob', res) |
| | | downloadXls(res.data, `档案管理${dateNow()}.xlsx`) |
| | | NProgress.done() |
| | | }) |
| | | }) |
| | | }, |
| | | |
| | | showStringDispose (row, type) { |
| | | row[type] = !row[type] |
| | | }, |
| | | |
| | | rowSave (row, done, loading) { |
| | | if (row.imageUrls.length > 0) { |
| | | var urls = [] |
| | | var split = row.imageUrls.split(",").filter(item => item != '') |
| | | split.forEach(url => { |
| | | var names = url.split("jczz/") |
| | | urls.push(names[1]) |
| | | }) |
| | | row.imageUrls = urls.join(",") |
| | | } |
| | | |
| | | let label = row.label |
| | | |
| | | if (row.smallLabel != '') { |
| | | label = label + ',' + row.smallLabel |
| | | } |
| | | |
| | | delete row.smallLabel |
| | | |
| | | 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) { |
| | | if (row.imageUrls.length > 0) { |
| | | var urls = [] |
| | | var split = row.imageUrls.split(",").filter(item => item != '') |
| | | split.forEach(url => { |
| | | var names = url.split("jczz/") |
| | | urls.push(names[1]) |
| | | }) |
| | | row.imageUrls = urls.join(",") |
| | | } |
| | | |
| | | let label = row.label |
| | | |
| | | if (row.smallLabel != '') { |
| | | label = label + ',' + row.smallLabel |
| | | } |
| | | |
| | | delete row.smallLabel |
| | | |
| | | update({ |
| | | ...row, |
| | | label |
| | | }).then( |
| | | () => { |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | done() |
| | | }, |
| | | (error) => { |
| | | window.console.log(error) |
| | | loading() |
| | | } |
| | | ) |
| | | }, |
| | | |
| | | rowDel (row) { |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | row.isDeleted = 1 |
| | | return removeTask(row) |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page) |
| | | |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | }) |
| | | }, |
| | | |
| | | searchReset () { |
| | | this.query = {} |
| | | this.onLoad(this.page) |
| | | }, |
| | | |
| | | searchChange (params, done) { |
| | | this.query = params |
| | | this.page.currentPage = 1 |
| | | this.onLoad(this.page, params) |
| | | done() |
| | | }, |
| | | |
| | | selectionChange (list) { |
| | | this.selectionList = list |
| | | }, |
| | | |
| | | selectionClear () { |
| | | this.selectionList = [] |
| | | this.$nextTick(() => { |
| | | this.$refs.crud && this.$refs.crud.toggleSelection() |
| | | }) |
| | | }, |
| | | |
| | | handleDelete () { |
| | | if (this.selectionList.length === 0) { |
| | | this.$message.warning("请选择至少一条数据") |
| | | return |
| | | } |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | return remove(this.ids) |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }) |
| | | this.$refs.crud.toggleSelection() |
| | | }) |
| | | }, |
| | | |
| | | beforeOpen (done, type) { |
| | | // if (["edit", "view"].includes(type)) { |
| | | |
| | | // } else { |
| | | // done() |
| | | // } |
| | | }, |
| | | |
| | | currentChange (currentPage) { |
| | | this.page.currentPage = currentPage |
| | | }, |
| | | |
| | | sizeChange (pageSize) { |
| | | this.page.pageSize = pageSize |
| | | }, |
| | | |
| | | refreshChange () { |
| | | // this.onLoad(this.page, this.query) |
| | | }, |
| | | |
| | | onLoad (page, params = {}) { |
| | | this.loading = true |
| | | getDAGLList(page.currentPage, page.pageSize, { ...Object.assign(params, this.query), isFront: 1 }).then(res => { |
| | | console.log('getDAGLList', res.data.data.records) |
| | | const data = { |
| | | ...res.data.data, |
| | | records: res.data.data.records.map(item => { |
| | | return { |
| | | ...item, |
| | | 'principalIdCardflag': false, |
| | | 'principalPhoneflag': false, |
| | | 'policePhoneflag': false |
| | | } |
| | | }) |
| | | } |
| | | this.page.total = data.total |
| | | this.data = data.records |
| | | this.loading = false |
| | | this.selectionClear() |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .avue-upload__icon { |
| | | line-height: 6; |
| | | } |
| | | |
| | | // :deep(.el-form-item__content) { |
| | | // text-align: left !important; |
| | | // } |
| | | |
| | | // :deep(.avue-form__menu--center .el-button) { |
| | | // margin: 0 5px 0 0; |
| | | // } |
| | | </style> |
| | |
| | | * Copyright (c) 2024 by shuishen, All Rights Reserved. |
| | | */ |
| | | module.exports = { |
| | | //路径前缀 |
| | | publicPath: "/", |
| | | lintOnSave: true, |
| | | productionSourceMap: false, |
| | | chainWebpack: (config) => { |
| | | //忽略的打包文件 |
| | | config.externals({ |
| | | vue: "Vue", |
| | | "vue-router": "VueRouter", |
| | | vuex: "Vuex", |
| | | axios: "axios", |
| | | "element-ui": "ELEMENT", |
| | | }); |
| | | const entry = config.entry("app"); |
| | | entry.add("babel-polyfill").end(); |
| | | entry.add("classlist-polyfill").end(); |
| | | entry.add("@/mock").end(); |
| | | }, |
| | | css: { |
| | | extract: { |
| | | ignoreOrder: true, |
| | | //路径前缀 |
| | | publicPath: "/", |
| | | lintOnSave: true, |
| | | productionSourceMap: false, |
| | | chainWebpack: (config) => { |
| | | //忽略的打包文件 |
| | | config.externals({ |
| | | vue: "Vue", |
| | | "vue-router": "VueRouter", |
| | | vuex: "Vuex", |
| | | axios: "axios", |
| | | "element-ui": "ELEMENT", |
| | | }) |
| | | const entry = config.entry("app") |
| | | entry.add("babel-polyfill").end() |
| | | entry.add("classlist-polyfill").end() |
| | | entry.add("@/mock").end() |
| | | }, |
| | | }, |
| | | //开发模式反向代理配置,生产模式请使用Nginx部署并配置反向代理 |
| | | devServer: { |
| | | port: 1888, |
| | | proxy: { |
| | | "/api": { |
| | | //本地服务接口地址 |
| | | target: "https://srgdjczzxtpt.com:2080/api", |
| | | // target: "https://kt39592615.goho.co", |
| | | // target: "http://z4042833u6.wicp.vip", |
| | | // target: "http://localhost:9528", |
| | | // target:"http://192.168.0.109:9528", |
| | | //远程演示服务地址,可用于直接启动项目 |
| | | //target: 'https://saber.bladex.cn/api', |
| | | changeOrigin: true, |
| | | ws: true, |
| | | pathRewrite: { |
| | | "^/api": "/", |
| | | css: { |
| | | extract: { |
| | | ignoreOrder: true, |
| | | }, |
| | | }, |
| | | }, |
| | | }, |
| | | }; |
| | | //开发模式反向代理配置,生产模式请使用Nginx部署并配置反向代理 |
| | | devServer: { |
| | | port: 1888, |
| | | proxy: { |
| | | "/api": { |
| | | //本地服务接口地址 |
| | | target: "https://srgdjczzxtpt.com:2080/api", |
| | | // target: "https://kt39592615.goho.co", |
| | | // target: "http://z4042833u6.wicp.vip", |
| | | // target: "http://localhost:9528", |
| | | // target: "http://192.168.2.109:9528", |
| | | //远程演示服务地址,可用于直接启动项目 |
| | | //target: 'https://saber.bladex.cn/api', |
| | | changeOrigin: true, |
| | | ws: true, |
| | | pathRewrite: { |
| | | "^/api": "/", |
| | | }, |
| | | }, |
| | | }, |
| | | }, |
| | | } |