添加判断配置,再决定能否进入收集清单的问题

This commit is contained in:
lixuetao
2022-06-30 10:53:28 +08:00
parent f43ddc3617
commit 445a1c03f2
3 changed files with 21 additions and 7 deletions
@@ -107,6 +107,7 @@
import axios from 'axios'
import Vue from 'vue'
import { ACCESS_TOKEN } from '@/store/mutation-types'
import eventBUs from '@/common/event'
export default {
name: 'TaskParameterCollection',
@@ -177,7 +178,8 @@
deleteAll: 'params/manifest/deleteBatch',
conAdd: 'params/config/addBatch',
conList: 'params/config/list',
changeExtension:'params/manifest/changeExtension'
changeExtension:'params/manifest/changeExtension',
verifyConfig: 'params/manifest/verifyConfig'
},
loading: false,
dataSource: [],
@@ -206,12 +208,22 @@
},
methods: {
paramsManifestClick(item) {
localStorage.setItem('paramsManifest', JSON.stringify(item))
let newUrl = this.$router.resolve({
path: '/ParameterItemCollection',
query: item,
let _this = this
// 先调取接口判断是否有配置信息
getAction(this.url.verifyConfig, { paramsManifestId: item.id }).then((res) => {
if (res.result) {
localStorage.setItem('paramsManifest', JSON.stringify(item))
let newUrl = _this.$router.resolve({
path: '/ParameterItemCollection',
query: item,
})
window.open(newUrl.href, '_blank')
} else {
_this.$message.success(_this.$t('NoConfigurationNotStart'))
}
})
window.open(newUrl.href, '_blank')
},
deleteLib(val) {
if(val.state === '已完成' || val.state === 'Finished' ) {
@@ -381,7 +393,7 @@
/deep/ .ant-table td {
white-space: normal;
}
.doc-detail {
background: #fff;
height: 100%;