[update] bug修改

This commit is contained in:
zhaomeijing
2022-06-15 11:32:26 +08:00
parent eff18530e7
commit eb4d6eb4e3
4 changed files with 18 additions and 8 deletions
+1
View File
@@ -712,6 +712,7 @@ module.exports = {
uploadTime: 'Upload time', uploadTime: 'Upload time',
enclosure: 'Enclosure', enclosure: 'Enclosure',
// 认证 // 认证
Areyousureparameteritems: 'Are you sure to submit the selected parameter items?',
Theselectedconfiguration: 'The selected item has incomplete data collection, unable to add configuration', Theselectedconfiguration: 'The selected item has incomplete data collection, unable to add configuration',
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',
+1
View File
@@ -723,6 +723,7 @@ module.exports = {
uploadTime: '上传时间', uploadTime: '上传时间',
enclosure: '附件', enclosure: '附件',
// 认证 // 认证
Areyousureparameteritems: '确认提交所选参数项嘛?',
Theselectedconfiguration: '所选项目有未完成收集数据不能添加配置', Theselectedconfiguration: '所选项目有未完成收集数据不能添加配置',
theCurrent: '此数据当前状态为', theCurrent: '此数据当前状态为',
thisbuttonCompleted: '当状态为"已完成"才可操作此按钮', thisbuttonCompleted: '当状态为"已完成"才可操作此按钮',
@@ -24,7 +24,7 @@
</div> </div>
<span slot="operationbtn" slot-scope="record"> <span slot="operationbtn" slot-scope="record">
<span v-if='homo === 1'> <span v-if='currentPersonRole === "homo"'>
<!-- 认证工程师 --> <!-- 认证工程师 -->
<span v-if='record.state == "待发起收集" || record.state == "工程接口人退回" || record.state == "变更"'> <span v-if='record.state == "待发起收集" || record.state == "工程接口人退回" || record.state == "变更"'>
<span <span
@@ -56,7 +56,7 @@
<a-row :gutter='24'> <a-row :gutter='24'>
<a-col :span='24'> <a-col :span='24'>
<a-form-model-item ref='region' :label="$t('engineeringInterfacePerson')" prop='region'> <a-form-model-item ref='region' :label="$t('engineeringInterfacePerson')" prop='region'>
<a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')" v-model="Dateline.querySdt"> <a-select allowClear :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')" v-model="Dateline.querySdt">
<a-select-option v-for="(item, key) in querySdtList" :key="key" :value="item.value"> <a-select-option v-for="(item, key) in querySdtList" :key="key" :value="item.value">
<span style="display: inline-block;width: 100%" :title=" item.label "> <span style="display: inline-block;width: 100%" :title=" item.label ">
{{ item.label }} {{ item.label }}
@@ -910,6 +910,7 @@ export default {
}, },
// 提交数据 // 提交数据
ishandleSubmit() { ishandleSubmit() {
let _this = this
let postDate = [] let postDate = []
this.selectedRowKeysValue.forEach((item, index) => { this.selectedRowKeysValue.forEach((item, index) => {
let postDateobj = {} let postDateobj = {}
@@ -932,12 +933,19 @@ export default {
if(this.selectedRowKeys.length == 0) { if(this.selectedRowKeys.length == 0) {
this.$message.warning(this.$t('selectLeastOne')) this.$message.warning(this.$t('selectLeastOne'))
}else { }else {
postAction(this.url.add, configDataList).then((res) => { let _configDataListNo = []
if (res.success) { this.$confirm({
this.GetgetTableList() content: _this.$t('Areyousureparameteritems'),
this.$message.success(this.$t('OperationSuccessful')) onOk() {
} else { console.log(configDataList,'configDataListconfigDataList')
this.$message.warning(this.$t('operationFailed')) postAction(_this.url.add, configDataList).then((res) => {
if (res.success) {
_this.GetgetTableList()
_this.$message.success(this.$t('OperationSuccessful'))
} else {
_this.$message.warning(this.$t('operationFailed'))
}
})
} }
}) })
} }