对接法规意见收集

This commit is contained in:
qq787203167
2022-07-06 16:21:51 +08:00
parent d4c86d08aa
commit ad697d08a4
4 changed files with 48 additions and 13 deletions
@@ -100,7 +100,13 @@
title: {
type: String,
default: ''
}
},
feedbackDataList:{
type: Array,
default: (()=>{
return []
})
},
},
data() {
return {
@@ -108,16 +114,24 @@
disabled:false,
rules: {},
uploadIndex:'',
dataList: [
{
relatedSection: '',
issueOrSuggest: '',
reason: '',
accessoryFile: ''
}
]
dataList: []
}
},
mounted() {
if (this.feedbackDataList && this.feedbackDataList.length > 0){
this.dataList = this.feedbackDataList
this.dataList = [...this.dataList]
}else{
this.dataList = [
{
relatedSection: '',
issueOrSuggest: '',
reason: '',
accessoryFile: ''
}
]
}
},
methods: {
clickButtonToUpload(item,index) {
this.$refs.uploadFile.perentHandleFunc()
@@ -15,6 +15,7 @@
<feedbackInformation
v-if="isDisplay"
ref="feedbackInformationRef"
:feedbackDataList="feedbackDataList"
:title="$t('feedbackInformation')"
/>
<footerProcess
@@ -27,6 +28,7 @@
<circulationHistory v-if="isDisplay"/>
</div>
</div>
<JLoading :loading="loading">{{this.$t('pleaseWaitWhileRunning')}}</JLoading>
</div>
</template>
@@ -55,12 +57,13 @@
queryTaskDetailByTaskIds: '/task/queryTaskDetailByTaskIds',
list: '/lawsOpinionGather/lawsOpinionAssessmentResultEO/list'
},
loading: false,
isDisplay: true,
queryProject: {},
standardContentList: [
{
title: this.$t('standard'),
value: 'serialNumber'
value: 'serial_number'
},
{
title: this.$t('title'),
@@ -92,6 +95,7 @@
}
},
mounted() {
this.isDisplay = false
this.queryTaskDetailByTask(() => {
this.lawsOpinionAssessmentResult()
})
@@ -115,14 +119,26 @@
actiProcInstId: this.$route.query.prcId
}).then((res) => {
if (res.success) {
this.feedbackDataList = res.result || []
this.loading = false
} else {
this.feedbackDataList = []
this.loading = false
}
this.isDisplay = true
})
},
preservation() {
},
insertBatch(list) {
postAction('/lawsOpinionGather/lawsOpinionAssessmentResultEO/insertBatch', list).then((res) => {
if (res.success) {
}else{
}
})
},
submit() {