[update] tianjia
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user