update
1.更新im(专业人员/操作人员单点登陆,因为im模块)
This commit is contained in:
@@ -76,6 +76,7 @@
|
||||
import { imAddressSrc } from '/@/utils/imAddressSrc';
|
||||
import { message } from 'ant-design-vue';
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
const { createConfirm } = useMessage();
|
||||
|
||||
const stat = ref<Object>({ emeResRate: 0, seriousRate: 0 });
|
||||
@@ -194,6 +195,9 @@
|
||||
case 'permissionError':
|
||||
message.error(result.msg);
|
||||
break;
|
||||
case 'kickOut':
|
||||
useUserStore().passiveLogout();
|
||||
break;
|
||||
}
|
||||
};
|
||||
const closeLoading = () => {
|
||||
|
||||
@@ -169,6 +169,7 @@
|
||||
|
||||
import { useRoute } from 'vue-router';
|
||||
import { message } from 'ant-design-vue';
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
const props = defineProps({
|
||||
imProps: Object,
|
||||
});
|
||||
@@ -222,8 +223,12 @@
|
||||
case 'permissionError':
|
||||
message.error(result.msg);
|
||||
break;
|
||||
case 'kickOut':
|
||||
useUserStore().passiveLogout();
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
const closeLoading = () => {
|
||||
loadingVisible.value = false;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import { BasicColumn, FormSchema } from '/@/components/Table';
|
||||
|
||||
export const columns: BasicColumn[] = [];
|
||||
|
||||
export const searchScheme: FormSchema[] = [];
|
||||
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<BasicTable @register="registerTable"> </BasicTable>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { BasicTable } from '/@/components/Table';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { list } from '/@/views/healthMonitor/healMonitorManage/monitorToll/toolManagement/toolManagement.api';
|
||||
import { columns, searchScheme } from '/@/views/healthMonitor/anY/cottage/cottage.data';
|
||||
const { tableContext } = useListPage({
|
||||
tableProps: {
|
||||
api: list,
|
||||
columns,
|
||||
immediate: true,
|
||||
canResize: false,
|
||||
showIndexColumn: true,
|
||||
formConfig: {
|
||||
schemas: searchScheme,
|
||||
autoSubmitOnEnter: true,
|
||||
showAdvancedButton: false,
|
||||
fieldMapToNumber: [],
|
||||
fieldMapToTime: [],
|
||||
},
|
||||
actionColumn: {
|
||||
width: 200,
|
||||
fixed: 'right',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
const [registerTable, {}, {}] = tableContext;
|
||||
</script>
|
||||
<style scoped lang="less"></style>
|
||||
@@ -0,0 +1,5 @@
|
||||
import { BasicColumn, FormSchema } from '/@/components/Table';
|
||||
|
||||
export const columns: BasicColumn[] = [];
|
||||
|
||||
export const searchScheme: FormSchema[] = [];
|
||||
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<BasicTable @register="registerTable"> </BasicTable>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { BasicTable } from '/@/components/Table';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { list } from '/@/views/healthMonitor/healMonitorManage/monitorToll/toolManagement/toolManagement.api';
|
||||
import { columns, searchScheme } from '/@/views/healthMonitor/anY/physical/physical.data';
|
||||
const { tableContext } = useListPage({
|
||||
tableProps: {
|
||||
api: list,
|
||||
columns,
|
||||
immediate: true,
|
||||
canResize: false,
|
||||
showIndexColumn: true,
|
||||
formConfig: {
|
||||
schemas: searchScheme,
|
||||
autoSubmitOnEnter: true,
|
||||
showAdvancedButton: false,
|
||||
fieldMapToNumber: [],
|
||||
fieldMapToTime: [],
|
||||
},
|
||||
actionColumn: {
|
||||
width: 200,
|
||||
fixed: 'right',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
const [registerTable, {}, {}] = tableContext;
|
||||
</script>
|
||||
<style scoped lang="less"></style>
|
||||
Reference in New Issue
Block a user