暂存修改审核加入地图与其他信息修改
This commit is contained in:
parent
7ea4fa8598
commit
c8c3e40c54
|
@ -2,7 +2,7 @@
|
||||||
<div class="system-role-container layout-padding">
|
<div class="system-role-container layout-padding">
|
||||||
<div class="system-role-padding layout-padding-auto layout-padding-view">
|
<div class="system-role-padding layout-padding-auto layout-padding-view">
|
||||||
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick" style="margin-left: 20px">
|
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick" style="margin-left: 20px">
|
||||||
<el-tab-pane label="Not reviewed" name="first">
|
<el-tab-pane label="unchecked" name="first">
|
||||||
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%">
|
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%">
|
||||||
<el-table-column type="index" label="ID" width="50" />
|
<el-table-column type="index" label="ID" width="50" />
|
||||||
<el-table-column prop="username" label="User name" show-overflow-tooltip></el-table-column>
|
<el-table-column prop="username" label="User name" show-overflow-tooltip></el-table-column>
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
:total="state.tableData.total">
|
:total="state.tableData.total">
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="Reviewed" name="second">
|
<el-tab-pane label="checked" name="second">
|
||||||
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%">
|
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%">
|
||||||
<el-table-column type="index" label="ID" width="50" />
|
<el-table-column type="index" label="ID" width="50" />
|
||||||
<el-table-column prop="username" label="User name" show-overflow-tooltip></el-table-column>
|
<el-table-column prop="username" label="User name" show-overflow-tooltip></el-table-column>
|
||||||
|
@ -113,7 +113,22 @@
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</div>
|
||||||
<RoleDialog ref="roleDialogRef" @refresh="getTableData()" />
|
<el-dialog
|
||||||
|
v-model="state.dialogVisible"
|
||||||
|
title="Tips"
|
||||||
|
width="30%"
|
||||||
|
:before-close="handleClose"
|
||||||
|
>
|
||||||
|
<Map style="height:400px ; width:600px"></Map>
|
||||||
|
<template #footer>
|
||||||
|
<span class="dialog-footer">
|
||||||
|
<el-button @click="dialogVisible = false">Cancel</el-button>
|
||||||
|
<el-button type="primary" @click="dialogVisible = false">
|
||||||
|
Confirm
|
||||||
|
</el-button>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -122,6 +137,9 @@ import { defineAsyncComponent, reactive, onMounted, ref } from 'vue';
|
||||||
import { ElMessageBox, ElMessage} from 'element-plus';
|
import { ElMessageBox, ElMessage} from 'element-plus';
|
||||||
import {getList ,review } from '/@/api/disasterInfo/index';
|
import {getList ,review } from '/@/api/disasterInfo/index';
|
||||||
import { getDictionary } from '/@/api/system/dictbiz';
|
import { getDictionary } from '/@/api/system/dictbiz';
|
||||||
|
//引入地图
|
||||||
|
import Map from '/@/components/Map.vue';
|
||||||
|
|
||||||
|
|
||||||
const activeName = ref('first');
|
const activeName = ref('first');
|
||||||
|
|
||||||
|
@ -129,12 +147,11 @@ const handleClick = (tab ,event) => {
|
||||||
state.selectName=tab.props.name;
|
state.selectName=tab.props.name;
|
||||||
getTableData();
|
getTableData();
|
||||||
};
|
};
|
||||||
// 引入组件
|
|
||||||
const RoleDialog = defineAsyncComponent(() => import('/@/views/system/role/dialog.vue'));
|
|
||||||
|
|
||||||
// 定义变量内容
|
// 定义变量内容
|
||||||
const roleDialogRef = ref();
|
const roleDialogRef = ref();
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
|
dialogVisible: false,
|
||||||
tableData: {
|
tableData: {
|
||||||
data: [],
|
data: [],
|
||||||
total: 0,
|
total: 0,
|
||||||
|
@ -171,28 +188,29 @@ const onHandleSizeChange = (val) => {
|
||||||
};
|
};
|
||||||
const onOpenEditRole = (type, row) => {
|
const onOpenEditRole = (type, row) => {
|
||||||
//使用英语提示用户是否进行审核
|
//使用英语提示用户是否进行审核
|
||||||
ElMessageBox.confirm('Are you sure you want to review this data ?', 'Tips', {
|
// ElMessageBox.confirm('Are you sure you want to review this data ?', 'Tips', {
|
||||||
confirmButtonText: 'OK',
|
// confirmButtonText: 'OK',
|
||||||
cancelButtonText: 'Cancel',
|
// cancelButtonText: 'Cancel',
|
||||||
type: 'warning',
|
// type: 'warning',
|
||||||
})
|
// })
|
||||||
.then(() => {
|
// .then(() => {
|
||||||
//审核通过
|
// //审核通过
|
||||||
review(row.id).then(() => {
|
// review(row.id,state.tableData.loading).then(() => {
|
||||||
ElMessage({
|
// ElMessage({
|
||||||
type: 'success',
|
// type: 'success',
|
||||||
message: 'Review success!',
|
// message: 'Review success!',
|
||||||
});
|
// });
|
||||||
getTableData();
|
// getTableData();
|
||||||
});
|
// });
|
||||||
})
|
// })
|
||||||
.catch(() => {
|
// .catch(() => {
|
||||||
//审核不通过
|
// //审核不通过
|
||||||
ElMessage({
|
// ElMessage({
|
||||||
type: 'info',
|
// type: 'info',
|
||||||
message: 'Review failed!',
|
// message: 'Review failed!',
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
|
state.dialogVisible = true;
|
||||||
|
|
||||||
};
|
};
|
||||||
// 分页改变
|
// 分页改变
|
||||||
|
|
Loading…
Reference in New Issue