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 0000000..47c253d Binary files /dev/null and b/static/icon-apps/i13.png differ diff --git a/static/icon-apps/i14.png b/static/icon-apps/i14.png new file mode 100644 index 0000000..7a882b6 Binary files /dev/null and b/static/icon-apps/i14.png differ diff --git a/static/icon-apps/i15.png b/static/icon-apps/i15.png new file mode 100644 index 0000000..0b2a1ad Binary files /dev/null and b/static/icon-apps/i15.png differ diff --git a/utils/useFormValidate.js b/utils/useFormValidate.js new file mode 100644 index 0000000..c9b24c8 --- /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;