[update]
This commit is contained in:
@@ -87,7 +87,7 @@
|
||||
</a-modal>
|
||||
<!-- 复制参数模板-->
|
||||
<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'
|
||||
:projectId='this.$route.query.id'></project-collection-parameters>
|
||||
|
||||
@@ -252,6 +252,10 @@
|
||||
drawerhandleCancel(val) {
|
||||
this.drawerVisible = val
|
||||
},
|
||||
copysubmit() {
|
||||
this.drawerVisible = false
|
||||
this.getlist()
|
||||
},
|
||||
searchQuery() {
|
||||
this.pageNo = 1
|
||||
this.getlist()
|
||||
|
||||
@@ -267,6 +267,7 @@ export default {
|
||||
if (valid) {
|
||||
this.flag = true
|
||||
this.spinLoading = true
|
||||
this.confirmLoading = true
|
||||
let _tt = {
|
||||
paramsTemplateId: this.selectedRowKeysDate[0].paramsTemplateId,
|
||||
projectId: this.selectedRowKeysDate[0].projectId,
|
||||
@@ -292,9 +293,16 @@ export default {
|
||||
})
|
||||
.then( (res) =>{
|
||||
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{
|
||||
_this.$message.warning(res.data.result)
|
||||
_this.$message.warning(res.data.message)
|
||||
_this.flag = false
|
||||
_this.spinLoading = false
|
||||
_this.confirmLoading = false
|
||||
}
|
||||
})
|
||||
.catch( (error) =>{
|
||||
|
||||
Reference in New Issue
Block a user