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

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
+1
View File
@@ -729,6 +729,7 @@ module.exports = {
ParameteItemCollectionList: 'Parameter item collection list',
Areyousureparameteritems: 'Are you sure to submit the selected parameter items?',
Theselectedconfiguration: 'The configuration can only be added when the parameter items in the parameter list are to be collected or changed',
NoConfigurationNotStart: 'No configuration added, unable to start collection, please check',
theCurrent: 'The current status of this data is',
thisbuttonCompleted: 'This button can only be operated when the status is completed',
Frozenstatus: 'Frozen status, can only be viewed',
+1
View File
@@ -740,6 +740,7 @@ module.exports = {
ParameteItemCollectionList: '参数项收集清单',
Areyousureparameteritems: '确认提交所选参数项嘛?',
Theselectedconfiguration: '参数清单中参数项均为待发起收集或变更时才能添加配置',
NoConfigurationNotStart: '未添加任何配置无法开始收集请检查',
theCurrent: '此数据当前状态为',
thisbuttonCompleted: '当状态为"已完成"才可操作此按钮',
Frozenstatus: '冻结状态,仅可以查看',
@@ -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%;