From 42507f829b96a3f99e620538b3775da1965abfce Mon Sep 17 00:00:00 2001 From: jinna Date: Mon, 22 May 2023 15:26:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B9=A6=E5=86=99=E6=85=A2=E7=9B=B4=E6=92=AD?= =?UTF-8?q?=E7=AB=99=E7=82=B9=E7=BC=96=E8=BE=91=E9=A1=B5=E9=9D=A2=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E3=80=81=E6=B7=BB=E5=8A=A0=E6=97=A9=E6=99=9A=E9=AB=98?= =?UTF-8?q?=E5=B3=B0=E6=97=B6=E9=97=B4=E6=AE=B5=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/station/station.js | 18 ++ src/assets/image/time.png | Bin 0 -> 1168 bytes src/option/user/info.js | 175 ++++++++------- src/page/index/top/index.vue | 4 +- src/router/views/index.js | 9 + src/views/peak/editpeak.vue | 296 +++++++++++++++++++++++++ src/views/peak/index.vue | 378 ++++++++++++++++++++++++++++++++ src/views/station/index.vue | 85 ++++--- src/views/stationEdit/index.vue | 51 +++-- 9 files changed, 880 insertions(+), 136 deletions(-) create mode 100644 src/assets/image/time.png create mode 100644 src/views/peak/editpeak.vue create mode 100644 src/views/peak/index.vue diff --git a/src/api/station/station.js b/src/api/station/station.js index a7a1dc5..8e29c71 100644 --- a/src/api/station/station.js +++ b/src/api/station/station.js @@ -50,3 +50,21 @@ export const deleteCar = (ids) => { }, }); }; + +// 查询早晚高峰时段 +export const getPeakList = (query) => { + return request({ + url: "/api/blade-business/poc_morning_evening/get-list-all", + method: "get", + params: query, + }); +}; + +// 编辑早晚高峰 +export const editPeak = (data) => { + return request({ + url: "/api/blade-business/poc_morning_evening/update", + method: "POST", + data, + }); +}; diff --git a/src/assets/image/time.png b/src/assets/image/time.png new file mode 100644 index 0000000000000000000000000000000000000000..a38b08de27ac0b5453c8ce34f3f26d505e0671df GIT binary patch literal 1168 zcmV;B1aJF^P)Px(N=ZaPR7gv`SAS?*RTTctOGdLcscX8n$x8*Lv!KKOL|b*WV=BVL(Za05$qEx3 z%uHLYWjeaFnb=M3hSMR+prgWmD2`4iQ_yJzTSWws;p!?5+rFgTmYJ=sDb0IF?klf( zuT5T(AFLj>;41_Aez4u_Q~%8z5>Uz+RCoCt`rX*sEy%*AODjY;FY(u@sOZAA``i7_+QM z!umU1Sa*jDt4f_Hb4$9(r6~;~SCaVpLIS6MPvFwD1z)$(So<`h1vZ+=EyQx?csEJZ zZYC{UM%ey<8_(4g!R53UAdzGo`e6$14^CrdjxA?rMz_)-?=%({ko;k#k$_Lk^7=dy zjx>3(+P5sPFrSOgVaxFtqSsU2>#}RypzIFx>vus%3|=UZ%Zknu;WmT8?~!nN>q?Zn z9cf7;*HnGoU!4B?yCTCn!#{AXzfaY{!e^_ae0FlA^Psn?6OKC<=&yFPU z%(1JwZQrI6tgUjTJ)H2o;m8$>>>8sb(jgxpY-ERgcO*)LmB#M2dJkTB(4A4gtzs^>PMTrsIMycUx~l{ za~7MA#!|$fZ%FP^hKW#ZtPVY2j>;A3Gu5!k*Wvq?tP z65<<>S}^YZDvrZHr4q)DJdM!bpw2k{(WkvwbGv}aN<;~l3;c4@+n57pBT$QyZWB9Xj@RFHa$iA(%2;1*>XH7VfNbhAB zeKbZ-q(ff7UNY>-lG0B^k1v+e81^2{FzkIfoWPmk^ur#5KUY+FL&jlmKHg%yjl2#* z`^_6~O>S0njyE|aybaJz8t6^rl`W&owGwBLptXZ2$0rP84Bo3;)ehoDo-mdeXM3~( i6B;ncOs8^vwEYLkdkL7KZVjXW0000 { - if (['image/png', 'image/jpeg'].indexOf(file.type) == -1) { - Message({ - message: '只能上传jpg/png用户头像', - type: 'error' - }); - loading(); - } - else { - done(); - } + label: "个人信息", + prop: "info", + column: [ + { + label: "头像", + type: "upload", + listType: "picture-img", + propsHttp: { + res: "data", + url: "link", + }, + // canvasOption: { + // text: ' ', + // ratio: 0.1 + // }, + action: "/api/blade-resource/oss/endpoint/put-file", + fileType: "img", //img/video/audio, + accept: "image/png, image/jpeg", + tip: "只能上传jpg/png用户头像,且不超过500kb", + span: 12, + row: true, + prop: "avatar", + uploadBefore: (file, done, loading) => { + if (["image/png", "image/jpeg"].indexOf(file.type) == -1) { + Message({ + message: "只能上传jpg/png用户头像", + type: "error", + }); + loading(); + } else if (file.size / 1024 / 1024 > 0.48) { + Message({ + message: "上传的用户头像大小应小于500k", + type: "error", + }); + loading(); + } else { + done(); + } + }, }, - }, { - label: '姓名', - span: 12, - row: true, - prop: 'realName' - }, { - label: '用户名', - span: 12, - row: true, - prop: 'name' - }, { - label: '手机号', - span: 12, - row: true, - prop: 'phone' - }, { - label: '邮箱', - prop: 'email', - span: 12, - row: true, - }] + // { + // label: '姓名', + // span: 12, + // row: true, + // prop: 'realName' + // }, { + // label: '用户名', + // span: 12, + // row: true, + // prop: 'name' + // }, { + // label: '手机号', + // span: 12, + // row: true, + // prop: 'phone' + // }, { + // label: '邮箱', + // prop: 'email', + // span: 12, + // row: true, + // } + ], }, { - label: '修改密码', - prop: 'password', - column: [{ - label: '原密码', - span: 12, - row: true, - type: 'password', - prop: 'oldPassword' - }, { - label: '新密码', - span: 12, - row: true, - type: 'password', - prop: 'newPassword' - }, { - label: '确认密码', - span: 12, - row: true, - type: 'password', - prop: 'newPassword1' - }] - } + label: "修改密码", + prop: "password", + column: [ + { + label: "原密码", + span: 12, + row: true, + type: "password", + prop: "oldPassword", + }, + { + label: "新密码", + span: 12, + row: true, + type: "password", + prop: "newPassword", + }, + { + label: "确认密码", + span: 12, + row: true, + type: "password", + prop: "newPassword1", + }, + ], + }, ], -} +}; diff --git a/src/page/index/top/index.vue b/src/page/index/top/index.vue index f5ee413..38f14bd 100644 --- a/src/page/index/top/index.vue +++ b/src/page/index/top/index.vue @@ -65,7 +65,7 @@ --> - @@ -73,7 +73,7 @@ - + --> import(/* webpackChunkName: "views" */ "@/views/stationEdit/index"), }, + { + path: "/peak/editpeak", + name: "早晚高峰", + meta: { + i18n: "work", + }, + component: () => + import(/* webpackChunkName: "views" */ "@/views/peak/editpeak"), + }, ], }, ]; diff --git a/src/views/peak/editpeak.vue b/src/views/peak/editpeak.vue new file mode 100644 index 0000000..054dc51 --- /dev/null +++ b/src/views/peak/editpeak.vue @@ -0,0 +1,296 @@ + + + \ No newline at end of file diff --git a/src/views/peak/index.vue b/src/views/peak/index.vue new file mode 100644 index 0000000..bb50b37 --- /dev/null +++ b/src/views/peak/index.vue @@ -0,0 +1,378 @@ + + + + + + diff --git a/src/views/station/index.vue b/src/views/station/index.vue index daa2b57..c14019e 100644 --- a/src/views/station/index.vue +++ b/src/views/station/index.vue @@ -75,25 +75,26 @@ width="560" trigger="hover" effect="light" - >
信息展示
-
-
{{item.tips}}
-
-
-
{{item.red}}
-
-
-
{{item.green}}
-
-
-
{{item.yellow}}
+
+
+
{{item.tips}}
+
+
+
{{item.red}}
+
+
+
{{item.green}}
+
+
+
{{item.yellow}}
+
+ @@ -158,25 +159,25 @@ width="560" trigger="hover" effect="light" - >
信息展示
-
-
{{item.tips}}
-
-
-
{{item.red}}
-
-
-
{{item.green}}
-
-
-
{{item.yellow}}
+
+
+
{{item.tips}}
+
+
+
{{item.red}}
+
+
+
{{item.green}}
+
+
+
{{item.yellow}}
+
@@ -274,7 +275,7 @@ export default { }else{ this.active = '' } - },100) + },500) }, hidePopver2(val){ setTimeout(() =>{ @@ -289,7 +290,7 @@ export default { }else{ this.active1 = '' } - },200) + },500) }, @@ -309,7 +310,6 @@ export default { let ranm = []; this.stationArr.forEach( (item, index)=> { if(index < parseInt(this.stationArr.length / 2)){ - item.isShow = false; temp.push(item) }else{ ranm.push(item) @@ -325,9 +325,11 @@ export default {