From 2f5ed4824f5188474c5109dc2f55a150deff4c58 Mon Sep 17 00:00:00 2001 From: wxc <191104855@qq.com> Date: Mon, 16 Dec 2024 18:36:16 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=20=E9=A3=8E=E9=99=A9=E4=BA=BA=E5=91=98?= =?UTF-8?q?=E5=BA=93=E4=BC=98=E5=8C=96=E8=AF=A6=E6=83=85=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=20fix:=20=E4=BC=98=E5=8C=96=E6=97=A0=E6=8A=95=E8=AF=89?= =?UTF-8?q?=E4=BA=BA=E4=BF=A1=E6=81=AF=E5=8F=8A=E8=81=94=E7=B3=BB=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E7=9A=84=E4=B8=8D=E5=B1=95=E7=A4=BA=E8=AF=A5=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=20fix:=20=E4=BF=AE=E5=A4=8D=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E8=B6=85=E5=B8=82=E5=88=86=E9=A1=B5=E6=97=B6=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=88=B0=E5=85=B6=E4=BB=96=E7=B1=BB=E5=9E=8B=EF=BC=8C=E6=97=A0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=B1=95=E7=A4=BA=E7=9A=84BUG=20fit:=20?= =?UTF-8?q?=E9=A3=8E=E9=99=A9=E9=97=AE=E9=A2=98=E5=BD=95=E5=85=A5=E6=97=B6?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E9=87=8D=E6=96=B0=E8=AE=A1=E7=AE=97=E5=88=86?= =?UTF-8?q?=E5=80=BC=E7=9A=84=E6=8E=A5=E5=8F=A3=20fit:=20=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=AE=A1=E7=90=86-=E6=96=B0=E5=A2=9E=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/sensitivePerception/model.ts | 6 ++ src/api/system/user.ts | 9 +- src/components/negative/distribute.vue | 3 +- src/views/sensitivePerception/Model.vue | 100 +++++++++-------- .../sensitivePerception/RiskPersonnel.vue | 22 +++- src/views/system/Police.vue | 101 ++++++++++++------ src/views/system/User.vue | 95 ++++++++++++---- src/views/work/Done.vue | 4 +- src/views/work/Query.vue | 4 +- src/views/work/Todo.vue | 4 +- 10 files changed, 243 insertions(+), 105 deletions(-) diff --git a/src/api/sensitivePerception/model.ts b/src/api/sensitivePerception/model.ts index d081f1a..3b19fa3 100644 --- a/src/api/sensitivePerception/model.ts +++ b/src/api/sensitivePerception/model.ts @@ -7,6 +7,12 @@ export function listModel(query) { }); } +export function getModel(id) { + return request.get({ + url: '/models/' + id + }); +} + export function treeModel() { return request.get({ url: '/models/tree' diff --git a/src/api/system/user.ts b/src/api/system/user.ts index 0b551e0..c04b1b4 100644 --- a/src/api/system/user.ts +++ b/src/api/system/user.ts @@ -7,9 +7,16 @@ export function listUser(query) { }); } -export function updateUser(body) { +export function addUser(body) { return request.post({ url: '/user', body }); +} + +export function updateUser(body) { + return request.put({ + url: '/user', + body + }); } \ No newline at end of file diff --git a/src/components/negative/distribute.vue b/src/components/negative/distribute.vue index 2e66250..d26182e 100644 --- a/src/components/negative/distribute.vue +++ b/src/components/negative/distribute.vue @@ -32,7 +32,6 @@ filterable v-model="form.departId" @change="handleSelectDepart" - @node-click="(node) => form.departName = node.shortName" />

请根据问题信息的内容,再次确认涉及单位是否正确

@@ -155,7 +154,7 @@ const rules = { function handleSelectDepart(val: string) { form.value.departName = departs.value.filter( (item) => item.id === val - )[0].name; + )[0].shortName; } async function validate() { diff --git a/src/views/sensitivePerception/Model.vue b/src/views/sensitivePerception/Model.vue index e80f4e2..2113260 100644 --- a/src/views/sensitivePerception/Model.vue +++ b/src/views/sensitivePerception/Model.vue @@ -630,7 +630,7 @@ - +
@@ -674,16 +674,14 @@ {{ activeModel.createDepartName || "/" }}
- -
+
- {{ - modelDataType === '1'? form.modelType === "2" ? "预警处置" : "预警问题" : '提醒通知' - }} + {{ form.modelDataType === "1" + ? form.modelType === "1" + ? "预警问题" + : "预警处置" + : "提醒通知" }}
-
- -
{{ @@ -693,42 +691,51 @@ ) }}
-
- - +
+
+ +
+
+ + + {{ + getDictLable( + dict.distributionCycle, + activeModel.distributionCycle + ) + }} + {{ + activeModel.distributionCycleTime + }} + +
+
+ + {{ + getDictLable(dict.timeLimit, activeModel.timeLimit) + }} +
+
+ {{ getDictLable( - dict.distributionCycle, - activeModel.distributionCycle + dict.distributionFlow, + activeModel.distributionFlow ) }} - {{ - activeModel.distributionCycleTime +
+
+ + {{ + getDictLable( + dict.approvalFlow, + activeModel.approvalFlow + ) }} - -
-
- - {{ - getDictLable(dict.timeLimit, activeModel.timeLimit) - }} -
-
- - {{ - getDictLable( - dict.distributionFlow, - activeModel.distributionFlow - ) - }} -
-
- - {{ - getDictLable(dict.approvalFlow, activeModel.approvalFlow) - }} +
+
{{ @@ -749,7 +756,7 @@

预警记录

-
+