|
|
@ -869,6 +869,7 @@ |
|
|
</el-tabs> |
|
|
</el-tabs> |
|
|
|
|
|
|
|
|
<ChooseList ref="baseList" @getBaseData="getBaseData"></ChooseList> |
|
|
<ChooseList ref="baseList" @getBaseData="getBaseData"></ChooseList> |
|
|
|
|
|
<filter-search :visible.sync="filterVisible" @search="queryByAnyField"></filter-search> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
@ -885,13 +886,15 @@ import ChooseList from '@/views/modules/common/Chooselist' |
|
|
import DictDataSelect from '../sys/dict-data-select.vue' |
|
|
import DictDataSelect from '../sys/dict-data-select.vue' |
|
|
import ApprovalInformation from '../changeManagement/approvalInformation.vue' |
|
|
import ApprovalInformation from '../changeManagement/approvalInformation.vue' |
|
|
import ossComponents from '../oss/ossComponents.vue' |
|
|
import ossComponents from '../oss/ossComponents.vue' |
|
|
|
|
|
import FilterSearch from '../../common/filterSearch.vue' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
components: { |
|
|
components: { |
|
|
ChooseList, |
|
|
ChooseList, |
|
|
DictDataSelect, |
|
|
DictDataSelect, |
|
|
ApprovalInformation, |
|
|
ApprovalInformation, |
|
|
ossComponents |
|
|
|
|
|
|
|
|
ossComponents, |
|
|
|
|
|
FilterSearch |
|
|
}, |
|
|
}, |
|
|
data () { |
|
|
data () { |
|
|
return { |
|
|
return { |
|
|
@ -915,6 +918,9 @@ export default { |
|
|
pageSize: 20, |
|
|
pageSize: 20, |
|
|
totalPage: 0, |
|
|
totalPage: 0, |
|
|
dataListLoading: false, |
|
|
dataListLoading: false, |
|
|
|
|
|
filterVisible: false, |
|
|
|
|
|
isFilterSearch: false, |
|
|
|
|
|
filterSearchData: {}, |
|
|
|
|
|
|
|
|
activeTable: 'basicInfo', |
|
|
activeTable: 'basicInfo', |
|
|
menuId: '', |
|
|
menuId: '', |
|
|
@ -2134,6 +2140,7 @@ export default { |
|
|
this.currentTestSpecFileList = [] |
|
|
this.currentTestSpecFileList = [] |
|
|
this.currentTestReportFileList = [] |
|
|
this.currentTestReportFileList = [] |
|
|
this.approvalList = [] |
|
|
this.approvalList = [] |
|
|
|
|
|
this.isFilterSearch = false |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
this.dataListSelections = [] |
|
|
this.dataListSelections = [] |
|
|
@ -2195,22 +2202,93 @@ export default { |
|
|
this.approvalList = [] |
|
|
this.approvalList = [] |
|
|
this.dataListLoading = false |
|
|
this.dataListLoading = false |
|
|
}) |
|
|
}) |
|
|
|
|
|
this.isFilterSearch = false |
|
|
}, |
|
|
}, |
|
|
sizeChangeHandle (val) { |
|
|
sizeChangeHandle (val) { |
|
|
this.pageSize = val |
|
|
this.pageSize = val |
|
|
this.pageIndex = 1 |
|
|
this.pageIndex = 1 |
|
|
|
|
|
if (this.isFilterSearch === false) { |
|
|
this.getDataList() |
|
|
this.getDataList() |
|
|
|
|
|
} else { |
|
|
|
|
|
this.queryByAnyField(this.filterSearchData) |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
currentChangeHandle (val) { |
|
|
currentChangeHandle (val) { |
|
|
this.pageIndex = val |
|
|
this.pageIndex = val |
|
|
|
|
|
if (this.isFilterSearch === false) { |
|
|
this.getDataList() |
|
|
this.getDataList() |
|
|
|
|
|
} else { |
|
|
|
|
|
this.queryByAnyField(this.filterSearchData) |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
searchHandle () { |
|
|
searchHandle () { |
|
|
if (!this.authSearch) { |
|
|
if (!this.authSearch) { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
this.pageIndex = 1 |
|
|
|
|
|
this.getDataList() |
|
|
|
|
|
|
|
|
this.filterVisible = true |
|
|
|
|
|
}, |
|
|
|
|
|
queryByAnyField (params) { |
|
|
|
|
|
const queryParams = { |
|
|
|
|
|
...(params || {}) |
|
|
|
|
|
} |
|
|
|
|
|
queryParams.no = this.pageIndex |
|
|
|
|
|
queryParams.size = this.pageSize |
|
|
|
|
|
queryParams.userId = this.$store.state.user.id.toString() |
|
|
|
|
|
queryParams.site = this.searchData.site || '' |
|
|
|
|
|
queryParams.menuId = this.menuId |
|
|
|
|
|
this.dataListSelections = [] |
|
|
|
|
|
this.dataListLoading = true |
|
|
|
|
|
api.getLabListAny(queryParams).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
const list = (data.page && data.page.list) || [] |
|
|
|
|
|
this.dataList = list.map(item => ({ |
|
|
|
|
|
applicantName: '', |
|
|
|
|
|
customerName: '', |
|
|
|
|
|
projectName: '', |
|
|
|
|
|
testerName: '', |
|
|
|
|
|
nodeId: '', |
|
|
|
|
|
nodeName: '', |
|
|
|
|
|
currentApprover: '', |
|
|
|
|
|
...item |
|
|
|
|
|
})) |
|
|
|
|
|
this.totalPage = data.page.totalCount |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
if (this.$refs.labTable && this.dataList.length > 0) { |
|
|
|
|
|
this.$refs.labTable.setCurrentRow(this.dataList[0]) |
|
|
|
|
|
} else if (this.$refs.labTable) { |
|
|
|
|
|
this.$refs.labTable.setCurrentRow() |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.warning((data && data.msg) || '搜索失败') |
|
|
|
|
|
this.dataList = [] |
|
|
|
|
|
this.totalPage = 0 |
|
|
|
|
|
this.currentRow = {} |
|
|
|
|
|
this.currentDetailRequestId += 1 |
|
|
|
|
|
this.currentDetail = this.buildEmptyDetailData() |
|
|
|
|
|
this.currentDetailLoading = false |
|
|
|
|
|
this.currentJudgeCriteriaFileList = [] |
|
|
|
|
|
this.currentTestSpecFileList = [] |
|
|
|
|
|
this.currentTestReportFileList = [] |
|
|
|
|
|
this.approvalList = [] |
|
|
|
|
|
} |
|
|
|
|
|
this.dataListLoading = false |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
this.dataList = [] |
|
|
|
|
|
this.totalPage = 0 |
|
|
|
|
|
this.currentRow = {} |
|
|
|
|
|
this.currentDetailRequestId += 1 |
|
|
|
|
|
this.currentDetail = this.buildEmptyDetailData() |
|
|
|
|
|
this.currentDetailLoading = false |
|
|
|
|
|
this.currentJudgeCriteriaFileList = [] |
|
|
|
|
|
this.currentTestSpecFileList = [] |
|
|
|
|
|
this.currentTestReportFileList = [] |
|
|
|
|
|
this.approvalList = [] |
|
|
|
|
|
this.dataListLoading = false |
|
|
|
|
|
}) |
|
|
|
|
|
this.filterSearchData = JSON.parse(JSON.stringify(queryParams)) |
|
|
|
|
|
this.isFilterSearch = true |
|
|
|
|
|
this.filterVisible = false |
|
|
}, |
|
|
}, |
|
|
buildExportName () { |
|
|
buildExportName () { |
|
|
const now = new Date() |
|
|
const now = new Date() |
|
|
|