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; }; // 分页改变