From d4508170a037fdc1337318a3f90d3f76fdbde39c Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 17 Oct 2024 08:26:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0=20=E6=97=A5?= =?UTF-8?q?=E8=AE=A1=E5=88=92=20=20=E6=9C=88=E8=AE=A1=E5=88=92=E7=AD=89?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=90=AD=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 12 + .../index/components/risk-calendar.vue | 41 +- .../monthPlan/components/time-select.vue | 39 + pages/workPlan/monthPlan/index-lod.vue | 606 ++++++++++++++ pages/workPlan/monthPlan/index.vue | 737 ++++++++++++++++++ pages/workPlan/planDetail/index.vue | 7 + .../weekPlan/components/time-select.vue | 39 + pages/workPlan/weekPlan/index.vue | 592 ++++++++++++++ .../components/infrastructure-model.vue | 12 +- .../workbench/components/production-model.vue | 12 +- static/images/workPlan/add.png | Bin 0 -> 1126 bytes static/images/workPlan/delete.png | Bin 0 -> 1027 bytes 12 files changed, 2089 insertions(+), 8 deletions(-) create mode 100644 pages/workPlan/monthPlan/components/time-select.vue create mode 100644 pages/workPlan/monthPlan/index-lod.vue create mode 100644 pages/workPlan/monthPlan/index.vue create mode 100644 pages/workPlan/planDetail/index.vue create mode 100644 pages/workPlan/weekPlan/components/time-select.vue create mode 100644 pages/workPlan/weekPlan/index.vue create mode 100644 static/images/workPlan/add.png create mode 100644 static/images/workPlan/delete.png diff --git a/pages.json b/pages.json index 91beccc..bf93dfd 100644 --- a/pages.json +++ b/pages.json @@ -709,6 +709,18 @@ "style": { "navigationStyle": "custom" } + }, + { + "path": "pages/workPlan/weekPlan/index", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "pages/workPlan/monthPlan/index", + "style": { + "navigationStyle": "custom" + } } ], "globalStyle": { diff --git a/pages/workPlan/index/components/risk-calendar.vue b/pages/workPlan/index/components/risk-calendar.vue index bc04768..ad9cfe9 100644 --- a/pages/workPlan/index/components/risk-calendar.vue +++ b/pages/workPlan/index/components/risk-calendar.vue @@ -14,13 +14,11 @@ - @@ -34,7 +32,13 @@ export default { return { primary: '', activeIndex: 0, - btnList: [{ btn_title: '月' }, { btn_title: '周' }, { btn_title: '日' }] + btnList: [{ btn_title: '月' }, { btn_title: '周' }, { btn_title: '日' }], + info: { + lunar: true, + range: true, + insert: false, + selected: [] + } } }, methods: { @@ -47,6 +51,35 @@ export default { onTimeCheck(i) { this.activeIndex = i } + }, + created() { + this.$nextTick(() => { + // this.showCalendar = true + }) + // TODO 模拟请求异步同步数据 + setTimeout(() => { + this.info.date = getDate(new Date(), -30).fullDate + this.info.startDate = getDate(new Date(), -60).fullDate + this.info.endDate = getDate(new Date(), 30).fullDate + this.info.selected = [ + { + date: getDate(new Date(), -3).fullDate, + info: '打卡' + }, + { + date: getDate(new Date(), -2).fullDate, + info: '签到', + data: { + custom: '自定义信息', + name: '自定义消息头' + } + }, + { + date: getDate(new Date(), -1).fullDate, + info: '已打卡' + } + ] + }, 2000) } } diff --git a/pages/workPlan/monthPlan/components/time-select.vue b/pages/workPlan/monthPlan/components/time-select.vue new file mode 100644 index 0000000..f0772a4 --- /dev/null +++ b/pages/workPlan/monthPlan/components/time-select.vue @@ -0,0 +1,39 @@ + + + + + diff --git a/pages/workPlan/monthPlan/index-lod.vue b/pages/workPlan/monthPlan/index-lod.vue new file mode 100644 index 0000000..b36580c --- /dev/null +++ b/pages/workPlan/monthPlan/index-lod.vue @@ -0,0 +1,606 @@ + + + + + diff --git a/pages/workPlan/monthPlan/index.vue b/pages/workPlan/monthPlan/index.vue new file mode 100644 index 0000000..af06100 --- /dev/null +++ b/pages/workPlan/monthPlan/index.vue @@ -0,0 +1,737 @@ + + + + + diff --git a/pages/workPlan/planDetail/index.vue b/pages/workPlan/planDetail/index.vue new file mode 100644 index 0000000..9ee743d --- /dev/null +++ b/pages/workPlan/planDetail/index.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/pages/workPlan/weekPlan/components/time-select.vue b/pages/workPlan/weekPlan/components/time-select.vue new file mode 100644 index 0000000..400b2b3 --- /dev/null +++ b/pages/workPlan/weekPlan/components/time-select.vue @@ -0,0 +1,39 @@ + + + + + diff --git a/pages/workPlan/weekPlan/index.vue b/pages/workPlan/weekPlan/index.vue new file mode 100644 index 0000000..b5f6b22 --- /dev/null +++ b/pages/workPlan/weekPlan/index.vue @@ -0,0 +1,592 @@ + + + + + diff --git a/pages/workPlan/workbench/components/infrastructure-model.vue b/pages/workPlan/workbench/components/infrastructure-model.vue index 9a47bf3..1f42f3a 100644 --- a/pages/workPlan/workbench/components/infrastructure-model.vue +++ b/pages/workPlan/workbench/components/infrastructure-model.vue @@ -21,8 +21,16 @@ export default { url: '/pages/workPlan/dayPlan/index', img_src: require('../../../../static/images/workPlan/day_plan.png') }, - { icon_title: '周计划', url: 'xxx', img_src: require('../../../../static/images/workPlan/week_plan.png') }, - { icon_title: '月计划', url: 'xxx', img_src: require('../../../../static/images/workPlan/month_plan.png') }, + { + icon_title: '周计划', + url: '/pages/workPlan/weekPlan/index', + img_src: require('../../../../static/images/workPlan/week_plan.png') + }, + { + icon_title: '月计划', + url: '/pages/workPlan/monthPlan/index', + img_src: require('../../../../static/images/workPlan/month_plan.png') + }, { icon_title: '涉网计划', url: 'xxx', img_src: require('../../../../static/images/workPlan/web_plan.png') }, { icon_title: '临时计划', diff --git a/pages/workPlan/workbench/components/production-model.vue b/pages/workPlan/workbench/components/production-model.vue index 29744f2..5562ab4 100644 --- a/pages/workPlan/workbench/components/production-model.vue +++ b/pages/workPlan/workbench/components/production-model.vue @@ -21,8 +21,16 @@ export default { url: '/pages/workPlan/dayPlan/index', img_src: require('../../../../static/images/workPlan/day_plan.png') }, - { icon_title: '周计划', url: 'xxx', img_src: require('../../../../static/images/workPlan/week_plan.png') }, - { icon_title: '月计划', url: 'xxx', img_src: require('../../../../static/images/workPlan/month_plan.png') }, + { + icon_title: '周计划', + url: '/pages/workPlan/weekPlan/index', + img_src: require('../../../../static/images/workPlan/week_plan.png') + }, + { + icon_title: '月计划', + url: '/pages/workPlan/monthPlan/index', + img_src: require('../../../../static/images/workPlan/month_plan.png') + }, { icon_title: '涉网计划', url: 'xxx', img_src: require('../../../../static/images/workPlan/web_plan.png') }, { icon_title: '临时计划', diff --git a/static/images/workPlan/add.png b/static/images/workPlan/add.png new file mode 100644 index 0000000000000000000000000000000000000000..ad61551dda1220aa12cd3b6d01de55da0f6efaf1 GIT binary patch literal 1126 zcmV-s1eyDZP)x5q%FP2h!eW4CylHFSt3>xG zm&b_bdb&dBQVE^%r>o}xlRHEXf=v+4!-2lyrRvj*--$q}TTy)Mf3+DPxdOHc%)sQ# zLiF=|a4mG0bX6mnMAh9h00_g1esNQPEjT!OjqG8}alGwwQ@ed?X=qK8{W$rY2X@1o zfhi@U7FsPT+aW>b22o#a6p*B8U9#BZo8(fWr%(Zt!e(N)xc^w&Pu7*jhbeuuHxY7rI`#mQ*haPoOhOp>OcG#yz@(sD9-1V;_JD~Y=hKW$ZxE#YDjP==<*m6R zS_W+%@3>fFcaFF+%Hy)C<17E4MF6driSxgp z2gum8uI2IP2Kl3h6{eRrKEpa-Xee7@Qnft0V-HTZW@a*pEyMa9F%x^Zt1|E>16v?4 zXnoIW71d3;CGmagdb!t)xW1piaey_@0&m%|_i<%D$p}3%hRM|F`CUg&UikWU{8Sv( zwzYi;vRhZo)Yfcmy(-Eks2e)22F^AFE~WL9oQd$fs&KUGJZSFKUl(PfT@b$> zOZ~0BShKkf`B|AqO|`~)pzgs^<%DpAA1_Ar%AlA3_Ug;?IVhh5UIX@cSBl zP7=+UzF9xPG;&0tl~Z#jm&vbZ7ZU7u7NwILz)Gb81!7cZW-4fYH6)vpH|I#|RiVda sJ3w_Ze|2ymt<6rylarGX3(P&g0isfogq;!LHvj+t07*qoM6N<$f>(GHsQ>@~ literal 0 HcmV?d00001 diff --git a/static/images/workPlan/delete.png b/static/images/workPlan/delete.png new file mode 100644 index 0000000000000000000000000000000000000000..410c359efe549842e10b83cdda7c10089ef5da4a GIT binary patch literal 1027 zcmV+e1pNDnP))thy)#?p+rDJ0TML41f6SoM|7Y_5rQC* zf)qhPIKswp68p}#%gpY1@0{2cO<*nYS@*L$v$u2O+1Z&nfdBYAV1rG;pi;E}DtKQ7 zsF#^P4^UgiX1Ok?O;;bUHEK(~81NG&~7)%qGAfnrQ!Oy$? zV$G(eBRkO~+RnK=2$+%WmFEmh!KH_bXb(%a?Vj4%I_qIiPiY$M$IfP4FdJ?Iwxo0meWHeEjtJH_hEBCG^~qh_-I+p1E@4 z-uF+-H^ZQFGVvvX+`44OzPPvlS7A1RWEi;`DBECSu&o|RnFu{s7LJBKN9egSxzf91 zr3>qp$AfMC8ptraP|G;eGbcP3%6z{w1+IhntP-6?LI@ilZ#g0iLvRm#QnHaRLLQ+0 z5D!hq8{}7Gk>00;ip{an&stfbTK%yu$T>)=3}ZI)!u_DzEV$VptKZ)5K=pbw@NRRJ zj~1;f3`k(2{07I^ZepVa3;_TD002ovPDHLkV1k>3*_r?V literal 0 HcmV?d00001