From e52521dc7a3e52cf53e2ab2b4e1c71cfe0b4a10d Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Fri, 15 Aug 2025 16:48:28 +0800
Subject: [PATCH] feat:更换接口
---
src/views/tickets/ticket.vue | 39 ++++++++++++++++++++-------------------
1 files changed, 20 insertions(+), 19 deletions(-)
diff --git a/src/views/tickets/ticket.vue b/src/views/tickets/ticket.vue
index c5febfd..72afd5c 100644
--- a/src/views/tickets/ticket.vue
+++ b/src/views/tickets/ticket.vue
@@ -365,7 +365,7 @@
</el-form>
<template #footer>
<div class="dialog-footer">
-
+
<el-button type="danger" :loading="submitLoading" @click="submitForm">发布</el-button>
<el-button type="infoprimary" plain :loading="draftLoading" @click="saveDraft"
>存草稿</el-button
@@ -477,7 +477,7 @@
<el-table-column prop="label2" label="基本信息" width="150">
<template #default="{ row }">
<!-- 添加必填星号的标签 -->
-
+
<span
v-if="
currentDetail.status === 0 &&
@@ -493,8 +493,8 @@
<el-table-column>
<template #default="{ row }">
<!-- 修改工单类型和工单内容的显示 -->
-
-
+
+
<template
v-if="
currentDetail.status === 0 &&
@@ -579,7 +579,7 @@
<!-- 图片和地图部分 -->
<div class="media-section">
<el-row :gutter="20">
-
+
<el-col :span="12">
<div class="media-box">
<div class="media-title">事件图片</div>
@@ -646,10 +646,10 @@
placement="top"
title=""
trigger="click"
-
+
>
<template #reference>
- <img @click.stop="handleQRCode(currentDetail)" class="QRCodeImg" src="@/assets/images/dataCenter/positionicon.png" alt="" title="事件导航" />
+ <img @click.stop="handleQRCode(currentDetail)" class="QRCodeImg" src="@/assets/images/dataCenter/qrCode.svg" alt="" title="事件导航" />
</template>
<div class="qrcode-content">
<CreateQRcode v-if="currentDetail.showQR && detailVisible" :latAndLon="currentDetail.location"></CreateQRcode>
@@ -662,8 +662,8 @@
</template>
</div>
</el-col>
-
-
+
+
</el-row>
</div>
</div>
@@ -752,7 +752,7 @@
<el-form :model="dispatchForm" :rules="dispatchRules" ref="dispatchForm" label-width="100px">
<el-form-item label="选择部门" prop="department">
<el-select
-
+
v-model="dispatchForm.department"
placeholder="请选择部门"
@change="handleDispatchDepartmentChange"
@@ -989,9 +989,9 @@
// { label: "序号", prop: "id", width: 70 },
{ label: '工单编号', prop: 'orderNumber', width: 170 },
{ label: '工单名称', prop: 'orderName', width: 150, overHidden: true, tooltip: true },
- { label: '所属单位', prop: 'department',width: 150, overHidden: true, tooltip: true },
+ { label: '所属单位', prop: 'department', overHidden: true, tooltip: true },
{ label: '发起时间', prop: 'startTime', width: 160 },
- { label: '关联算法', prop: 'aiType', width: 150, overHidden: true, tooltip: true },
+ { label: '关联算法', prop: 'aiType', overHidden: true, tooltip: true },
{
label: '工单类型',
prop: 'type',
@@ -1122,7 +1122,7 @@
},
mounted() {
-
+
const href = this.$route.href;
if (this.$route?.query?.status !== undefined && this.$route?.query?.status !== null) {
this.filters.status = this.$route?.query?.status + '';
@@ -1317,7 +1317,7 @@
value2: filteredFields[i + 1]?.value || (filteredFields[i + 1]?.label ? '暂无数据' : ''),
});
}
-
+
return formattedFields;
},
@@ -1584,7 +1584,7 @@
}
const matchedCategory = this.allAlgorithms.find(
- category => category.dict_key === typeValue
+ category => category.dict_key === typeValue
);
if (!matchedCategory || !matchedCategory.algorithms || matchedCategory.algorithms.length === 0) {
@@ -1596,7 +1596,7 @@
// console.log('matchedCategory',matchedCategory);
this.algorithms = matchedCategory.algorithms.map(algo => ({
- label: algo.dict_value,
+ label: algo.dict_value,
value: algo.dict_key,
dict_key: algo.dict_key,
dict_value: algo.dict_value
@@ -2086,7 +2086,7 @@
this.detailVisible = true;
this.handleTypeChange(this.currentDetail.type)
console.log('this.currentDetail.location',this.currentDetail.location);
-
+
this.$nextTick(() => {
if (this.$refs.MapContainer && this.$refs.MapContainer.initAddEntity) {
this.$refs.MapContainer.initAddEntity('point', this.currentDetail.location);
@@ -2391,7 +2391,7 @@
this.dispatchDialogVisible = true;
console.log('受理',this.currentDetail);
-
+
},
hasProcessingBtnPermission() {
// undefined 或 false 都返回 false,只有 true 返回 true
@@ -2432,7 +2432,7 @@
}
this.dispatchLoading = true;
console.log('派发成功',this.currentDetail);
-
+
this.$refs.dispatchForm.validate(async valid => {
if (valid) {
try {
@@ -3447,6 +3447,7 @@
width: 18px;
height: 18px;
cursor: pointer;
+ padding-bottom: 1px;
}
}
--
Gitblit v1.9.3