[update] tianjia

This commit is contained in:
zhaomeijing
2022-05-27 18:19:35 +08:00
parent 8202bff14a
commit 9fc88a8a9e
2 changed files with 27 additions and 36 deletions
@@ -76,7 +76,7 @@
</div>
<!-- 参数模板-->
<a-modal v-model="areaVisible" :title="$t('parameterTemplate')" width='750px' :footer="null">
<parameter-template-add v-if='areaVisible' @areaVisible='handleCancel' :templateTitle='templatetitle'
<parameter-template-add :url='url' ref='templateRef' v-if='areaVisible' @areaVisible='handleCancel' :templateTitle='templatetitle'
:selectedRowKeyS='selectedRowKeys' :rowId='rowId' :version='version'
:projectId='this.$route.query.id'></parameter-template-add>
</a-modal>
@@ -253,19 +253,9 @@
},
edit(edit) {
this.areaVisible = true
let _this = this
let query = {
id: edit.id
}
getAction(_this.url.queryById, query).then((res) => {
if (res.success) {
this.templatetitle = res.result.title
this.selectedRowKeys = res.result.paramsTemplateId.split(',')
this.rowId = res.result.id
this.version = res.result.paramsTemplatePublishVersion
} else {
}
})
setTimeout(() => {
this.$refs.templateRef.editData(edit)
},50)
},
handleAdd() {
this.areaVisible = true