From c8c3e40c54b6ebc1bd651c887bd3ee7530983287 Mon Sep 17 00:00:00 2001
From: yyhouc <792163605@qq.com>
Date: Wed, 12 Apr 2023 17:09:51 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98=E4=BF=AE=E6=94=B9=E5=AE=A1?=
=?UTF-8?q?=E6=A0=B8=E5=8A=A0=E5=85=A5=E5=9C=B0=E5=9B=BE=E4=B8=8E=E5=85=B6?=
=?UTF-8?q?=E4=BB=96=E4=BF=A1=E6=81=AF=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../responseManagement/userResponse/index.vue | 72 ++++++++++++-------
1 file changed, 45 insertions(+), 27 deletions(-)
diff --git a/src/views/responseManagement/userResponse/index.vue b/src/views/responseManagement/userResponse/index.vue
index b4604db..f537fef 100644
--- a/src/views/responseManagement/userResponse/index.vue
+++ b/src/views/responseManagement/userResponse/index.vue
@@ -2,7 +2,7 @@
-
+
@@ -57,7 +57,7 @@
:total="state.tableData.total">
-
+
@@ -113,7 +113,22 @@
-
+
+
+
+
+
+
@@ -122,6 +137,9 @@ import { defineAsyncComponent, reactive, onMounted, ref } from 'vue';
import { ElMessageBox, ElMessage} from 'element-plus';
import {getList ,review } from '/@/api/disasterInfo/index';
import { getDictionary } from '/@/api/system/dictbiz';
+//引入地图
+import Map from '/@/components/Map.vue';
+
const activeName = ref('first');
@@ -129,12 +147,11 @@ const handleClick = (tab ,event) => {
state.selectName=tab.props.name;
getTableData();
};
-// 引入组件
-const RoleDialog = defineAsyncComponent(() => import('/@/views/system/role/dialog.vue'));
// 定义变量内容
const roleDialogRef = ref();
const state = reactive({
+ dialogVisible: false,
tableData: {
data: [],
total: 0,
@@ -171,28 +188,29 @@ const onHandleSizeChange = (val) => {
};
const onOpenEditRole = (type, row) => {
//使用英语提示用户是否进行审核
- ElMessageBox.confirm('Are you sure you want to review this data ?', 'Tips', {
- confirmButtonText: 'OK',
- cancelButtonText: 'Cancel',
- type: 'warning',
- })
- .then(() => {
- //审核通过
- review(row.id).then(() => {
- ElMessage({
- type: 'success',
- message: 'Review success!',
- });
- getTableData();
- });
- })
- .catch(() => {
- //审核不通过
- ElMessage({
- type: 'info',
- message: 'Review failed!',
- });
- });
+ // ElMessageBox.confirm('Are you sure you want to review this data ?', 'Tips', {
+ // confirmButtonText: 'OK',
+ // cancelButtonText: 'Cancel',
+ // type: 'warning',
+ // })
+ // .then(() => {
+ // //审核通过
+ // review(row.id,state.tableData.loading).then(() => {
+ // ElMessage({
+ // type: 'success',
+ // message: 'Review success!',
+ // });
+ // getTableData();
+ // });
+ // })
+ // .catch(() => {
+ // //审核不通过
+ // ElMessage({
+ // type: 'info',
+ // message: 'Review failed!',
+ // });
+ // });
+ state.dialogVisible = true;
};
// 分页改变