This commit is contained in:
zhaomeijing
2022-06-21 14:54:58 +08:00
parent 75775486ef
commit 7d5016260f
2 changed files with 15 additions and 3 deletions
@@ -87,7 +87,7 @@
</a-modal> </a-modal>
<!-- 复制参数模板--> <!-- 复制参数模板-->
<a-modal class="show-drawer" :title="titleTag" width="700px" v-model="drawerVisible" :footer="null"> <a-modal class="show-drawer" :title="titleTag" width="700px" v-model="drawerVisible" :footer="null">
<project-collection-parameters v-if='drawerVisible' @areaVisible='drawerhandleCancel' :templateTitle='templatetitle' <project-collection-parameters v-if='drawerVisible' @areaVisible='drawerhandleCancel' :templateTitle='templatetitle' @copysubmit='copysubmit'
:selectedRowKeyS='selectedRowKeys' :rowId='rowId' :version='version' :url='url' :selectedRowKeyS='selectedRowKeys' :rowId='rowId' :version='version' :url='url'
:projectId='this.$route.query.id'></project-collection-parameters> :projectId='this.$route.query.id'></project-collection-parameters>
@@ -252,6 +252,10 @@
drawerhandleCancel(val) { drawerhandleCancel(val) {
this.drawerVisible = val this.drawerVisible = val
}, },
copysubmit() {
this.drawerVisible = false
this.getlist()
},
searchQuery() { searchQuery() {
this.pageNo = 1 this.pageNo = 1
this.getlist() this.getlist()
@@ -267,6 +267,7 @@ export default {
if (valid) { if (valid) {
this.flag = true this.flag = true
this.spinLoading = true this.spinLoading = true
this.confirmLoading = true
let _tt = { let _tt = {
paramsTemplateId: this.selectedRowKeysDate[0].paramsTemplateId, paramsTemplateId: this.selectedRowKeysDate[0].paramsTemplateId,
projectId: this.selectedRowKeysDate[0].projectId, projectId: this.selectedRowKeysDate[0].projectId,
@@ -292,9 +293,16 @@ export default {
}) })
.then( (res) =>{ .then( (res) =>{
if (res.data.success) { if (res.data.success) {
_this.$message.success(res.data.result) _this.$emit('copysubmit')
_this.$message.success(res.data.message)
_this.flag = false
_this.spinLoading = false
_this.confirmLoading = false
}else{ }else{
_this.$message.warning(res.data.result) _this.$message.warning(res.data.message)
_this.flag = false
_this.spinLoading = false
_this.confirmLoading = false
} }
}) })
.catch( (error) =>{ .catch( (error) =>{