|
@@ -30,7 +30,20 @@ import { initFrontEndControlRoutes } from '@/router/frontEnd';
|
|
|
import { initBackEndControlRoutes } from '@/router/backEnd';
|
|
|
import { VxeUI, VxeButton } from 'vxe-pc-ui';
|
|
|
import MenuSvgIcon from '@/views/system/menu/components/Menu-svgIcon.vue';
|
|
|
-import {getTokenByUrl} from "@/api/home";
|
|
|
+import { getTokenByUrl } from '@/api/home';
|
|
|
+
|
|
|
+// 引入组件
|
|
|
+const LockScreen = defineAsyncComponent(() => import('@/layout/lockScreen/index.vue'));
|
|
|
+const SetTings = defineAsyncComponent(() => import('@/layout/navBars/breadcrumb/setings.vue'));
|
|
|
+const CloseFull = defineAsyncComponent(() => import('@/layout/navBars/breadcrumb/closeFull.vue'));
|
|
|
+
|
|
|
+const route = useRoute();
|
|
|
+const stores = useTagsViewRoutes();
|
|
|
+const storesThemeConfig = useThemeConfig();
|
|
|
+const { themeConfig } = storeToRefs(storesThemeConfig);
|
|
|
+const storesKeepALiveNames = useKeepALiveNames();
|
|
|
+const storesTagsViewRoutes = useTagsViewRoutes();
|
|
|
+const { tagsViewRoutes } = storeToRefs(storesTagsViewRoutes);
|
|
|
|
|
|
// 式化日期,默认 yyyy-MM-dd HH:mm:ss
|
|
|
VxeUI.formats.add('formatDate', {
|
|
@@ -38,6 +51,19 @@ VxeUI.formats.add('formatDate', {
|
|
|
return formatDate(cellValue, format || 'YYYY-mm-dd HH:MM:SS');
|
|
|
},
|
|
|
});
|
|
|
+const exportTips = ref('导出已留痕,禁止泄露工单信息,否则将依法依规追究责任。您确定导出当前页数据?');
|
|
|
+const exportAllTips = ref('导出已留痕,禁止泄露工单信息,否则将依法依规追究责任。您确定要导出全部数据?');
|
|
|
+// 判断地市
|
|
|
+/*if (themeConfig.value.appScope === 'YiBin') {
|
|
|
+ exportTips.value = '您确定导出当前页数据?';
|
|
|
+ exportAllTips.value = '您确定要导出全部数据?';
|
|
|
+} else if (themeConfig.value.appScope === 'ZiGong') {
|
|
|
+ exportTips.value = '您确定导出当前页数据?';
|
|
|
+ exportAllTips.value = '您确定要导出全部数据?';
|
|
|
+} else if (themeConfig.value.appScope === 'LuZhou') {
|
|
|
+ exportTips.value = '导出已留痕,禁止泄露工单信息,否则将依法依规追究责任。您确定导出当前页数据?';
|
|
|
+ exportAllTips.value = '导出已留痕,禁止泄露工单信息,否则将依法依规追究责任。您确定要导出全部数据?';
|
|
|
+}*/
|
|
|
// 创建一个简单的工具栏-右侧工具渲染
|
|
|
VxeUI.renderer.add('exportCurrent', {
|
|
|
renderToolbarTool(renderOpts: any, params: any) {
|
|
@@ -66,7 +92,7 @@ VxeUI.renderer.add('exportCurrent', {
|
|
|
};
|
|
|
})
|
|
|
.filter((item: any) => item.prop && item.name && !['seq', 'checkbox'].includes(item.type));
|
|
|
- ElMessageBox.confirm(`工单已留痕,禁止泄露工单信息,否则将依法依规追究责任。您确定导出当前页数据?`, '提示', {
|
|
|
+ ElMessageBox.confirm(`${exportTips.value}`, '提示', {
|
|
|
confirmButtonText: '确认',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning',
|
|
@@ -159,7 +185,7 @@ VxeUI.renderer.add('exportAll', {
|
|
|
};
|
|
|
}
|
|
|
|
|
|
- ElMessageBox.confirm(`工单已留痕,禁止泄露工单信息,否则将依法依规追究责任。您确定要导出全部数据?`, '提示', {
|
|
|
+ ElMessageBox.confirm(`${exportAllTips.value}`, '提示', {
|
|
|
confirmButtonText: '确认',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning',
|
|
@@ -204,19 +230,6 @@ VxeUI.renderer.add('exportAll', {
|
|
|
},
|
|
|
});
|
|
|
|
|
|
-// 引入组件
|
|
|
-const LockScreen = defineAsyncComponent(() => import('@/layout/lockScreen/index.vue'));
|
|
|
-const SetTings = defineAsyncComponent(() => import('@/layout/navBars/breadcrumb/setings.vue'));
|
|
|
-const CloseFull = defineAsyncComponent(() => import('@/layout/navBars/breadcrumb/closeFull.vue'));
|
|
|
-
|
|
|
-const route = useRoute();
|
|
|
-const stores = useTagsViewRoutes();
|
|
|
-const storesThemeConfig = useThemeConfig();
|
|
|
-const { themeConfig } = storeToRefs(storesThemeConfig);
|
|
|
-const storesKeepALiveNames = useKeepALiveNames();
|
|
|
-const storesTagsViewRoutes = useTagsViewRoutes();
|
|
|
-const { tagsViewRoutes } = storeToRefs(storesTagsViewRoutes);
|
|
|
-
|
|
|
// 设置锁屏时组件显示隐藏
|
|
|
const setLockScreen = computed(() => {
|
|
|
// 防止锁屏后,刷新出现不相关界面
|
|
@@ -357,7 +370,7 @@ onMounted(() => {
|
|
|
console.log(index, data);
|
|
|
});*/
|
|
|
|
|
|
- /* // 通过url判断单点登录
|
|
|
+ /* // 通过url判断单点登录
|
|
|
// 获取url特殊参数 实现登录跳转
|
|
|
// 单点登录进来的参数
|
|
|
const urlParams = new URLSearchParams(window.location.search);
|