修改禅道已知bug

This commit is contained in:
qq787203167
2022-07-02 16:46:59 +08:00
parent 9d20350ef5
commit ddd925097c
@@ -59,7 +59,8 @@
</span> </span>
</a-select-option> </a-select-option>
</a-select> </a-select>
<span style='width: 90px;line-height: 29px;float: right'>&nbsp;&nbsp;&nbsp;&nbsp;{{ $t('configure') }}</span> <span
style='width: 90px;line-height: 29px;float: right'>&nbsp;&nbsp;&nbsp;&nbsp;{{ $t('configure') }}</span>
</a-form-model-item> </a-form-model-item>
</div> </div>
<!-- <a-form-model-item style='line-height: 31.9999px;' prop='targetConfigIds' class='aform'>--> <!-- <a-form-model-item style='line-height: 31.9999px;' prop='targetConfigIds' class='aform'>-->
@@ -92,6 +93,7 @@ import { putAction, postAction, getAction, deleteAction } from '@/api/manage'
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'
export default { export default {
name: 'diolagArea', name: 'diolagArea',
components: {}, components: {},
@@ -113,11 +115,11 @@ export default {
formInline: {}, formInline: {},
rules: { rules: {
sourceConfigId: [ sourceConfigId: [
{ required: true, message: this.$t('pleaseSelect')+this.$t('controlVerification'), trigger: 'change' }, { required: true, message: this.$t('pleaseSelect') + this.$t('controlVerification'), trigger: 'change' }
], ],
targetConfigIds: [ targetConfigIds: [
{ required: true, message: this.$t('pleaseSelect')+this.$t('controlVerification'), trigger: 'change' }, { required: true, message: this.$t('pleaseSelect') + this.$t('controlVerification'), trigger: 'change' }
], ]
}, },
areaTable: [], areaTable: [],
flag: false, //表单提交标识 flag: false, //表单提交标识
@@ -125,7 +127,7 @@ export default {
confirmLoading: false, confirmLoading: false,
selectedRowKeys: [], selectedRowKeys: [],
fromDate: [], fromDate: [],
fromDateTo: [], fromDateTo: []
} }
}, },
props: { props: {
@@ -173,8 +175,8 @@ export default {
} }
}) })
.catch((error) => { .catch((error) => {
console.log(error); console.log(error)
}); })
}, },
loadDataTo() { loadDataTo() {
let _this = this let _this = this
@@ -204,8 +206,8 @@ export default {
} }
}) })
.catch((error) => { .catch((error) => {
console.log(error); console.log(error)
}); })
}, },
searchQuery() { searchQuery() {
this.loadData() this.loadData()
@@ -227,10 +229,11 @@ export default {
handleSubmit() { handleSubmit() {
this.$refs.ruleForm.validate(valid => { this.$refs.ruleForm.validate(valid => {
if (valid) { if (valid) {
if(this.formInline.targetConfigIds instanceof Array){ let formInline = JSON.parse(JSON.stringify(this.formInline))
this.formInline.targetConfigIds = this.formInline.targetConfigIds.join(',') if (formInline.targetConfigIds instanceof Array) {
formInline.targetConfigIds = formInline.targetConfigIds.join(',')
} }
let param = {ids: this.selectedRowKeysArray, ...this.formInline } let param = { ids: this.selectedRowKeysArray, ...formInline }
this.confirmLoading = true this.confirmLoading = true
postAction('params/collectManifest/referParams', param).then((res) => { postAction('params/collectManifest/referParams', param).then((res) => {
if (res.success) { if (res.success) {
@@ -239,11 +242,12 @@ export default {
this.$emit('GetgetTableList') this.$emit('GetgetTableList')
this.confirmLoading = false this.confirmLoading = false
} else { } else {
this.$message.warning(this.$t('operationFailed')) this.$message.warning(res.message)
this.confirmLoading = false this.confirmLoading = false
} }
}) })
}}) }
})
// axios({ // axios({
// url: '/jero-boot/params/collectManifest/referParams', // url: '/jero-boot/params/collectManifest/referParams',
// method: 'post', // method: 'post',
@@ -279,9 +283,11 @@ export default {
<style lang='less' scoped> <style lang='less' scoped>
@import '~@assets/less/common.less'; @import '~@assets/less/common.less';
/deep/ .ant-form-explain { /deep/ .ant-form-explain {
padding-left: 62px; padding-left: 62px;
} }
.diolag-area { .diolag-area {
.table-area { .table-area {
margin: 20px 0; margin: 20px 0;
@@ -295,14 +301,17 @@ export default {
color: red; color: red;
} }
} }
.drawer-bootom-button { .drawer-bootom-button {
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
.aform { .aform {
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
.itemOption { .itemOption {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
@@ -324,15 +333,18 @@ export default {
} }
} }
} }
.page { .page {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
margin-bottom: 20px; margin-bottom: 20px;
} }
.Requireditem { .Requireditem {
color: red; color: red;
line-height: 24px; line-height: 24px;
} }
.box-title-text { .box-title-text {
line-height: 1.4; line-height: 1.4;
display: flex; display: flex;