From 9832ec93e170c61246b859b8f6b71136e09e12e5 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Mon, 10 Apr 2023 13:48:06 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E8=AF=95=E8=AF=95=E7=BF=B0=E6=9E=97?= =?UTF-8?q?=E9=99=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 3 +- src/js/store/index.js | 2 + src/views/main-shuju/main-navbar.vue | 486 +++++++++++++++------------ src/views/main-shuju/main.vue | 286 ++++++++-------- 4 files changed, 417 insertions(+), 360 deletions(-) diff --git a/.env.development b/.env.development index d1c8a3e7c..d38c11f03 100644 --- a/.env.development +++ b/.env.development @@ -1,12 +1,13 @@ NODE_ENV=development -VUE_APP_API_SERVER = http://192.168.1.140/api +# VUE_APP_API_SERVER = http://192.168.1.140/api # VUE_APP_API_SERVER = https://epmet-yantai.elinkservice.cn/api # VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/api # VUE_APP_API_SERVER = https://epmet-cloud.elinkservice.cn/api # VUE_APP_API_SERVER = https://epdc-shibei.elinkservice.cn/api # VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn:41080/api # VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn/api +VUE_APP_API_SERVER = https://epmet-panshi.elinkservice.cn/api # VUE_APP_NODE_ENV=dev_sdtdt VUE_APP_NODE_ENV=dev diff --git a/src/js/store/index.js b/src/js/store/index.js index 7ebb31e94..eb25c128e 100644 --- a/src/js/store/index.js +++ b/src/js/store/index.js @@ -45,6 +45,8 @@ export default new Vuex.Store({ fixed1920: { height: document.documentElement.clientHeight, }, + + fullscreen: false, //是否全屏状态 }, modules: { user, diff --git a/src/views/main-shuju/main-navbar.vue b/src/views/main-shuju/main-navbar.vue index 12346a8a6..aa2c272a3 100644 --- a/src/views/main-shuju/main-navbar.vue +++ b/src/views/main-shuju/main-navbar.vue @@ -1,86 +1,100 @@ - - - - - {{ customerName }} - {{ - customerName.slice(0, 2) - }} - - - - - - - - - + + + + + {{ + customerName + }} + {{ + customerName.slice(0, 2) + }} + + + + + + + + + - - - - - - + + + + + + - - - 首页 - + + + 首页 + - - - {{ menu.name }} - - - {{ subMenu.name }} - - - - - {{ menu.name }} - - - + + + {{ menu.name }} + + + {{ subMenu.name }} + + + + + {{ menu.name }} + + + - - - - - - - - + + + + + - - - - - {{ $store.state.user.realName }} - - - - {{ - $t("updatePassword.title") - }} - {{ - $t("logout") - }} - - - - - - - - - - + + + + + {{ $store.state.user.realName }} + + + + {{ + $t("updatePassword.title") + }} + {{ $t("logout") }} + + + + + + + + + + diff --git a/src/views/main-shuju/main.vue b/src/views/main-shuju/main.vue index e1026e6fd..06839ba0e 100644 --- a/src/views/main-shuju/main.vue +++ b/src/views/main-shuju/main.vue @@ -1,30 +1,33 @@ - - - - + + + + - - - - - - - + + + + + + + From 71346cbe8f913a8f1e929a1d7de3597fc3a29715 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Mon, 10 Apr 2023 13:52:22 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9iframe=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/main-shuju/main-content.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/main-shuju/main-content.vue b/src/views/main-shuju/main-content.vue index b9914005e..770032932 100644 --- a/src/views/main-shuju/main-content.vue +++ b/src/views/main-shuju/main-content.vue @@ -18,7 +18,7 @@ height="100%" frameborder="0" scrolling="yes" - :style="{ height: $store.state.fixed1920.height - 100 + 'px' }" + :style="{ width: '1920px', height: $store.state.fixed1920.height+ 'px' }" /> From 683f7cb4ff2d00c38c83f10da331fdccf4ee00fb Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Mon, 10 Apr 2023 13:56:53 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E6=8A=8Aenv=E6=96=87=E4=BB=B6=E8=BF=98?= =?UTF-8?q?=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.development b/.env.development index d38c11f03..ea43786c3 100644 --- a/.env.development +++ b/.env.development @@ -1,13 +1,13 @@ NODE_ENV=development -# VUE_APP_API_SERVER = http://192.168.1.140/api +VUE_APP_API_SERVER = http://192.168.1.140/api # VUE_APP_API_SERVER = https://epmet-yantai.elinkservice.cn/api # VUE_APP_API_SERVER = https://epmet-test.elinkservice.cn/api # VUE_APP_API_SERVER = https://epmet-cloud.elinkservice.cn/api # VUE_APP_API_SERVER = https://epdc-shibei.elinkservice.cn/api # VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn:41080/api # VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn/api -VUE_APP_API_SERVER = https://epmet-panshi.elinkservice.cn/api +# VUE_APP_API_SERVER = https://epmet-panshi.elinkservice.cn/api # VUE_APP_NODE_ENV=dev_sdtdt VUE_APP_NODE_ENV=dev From 5601e60c105d76b8f6d7c0d8f0b7f9fd568e2bcd Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Mon, 17 Apr 2023 16:03:54 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E8=AE=B0=E5=BD=9508?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communityService/fuwujilu/fuwuList08.vue | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/views/modules/communityService/fuwujilu/fuwuList08.vue diff --git a/src/views/modules/communityService/fuwujilu/fuwuList08.vue b/src/views/modules/communityService/fuwujilu/fuwuList08.vue new file mode 100644 index 000000000..e7db1167e --- /dev/null +++ b/src/views/modules/communityService/fuwujilu/fuwuList08.vue @@ -0,0 +1,34 @@ + + + + + + + + + From ffb711a34dc7a16151bf71fc79a946cd2c623e46 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Wed, 19 Apr 2023 17:07:14 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E5=B1=85=E6=B0=91=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=B1=85=E6=B0=91=E9=9C=80=E6=B1=82=E4=B8=8B=E6=8B=89=E6=A1=86?= =?UTF-8?q?=E4=BC=A0=E5=80=BC=E5=8D=95=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/resiSearch.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/views/components/resiSearch.vue b/src/views/components/resiSearch.vue index 812de530f..3f964c6d3 100644 --- a/src/views/components/resiSearch.vue +++ b/src/views/components/resiSearch.vue @@ -211,6 +211,7 @@ clearable size="small" class="resi-cell-select" + @change="handelChangeCascader($event,n.columnName)" > @@ -512,6 +513,13 @@ export default { this.$emit('search', arr3) return arr3 }, + handelChangeCascader(val,name){ + if(val.length==1){ + this.form[name] = val[0] || '' + }else{ + this.form[name] = val[1] || '' + } + }, handleOpenSearch() { this.openSearch = !this.openSearch }, From df6c6dc25ad10353982a61939a340851c7c824c3 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Wed, 26 Apr 2023 14:27:48 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E4=BF=A1=E6=81=AF=E9=87=87=E9=9B=86?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=A2=9E=E5=8A=A0=E6=88=B7=E4=B8=BB=E5=A7=93?= =?UTF-8?q?=E5=90=8D,=E5=AE=A1=E6=A0=B8=E7=8A=B6=E6=80=81,=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=A2=9E=E5=8A=A0=E4=B8=8E=E6=88=B7=E4=B8=BB=E5=85=B3?= =?UTF-8?q?=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/base/collect.vue | 892 +++++++++++++++++------------ 1 file changed, 519 insertions(+), 373 deletions(-) diff --git a/src/views/modules/base/collect.vue b/src/views/modules/base/collect.vue index 4ae414aa8..dfa9e969a 100644 --- a/src/views/modules/base/collect.vue +++ b/src/views/modules/base/collect.vue @@ -1,11 +1,12 @@ - - + + - - + + - - + + - - + + + + + + + + + + + + - 查询 - 重置 + 查询 + 重置 - 导出 + 导出 - - - - + + + + - 房屋缺失 - {{scope.row.address}} + 房屋缺失 + {{ scope.row.address }} - + 出租 闲置 @@ -110,85 +147,110 @@ 自住 - - - - - + + + + + - {{getRelationshipName(scope.row.relationship)}} + {{ getRelationshipName(scope.row.relationship) }} - + - + 全程接种 未全程接种 未接种 - - - + + + - + - - + + - + 未审核 未通过 @@ -196,81 +258,96 @@ - + - 查看 + 查看 - 审核 + 审核 - + - + - - + + {{ dataForm.houseHolderName }} - + {{ dataForm.address }} - + {{ dataForm.houseType }} - + @@ -278,70 +355,98 @@ - - - - - - - - + + + + + + + 全程接种 未全程接种 未接种 - - - + + + + - + - - + + @@ -349,28 +454,38 @@ - {{ $t('cancel') }} - {{ $t('checkBTGBtn') }} - {{ $t('checkTGBtn') }} + {{ $t("cancel") }} + {{ $t("checkBTGBtn") }} + {{ $t("checkTGBtn") }} - - + + @@ -380,12 +495,12 @@ import { requestPost } from "@/js/dai/request"; import nextTick from "dai-js/tools/nextTick"; import { mapGetters } from "vuex"; import axios from "axios"; -import roomForm from './roomForm' +import roomForm from "./roomForm"; export default { - data () { + data() { return { - agencyId: '', + agencyId: "", openSearch: false, formShow: false, @@ -403,6 +518,8 @@ export default { endTime: "", address: "", domicilePlace: "", + checkState: "", + houseHolderName: "", }, dataForm: {}, communityList: [], @@ -410,28 +527,33 @@ export default { importBtnTitle: "导入", importLoading: false, addHouseShow: false, - dialogType: 'look', // 对话框是check审核还是look查看 - relationshipOptions: [] - } + dialogType: "look", // 对话框是check审核还是look查看 + relationshipOptions: [], + checkStateList: [ + { value: "0", label: "待审核" }, + { value: "1", label: "审核不通过" }, + { value: "2", label: "审核通过" }, + ], + }; }, components: { - roomForm + roomForm, }, computed: { ...mapGetters(["clientHeight", "iframeHeight"]), - tableHeight () { + tableHeight() { const h = this.clientHeight - 360 + this.iframeHeigh; const _h = this.clientHeight - 360; return this.$store.state.inIframe ? h : _h; }, - dialogTableHeight () { + dialogTableHeight() { const h = this.clientHeight - 460 + this.iframeHeigh; const _h = this.clientHeight - 460; return this.$store.state.inIframe ? h : _h; }, }, watch: { - timeRange (val) { + timeRange(val) { if (Array.isArray(val) && val.length == 2) { this.fmData.startTime = val[0]; this.fmData.endTime = val[1]; @@ -441,35 +563,37 @@ export default { } }, }, - created () { - this.agencyId = localStorage.getItem('agencyId') + created() { + this.agencyId = localStorage.getItem("agencyId"); }, - mounted () { + mounted() { // this.getcommunityList(); - this.getDictList() - this.getTableData() + this.getDictList(); + this.getTableData(); }, methods: { - async getDictList () { - const url = "/sys/dict/data/relationship" - const { data, code, msg } = await requestPost(url, { formCode: "resi_base_info" }) + async getDictList() { + const url = "/sys/dict/data/relationship"; + const { data, code, msg } = await requestPost(url, { + formCode: "resi_base_info", + }); if (code === 0) { - this.relationshipOptions = [...data] + this.relationshipOptions = [...data]; } else { - this.$message.success("操作失败!") + this.$message.success("操作失败!"); } }, - getRelationshipName (value) { - let label = '' - this.relationshipOptions.forEach(item => { + getRelationshipName(value) { + let label = ""; + this.relationshipOptions.forEach((item) => { if (item.value == value) { - label = item.label + label = item.label; } - }) - return label + }); + return label; }, - arraySpanMethod ({ row, column, rowIndex, columnIndex }) { + arraySpanMethod({ row, column, rowIndex, columnIndex }) { // console.log('row-----r', row) // console.log('column-----c', column) if ( @@ -497,7 +621,7 @@ export default { } } }, - async handleChu () { + async handleChu() { const url = "/epmetuser/icresicollect/export"; const { pageSize, pageNo, fmData } = this; axios({ @@ -531,34 +655,34 @@ export default { return this.$message.error("网络错误"); }); }, - handleSizeChange (val) { + handleSizeChange(val) { console.log(`每页 ${val} 条`); this.pageSize = val; window.localStorage.setItem("pageSize", val); this.getTableData(); }, - handleCurrentChange (val) { + handleCurrentChange(val) { console.log(`当前页: ${val}`); this.pageNo = val; this.getTableData(); }, - handleClose () { + handleClose() { this.formShow = false; }, - handleSearch (val) { + handleSearch(val) { console.log(this.fmData); this.pageNo = 1; this.getTableData(); }, - resetForm (formName) { + resetForm(formName) { this.$refs[formName].resetFields(); this.timeRange = ""; this.handleSearch(); }, - async handleWatch (type, row) { - this.dialogType = type + async handleWatch(type, row) { + this.dialogType = type; // this.formShow = true; await nextTick(); const url = "/epmetuser/icresicollect/detail"; @@ -571,7 +695,14 @@ export default { console.log("data----de", data); this.dataForm = { ...data, - houseType: data.houseType == '1' ? '出租' : data.houseType == '2' ? '闲置' : data.houseType == '3' ? '未售出' : '自住' // 1:出租 0:自住 2:闲置 3:未售出 + houseType: + data.houseType == "1" + ? "出租" + : data.houseType == "2" + ? "闲置" + : data.houseType == "3" + ? "未售出" + : "自住", // 1:出租 0:自住 2:闲置 3:未售出 }; // this.getTableData(); this.formShow = true; @@ -580,17 +711,17 @@ export default { } }, - async handleEdit (rowIndex) { + async handleEdit(rowIndex) { this.formShow = true; await nextTick(); this.$refs.eleEditForm.initForm("edit", this.tableData[rowIndex]); }, - handleEditSuccess () { + handleEditSuccess() { this.handleClose(); this.getTableData(); }, - async handleDel (rowData, rowIndex) { + async handleDel(rowData, rowIndex) { console.log(rowData, rowIndex); const url = "/heart/iccommunityselforganization/delcommunityselforganization"; @@ -607,7 +738,7 @@ export default { this.$message.success("操作失败!"); } }, - async getcommunityList () { + async getcommunityList() { const url = "/gov/org/agency/community-list"; const { data, code, msg } = await requestPost(url); if (code === 0) { @@ -616,39 +747,39 @@ export default { } else { } }, - async getTableData () { - const url = "/epmetuser/icresicollect/list" - const { pageSize, pageNo, fmData } = this + async getTableData() { + const url = "/epmetuser/icresicollect/list"; + const { pageSize, pageNo, fmData } = this; const { data, code, msg } = await requestPost(url, { pageSize, pageNo, ...fmData, - }) + }); if (code === 0) { - console.log("列表请求成功!!!!!!!!!!!!!!") - this.total = data.total || 0 - let _i = 0 - let arr = [] + console.log("列表请求成功!!!!!!!!!!!!!!"); + this.total = data.total || 0; + let _i = 0; + let arr = []; this.spanIndex = data.list && data.list.map((item, index) => { - if (index == 0) _i = 0 + if (index == 0) _i = 0; else _i = _i + data.list[index - 1].list.length; - arr.push(_i) + arr.push(_i); // console.log("_i-----", _i, arr) // if (index === data.list.length - 1) firstIndex = _i - item.list.length return { firstIndex: _i, len: item.list.length, - } - }) - this.tableData = data.list && this.formatArr(data.list) - console.log("tableData----0", this.spanIndex) + }; + }); + this.tableData = data.list && this.formatArr(data.list); + console.log("tableData----0", this.spanIndex); } else { } }, // 数组扁平化 - formatArr (arr) { + formatArr(arr) { let res = []; let arr1 = arr.map((n, index) => { return { @@ -656,13 +787,13 @@ export default { list: n.list.length > 0 ? n.list.map((i) => { - return { - ...n, - ...i, - desc: index + 1, - list: [], - }; - }) + return { + ...n, + ...i, + desc: index + 1, + list: [], + }; + }) : [], }; }); @@ -673,89 +804,104 @@ export default { }); return res; }, - showAddHouse () { - if (this.dataForm.homeId == 'other') { - this.addHouseShow = true + showAddHouse() { + if (this.dataForm.homeId == "other") { + this.addHouseShow = true; this.$nextTick(() => { - this.$refs.ref_form.initForm('add', null, this.dataForm.id) - }) + this.$refs.ref_form.initForm("add", null, this.dataForm.id); + }); } else { - this.checkHandle('2') + this.checkHandle("2"); } }, // 审核提交方法 - checkHandle (type) { + checkHandle(type) { const params = { id: this.dataForm.id, checkState: type, // 0-未审核 1-未通过 2-已通过 - checkReason: '', - buildingUnitId: this.dataForm.buildingUnitId || '', - doorName: this.dataForm.doorName || '' - } - if (type == '1') { - const h = this.$createElement + checkReason: "", + buildingUnitId: this.dataForm.buildingUnitId || "", + doorName: this.dataForm.doorName || "", + }; + if (type == "1") { + const h = this.$createElement; this.$prompt( - h('p', null, [h('i', { style: 'color: red' }, '* '), - h('span', null, '请输入不通过的原因:')]), - '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - inputPattern: /^.+$/, - inputErrorMessage: '请输入原因' - }).then(({ value }) => { - // if (!value) { - // return this.$message.error('请填写审核不通过原因') - // } - params.checkReason = value - this.$http.post('/epmetuser/icresicollect/collectCheck', params).then(({ data: res }) => { + h("p", null, [ + h("i", { style: "color: red" }, "* "), + h("span", null, "请输入不通过的原因:"), + ]), + "提示", + { + confirmButtonText: "确定", + cancelButtonText: "取消", + inputPattern: /^.+$/, + inputErrorMessage: "请输入原因", + } + ) + .then(({ value }) => { + // if (!value) { + // return this.$message.error('请填写审核不通过原因') + // } + params.checkReason = value; + this.$http + .post("/epmetuser/icresicollect/collectCheck", params) + .then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg); + } + this.formShow = false; + this.getTableData(); + // 调用文件下发权限接口 + // this.fileJurisdiction(params) + }) + .catch(() => {}); + }) + .catch(() => { + // 取消输入原因 + }); + } else { + this.$http + .post("/epmetuser/icresicollect/collectCheck", params) + .then(({ data: res }) => { if (res.code !== 0) { - return this.$message.error(res.msg) + return this.$message.error(res.msg); } - this.formShow = false - this.getTableData() + this.addHouseShow = false; + this.formShow = false; + this.getTableData(); // 调用文件下发权限接口 // this.fileJurisdiction(params) - }).catch(() => { }) - }).catch(() => { - // 取消输入原因 - }) - } else { - this.$http.post('/epmetuser/icresicollect/collectCheck', params).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.addHouseShow = false - this.formShow = false - this.getTableData() - // 调用文件下发权限接口 - // this.fileJurisdiction(params) - }).catch(() => { }) + }) + .catch(() => {}); } }, // 文件下发权限接口 - fileJurisdiction (params) { - this.$http.post('/pli/power/rentContractInfo/send', params).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.disabledBtn = false - this.checkVisible = false - this.visible = false - this.$emit('refreshDataList') + fileJurisdiction(params) { + this.$http + .post("/pli/power/rentContractInfo/send", params) + .then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg); } + this.$message({ + message: this.$t("prompt.success"), + type: "success", + duration: 500, + onClose: () => { + this.disabledBtn = false; + this.checkVisible = false; + this.visible = false; + this.$emit("refreshDataList"); + }, + }); }) - }).catch(() => { }) + .catch(() => {}); + }, + roomFormOk(e) { + this.dataForm.buildingUnitId = e.buildingUnitId; + this.dataForm.doorName = e.doorName; + this.checkHandle("2"); }, - roomFormOk (e) { - this.dataForm.buildingUnitId = e.buildingUnitId - this.dataForm.doorName = e.doorName - this.checkHandle('2') - } }, };