From 3e9053766c26adb43f25b7d734c02bc6561bf920 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 26 Oct 2022 15:57:47 +0800 Subject: [PATCH 01/28] 11 --- .../ninePlaces/places/places.vue | 121 +++++++++++++++++- .../ninePlaces/places/placesDetail.vue | 6 +- .../ninePlaces/places/placesForm.vue | 81 +++++++++--- 3 files changed, 184 insertions(+), 24 deletions(-) diff --git a/src/views/modules/communityService/ninePlaces/places/places.vue b/src/views/modules/communityService/ninePlaces/places/places.vue index f97837131..89e039c28 100644 --- a/src/views/modules/communityService/ninePlaces/places/places.vue +++ b/src/views/modules/communityService/ninePlaces/places/places.vue @@ -45,6 +45,17 @@ + + + + + + + + + + + + @@ -90,6 +116,10 @@ 新增 + 导出 + + { + console.log("res----dddd", res); + // this.download(res.data, title + '.xls') + if (res.headers["content-disposition"]) { + let fileName = window.decodeURI( + res.headers["content-disposition"].split(";")[1].split("=")[1] + ); + console.log("filename", fileName); + let blob = new Blob([res.data], { + type: "application/vnd.ms-excel", + }); + var url = window.URL.createObjectURL(blob); + var aLink = document.createElement("a"); + aLink.style.display = "none"; + aLink.href = url; + aLink.setAttribute("download", fileName); + document.body.appendChild(aLink); + aLink.click(); + document.body.removeChild(aLink); //下载完成移除元素 + window.URL.revokeObjectURL(url); //释放掉blob对象 + } else this.$message.error("下载失败"); + }) + .catch((err) => { + console.log("err", err); + return this.$message.error("网络错误"); + }); + }, + // 下载文件 + download (data, fileName) { + if (!data) { + return; + } + + var csvData = new Blob([data]); + + if (window.navigator && window.navigator.msSaveOrOpenBlob) { + window.navigator.msSaveOrOpenBlob(csvData, fileName); + } + // for Non-IE (chrome, firefox etc.) + else { + var a = document.createElement("a"); + document.body.appendChild(a); + a.style = "display: none"; + var url = window.URL.createObjectURL(csvData); + a.href = url; + a.download = fileName; + a.click(); + a.remove(); + window.URL.revokeObjectURL(url); + } + }, diaClose () { @@ -456,16 +569,18 @@ export default { //重置搜索条件 resetSearch () { this.formData = { + placeCategory: '',//0九小场所、1企事业单位 placeOrgName: '',//场所名称 mobile: '',//联系电话 - scale: '',//场所规模【 0:10人以下 1:10-20人 2:21-40人 3:41-100人 4:100人以上】 + // scale: '',//场所规模【 0:10人以下 1:10-20人 2:21-40人 3:41-100人 4:100人以上】 + scaleTotal: '', gridId: '',//场所区域【网格Id】 ninePlaceVal: '',//场所类型【九小场所Value值】 isPage: true,//是否分页(是:true 否:false) 有这个参数是给新增巡查记录时用的,默认是 } this.pageSize = 10 this.pageNo = 0 - this.loadTable() + // this.loadTable() }, diff --git a/src/views/modules/communityService/ninePlaces/places/placesDetail.vue b/src/views/modules/communityService/ninePlaces/places/placesDetail.vue index 7aab0f801..2a828d80e 100644 --- a/src/views/modules/communityService/ninePlaces/places/placesDetail.vue +++ b/src/views/modules/communityService/ninePlaces/places/placesDetail.vue @@ -8,6 +8,10 @@ 场所类型: {{ formData.ninePlaceName||'--' }} +
+ 场所类别: + {{ formData.placeCategory ||'--' }} +
场所区域: @@ -25,7 +29,7 @@
规模: - {{ formData.scaleName||'--' }} + {{ formData.scaleTotal||'--' }}
负责人: diff --git a/src/views/modules/communityService/ninePlaces/places/placesForm.vue b/src/views/modules/communityService/ninePlaces/places/placesForm.vue index ae7bb8e0c..e5d816dde 100644 --- a/src/views/modules/communityService/ninePlaces/places/placesForm.vue +++ b/src/views/modules/communityService/ninePlaces/places/placesForm.vue @@ -6,11 +6,25 @@ :inline="true" :model="formData" :rules="dataRule" + label-width="150px" :disabled="formType === 'detail'" class="form"> + + + + + + - + --> + + + + Date: Wed, 26 Oct 2022 17:27:21 +0800 Subject: [PATCH 02/28] 111 --- src/assets/scss/pages/staffRegister.scss | 168 +++++++ src/router/index.js | 9 + .../ninePlaces/places/places.vue | 2 +- src/views/pages/staffRegister.vue | 441 ++++++++++++++++++ 4 files changed, 619 insertions(+), 1 deletion(-) create mode 100644 src/assets/scss/pages/staffRegister.scss create mode 100644 src/views/pages/staffRegister.vue diff --git a/src/assets/scss/pages/staffRegister.scss b/src/assets/scss/pages/staffRegister.scss new file mode 100644 index 000000000..d9ce9aac4 --- /dev/null +++ b/src/assets/scss/pages/staffRegister.scss @@ -0,0 +1,168 @@ +.bg-caiji { + + // background-color: rgba(189, 214, 255, 0.89); + height: 100%; + width: 100vw; + padding: 20px; + + .title { + text-align: center; + font-size: 20px; + } + + .main { + padding-top: 20px; + // font-size: 40px; + + .div_tab{ + display: flex; + justify-content: center; + + .div_option{ + text-align: center; + color:#3e8ef7; + height:35px; + width:150px; + line-height: 35px; + padding:0 0; + border:1px solid #3e8ef7 ; + } + + .option_left{ + border-radius: 5px 0 0 5px; + } + .option_right{ + border-radius: 0 5px 5px 0; + } + + .option_select{ + color:#ffffff; + background-color:#3e8ef7 ; + } + } + + .content { + margin-top:10px; + border-radius: 5px; + background-color: rgba(255, 255, 255, 0.787); + + .member_title { + padding: 10px; + font-size: 14px; + } + } + .content1 { + margin-top: 20px; + } + + .line { + border: 1px solid #e4e4e48e; + } + } + + .div-btn { + margin-top: 30px; + padding-bottom: 20px; + display: flex; + justify-content: center; + + .btn { + width: 150px; + font-size: 16px; + } + } +} + +.picker_content { + color: rgb(59, 59, 59); +} + +.bg-caiji-success { + background: url("../../assets/img/caiji-bc.png") no-repeat; + background-size: 100% 100%; + height: 100vh; + width: 100vw; + text-align: center; + + .title { + // background-color: rgba(189, 214, 255, 0.89); + padding-top:30px; + font-size: 18px; + font-family: PingFang SC; + font-weight: 800; + color: #333333; + display: flex; + height:25px; + align-items: center; + justify-content: center; + + >img{ + width:27px; + height:25px; + } + .title_name{ + margin-left:5px; + margin-top:5px; + } + } + + .div_tip{ + text-align: center; + margin-top:35px; + font-size: 18px; + font-family: PingFang SC; + font-weight: 800; + color: #2E78E2; + line-height: 26px; + } + + .div_content{ + + margin:20px 10px 30px 10px; + padding:20px 16px; + background: #FFFFFF; + border-radius: 10px; + font-size: 16px; + font-family: Source Han Serif SC; + font-weight: 400; + color: #333333; + + text-align: left; + + .content_long{ + display: flex; + justify-content: left; + align-items: flex-start; + + .content_title{ + min-width: 85px; + // flex:0 0 85px; + flex-shrink: 0; + text-align: right; + } + } + + .marginT10{ + margin-top:10px; + } + } + + .main { + margin-top: 100px; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + + .icon-success { + font-size: 40px; + // width: 20px; + // height: 20px; + } + + .success-content { + margin-top: 10px; + font-size: 25px; + } + } +} diff --git a/src/router/index.js b/src/router/index.js index de595a814..d4c051b97 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -62,6 +62,15 @@ export const pageRoutes = [ title: "居民信息填报", }, }, + { + path: "/staffRegister", + props: true, + name: "staffRegister", + component: () => import("@/views/pages/staffRegister"), + meta: { + title: "员工登记", + }, + }, ]; // 模块路由(基于主入口布局页面) diff --git a/src/views/modules/communityService/ninePlaces/places/places.vue b/src/views/modules/communityService/ninePlaces/places/places.vue index 89e039c28..20f51f65a 100644 --- a/src/views/modules/communityService/ninePlaces/places/places.vue +++ b/src/views/modules/communityService/ninePlaces/places/places.vue @@ -414,7 +414,7 @@ export default { async handleExport () { let title = "员工登记码"; - const url = "/epmetuser/icVaccine/export"; + const url = "/gov/org/enterprise/qrCodeExport"; await this.$http({ method: "POST", diff --git a/src/views/pages/staffRegister.vue b/src/views/pages/staffRegister.vue new file mode 100644 index 000000000..cf70bc34e --- /dev/null +++ b/src/views/pages/staffRegister.vue @@ -0,0 +1,441 @@ + + + + From 9c66f0d3a8e62ad79f46389297f91033db785324 Mon Sep 17 00:00:00 2001 From: zhaoyongnian <541231643@qq.com> Date: Thu, 27 Oct 2022 11:05:29 +0800 Subject: [PATCH 03/28] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/plugins/change/changedeath.vue | 4 +++- src/views/modules/plugins/change/changerelocation.vue | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/modules/plugins/change/changedeath.vue b/src/views/modules/plugins/change/changedeath.vue index d82ec3e3c..bfe0f7014 100644 --- a/src/views/modules/plugins/change/changedeath.vue +++ b/src/views/modules/plugins/change/changedeath.vue @@ -249,7 +249,9 @@ export default { From 4c38e1bd8eded715e216ced47a624e3d651ea7f4 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Thu, 27 Oct 2022 15:03:37 +0800 Subject: [PATCH 05/28] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/scss/pages/staffRegister.scss | 6 +++--- src/views/pages/staffRegister.vue | 3 ++- src/views/pages/staffRegisterSuccess.vue | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/assets/scss/pages/staffRegister.scss b/src/assets/scss/pages/staffRegister.scss index d9ce9aac4..85683800c 100644 --- a/src/assets/scss/pages/staffRegister.scss +++ b/src/assets/scss/pages/staffRegister.scss @@ -126,8 +126,8 @@ font-family: Source Han Serif SC; font-weight: 400; color: #333333; - text-align: left; + .content_long{ display: flex; @@ -135,8 +135,8 @@ align-items: flex-start; .content_title{ - min-width: 85px; - // flex:0 0 85px; + // min-width: 85px; + flex:0 0 115px; flex-shrink: 0; text-align: right; } diff --git a/src/views/pages/staffRegister.vue b/src/views/pages/staffRegister.vue index 2fcf393dc..88b038565 100644 --- a/src/views/pages/staffRegister.vue +++ b/src/views/pages/staffRegister.vue @@ -124,6 +124,7 @@ {{formData.ymjzCountName}}
-
最近一次核酸检测时间:
+
核酸检测时间:
{{formData.latestNatTime}}
@@ -143,5 +143,5 @@ export default { From 8f59c9d3e49c0f90ca4eacfe6688980e64000963 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Thu, 27 Oct 2022 16:28:36 +0800 Subject: [PATCH 06/28] 11 --- src/router/index.js | 37 +++++++++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index de595a814..9ba8abf56 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -6,6 +6,7 @@ import store from "@/js/store"; Vue.use(Router); +const CUSTOMER = process.env.VUE_APP_CUSTOMER; // 页面路由(独立页面) export const pageRoutes = [ { @@ -26,7 +27,11 @@ export const pageRoutes = [ }, { path: "/login", - component: () => import("@/views/pages/login"), + component: () => { + return CUSTOMER == "yantai" + ? import("@/views/pages/yantai-login") + : import("@/views/pages/login"); + }, name: "login", meta: { title: "登录", @@ -35,7 +40,11 @@ export const pageRoutes = [ { path: "/", name: "index", - component: () => import("@/views/pages/index"), + component: () => { + return CUSTOMER == "yantai" + ? import("@/views/pages/yantai-index") + : import("@/views/pages/index"); + }, }, { path: "/indexWork", @@ -138,6 +147,18 @@ function cookApiDataItem(item) { // }); return item; } +// 把按钮都化为页面内部的权限 +function cookApiDataItem2(item) { + let { children } = item; + if (children && Array.isArray(children) && children.length > 0) { + let btns = item.children.filter((item) => item.type == 1); + item.btns = btns; + item.children = item.children + .filter((val) => val.type == 0) + .map((val) => cookApiDataItem2(val)); + } + return item; +} // 模块路由(基于主入口布局页面) 可视化数据 export const moduleShujuRoutes = { @@ -145,7 +166,10 @@ export const moduleShujuRoutes = { component: () => import("@/views/main-shuju/main"), name: "main-shuju", redirect: { - path: "/main-shuju/visual-basicinfo-basicInfoMain", + path: + CUSTOMER == "yantai" && process.env.VUE_APP_NODE_ENV == "prod" + ? "/main-shuju/i-1536625421829599234" + : "/main-shuju/visual-basicinfo-basicInfoMain", }, meta: { title: "主入口布局", @@ -282,9 +306,9 @@ router.beforeEach((to, from, next) => { name: "login", }); } - window.SITE_CONFIG["menuList"] = res.data.map((item) => - cookApiDataItem(item) - ); + window.SITE_CONFIG["menuList"] = res.data + .map((item) => cookApiDataItem2(item)) + .map((item) => cookApiDataItem(item)); fnAddDynamicMenuRoutes(window.SITE_CONFIG["menuList"]); // next({ ...to, replace: true }) next({ @@ -338,6 +362,7 @@ function fnAddDynamicMenuRoutes(menuList = [], routes = []) { ...window.SITE_CONFIG["contentTabDefault"], menuId: menuList[i].id, title: menuList[i].name, + btns: menuList[i].btns || [], }, }; // eslint-disable-next-line From d5fc7d8fefb5e114b99ba188baeeee81f0a59109 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Fri, 28 Oct 2022 09:13:33 +0800 Subject: [PATCH 07/28] 11 --- src/router/index.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 9ba8abf56..3bb61539f 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -27,11 +27,7 @@ export const pageRoutes = [ }, { path: "/login", - component: () => { - return CUSTOMER == "yantai" - ? import("@/views/pages/yantai-login") - : import("@/views/pages/login"); - }, + component: () => import("@/views/pages/login"), name: "login", meta: { title: "登录", @@ -40,11 +36,7 @@ export const pageRoutes = [ { path: "/", name: "index", - component: () => { - return CUSTOMER == "yantai" - ? import("@/views/pages/yantai-index") - : import("@/views/pages/index"); - }, + component: () => import("@/views/pages/index"), }, { path: "/indexWork", From 01a21c79ff493f8f600d6464a7c3ea48de16f57b Mon Sep 17 00:00:00 2001 From: jiangyy Date: Fri, 28 Oct 2022 10:33:46 +0800 Subject: [PATCH 08/28] =?UTF-8?q?=E5=91=98=E5=B7=A5=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epidemic/unitEpid/staffEpidDetail.vue | 204 +++++ .../base/epidemic/unitEpid/staffEpidList.vue | 842 ++++++++++++++++++ .../ninePlaces/places/places.vue | 121 +-- .../ninePlaces/places/placesDetail.vue | 6 +- .../ninePlaces/places/placesForm.vue | 77 +- src/views/modules/cpts/base/index.vue | 550 ++++++------ .../shequzhili/tuceng/anquan/xuncha/index.vue | 108 ++- 7 files changed, 1411 insertions(+), 497 deletions(-) create mode 100644 src/views/modules/base/epidemic/unitEpid/staffEpidDetail.vue create mode 100644 src/views/modules/base/epidemic/unitEpid/staffEpidList.vue diff --git a/src/views/modules/base/epidemic/unitEpid/staffEpidDetail.vue b/src/views/modules/base/epidemic/unitEpid/staffEpidDetail.vue new file mode 100644 index 000000000..69224e2a8 --- /dev/null +++ b/src/views/modules/base/epidemic/unitEpid/staffEpidDetail.vue @@ -0,0 +1,204 @@ + + + + + + + + + + + diff --git a/src/views/modules/base/epidemic/unitEpid/staffEpidList.vue b/src/views/modules/base/epidemic/unitEpid/staffEpidList.vue new file mode 100644 index 000000000..3533da1b2 --- /dev/null +++ b/src/views/modules/base/epidemic/unitEpid/staffEpidList.vue @@ -0,0 +1,842 @@ + + + + + + diff --git a/src/views/modules/communityService/ninePlaces/places/places.vue b/src/views/modules/communityService/ninePlaces/places/places.vue index 20f51f65a..f97837131 100644 --- a/src/views/modules/communityService/ninePlaces/places/places.vue +++ b/src/views/modules/communityService/ninePlaces/places/places.vue @@ -45,17 +45,6 @@
- - - - - - - - - - - - @@ -116,10 +90,6 @@ 新增 - 导出 - - { - console.log("res----dddd", res); - // this.download(res.data, title + '.xls') - if (res.headers["content-disposition"]) { - let fileName = window.decodeURI( - res.headers["content-disposition"].split(";")[1].split("=")[1] - ); - console.log("filename", fileName); - let blob = new Blob([res.data], { - type: "application/vnd.ms-excel", - }); - var url = window.URL.createObjectURL(blob); - var aLink = document.createElement("a"); - aLink.style.display = "none"; - aLink.href = url; - aLink.setAttribute("download", fileName); - document.body.appendChild(aLink); - aLink.click(); - document.body.removeChild(aLink); //下载完成移除元素 - window.URL.revokeObjectURL(url); //释放掉blob对象 - } else this.$message.error("下载失败"); - }) - .catch((err) => { - console.log("err", err); - return this.$message.error("网络错误"); - }); - }, - // 下载文件 - download (data, fileName) { - if (!data) { - return; - } - - var csvData = new Blob([data]); - - if (window.navigator && window.navigator.msSaveOrOpenBlob) { - window.navigator.msSaveOrOpenBlob(csvData, fileName); - } - // for Non-IE (chrome, firefox etc.) - else { - var a = document.createElement("a"); - document.body.appendChild(a); - a.style = "display: none"; - var url = window.URL.createObjectURL(csvData); - a.href = url; - a.download = fileName; - a.click(); - a.remove(); - window.URL.revokeObjectURL(url); - } - }, diaClose () { @@ -569,18 +456,16 @@ export default { //重置搜索条件 resetSearch () { this.formData = { - placeCategory: '',//0九小场所、1企事业单位 placeOrgName: '',//场所名称 mobile: '',//联系电话 - // scale: '',//场所规模【 0:10人以下 1:10-20人 2:21-40人 3:41-100人 4:100人以上】 - scaleTotal: '', + scale: '',//场所规模【 0:10人以下 1:10-20人 2:21-40人 3:41-100人 4:100人以上】 gridId: '',//场所区域【网格Id】 ninePlaceVal: '',//场所类型【九小场所Value值】 isPage: true,//是否分页(是:true 否:false) 有这个参数是给新增巡查记录时用的,默认是 } this.pageSize = 10 this.pageNo = 0 - // this.loadTable() + this.loadTable() }, diff --git a/src/views/modules/communityService/ninePlaces/places/placesDetail.vue b/src/views/modules/communityService/ninePlaces/places/placesDetail.vue index 2a828d80e..7aab0f801 100644 --- a/src/views/modules/communityService/ninePlaces/places/placesDetail.vue +++ b/src/views/modules/communityService/ninePlaces/places/placesDetail.vue @@ -8,10 +8,6 @@ 场所类型: {{ formData.ninePlaceName||'--' }} -
- 场所类别: - {{ formData.placeCategory ||'--' }} -
场所区域: @@ -29,7 +25,7 @@
规模: - {{ formData.scaleTotal||'--' }} + {{ formData.scaleName||'--' }}
负责人: diff --git a/src/views/modules/communityService/ninePlaces/places/placesForm.vue b/src/views/modules/communityService/ninePlaces/places/placesForm.vue index e5d816dde..068a57a18 100644 --- a/src/views/modules/communityService/ninePlaces/places/placesForm.vue +++ b/src/views/modules/communityService/ninePlaces/places/placesForm.vue @@ -6,25 +6,11 @@ :inline="true" :model="formData" :rules="dataRule" - label-width="150px" :disabled="formType === 'detail'" class="form"> - - - - - - - - - - -
-