From 58c4836c5dfd38d07e5fe0365c7806e4c5cb6e9c Mon Sep 17 00:00:00 2001 From: libing Date: Thu, 11 Jan 2024 21:43:11 +0800 Subject: [PATCH] 11 --- src/views/emis/emisTransProduct/index.vue | 48 +++++++++++++++++------ 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/src/views/emis/emisTransProduct/index.vue b/src/views/emis/emisTransProduct/index.vue index f56919f6..9d1af1bd 100644 --- a/src/views/emis/emisTransProduct/index.vue +++ b/src/views/emis/emisTransProduct/index.vue @@ -92,13 +92,13 @@ /> - - + + @@ -268,7 +268,7 @@ - + - - + + @@ -386,6 +386,7 @@ export default { return { // 遮罩层 loading: true, + currentId:null, // 选中数组 ids: [], // 非单个禁用 @@ -403,6 +404,7 @@ export default { countryTree:[], countryIdsOptions:[], translineIdsOptions:[], + translineInnerIdsOptions:[], countryName:null, // 弹出层标题 title: "", @@ -435,6 +437,13 @@ export default { prodNameEn: null, country:null, }, + queryParamsInner: { + country:null, + }, + defaultProps: { + children: "children", + label: "label" + }, // 表单参数 form: {}, // 表单校验 @@ -487,9 +496,23 @@ export default { created() { this.getList(); this.getCountryList(); - this.getTranslineList(); + //this.getTranslineList(); }, methods: { + handleCountrySelectionChange(country){ + if(country==""){ + this.translineInnerIdsOptions = []; + return; + } + this.queryParamsInner.country = country; + listEmisTransLine(this.queryParamsInner).then(response => { + this.translineInnerIdsOptions = []; + response.rows.forEach(item =>{ + var optItem={value:item.lineCode,label:item.lineName}; + this.translineInnerIdsOptions.push(optItem); + }); + }); + }, handleStatusChange(row) { let text = row.status === "0" ? "启用" : "停用"; this.$modal.confirm('确认要"' + text + '""' + row.prodName + '"产品类型吗?').then(function() { @@ -524,7 +547,7 @@ export default { listEmisTransLine(this.addDateRange(this.queryParams, this.dateTimeRange)).then(response => { this.translineIdsOptions = []; response.rows.forEach(item =>{ - var optItem={value:item.id,label:item.lineName}; + var optItem={value:item.lineCode,label:item.lineName}; this.translineIdsOptions.push(optItem) }); @@ -605,6 +628,7 @@ export default { handleQuery() { this.queryParams.pageNum = 1; this.getList(); + this.getTranslineList(); }, /** 重置按钮操作 */ resetQuery() {