[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',
enclosure: 'Enclosure',
// 认证
Areyousureparameteritems: 'Are you sure to submit the selected parameter items?',
Theselectedconfiguration: 'The selected item has incomplete data collection, unable to add configuration',
theCurrent: 'The current status of this data is',
thisbuttonCompleted: 'This button can only be operated when the status is completed',
+1
View File
@@ -723,6 +723,7 @@ module.exports = {
uploadTime: '上传时间',
enclosure: '附件',
// 认证
Areyousureparameteritems: '确认提交所选参数项嘛?',
Theselectedconfiguration: '所选项目有未完成收集数据不能添加配置',
theCurrent: '此数据当前状态为',
thisbuttonCompleted: '当状态为"已完成"才可操作此按钮',
@@ -24,7 +24,7 @@
</div>
<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
@@ -56,7 +56,7 @@
<a-row :gutter='24'>
<a-col :span='24'>
<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">
<span style="display: inline-block;width: 100%" :title=" item.label ">
{{ item.label }}
@@ -910,6 +910,7 @@ export default {
},
// 提交数据
ishandleSubmit() {
let _this = this
let postDate = []
this.selectedRowKeysValue.forEach((item, index) => {
let postDateobj = {}
@@ -932,12 +933,19 @@ export default {
if(this.selectedRowKeys.length == 0) {
this.$message.warning(this.$t('selectLeastOne'))
}else {
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'))
let _configDataListNo = []
this.$confirm({
content: _this.$t('Areyousureparameteritems'),
onOk() {
console.log(configDataList,'configDataListconfigDataList')
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'))
}
})
}
})
}