diff --git a/src/views/modules/inquiry/inquiryApplication.vue b/src/views/modules/inquiry/inquiryApplication.vue index 8417a9b..445c008 100644 --- a/src/views/modules/inquiry/inquiryApplication.vue +++ b/src/views/modules/inquiry/inquiryApplication.vue @@ -474,7 +474,7 @@ import {EventBus} from "../../../main"; import {partInformationSearch} from "../../../api/part/partInformation"; import quotationUpload from "../quote/quotation_upload.vue"; import OssComponents from "../oss/ossComponents.vue"; -import {updateColumnSize} from "../../../api/table"; +import {getTableDefaultListLanguage, getTableUserListLanguage, updateColumnSize} from "../../../api/table"; export default { computed: { @@ -1475,6 +1475,8 @@ export default { }, created() { this.getSiteAndBuByUserName() + // 动态列 + this.getTableUserColumn(this.$route.meta.menuId+'table1',1) this.getDataList() }, methods: { @@ -2587,7 +2589,46 @@ export default { }, navigateToMes(id){ this.$router.push({ path: 'inquiry-inquiryDetail', query: { id : id} }); - } + }, + // 动态列开始 获取 用户保存的 格式列 + async getTableUserColumn(tableId, columnId) { + let queryTableUser = { + userId: this.$store.state.user.name, + functionId: this.$route.meta.menuId, + tableId: tableId, + status: true, + languageCode: this.$i18n.locale + } + await getTableUserListLanguage(queryTableUser).then(({data}) => { + if (data.rows.length > 0) { + switch (columnId) { + case 1: + this.columnList = data.rows + break; + } + } else { + this.getColumnList(tableId, columnId) + } + }) + }, + + // 获取 tableDefault 列 + async getColumnList (tableId, columnId) { + let queryTable= { + functionId: this.$route.meta.menuId, + tableId: tableId, + languageCode: this.$i18n.locale + } + await getTableDefaultListLanguage(queryTable).then(({data}) => { + if (!data.rows.length === 0) { + switch (columnId) { + case 1: + this.columnList = data.rows + break; + } + } + }) + }, }, }