添加判断配置,再决定能否进入收集清单的问题
This commit is contained in:
@@ -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%;
|
||||
|
||||
Reference in New Issue
Block a user