未符合项新增编辑弹框修改

This commit is contained in:
zyx.net
2023-09-05 13:52:11 +08:00
parent 5f2beaf67c
commit 47a7fb2fdf
2 changed files with 14 additions and 7 deletions
@@ -73,8 +73,9 @@
:query="{'db_field_txt':$t('Relevantlawsregulations')}" :query="{'db_field_txt':$t('Relevantlawsregulations')}"
:standard="formInline" :standard="formInline"
:disabled="false" :disabled="false"
@input="Standardselectioninput"
@change="StandardselectionChange" @change="StandardselectionChange"
v-model="formInline.lawsId"/> v-model="formInline.lawsName"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -452,10 +453,12 @@ export default {
}) })
}, },
StandardselectionChange(value, id) { StandardselectionChange(value, id) {
console.log(id)
this.formInline.lawsId = id this.formInline.lawsId = id
this.formInline = { ...this.formInline } this.formInline = { ...this.formInline }
}, },
Standardselectioninput(val){
this.formInline.lawsName = val
},
clickButtonToUpload(item) { clickButtonToUpload(item) {
this.$refs.uploadFile.perentHandleFunc() this.$refs.uploadFile.perentHandleFunc()
this.$refs.uploadFile.visible = true this.$refs.uploadFile.visible = true
@@ -73,8 +73,9 @@
:query="{'db_field_txt':$t('Relevantlawsregulations')}" :query="{'db_field_txt':$t('Relevantlawsregulations')}"
:standard="formInline" :standard="formInline"
:disabled="false" :disabled="false"
@input="Standardselectioninput"
@change="StandardselectionChange" @change="StandardselectionChange"
v-model="formInline.lawsId"/> v-model="formInline.lawsName"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -385,7 +386,7 @@ export default {
formInline: { formInline: {
fileLinkList:[{}], fileLinkList:[{}],
progressTrackingList:[{}], progressTrackingList:[{}],
approvalEvidenceLink:[{}] approvalEvidenceLinkList:[{}]
}, },
formInlinetracking:{}, formInlinetracking:{},
confirmLoading: false, confirmLoading: false,
@@ -452,10 +453,12 @@ export default {
}) })
}, },
StandardselectionChange(value, id) { StandardselectionChange(value, id) {
console.log(id)
this.formInline.lawsId = id this.formInline.lawsId = id
this.formInline = { ...this.formInline } this.formInline = { ...this.formInline }
}, },
Standardselectioninput(val){
this.formInline.lawsName = val
},
clickButtonToUpload(item) { clickButtonToUpload(item) {
this.$refs.uploadFile.perentHandleFunc() this.$refs.uploadFile.perentHandleFunc()
this.$refs.uploadFile.visible = true this.$refs.uploadFile.visible = true
@@ -491,7 +494,7 @@ export default {
this.formInline = { this.formInline = {
fileLinkList:[{}], fileLinkList:[{}],
progressTrackingList:[{}], progressTrackingList:[{}],
approvalEvidenceLink:[{}] approvalEvidenceLinkList:[{}]
} }
this.$nextTick(() => { this.$nextTick(() => {
this.formInline = { ...this.formInline } this.formInline = { ...this.formInline }
@@ -592,7 +595,8 @@ export default {
// } // }
// }) // })
let query = { let query = {
problemManagementEO:formInline // problemManagementEO:formInline
...this.formInline
} }
action(url, query).then((res) => { action(url, query).then((res) => {
if (res.success) { if (res.success) {