From 980f2615d819d7c33912dc3ad0156058872549a4 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Mon, 14 Mar 2022 14:02:01 +0800 Subject: [PATCH 01/12] =?UTF-8?q?=E7=9B=AE=E5=BD=95=E5=88=9B=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../humanisticCare/careDetail.vue | 311 ++++++++ .../secretaryLog/humanisticCare/careForm.vue | 604 +++++++++++++++ .../secretaryLog/humanisticCare/careList.vue | 694 ++++++++++++++++++ 3 files changed, 1609 insertions(+) create mode 100644 src/views/modules/secretaryLog/humanisticCare/careDetail.vue create mode 100644 src/views/modules/secretaryLog/humanisticCare/careForm.vue create mode 100644 src/views/modules/secretaryLog/humanisticCare/careList.vue diff --git a/src/views/modules/secretaryLog/humanisticCare/careDetail.vue b/src/views/modules/secretaryLog/humanisticCare/careDetail.vue new file mode 100644 index 000000000..8e9796692 --- /dev/null +++ b/src/views/modules/secretaryLog/humanisticCare/careDetail.vue @@ -0,0 +1,311 @@ + + + + + + + + diff --git a/src/views/modules/secretaryLog/humanisticCare/careForm.vue b/src/views/modules/secretaryLog/humanisticCare/careForm.vue new file mode 100644 index 000000000..b67083433 --- /dev/null +++ b/src/views/modules/secretaryLog/humanisticCare/careForm.vue @@ -0,0 +1,604 @@ + + + + + + + + diff --git a/src/views/modules/secretaryLog/humanisticCare/careList.vue b/src/views/modules/secretaryLog/humanisticCare/careList.vue new file mode 100644 index 000000000..0fbdc0063 --- /dev/null +++ b/src/views/modules/secretaryLog/humanisticCare/careList.vue @@ -0,0 +1,694 @@ + + + + From 3bb31de1b7cd170f683f3916fc7566511625d6a8 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Mon, 14 Mar 2022 14:58:17 +0800 Subject: [PATCH 02/12] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 759663400..1211047a9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -328,9 +328,9 @@ router.beforeEach((to, from, next) => { .then(({ data: res }) => { if (res.code !== 0) { // Vue.prototype.$message.error(res.msg) - return next({ - name: "login", - }); + // return next({ + // name: "login", + // }); } window.SITE_CONFIG["menuList"] = res.data; fnAddDynamicMenuRoutes(window.SITE_CONFIG["menuList"]); @@ -341,9 +341,9 @@ router.beforeEach((to, from, next) => { }); }) .catch(() => { - next({ - name: "login", - }); + // next({ + // name: "login", + // }); }); }); @@ -397,14 +397,20 @@ function fnAddDynamicMenuRoutes(menuList = [], routes = []) { route["meta"]["iframeURL"] = URL; } else { URL = URL.replace(/^\//, "").replace(/_/g, "-"); - route["path"] = route["name"] = URL.replace(/\//g, "-"); - route["component"] = () => import(`@/views/modules/${URL}`); + if (menuList[i].children && menuList[i].children.length >= 1) { + route["path"] = route["name"] = URL; + route["redirect"] = URL.replace(/\//g, "-"); + } else { + route["path"] = route["name"] = URL.replace(/\//g, "-"); + route["component"] = () => import(`@/views/modules/${URL}`); + } } routes.push(route); } if (temp.length >= 1) { return fnAddDynamicMenuRoutes(temp, routes); } + // routers.reverse(); // 添加路由 router.addRoutes([ { From fe4b87ad084ddf30110f9850622d4f3d9279ae3d Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Tue, 15 Mar 2022 10:05:38 +0800 Subject: [PATCH 03/12] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/communityService/dqfwzx/index.vue | 244 +++++++++++------- .../modules/communityService/sqzzz/index.vue | 8 +- 2 files changed, 148 insertions(+), 104 deletions(-) diff --git a/src/views/modules/communityService/dqfwzx/index.vue b/src/views/modules/communityService/dqfwzx/index.vue index 0b2265aa2..f5b5b873e 100644 --- a/src/views/modules/communityService/dqfwzx/index.vue +++ b/src/views/modules/communityService/dqfwzx/index.vue @@ -2,23 +2,26 @@
- 新增 + 新增
-
+
-
-
+
+
修改
{{ item.centerName }}
@@ -48,88 +51,107 @@ >
--> -
- - - - +
+ + + + - + - +
-
- +
+
- - + + - - + + - - + +
@@ -150,7 +172,7 @@ let loading; // 加载动画 export default { components: { editForm, orderForm, orderList }, - data () { + data() { return { openSearch: false, @@ -167,23 +189,23 @@ export default { }; }, computed: { - maxTableHeight () { - return this.clientHeight - 410; + maxTableHeight() { + return this.clientHeight - 520; }, ...mapGetters(["clientHeight"]), }, watch: { - currentIndex () { + currentIndex() { this.setMap(); }, }, - async mounted () { + async mounted() { await this.loadAgency(); await this.getTableData(); }, methods: { // 地图初始化函数,本例取名为init,开发者可根据实际情况定义 - initMap () { + initMap() { // 定义地图中心点坐标 var center = new window.TMap.LatLng(36.0722275, 120.38945519); // 定义map变量,调用 TMap.Map() 构造函数创建地图 @@ -203,7 +225,7 @@ export default { infoWindowList = Array(10); }, - setMarker (lat, lng, centerName) { + setMarker(lat, lng, centerName) { markers.setGeometries([]); markers.add([ { @@ -217,11 +239,11 @@ export default { ]); }, - setCenter (lat, lng) { + setCenter(lat, lng) { map.setCenter(new window.TMap.LatLng(lat, lng)); }, - setMap () { + setMap() { const { tableData, currentIndex } = this; let item = tableData[currentIndex]; if (item) { @@ -230,24 +252,24 @@ export default { } }, - handleClose () { + handleClose() { this.formShow = false; }, - handleCloseForm2 () { + handleCloseForm2() { this.form2Show = false; }, - handleCloseOrderList () { + handleCloseOrderList() { this.orderListShow = false; }, - async handleAdd () { + async handleAdd() { this.formShow = true; await nextTick(); console.log(this.$refs); this.$refs.eleEditForm.initForm("add"); }, - async handleWatch () { + async handleWatch() { this.formShow = true; await nextTick(); this.$refs.eleEditForm.initForm( @@ -256,7 +278,7 @@ export default { ); }, - async handleEdit () { + async handleEdit() { this.formShow = true; await nextTick(); this.$refs.eleEditForm.initForm( @@ -265,12 +287,12 @@ export default { ); }, - handleEditSuccess () { + handleEditSuccess() { this.handleClose(); this.getTableData(); }, - async handleOrder (index) { + async handleOrder(index) { this.form2Show = true; await nextTick(); this.$refs.eleOrderForm.initForm( @@ -280,18 +302,18 @@ export default { ); }, - handleOrderSuccess () { + handleOrderSuccess() { this.handleCloseForm2(); }, - async handleOrderList (index) { + async handleOrderList(index) { this.orderListShow = true; await nextTick(0); console.log(this.$refs); this.$refs.eleOrderList.init(this.tableData[this.currentIndex], index); }, - async handleDel (rowData, rowIndex) { + async handleDel(rowData, rowIndex) { console.log(rowData, rowIndex); const url = "/heart/iccommunityselforganization/delcommunityselforganization"; @@ -309,7 +331,7 @@ export default { } }, - async getTableData () { + async getTableData() { const oldLen = this.tableData.length; const url = "/gov/org/icpartyservicecenter/partyservicecenterlist"; const { data, code, msg } = await requestPost(url, { @@ -330,7 +352,7 @@ export default { }, //加载组织 - async loadAgency () { + async loadAgency() { const url = "/epmetuser/customerstaff/staffbasicinfo"; let params = {}; @@ -358,6 +380,27 @@ export default { .center-left { width: 25%; .list { + padding-right: 10px; + height: calc(100vh - 210px); + overflow-y: auto; + &::-webkit-scrollbar { + /*滚动条整体样式*/ + width: 8px; /*高宽分别对应横竖滚动条的尺寸*/ + height: 1px; + } + &::-webkit-scrollbar-thumb { + /*滚动条里面小方块*/ + border-radius: 8px; + box-shadow: inset 0 0 5px rgba(#333, 0.1); + background: linear-gradient(270deg, #eee, #aaa); + } + &::-webkit-scrollbar-track { + /*滚动条里面轨道*/ + box-shadow: inset 0 0 5px rgba(#333, 0.1); + border-radius: 8px; + background: #eee; + } + .item { position: relative; box-sizing: border-box; @@ -420,6 +463,7 @@ export default { } .div_map { margin-bottom: 10px; + height: 300px; } } } @@ -448,7 +492,7 @@ export default { } .resi-card-table { - margin-top: 20px; + // margin-top: 20px; } .resi-row-btn { margin-bottom: 13px; diff --git a/src/views/modules/communityService/sqzzz/index.vue b/src/views/modules/communityService/sqzzz/index.vue index ef13f05ac..fa82fc660 100644 --- a/src/views/modules/communityService/sqzzz/index.vue +++ b/src/views/modules/communityService/sqzzz/index.vue @@ -54,7 +54,7 @@ excel导出导出
{ // this.importLoading = false; - // this.importBtnTitle = "excel导入"; + // this.importBtnTitle = "导入"; // console.log("resresresresresresres", res); // this.getTableData(); @@ -307,7 +307,7 @@ export default { // console.log("失败", err); // }); this.importLoading = false - this.importBtnTitle = 'excel导入' + this.importBtnTitle = '导入' this.$refs.upload.clearFiles(); }, From 7c447b6bb918e7f3329d5f4580cea5740a45bfa9 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Tue, 15 Mar 2022 10:34:16 +0800 Subject: [PATCH 04/12] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/pages/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/pages/index.vue b/src/views/pages/index.vue index f208e8692..07f748b37 100644 --- a/src/views/pages/index.vue +++ b/src/views/pages/index.vue @@ -5,13 +5,15 @@
-
党建引领基层治理互联管理平台
+ +
数字社区管理平台
-
数据分析可视化平台
+ +
数字社区可视化平台
From 2ada00899940405869b1ed3968107b97b3ca707b Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Tue, 15 Mar 2022 10:51:08 +0800 Subject: [PATCH 05/12] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/pages/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/pages/index.vue b/src/views/pages/index.vue index 07f748b37..056814c60 100644 --- a/src/views/pages/index.vue +++ b/src/views/pages/index.vue @@ -21,7 +21,7 @@ From 7782dde70dc424eac3d2c571ac8629f74e14e94c Mon Sep 17 00:00:00 2001 From: jiangyy Date: Tue, 15 Mar 2022 14:40:35 +0800 Subject: [PATCH 06/12] =?UTF-8?q?=E4=B9=A6=E8=AE=B0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../difficulty/difficultyDetail.vue | 311 ++++++++ .../difficulty/difficultyForm.vue | 604 +++++++++++++++ .../difficulty/difficultyList.vue | 694 ++++++++++++++++++ .../secretaryLog/humanisticCare/careForm.vue | 475 ++++-------- .../secretaryLog/humanisticCare/careList.vue | 162 ++-- 5 files changed, 1850 insertions(+), 396 deletions(-) create mode 100644 src/views/modules/secretaryLog/difficulty/difficultyDetail.vue create mode 100644 src/views/modules/secretaryLog/difficulty/difficultyForm.vue create mode 100644 src/views/modules/secretaryLog/difficulty/difficultyList.vue diff --git a/src/views/modules/secretaryLog/difficulty/difficultyDetail.vue b/src/views/modules/secretaryLog/difficulty/difficultyDetail.vue new file mode 100644 index 000000000..8e9796692 --- /dev/null +++ b/src/views/modules/secretaryLog/difficulty/difficultyDetail.vue @@ -0,0 +1,311 @@ + + + + + + + + diff --git a/src/views/modules/secretaryLog/difficulty/difficultyForm.vue b/src/views/modules/secretaryLog/difficulty/difficultyForm.vue new file mode 100644 index 000000000..b67083433 --- /dev/null +++ b/src/views/modules/secretaryLog/difficulty/difficultyForm.vue @@ -0,0 +1,604 @@ + + + + + + + + diff --git a/src/views/modules/secretaryLog/difficulty/difficultyList.vue b/src/views/modules/secretaryLog/difficulty/difficultyList.vue new file mode 100644 index 000000000..89aac3c1b --- /dev/null +++ b/src/views/modules/secretaryLog/difficulty/difficultyList.vue @@ -0,0 +1,694 @@ + + + + diff --git a/src/views/modules/secretaryLog/humanisticCare/careForm.vue b/src/views/modules/secretaryLog/humanisticCare/careForm.vue index b67083433..745b01b00 100644 --- a/src/views/modules/secretaryLog/humanisticCare/careForm.vue +++ b/src/views/modules/secretaryLog/humanisticCare/careForm.vue @@ -9,69 +9,46 @@ :disabled="formType === 'detail'" class="form"> - - - - {{item.label}} - - - - - + style="display: block"> + + - - - {{item.label}} - - - + + - + + + + - @@ -80,114 +57,73 @@ maxlength="100" show-word-limit :rows="3" - placeholder="请输入活动目标,不超过100字" + placeholder="请输入关怀事项" v-model="formData.target"> - -
- - -

-
-
- - + + - - - -
- -
-
- -
-
- - - 查询 -
-
- -
- 经度 - - - 纬度 - - -
-
-
- - + prop="serviceMatterList"> - - + + + + - -
- - -

-
+ + + + 点击上传 +
只能上传word、excel、pdf文件
+
+
@@ -207,23 +143,28 @@ import { mapGetters } from 'vuex' import { Loading } from 'element-ui' // 引入Loading服务 import { requestPost } from '@/js/dai/request' -import Tinymce from '@c/tinymce/index.vue' -var map -var search -var markers -var infoWindowList -var geocoder // 新建一个正逆地址解析类 + + let loading // 加载动画 export default { data () { return { formType: 'add', //表单操作类型 add新增,edit编辑,detail详情 + stateList: [ + { + value: '1', + label: '已完成' + }, + { + value: '2', + label: '未完成' + }, + ], btnDisable: false, - keyWords: '', activityId: '', formData: { serviceMatter: '',//服务事项 @@ -236,21 +177,34 @@ export default { activityTime: '',//活动时间 peopleCount: 0,//服务人数 result: '', //活动结果 - address: '', //详细地址 - longitude: 36.0722275, //经度 - latitude: 120.38945519 //纬度 + + }, - serviceList: [] + serviceList: [], + + fileList: [ + // { + // name: 'food.jpeg', + // url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100' + // }, { + // name: 'food2.jpeg', + // url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100' + // } + ], + uploadUlr: window.SITE_CONFIG['apiURL'] + '/oss/file/upload-guide-file', + dialogImageUrl: '', + dialogVisible: false } }, - components: { Tinymce }, + components: {}, mounted () { - this.initMap() + }, methods: { + async initForm (type, activityId) { this.startLoading() this.$refs.ref_form.resetFields(); @@ -264,60 +218,13 @@ export default { this.formData.id = activityId await this.loadFormData() } else { - map.setCenter(new TMap.LatLng(36.0722275, 120.38945519)) - this.setMarker(36.0722275, 120.38945519) - } - this.endLoading() - - }, - - //获取服务事项下拉框 - async loadService () { - const url = "/heart/serviceitem/dict-list" - let params = { - type: 'usable' - // parentCategoryCode: '1010' - } - - const { data, code, msg } = await requestPost(url, params) - - if (code === 0) { - this.serviceList = data - - } else { - this.$message.error(msg) } + this.endLoading() }, - //加载组织 - async loadFormData () { - const url = '/heart/icpartyactivity/detail' - // const url = 'http://yapi.elinkservice.cn/mock/245/heart/icpartyactivity/detail' - let params = { - id: this.activityId - } - - const { data, code, msg } = await requestPost(url, params) - - if (code === 0) { - this.formData = data - console.log(this.formData.content) - let style_img = "style='width:50px;height:40px;' " - if (this.formData.content) { - this.formData.content = this.formData.content.replace(/ { - this.handleMoveCenter() - }) - this.handleMoveCenter() - this.convert() - }, + // if (!isLt2M) { + // this.$message.warning('上传模板大小不能超过 5MB!') + // return + // } - setMarker (lat, lng) { - markers.setGeometries([]) - markers.add([ - { - id: '4', - styleId: 'marker', - position: new TMap.LatLng(lat, lng), - properties: { - title: 'marker4' - } - } - ]) + // return false // 返回false不会自动上传 }, - handleSearchMap () { - infoWindowList.forEach((infoWindow) => { - infoWindow.close() - }) - infoWindowList.length = 0 - markers.setGeometries([]) - // 在地图显示范围内以给定的关键字搜索地点 - search - .searchRectangle({ - keyword: this.keyWords, - bounds: map.getBounds() - }) - .then((result) => { - let { data } = result - if (Array.isArray(data) && data.length > 0) { - const { - location: { lat, lng } - } = data[0] - - - map.setCenter(new TMap.LatLng(lat, lng)) - this.setMarker(lat, lng) - this.formData.latitude = lat - this.formData.longitude = lng - this.convert() - } else { - this.$message.error('未检索到相关位置坐标') - } - }) + handleFileRemove (file) { + + if (file && file.status === "success") { + this.fileList.splice(this.fileList.findIndex(item => item.uid === file.uid), 1) + } }, - handleMoveCenter () { - //修改地图中心点 - const center = map.getCenter() - const lat = center.getLat() - const lng = center.getLng() - this.formData.latitude = lat - this.formData.longitude = lng - this.setMarker(lat, lng) - this.convert(lat, lng) + handleFileSuccess (res, file) { + + if (res.code === 0 && res.msg === 'success') { + const array = file.name.split('.') + const fileType = array[array.length - 1] + + file.url = res.data.url + file.type = fileType + this.fileList.push(file) + console.log(this.fileList) + } else this.$message.error(res.msg) }, - convert (lat, lng) { - markers.setGeometries([]); - // var input = document.getElementById('location').value.split(','); - let location - if (lat && lng) { - location = new TMap.LatLng(lat, lng); - } else { - location = new TMap.LatLng(this.formData.latitude, this.formData.longitude); - } - // map.setCenter(location); - markers.updateGeometries([ - { - id: 'main', // 点标注数据数组 - position: location, - }, - ]); - geocoder - .getAddress({ location: location }) // 将给定的坐标位置转换为地址 - .then((result) => { - this.formData.address = result.result.address - // 显示搜索到的地址 - }); + //下载 + handleFileDownload (file) { + + var a = document.createElement('a'); + var event = new MouseEvent('click'); + a.download = file.name; + console.log(a) + a.href = file.url; + a.dispatchEvent(event); + + }, resetData () { this.activityId = '' - this.keyWords = '' + this.formData = { serviceMatter: '',//服务事项 serviceMatterList: [], @@ -488,9 +341,7 @@ export default { activityTime: '',//活动时间 peopleCount: 0,//服务人数 result: '', //活动结果 - address: '', //详细地址 - longitude: 36.0722275, //经度 - latitude: 120.38945519 //纬度 + } }, // 开启加载动画 @@ -534,9 +385,7 @@ export default { result: [ { required: true, message: '活动结果不能为空', trigger: 'blur' } ], - address: [ - { required: true, message: '详细地址不能为空', trigger: 'blur' } - ], + longitude: [ { required: true, message: '坐标不能为空', trigger: 'blur' } ] @@ -566,31 +415,11 @@ export default { From 76aba99be634c9d9d90c53d4abd30f5aa63f7b1d Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Tue, 15 Mar 2022 16:36:58 +0800 Subject: [PATCH 08/12] ddd --- src/assets/img/unopen-hint.png | Bin 0 -> 9201 bytes src/router/index.js | 14 ++++++++- src/views/modules/unopen.vue | 51 +++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 src/assets/img/unopen-hint.png create mode 100644 src/views/modules/unopen.vue diff --git a/src/assets/img/unopen-hint.png b/src/assets/img/unopen-hint.png new file mode 100644 index 0000000000000000000000000000000000000000..c1a108e3e3aafd7cea2b930e85d97036ddf55293 GIT binary patch literal 9201 zcmbVyWmubAvncKq_X2_95D4xBFYd)HKyV1|?phpLC|2CvDehXVNYPTDlv14H-0b~* z`#a~yx#zjh&5vZQ_0G(inKiRU-o$FCy~f3mzoz*SU`)j~i(#DkB&V<5r5F*^i4 zz<($_$Ph`d62 zTz^BmduT!bi;e#g+Fi%j1< zrKc0r*+WrQoF4v!)5^|D#KKY-3b7Ot1oBz%^8)$!_$+}Ie8N0HYhEZHNKgoBC17p+ z51s!BpI4AiiWdZulj7qQk>=x-myrVT^UL!~$qLCz{e!FM?Ct?^wuJt(w;g=% zf8)yjuec&IZcvB^%uNRdbNt5&G;CoWFn3#+3xEf%PymabowF6p+nx2VGy0dvvQRfW zFQ}Eg8_Wstw~|Hd{s#vB--Q1czSaM)^0?qkas6c}|IKp#S%RD6U&H_S0etcwPl7tb z-Ny~?Cm9?vX9x%YVntag9iO#dxwkMXMX%9erkp=?shu#*)SAiBo8$mmOMkIEiX?9@ zYi24G1$=;H$U{1q5sa!(--mRs-PqOdGtzZ!|7(NdYonE7Pt9bfy3$A4IQrqLai)v0 z%y_5Nk1R%ntKaWK1S-4YYb?A2??368M6(cM?a__tqJ;O4zh6x`i#2FkJ-$B0t4NQF zYitbkEM2Qqiu>4jLm#679LvN>Oppk=3z*(f$OD>{iMw7ZSjvc3qK?annV#hOgQurv z%bqf_D<{-BKWMWNmy$lWxbT1IVv}|J;%*xUxi%n@Qy@eivf>qFRbuX4|@}+5X zup3|Z5vbCY059=fMX5Q#L>O+bJ48pR=PK+By9s!G$VsnbSyND+VmB}9>bi`d zFE;Q_!K<%I%l9Aev#YAeuPpOxAdpXNdhE!s@_zZ1z#~fB-u-Op(ckW zVcxA4fbnta>5{S9dL@~)Cx(puR(~UN4+Xa^0?HV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: { + title: "未开放功能", + isTab: true, + }, + }, ], }; @@ -397,7 +406,10 @@ function fnAddDynamicMenuRoutes(menuList = [], routes = []) { route["meta"]["iframeURL"] = URL; } else { URL = URL.replace(/^\//, "").replace(/_/g, "-"); - if (menuList[i].children && menuList[i].children.length >= 1) { + if (URL.startsWith("unopen")) { + route["path"] = route["name"] = URL.replace(/\//g, "-"); + route["component"] = () => import(`@/views/modules/unopen`); + } else if (menuList[i].children && menuList[i].children.length >= 1) { route["path"] = route["name"] = URL; route["redirect"] = URL.replace(/\//g, "-"); } else { diff --git a/src/views/modules/unopen.vue b/src/views/modules/unopen.vue new file mode 100644 index 000000000..06cfb17d1 --- /dev/null +++ b/src/views/modules/unopen.vue @@ -0,0 +1,51 @@ + + + + + From d351b0f396cc5d5460fb8ea5c5c19fbe66cdf6b7 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Wed, 16 Mar 2022 14:34:19 +0800 Subject: [PATCH 09/12] =?UTF-8?q?=E6=B6=88=E6=81=AF=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/store/index.js | 2 +- src/views/main-content.vue | 54 +++++++++++++++++++++ src/views/tips.vue | 97 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 152 insertions(+), 1 deletion(-) create mode 100644 src/views/tips.vue diff --git a/src/js/store/index.js b/src/js/store/index.js index 483238a6b..a803ca87e 100644 --- a/src/js/store/index.js +++ b/src/js/store/index.js @@ -37,7 +37,7 @@ export default new Vuex.Store({ menuList: [], activeName: "", }, - + tipsList: [], inIframe: window.self !== window.top, }, modules: { diff --git a/src/views/main-content.vue b/src/views/main-content.vue index 08c7e2491..5ce37b093 100644 --- a/src/views/main-content.vue +++ b/src/views/main-content.vue @@ -69,18 +69,48 @@ + + + + + + + + + + + + + + + + + + + diff --git a/src/views/tips.vue b/src/views/tips.vue new file mode 100644 index 000000000..7e1092b3d --- /dev/null +++ b/src/views/tips.vue @@ -0,0 +1,97 @@ + + + + + \ No newline at end of file From 2bf2d2a06b99882f66163014ec957cf776af272e Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Wed, 16 Mar 2022 16:46:24 +0800 Subject: [PATCH 10/12] ssdfsf --- src/assets/scss/c/config.scss | 2 +- src/assets/scss/c/function.scss | 15 +- .../scss/modules/shujirizhi-notice.scss | 62 +++ src/views/main.vue | 44 ++- .../modules/secretaryLog/cpts/notice.vue | 360 ++++-------------- 5 files changed, 167 insertions(+), 316 deletions(-) create mode 100644 src/assets/scss/modules/shujirizhi-notice.scss diff --git a/src/assets/scss/c/config.scss b/src/assets/scss/c/config.scss index e35553682..102219123 100644 --- a/src/assets/scss/c/config.scss +++ b/src/assets/scss/c/config.scss @@ -11,7 +11,7 @@ $w1: 1200px; //网站主色 primary color bgcolor $c1: #ff4c52; // 红 dd000f -$c2: #3b7cff; +$c2: #3e8ef7; //灰度色 用于字体 $fc0: #010033; diff --git a/src/assets/scss/c/function.scss b/src/assets/scss/c/function.scss index 90fb9dae0..74b020975 100644 --- a/src/assets/scss/c/function.scss +++ b/src/assets/scss/c/function.scss @@ -87,6 +87,15 @@ text-overflow: ellipsis; word-wrap: normal; } + +// 强制文本换行 多行 +@mixin toeM($num) { + display: -webkit-box; + overflow: hidden; + text-overflow: ellipsis; + -webkit-line-clamp: $num; + -webkit-box-orient: vertical; +} // 图片居中 @mixin img_hub { position: absolute; @@ -206,7 +215,7 @@ } //党员积分排行榜 @mixin img123 { - width:20px; + width: 20px; height: 20px; border-radius: 50%; position: absolute; @@ -225,7 +234,7 @@ width: 67.15px; height: 67.15px; position: absolute; - display: block; + display: block; top: 4px; border-radius: 100%; } @@ -258,11 +267,9 @@ display: block; z-index: 10; margin-top: 40px; - } @mixin list { list-style-type: none; position: absolute; padding: 0px; } - diff --git a/src/assets/scss/modules/shujirizhi-notice.scss b/src/assets/scss/modules/shujirizhi-notice.scss new file mode 100644 index 000000000..8d717a03a --- /dev/null +++ b/src/assets/scss/modules/shujirizhi-notice.scss @@ -0,0 +1,62 @@ +@import "../c/anime"; +@import "../c/config"; +@import "../c/function"; + +.m-notice { + position: fixed; + z-index: 10000; + bottom: 0; + right: 0; + background-color: #fff; + box-shadow: 0 0 10px 0 rgba(#000, 0.1); + width: 500px; + height: 300px; + box-sizing: border-box; + padding: 25px; + + .header { + margin-bottom: 20px; + font-size: 24px; + font-weight: bold; + color: #3e8ef7; + } + .type { + margin-bottom: 10px; + font-size: 20px; + font-weight: bold; + color: #333; + } + .content { + @include toeM(2); + margin-bottom: 10px; + font-size: 16px; + color: #333; + line-height: 30px; + } + .date { + margin-bottom: 30px; + font-size: 16px; + color: #999; + line-height: 30px; + } + .operate { + display: flex; + justify-content: space-around; + + .btn { + box-sizing: border-box; + padding: 0 20px; + width: 180px; + text-align: center; + font-size: 20px; + color: #3e8ef7; + line-height: 40px; + cursor: pointer; + + &.z-stress { + background-color: #3e8ef7; + color: #fff; + } + } + } +} diff --git a/src/views/main.vue b/src/views/main.vue index 9ecf523ea..479c782f7 100644 --- a/src/views/main.vue +++ b/src/views/main.vue @@ -1,24 +1,30 @@ @@ -28,16 +34,17 @@ import MainNavbar from "./main-navbar"; import MainSidebar from "./main-sidebar"; import MainContent from "./main-content"; import MainThemeTools from "./main-theme-tools"; +import SecretaryLogNotice from "./modules/secretaryLog/cpts/notice"; import debounce from "lodash/debounce"; import { mapGetters } from "vuex"; import nextTick from "dai-js/tools/nextTick"; import { requestPost } from "@/js/dai/request"; export default { - provide () { + provide() { return { // 刷新 - refresh () { + refresh() { this.$store.state.contentIsNeedRefresh = true; this.$nextTick(() => { this.$store.state.contentIsNeedRefresh = false; @@ -45,7 +52,7 @@ export default { }, }; }, - data () { + data() { return { loading: true, userType: localStorage.getItem("userType"), @@ -56,12 +63,13 @@ export default { MainSidebar, MainContent, MainThemeTools, + SecretaryLogNotice, }, watch: { $route: "routeHandle", }, - async created () { + async created() { this.$store.state.sidebarMenuList = window.SITE_CONFIG["menuList"]; console.log(this.$store.state.sidebarMenuList); @@ -73,11 +81,11 @@ export default { }, computed: {}, methods: { - changeCustomerName (customerName) { + changeCustomerName(customerName) { this.$refs["ref_navbar"].changeCustomerName(customerName); }, // 窗口改变大小 - windowResizeHandle () { + windowResizeHandle() { this.$store.state.sidebarFold = document.documentElement["clientWidth"] <= 992 || false; window.addEventListener( @@ -89,7 +97,7 @@ export default { ); }, // 路由, 监听 - routeHandle (route) { + routeHandle(route) { if (!route.meta.isTab) { return false; } @@ -112,7 +120,7 @@ export default { this.$store.state.contentTabsActiveName = tab.name; this.syncLevelOneMenuActive(tab.menuId); }, - async syncLevelOneMenuActive (menuId) { + async syncLevelOneMenuActive(menuId) { await nextTick(); console.log( "*******************************", @@ -135,7 +143,7 @@ export default { idx !== -1 ? this.$store.state.sidebarMenuList[idx].children : []; }, // 获取当前管理员信息 - async getWorkUserInfo () { + async getWorkUserInfo() { const url = "/epmetuser/customerstaff/staffbasicinfo"; let params = {}; const { data, code, msg } = await requestPost(url, params); diff --git a/src/views/modules/secretaryLog/cpts/notice.vue b/src/views/modules/secretaryLog/cpts/notice.vue index 6ddb547a6..5fd0960fe 100644 --- a/src/views/modules/secretaryLog/cpts/notice.vue +++ b/src/views/modules/secretaryLog/cpts/notice.vue @@ -1,6 +1,13 @@ @@ -9,320 +16,87 @@ import { requestPost } from "@/js/dai/request2"; import nextTick from "dai-js/tools/nextTick"; export default { - components: { }, + components: {}, data() { return { - agencyId: "", - - tableData: [], - - currentIndex: 0, + displayed: false, + + lastTime: 0, + + list: [ + { + memoId: "1", + type: "work_diary", + typeName: "工作日志", + content: + "提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容提醒内容", + remindTime: "2022-02-22 22:22", + }, + ], }; }, - computed: { - }, + computed: {}, watch: { - currentIndex() { - }, + currentIndex() {}, }, async mounted() { - await this.loadAgency(); - await this.getTableData(); + this.poll(); }, methods: { - async handleDel() { - if (!confirm("删除后不可恢复,确定删除?")) return; - - const item = this.tableData[this.currentIndex]; - const url = "/gov/org/icpartyservicecenter/del"; - - const { data, code, msg } = await requestPost(url, [ - item.partyServiceCenterId, - ]); + async poll() { + let nowTime = new Date().getTime(); + if (nowTime - this.lastTime > 60 * 1000) { + this.lastTime = nowTime; + this.getList(); + } + await nextTick(1000); + this.poll(); + }, - if (code === 0) { - this.$message.success("删除成功!"); - this.getTableData(); + checkInfo() { + const { memoId, type } = this.list[0]; + if (type == "work_diary") { + this.$router.push({ + path: `/main/visual-basicinfo-people/${uid}`, + }); + } else if (type == "concern") { + } else if (type == "difficulty") { } + + this.read(); }, - async getTableData() { - const oldLen = this.tableData.length; - const url = "/gov/org/icpartyservicecenter/partyservicecenterlist"; + async read() { + const item = this.list[0]; + const url = "/gov/project/memoAttr/setReaded"; + const { data, code, msg } = await requestPost(url, { - orgId: this.agencyId, - orgType: "agency", + memoId: item.memoId, }); - if (code === 0) { - console.log("列表请求成功!!!!!!!!!!!!!!"); - this.tableData = data; - - if (data.length > 0 && oldLen == 0) { - await nextTick(100); - this.initMap(); - this.setMap(); - } + if (code === 0) { + // this.$message.success("删除成功!"); + this.displayed = false; + this.getList(); } }, - //加载组织 - async loadAgency() { - const url = "/epmetuser/customerstaff/staffbasicinfo"; - let params = {}; - - const { data, code, msg } = await requestPost(url, params); - + async getList() { + const url = "/gov/project/memoAttr/memosToRemind"; + const { data, code, msg } = await requestPost(url, {}); if (code === 0) { - this.agencyId = data.agencyId; + console.log("列表请求成功!!!!!!!!!!!!!!"); + this.displayed = true; + this.lastTime = new Date().getTime(); + // this.list = data; } }, }, }; - + From 66215bc144895946d9f2ac9adc13da185f21b1ee Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Wed, 16 Mar 2022 16:54:21 +0800 Subject: [PATCH 11/12] dd --- src/js/store/index.js | 35 +++++++++++++++++++ src/views/main-content.vue | 61 ++++++++++++++++++++++++++------- src/views/modules/base/resi.vue | 10 +++--- src/views/tips.vue | 12 +++++-- 4 files changed, 99 insertions(+), 19 deletions(-) diff --git a/src/js/store/index.js b/src/js/store/index.js index a803ca87e..7dfbb5678 100644 --- a/src/js/store/index.js +++ b/src/js/store/index.js @@ -4,6 +4,7 @@ import cloneDeep from "lodash/cloneDeep"; import user from "./modules/user"; import app from "./modules/app"; import tagsView from "./modules/tagsView"; +import { requestPost } from "@/js/dai/request"; Vue.use(Vuex); @@ -38,6 +39,7 @@ export default new Vuex.Store({ activeName: "", }, tipsList: [], + tipsTime: [], inIframe: window.self !== window.top, }, modules: { @@ -52,5 +54,38 @@ export default new Vuex.Store({ state[key] = cloneDeep(window.SITE_CONFIG["storeState"][key]); }); }, + SET_TIPS_LIST(state, tipsList) { + let _list = state.tipsList + state.tipsList = _list.concat(tipsList) + }, + SET_TIPS_TIME(state, time) { + state.tipsTime = time + } }, + actions: { + setTipsList({ commit }, time) { + return new Promise(async (resolve, reject) => { + const url = '/gov/project/memoAttr/memosToRemind' + const params = { + remindTime: time || '' + } + const { data, code, msg } = await requestPost(url, params) + if (code === 0) { + commit('SET_TIPS_LIST', data) + resolve() + } else reject(msg) + }) + }, + setTipsTime({ commit }) { + return new Promise(async (resolve, reject) => { + const url = '/gov/project/memoAttr/memoTime' + + const { data, code, msg } = await requestPost(url) + if (code === 0) { + commit('SET_TIPS_TIME', data) + resolve() + } else reject(msg) + }) + } + } }); diff --git a/src/views/main-content.vue b/src/views/main-content.vue index 5ce37b093..c691d133e 100644 --- a/src/views/main-content.vue +++ b/src/views/main-content.vue @@ -70,9 +70,13 @@ - + - + @@ -96,6 +100,7 @@ import { isURL } from "@/utils/validate"; import Cookie from "js-cookie"; import Tips from './tips.vue' +import { requestPost } from "@/js/dai/request"; export default { components: { Tips @@ -120,7 +125,7 @@ export default { this.token = localStorage.getItem("token"); this.customerId = localStorage.getItem("customerId"); - // this.loopTips() + this.loopTips() }, methods: { changeCustomerName(customerName) { @@ -207,17 +212,49 @@ export default { iframe.postMessage({ name: "lalalal" }, "*"); }, loopTips() { - let id = 1 - this.timer = setInterval(() => { - id = id + 1 - if (id == 5) clearInterval(this.timer) - this.tipsList.push(id) - console.log('id------0', id) - }, 1000) + this.$store.dispatch('setTipsList') + this.$store.dispatch('setTipsTime') + // let id = 1 + // this.timer = setInterval(() => { + // id = id + 1 + // if (id == 5) clearInterval(this.timer) + // this.tipsList.push(id) + // console.log('id------0', id) + // }, 1000) + }, + async closeTips(memoId) { + const url = '/gov/project/memoAttr/setReaded' + const params = { + memoId + } + const { data, code, msg } = await requestPost(url, params) + if (code != 0) this.$message.error(msg) + }, + async getInfo(item) { + const urls = { + work_diary: '/gov/project/memoWorkDiary', + concern: '/gov/project/memoConcern', + difficulty: '/gov/project/memoDifficulty/detail' + } + const params = { + id: item.memoId, + readFlag: 0 + } + const { data, code, msg } = await requestPost(urls[item.type], params) + if (code == 0) { + this.form = { ...data } + } else this.$message.error(msg) + }, + handleClose(item, index) { + console.log('close-----', item) + this.$store.state.tipsList.splice(index, 1) + this.closeTips(item.memoId) }, - handleLook(id) { - console.log('look-----', id) + async handleLook(item) { + console.log('look-----', item) + await this.getInfo(item) this.dialogFormVisible = true + } }, }; diff --git a/src/views/modules/base/resi.vue b/src/views/modules/base/resi.vue index 2d9d49cfb..63dce11e8 100644 --- a/src/views/modules/base/resi.vue +++ b/src/views/modules/base/resi.vue @@ -12,11 +12,12 @@ @click="handleAdd">新增 下载人口模板 + @click="handleExportModule('room')">下载模板 + > + @@ -223,7 +227,6 @@ class="dialog-h" @closed="diaClose"> @@ -231,13 +234,12 @@ + @closed="diaClose"> @@ -262,53 +264,38 @@ export default { pageSize: 10, pageNo: 0, tableLoading: false, - agencyId: '', - unitList: [],//单位list - serviceList: [ - { - id: "1", - name: '积极配合社区安全巡查员进行场所消防、安全等方面的检查。' - }, - { - id: "2", - name: '积极配合' - }, + + stateList: [ { - id: "3", - name: '积极配合社区安全巡查员进行' + value: 1, + label: '已完成' }, { - id: "4", - name: '积极配合社区安全巡查员进行场所消防、安全等方面的检查。并具备安全意识及设备设施' + value: 0, + label: '未完成' }, - ],//服务list - pickerOptions: { //控制时间范围 - disabledDate (time) { - return time.getTime() > (Date.now() - (24 * 60 * 60 * 1000)) - } - }, + ], + scheduledTimeRange: [], timeRange: [], - unitId: '', formData: { - unitId: '', - title: '', - serviceMatter: '', - startTime: '', - endTime: '' + content: '',//关怀事项 + concernType: '',//关怀类型 + resiName: '',//关怀人员 + status: '',//状态 0未完成 1已完成 + startTime: '',//开始时间 yyyy-mm-dd + endTime: '',//结束时间 yyyy-mm-dd + scheduledStartTime: '',//预计关怀开始时间 yyyy-mm-dd + scheduledEndTime: '',//预计关怀结束时间 yyyy-mm-dd }, tableData: [], //form相关 formShow: false, - formTitle: '新增活动', + formTitle: '新增', detailShow: false, - files: "", - fileName: "", - uploadUlr: window.SITE_CONFIG['apiURL'] + '/gov/org/neighborhood/import' - } }, components: { @@ -318,14 +305,7 @@ export default { }, async mounted () { - //获取服务事项 - await this.loadService() - const { user } = this.$store.state - this.agencyId = user.agencyId - - //获取建联单位 - await this.loadUnit() //获取网格下拉框数据 await this.loadTable() }, @@ -335,52 +315,12 @@ export default { this.loadTable() }, - async loadUnit () { - const url = "/heart/icpartyunit/option" - // const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyunit/option" - - let params = { - agencyId: this.agencyId - } - - const { data, code, msg } = await requestPost(url, params) - - if (code === 0) { - this.unitList = data - - } else { - this.$message.error(msg) - } - - }, - - //获取服务事项下拉框 - async loadService () { - const url = "/heart/serviceitem/dict-list" - - - let params = { - // parentCategoryCode: '1010' - } - - const { data, code, msg } = await requestPost(url, params) - - if (code === 0) { - this.serviceList = data - - } else { - this.$message.error(msg) - } - - }, - async loadTable () { this.tableLoading = true - const url = "/heart/icpartyactivity/search" - // const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyactivity/list" + const url = "/gov/project/memoConcern/page" + // const url = "http://yapi.elinkservice.cn/mock/245/gov/project/memoConcern/page" let params = { - agencyId: this.agencyId, pageSize: this.pageSize, pageNo: this.pageNo, ...this.formData @@ -400,21 +340,23 @@ export default { diaClose () { - this.$refs.ref_form.resetData() - this.formShow = false - }, + if (this.formShow) { + // this.$refs.ref_form.resetData() + this.formShow = false + } else { + this.detailShow = false + } + - detailClosed () { - this.detailShow = false }, + handleDetail (row) { - // this.detailShow = true + this.detailShow = true this.formTitle = '详情' - this.formShow = true this.$nextTick(() => { - // this.$refs.ref_detail.initForm(row) - this.$refs.ref_form.initForm('detail', row.id) + this.$refs.ref_detail.initForm(row) + }) }, @@ -451,7 +393,7 @@ export default { type: "warning" }) .then(() => { - this.deleteActivity(row) + this.deleteCare(row) }) .catch(err => { if (err == "cancel") { @@ -461,15 +403,15 @@ export default { }); }, - async deleteActivity (row) { - const url = "/heart/icpartyactivity/delete" - // const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyactivity/delete" - + async deleteCare (row) { + const url = "/gov/project/memoConcern/delete" + // const url = "http://yapi.elinkservice.cn/mock/245/gov/project/memoConcern/delete" + let ids = [row.id] let params = { - id: row.id + ids: ids } - const { data, code, msg } = await requestPost(url, params) + const { data, code, msg } = await requestPost(url, ids) if (code === 0) { this.$message({ @@ -485,14 +427,17 @@ export default { //重置搜索条件 resetSearch () { + this.scheduledTimeRange = [] this.timeRange = [] this.formData = { - gridId: '', - unitName: '', - serviceMatter: '', - type: '', - contact: '', - contactMobile: '' + content: '',//关怀事项 + concernType: '',//关怀类型 + resiName: '',//关怀人员 + status: '',//状态 0未完成 1已完成 + startTime: '',//开始时间 yyyy-mm-dd + endTime: '',//结束时间 yyyy-mm-dd + scheduledStartTime: '',//预计关怀开始时间 yyyy-mm-dd + scheduledEndTime: '',//预计关怀结束时间 yyyy-mm-dd } this.pageSize = 10 this.pageNo = 0 @@ -500,23 +445,18 @@ export default { }, //导出表格 - async handleExport () { - let title = '联建活动列表' - - const url = "/heart/icpartyactivity/export" - let params = { - agencyId: this.agencyId, + async handleExport (row) { + let title = '人员关怀' - ...this.formData - - } + let url = `/gov/project/memoConcern/${row.id}/exportWord` + let params = {} app.ajax.exportFilePost( url, params, (data, rspMsg) => { - this.download(data, title + '.xls') + this.download(data, title + '.doc') }, (rspMsg, data) => { this.$message.error(rspMsg); @@ -551,72 +491,27 @@ export default { }, - // 上传文件之前的钩子 - beforeUpload (file) { - this.files = file; - - const isText = file.type === 'application/vnd.ms-excel' - const isTextComputer = file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' + handleScheduledTimeChange (time) { + if (time) { + this.formData.scheduledStartTime = time[0] + this.formData.scheduledEndTime = time[1] - if (!isText && !isTextComputer) { - this.$message.error('请选择正确格式的文件') - return false } else { - this.fileName = file.name; - return true - } + this.formData.scheduledStartTime = '' + this.formData.scheduledEndTime = '' - }, - // 上传文件个数超过定义的数量 - handleExceed (files, fileList) { - this.$message.warning(`当前限制选择 1 个文件,请删除后继续上传`) - }, - - async uploadFile () { - this.loading = true - - if (this.fileName == "") { - this.$message.warning('请选择要上传的文件!') - return false } - //清空上传列表 - this.$refs['upload'].clearFiles() - - var url = '/heart/icpartyactivity/import' - let fileFormData = new FormData(); - fileFormData.append('file', this.files);//filename是键,file是值,就是要传的文件,test.zip是要传的文件名 - - const { data, code, msg } = await requestPost(url, fileFormData) - if (code === 0) { - this.$message({ - type: "success", - message: "导入成功" - }); - - this.loadTable() - } else { - this.$message.error(msg) - } - - }, - handleTimeChange (time) { if (time) { - const startTimeArray = util.dateFormatter(time[0], 'date').split('-') - const endTimeArray = util.dateFormatter(time[1], 'date').split('-') - - this.formData.startTime = startTimeArray[0] + '-' + startTimeArray[1] + '-' + startTimeArray[2] + ' 00:00:00' - this.formData.endTime = endTimeArray[0] + '-' + endTimeArray[1] + '-' + endTimeArray[2] + ' 23:59:59' + this.formData.startTime = time[0] + this.formData.endTime = time[1] - // this.startTimeShow = startTimeArray[0] + '年' + startTimeArray[1] + '月' + startTimeArray[2] + '日' - // this.endTimeShow = endTimeArray[0] + '年' + endTimeArray[1] + '月' + endTimeArray[2] + '日' } else { this.formData.startTime = '' this.formData.endTime = '' - // this.startTimeShow = '' - // this.endTimeShow = '' + } }, @@ -653,9 +548,7 @@ export default { return (this.clientHeight - 430) }, - rowHeight () { - return (this.clientHeight - 200) + 'px' - }, + ...mapGetters(['clientHeight']) }, watch: {