|
@@ -36,8 +36,9 @@
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import { ref, onMounted, reactive, computed, watch, nextTick } from 'vue';
|
|
|
-import { dsutColumns, dsutDltColumns } from './comment.data';
|
|
|
+import { dsutColumns, dsutDltColumns, dustSwColumns } from './comment.data';
|
|
|
import { getInfoList, getAllFileList } from './comment.api';
|
|
|
+import { useGlobSetting } from '/@/hooks/setting';
|
|
|
const emit = defineEmits(['locate']);
|
|
|
const props = defineProps({
|
|
|
isShowAction: {
|
|
@@ -56,6 +57,7 @@ let selectedWorkplace = ref<string | null>(null);
|
|
|
let DefaultValue = ref<string | null>(null);
|
|
|
let createBy = ref<any[]>([]);
|
|
|
let createTime = ref<any[]>([]);
|
|
|
+const { sysOrgCode } = useGlobSetting();
|
|
|
let formSearch = reactive({
|
|
|
pageNum: 1,
|
|
|
pageSize: 1000,
|
|
@@ -67,15 +69,27 @@ watch(
|
|
|
() => props.isShowAction,
|
|
|
(value) => {
|
|
|
if (value) {
|
|
|
- dsutDltColumns.push({
|
|
|
+ const computedColumns = computed(() => {
|
|
|
+ switch (sysOrgCode) {
|
|
|
+ case 'sdmtjtbetmk':
|
|
|
+ return dsutColumns; // 布尔台对应的列配置
|
|
|
+ case 'sdmtjtdltmk':
|
|
|
+ return dsutDltColumns; // 大柳塔对应的列配置
|
|
|
+ case 'sdmtjtswmk':
|
|
|
+ return dustSwColumns; // 上湾对应的列配置
|
|
|
+ default:
|
|
|
+ return dsutColumns; // 默认情况下返回的列配置
|
|
|
+ }
|
|
|
+ });
|
|
|
+ computedColumns.value.push({
|
|
|
title: '操作',
|
|
|
dataIndex: 'operation',
|
|
|
width: 100,
|
|
|
align: 'center',
|
|
|
});
|
|
|
- if (columns.value.length == 0) columns.value = dsutDltColumns;
|
|
|
+ if (columns.value.length == 0) columns.value = computedColumns.value;
|
|
|
} else {
|
|
|
- if (columns.value.length == 0) columns.value = dsutDltColumns;
|
|
|
+ if (columns.value.length == 0) columns.value = computedColumns.value;
|
|
|
}
|
|
|
},
|
|
|
{ immediate: true }
|