|
|
|
@ -74,6 +74,16 @@ import { |
|
|
|
deleteLabelContentSerialRule, |
|
|
|
} from '@/api/labelSetting/com_label_content_serial_rule.js'; |
|
|
|
|
|
|
|
/* 动态表头 */ |
|
|
|
import { |
|
|
|
saveTableDefaultList, |
|
|
|
getTableDefaultListLanguage, |
|
|
|
getTableUserListLanguage, |
|
|
|
removerDefault, |
|
|
|
removerUser |
|
|
|
} from '@/api/table.js' |
|
|
|
|
|
|
|
/*页面多语言*/ |
|
|
|
import { |
|
|
|
searchSysLanguagePackList, |
|
|
|
searchSysLanguageParam, |
|
|
|
@ -108,8 +118,8 @@ export default { |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 'C10000049', |
|
|
|
serialNumber: 'C10000049LabelItemDesc', |
|
|
|
tableId: 'C10000049Label', |
|
|
|
tableName: '标签内容定义', |
|
|
|
tableId: 'C10000049LabelContent', |
|
|
|
tableName: '标签内容列表', |
|
|
|
columnProp: 'itemDesc', |
|
|
|
headerAlign: 'center', |
|
|
|
align: 'center', |
|
|
|
@ -125,7 +135,7 @@ export default { |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 'C10000049', |
|
|
|
serialNumber: 'C10000049LabelObjectName', |
|
|
|
tableId: 'C10000049Label', |
|
|
|
tableId: 'C10000049LabelContent', |
|
|
|
tableName: '标签内容定义', |
|
|
|
columnProp: 'objectName', |
|
|
|
headerAlign: 'center', |
|
|
|
@ -145,7 +155,7 @@ export default { |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 'C10000049', |
|
|
|
serialNumber: 'C10000049LabelObjectName', |
|
|
|
tableId: 'C10000049Label', |
|
|
|
tableId: 'C10000049LabelSerialRule', |
|
|
|
tableName: '规则内容列表', |
|
|
|
columnProp: 'objectName', |
|
|
|
headerAlign: 'center', |
|
|
|
@ -162,7 +172,7 @@ export default { |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 'C10000049', |
|
|
|
serialNumber: 'C10000049LabelSeqNo', |
|
|
|
tableId: 'C10000049Label', |
|
|
|
tableId: 'C10000049LabelSerialRule', |
|
|
|
tableName: '规则内容列表', |
|
|
|
columnProp: 'seqNo', |
|
|
|
headerAlign: 'center', |
|
|
|
@ -179,7 +189,7 @@ export default { |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 'C10000049', |
|
|
|
serialNumber: 'C10000049LabelObjectName', |
|
|
|
tableId: 'C10000049Label', |
|
|
|
tableId: 'C10000049LabelSerialRule', |
|
|
|
tableName: '规则内容列表', |
|
|
|
columnProp: 'objectName', |
|
|
|
headerAlign: 'center', |
|
|
|
@ -198,6 +208,20 @@ export default { |
|
|
|
labelContentArrays: [], |
|
|
|
serialRuleArrays: [], |
|
|
|
dataListLoading: false, |
|
|
|
queryTable: { |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: functionId, |
|
|
|
tableId: '', |
|
|
|
languageCode: this.$i18n.locale |
|
|
|
}, |
|
|
|
// 用户table 查询参数 |
|
|
|
queryTableUser: { |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: functionId, |
|
|
|
tableId: '', |
|
|
|
status: true, |
|
|
|
languageCode: this.$i18n.locale |
|
|
|
}, |
|
|
|
buttons: { |
|
|
|
copyButton: '复制', |
|
|
|
refreshButton: '刷新', |
|
|
|
@ -232,6 +256,9 @@ export default { |
|
|
|
this.searchFlag = 'Y'; |
|
|
|
//判断是否启用多语言 |
|
|
|
this.getMultiLanguageList(); |
|
|
|
// 获取动态表头的信息 |
|
|
|
this.getTableUserColumn('C10000049LabelContent', 1); |
|
|
|
this.getTableUserColumn('C10000049LabelSerialRule', 2); |
|
|
|
//重置标题 |
|
|
|
this.titleCon = this.labels.titleCon; |
|
|
|
//刷新页面的table |
|
|
|
@ -318,6 +345,59 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
// 获取 用户保存的 格式列 |
|
|
|
async getTableUserColumn(tableId, tableNum) { |
|
|
|
let queryTableUser = { |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: functionId, |
|
|
|
tableId: tableId, |
|
|
|
status: true, |
|
|
|
languageCode: this.$i18n.locale |
|
|
|
} |
|
|
|
await getTableUserListLanguage(queryTableUser).then(({data}) => { |
|
|
|
if (data.rows.length > 0) { |
|
|
|
//this.columnList = [] |
|
|
|
switch (tableNum) { |
|
|
|
case 1: |
|
|
|
this.labelContentList = data.rows |
|
|
|
break; |
|
|
|
case 2: |
|
|
|
this.serialRuleList = data.rows |
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
this.getColumnList(tableId, tableNum) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
// 获取 tableDefault 列 |
|
|
|
async getColumnList(tableId, tableNum) { |
|
|
|
this.queryTable.tableId = tableId; |
|
|
|
let queryTable= { |
|
|
|
functionId: functionId, |
|
|
|
tableId: tableId, |
|
|
|
languageCode: this.$i18n.locale |
|
|
|
} |
|
|
|
await getTableDefaultListLanguage(queryTable).then(({data}) => { |
|
|
|
if (!data.rows.length == 0) { |
|
|
|
switch (tableNum) { |
|
|
|
case 1: |
|
|
|
this.labelContentList = data.rows |
|
|
|
break; |
|
|
|
case 2: |
|
|
|
this.serialRuleList = data.rows |
|
|
|
break; |
|
|
|
} |
|
|
|
} else { |
|
|
|
// this.showDefault = true |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.$nextTick(() => { |
|
|
|
|