glj-代码提交

This commit is contained in:
glj 2023-05-05 16:08:58 +08:00
parent 129b6cd5ac
commit 86003276d5
2 changed files with 5 additions and 1 deletions

View File

@ -39,6 +39,7 @@
import { onMounted, reactive, computed, defineProps, defineEmits } from "vue";
import { getList } from "/@/api/system/dictbiz.js";
import { getPage } from "/@/api/disasterInfo/index.js";
import { Session } from '/@/utils/storage';
//
const emit = defineEmits(["click"]);
//
@ -84,6 +85,10 @@ const getDictBizData = () => {
//
const getDisasterTable = () => {
convert();
let userData = Session.get('userInfo');
console.log(userData,"userDatauserData");
state.search.chiefIdEquals = userData.id;
state.search.roleName = userData.roles[0];
getPage(state.disasterData.param.pageNum, state.disasterData.param.pageSize, state.search).then(res => {
state.disasterData.data = res.records;
state.disasterData.data.forEach(item => {

View File

@ -19,7 +19,6 @@
<script setup>
import {reactive, ref} from "vue";
import {addAdmin} from '/@/api/response/administrator.js';
import {auditData} from '/@/api/response/adminManager.js';
import {ElMessage} from "element-plus";
const adminAddFormRef = ref();