diff --git a/src/views/modules/qc/FAIResultEntry.vue b/src/views/modules/qc/FAIResultEntry.vue index 223d23d..f4ab879 100644 --- a/src/views/modules/qc/FAIResultEntry.vue +++ b/src/views/modules/qc/FAIResultEntry.vue @@ -355,7 +355,7 @@ prop="" header-align="center" align="center" - min-width="40" + min-width="60" label="操作"> - + @@ -262,7 +262,7 @@ label="不合格数量"> { + this.$refs[aaa].focus() + }) + }, + + //删除 handleDeleteBtn(td) { checkIQCIsSubmit(td).then(({data}) => { @@ -1575,8 +1738,8 @@ finishDownload() {}, fields() { let json = "{" - this.columnList.forEach((item, index) => { - if (index == this.columnList.length - 1) { + this.columnList1.forEach((item, index) => { + if (index == this.columnList1.length - 1) { json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" } else { json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + "," @@ -1586,7 +1749,71 @@ let s = eval("(" + json + ")") return s }, - // 导出 end + + // 动态列开始 获取 用户保存的 格式列 + 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) { + //this.columnList1 = [] + switch (columnId) { + case 1: + this.columnList1 = data.rows + break; + case 2: + this.detailColumnList = data.rows + break; + // case 3: + // this.columnList2 = data.rows + // break; + // case 4: + // this.columnList3 = data.rows + // break; + } + } else { + this.getColumnList(tableId, columnId) + } + }) + }, + + // 获取 tableDefault 列 + async getColumnList(tableId, columnId) { + this.queryTable.tableId = tableId + 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.columnList1 = data.rows + break; + case 2: + this.detailColumnList = data.rows + break; + // case 3: + // this.columnList2 = data.rows + // break; + // case 4: + // this.columnList3 = data.rows + // break; + } + } else { + // this.showDefault = true. + } + }) + }, + //动态列结束 + + } }