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

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', ParameteItemCollectionList: 'Parameter item collection list',
Areyousureparameteritems: 'Are you sure to submit the selected parameter items?', 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', 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', theCurrent: 'The current status of this data is',
thisbuttonCompleted: 'This button can only be operated when the status is completed', thisbuttonCompleted: 'This button can only be operated when the status is completed',
Frozenstatus: 'Frozen status, can only be viewed', Frozenstatus: 'Frozen status, can only be viewed',
+1
View File
@@ -740,6 +740,7 @@ module.exports = {
ParameteItemCollectionList: '参数项收集清单', ParameteItemCollectionList: '参数项收集清单',
Areyousureparameteritems: '确认提交所选参数项嘛?', Areyousureparameteritems: '确认提交所选参数项嘛?',
Theselectedconfiguration: '参数清单中参数项均为待发起收集或变更时才能添加配置', Theselectedconfiguration: '参数清单中参数项均为待发起收集或变更时才能添加配置',
NoConfigurationNotStart: '未添加任何配置无法开始收集请检查',
theCurrent: '此数据当前状态为', theCurrent: '此数据当前状态为',
thisbuttonCompleted: '当状态为"已完成"才可操作此按钮', thisbuttonCompleted: '当状态为"已完成"才可操作此按钮',
Frozenstatus: '冻结状态,仅可以查看', Frozenstatus: '冻结状态,仅可以查看',
@@ -107,6 +107,7 @@
import axios from 'axios' import axios from 'axios'
import Vue from 'vue' import Vue from 'vue'
import { ACCESS_TOKEN } from '@/store/mutation-types' import { ACCESS_TOKEN } from '@/store/mutation-types'
import eventBUs from '@/common/event'
export default { export default {
name: 'TaskParameterCollection', name: 'TaskParameterCollection',
@@ -177,7 +178,8 @@
deleteAll: 'params/manifest/deleteBatch', deleteAll: 'params/manifest/deleteBatch',
conAdd: 'params/config/addBatch', conAdd: 'params/config/addBatch',
conList: 'params/config/list', conList: 'params/config/list',
changeExtension:'params/manifest/changeExtension' changeExtension:'params/manifest/changeExtension',
verifyConfig: 'params/manifest/verifyConfig'
}, },
loading: false, loading: false,
dataSource: [], dataSource: [],
@@ -206,12 +208,22 @@
}, },
methods: { methods: {
paramsManifestClick(item) { paramsManifestClick(item) {
localStorage.setItem('paramsManifest', JSON.stringify(item)) let _this = this
let newUrl = this.$router.resolve({ // 先调取接口判断是否有配置信息
path: '/ParameterItemCollection', getAction(this.url.verifyConfig, { paramsManifestId: item.id }).then((res) => {
query: item, 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) { deleteLib(val) {
if(val.state === '已完成' || val.state === 'Finished' ) { if(val.state === '已完成' || val.state === 'Finished' ) {
@@ -381,7 +393,7 @@
/deep/ .ant-table td { /deep/ .ant-table td {
white-space: normal; white-space: normal;
} }
.doc-detail { .doc-detail {
background: #fff; background: #fff;
height: 100%; height: 100%;