Browse Source

2024.12.31 表格拖动 宽度自动保存

文本居中
java8
yuejiayang 1 year ago
parent
commit
1eb2faedb1
  1. 45
      src/views/modules/inquiry/inquiryApplication.vue

45
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;
}
}
})
},
},
}
</script>

Loading…
Cancel
Save