glj-代码提交
This commit is contained in:
parent
129b6cd5ac
commit
86003276d5
|
@ -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 => {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue