diff --git a/src/views/dataSearch.vue b/src/views/dataSearch.vue index 1ff7f99..b354189 100644 --- a/src/views/dataSearch.vue +++ b/src/views/dataSearch.vue @@ -25,34 +25,6 @@ 航次 -
-
-
请选择航次名称
-
{{ - item.name }}
-
-
-
-
-
请选择平台类型
-
{{ - item.name + '(' + item.value + ')' }}
-
-
-
-
-
请选择设备类型
-
{{ - item.name + '(' + item.value + ')' }}
-
-
-
-
-
请选择数据样品类型
-
{{ - item.name + '(' + item.value + ')' }}
-
-
@@ -156,6 +128,53 @@
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -210,14 +229,22 @@ export default { ], searchTypeValue: '航次名称', radio: '航次', + dialog1: false, + tableData1: [], + total1: 0, + dialog2: false, + tableData2: [], + total2: 0, + dialog3: false, + tableData3: [], + total3: 0, + dialog4: false, + tableData4: [], + total4: 0, menu1: '', menu2: '', menu3: '', menu4: '', - menuList1: [], - menuList2: [], - menuList3: [], - menuList4: [], dataList: [], searchValue: '', menuShow: true, @@ -311,51 +338,59 @@ export default { data_type: this.menu4 }).then(res => { if (this.searchTypeValue === '航次名称') { - this.menuList1 = res.page.records + this.dialog1 = true + this.tableData1 = res.page.records } else if (this.searchTypeValue === '平台类型') { - this.menuList2 = res.page.records + this.dialog2 = true + this.tableData2 = res.page.records } else if (this.searchTypeValue === '设备类型') { - this.menuList3 = res.page.records + this.dialog3 = true + this.tableData3 = res.page.records } else if (this.searchTypeValue === '数据样品类型') { - this.menuList4 = res.page.records + this.dialog4 = true + this.tableData4 = res.page.records } }) }, - selectMenu1(item) { + handleCurrentChange1(item) { this.menu1 = item.name - this.menuList1 = [] + this.tableData1 = [] this.searchType[0].disabled = true const str = this.searchType.find(item => { return item.disabled !== true }) this.searchTypeValue = str.label + this.dialog1 = false }, - selectMenu2(item) { + handleCurrentChange2(item) { this.menu2 = item.name - this.menuList2 = [] + this.tableData2 = [] this.searchType[1].disabled = true const str = this.searchType.find(item => { return item.disabled !== true }) this.searchTypeValue = str.label + this.dialog2 = false }, - selectMenu3(item) { + handleCurrentChange3(item) { this.menu3 = item.name - this.menuList3 = [] + this.tableData3 = [] this.searchType[3].disabled = true const str = this.searchType.find(item => { return item.disabled !== true }) this.searchTypeValue = str.label + this.dialog3 = false }, - selectMenu4(item) { + handleCurrentChange4(item) { this.menu4 = item.name - this.menuList4 = [] + this.tableData4 = [] this.searchType[4].disabled = true const str = this.searchType.find(item => { return item.disabled !== true }) this.searchTypeValue = str.label + this.dialog4 = false }, // 获取左侧航次列表 getList() { diff --git a/src/views/dataTransfer/sampleDataset.vue b/src/views/dataTransfer/sampleDataset.vue index c29652c..7ba7542 100644 --- a/src/views/dataTransfer/sampleDataset.vue +++ b/src/views/dataTransfer/sampleDataset.vue @@ -34,8 +34,9 @@ - + - - + + - - + + @@ -308,6 +308,8 @@ export default { voyageOptions: [], // 平台类型下拉数据 platformDicts: [], + // 主驾人员下拉数据 + mainMemberOptions: [], // 参航人员下拉数据 memberOptions: [], // 平台信息表单数据 @@ -442,6 +444,11 @@ export default { getMemberList(id) { memberList({ voyage_id: id }).then(res => { this.memberOptions = res.array + this.mainMemberOptions = this.memberOptions.filter(obj => { + if (obj.member_dept.includes('潜航员')) { + return obj + } + }) }) }, // 选择航次名称 @@ -495,6 +502,24 @@ export default { this.$refs['form'].resetFields() this.showPlatform = false this.currentPlatform = '' + }, + // 选择左舷人员 + changeLeft(value) { + const arr = this.memberOptions.filter(obj => { + if (obj.member_name.includes(value)) { + return obj + } + }) + this.form.driver_unit_left = arr[0].member_unit + }, + // 选择右舷人员 + changeRight(value) { + const arr = this.memberOptions.filter(obj => { + if (obj.member_name.includes(value)) { + return obj + } + }) + this.form.driver_unit_right = arr[0].member_unit } } } diff --git a/src/views/dataTransfer/sampleViews/formViews/SampleList.vue b/src/views/dataTransfer/sampleViews/formViews/SampleList.vue index 561e2ff..9ec3637 100644 --- a/src/views/dataTransfer/sampleViews/formViews/SampleList.vue +++ b/src/views/dataTransfer/sampleViews/formViews/SampleList.vue @@ -2,7 +2,7 @@
{{ row.job_type }}数据样品 [{{ row.dataset_name }}] - 新增样品 + 新增数据样品