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 @@

预警记录

-
+