From 8ac1c0d0274e44b246ebdd6677b930bc1780b927 Mon Sep 17 00:00:00 2001 From: liujun Date: Mon, 23 Sep 2024 16:23:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AB=E9=A1=B9=E4=BD=9C=E4=B8=9A=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E7=AB=AF-=E7=9B=B8=E5=85=B3=E6=96=B9=E7=AB=AF?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E7=BB=9F=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 6 + pages/eight_assignments/hot_work/apply.vue | 73 +++++--- .../hot_work/select_operator.vue | 174 ++++++++++++++++++ pages/eight_assignments/to_do_list.vue | 10 +- static/icon-apps/i13.png | Bin 0 -> 5975 bytes static/icon-apps/i14.png | Bin 0 -> 6724 bytes static/icon-apps/i15.png | Bin 0 -> 8066 bytes utils/useFormValidate.js | 15 ++ 8 files changed, 249 insertions(+), 29 deletions(-) create mode 100644 pages/eight_assignments/hot_work/select_operator.vue create mode 100644 static/icon-apps/i13.png create mode 100644 static/icon-apps/i14.png create mode 100644 static/icon-apps/i15.png create mode 100644 utils/useFormValidate.js diff --git a/pages.json b/pages.json index c41097d..2eb6810 100644 --- a/pages.json +++ b/pages.json @@ -226,6 +226,12 @@ "navigationBarTitleText": "动火作业申请" } }, + { + "path": "pages/eight_assignments/hot_work/select_operator", + "style": { + "navigationBarTitleText": "动火作业申请" + } + }, { "path": "pages/eight_assignments/hot_work/gas/name", "style": { diff --git a/pages/eight_assignments/hot_work/apply.vue b/pages/eight_assignments/hot_work/apply.vue index d9d8a26..d984d13 100644 --- a/pages/eight_assignments/hot_work/apply.vue +++ b/pages/eight_assignments/hot_work/apply.vue @@ -8,6 +8,9 @@ + + + @@ -64,7 +67,7 @@ - + @@ -87,7 +90,7 @@ + + diff --git a/pages/eight_assignments/to_do_list.vue b/pages/eight_assignments/to_do_list.vue index 4f4dc4c..b5c67aa 100644 --- a/pages/eight_assignments/to_do_list.vue +++ b/pages/eight_assignments/to_do_list.vue @@ -21,7 +21,7 @@ - + + + diff --git a/static/icon-apps/i13.png b/static/icon-apps/i13.png new file mode 100644 index 0000000000000000000000000000000000000000..47c253d23475578b0cfb2db31b55620f2dfa1e6a GIT binary patch literal 5975 zcmaJ_c|4SD+a60YLe}gVWDPT83}dnz6B@FHqKq-dK9j|b_yV+nXuJk}w=>pfl-0HBj_Hn$>K z8Dfw)qPsly4@TbK-SdPE0H|vCdtz~}coN7SPjL276Wyq976mywsEJy_4Ize}I(R2% zy*u7`vpYuSxI3;m6$eobb&#q*^2C8Vo`ePYySsV#ApO-u|MH7G+5a(vML~Z-NUmz4 z{}N?oXbjRJdgDQGc_ldcld{r!lZ zMDuoVM4F<|f5$pGsfjv~NS;VA*w4>T-VY{E^d^9zDk>^qhyqwaLGA=0=M&&T!urd3 z_=x@E0fqO$c{_WOoQWQwKOV96#M>k_(G#WrO2OUJ(D2`mJ$(Ky)Je&}{#Z{iR2~9$ zcmI>uUuYkaDgHk){wvzYJirqVHpTl8Z+qiT`r#<{5Ba2a|9_xAz!Nn{6cKmZ9q&QX zN2!UPSmYg?9gqr&iZERmR7n{E(S<^F(FiTHE*b)Zq2Rh&N-#L=AFjTK4+-mm!~er| z{tp-a|8kK!-gqpD=xt6Uy8Y8VV<#es=;K861nKDf>6Qve%F@}xf#~NW{inQttHpae z`{EtY-b8oMU-dyc{}&C)5G|O33R)S4K>ej(TM>>zBXrRyMVOWf9D)}8o9pmja{rr) z_&>Se6EWaF&HZ1^{>OAOL4UUY9^I3}zlR_1aWe7VC!-C4vd{tmoL%}TEpz|zRa@5* zTV3v(RU019<*d#ZzBXF!xq(DZk9GCH+@L+2 z<8aU6uKUbW#m;2|P5r!F#Q_Zsr%)kUMCWF^(kK|MO; zq~>Xjg2=|Sy@}`;BwLY$eB_69uc9#UqQ-RCo@FxD*XJCtV$h)qkAHn04lE~nC(FLFKsgILP*9tntpYGb! z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9b24c8 --- /dev/null +++ b/utils/useFormValidate.js @@ -0,0 +1,15 @@ +const useFormValidate = (ref, message = "请补全必填项!") => { + return new Promise((resolve) => { + ref.value + .validate() + .then(() => { + resolve(true); + }) + .catch(() => { + // eslint-disable-next-line prefer-promise-reject-errors + resolve(false); + uni.$u.toast(message); + }); + }); +}; +export default useFormValidate;