项目详情-认证参数列表中清单编辑去掉可以修改模板

This commit is contained in:
zyx.net
2022-11-04 13:39:31 +08:00
parent 6aaf4a2d94
commit 3cacb86a8b
2 changed files with 7 additions and 3 deletions
@@ -357,7 +357,7 @@
this.areaVisible = true
this.areaTitle = this.$t('editDetailList')
setTimeout(() => {
this.$refs.templateRef.editData(edit)
this.$refs.templateRef.editData(edit,1)
}, 50)
},
handleAdd() {
@@ -79,7 +79,7 @@
</div>
</a-col>
</a-row>
<a-row :gutter='24'>
<a-row :gutter='24' v-if='!this.num'>
<a-col :span='9'>
<div class="box-title-text">
<div class="title-text">
@@ -143,6 +143,7 @@
</a-spin>
<a-table
class='table-area'
v-if='!this.num'
ref='table'
size='middle'
rowKey='id'
@@ -156,6 +157,7 @@
</a-table>
<div class="page" style='display: flex;justify-content: flex-end; margin-bottom: 42px'>
<a-pagination
v-if='!this.num'
:show-total="total => $t('total')+` ${total} `+$t('strip')"
show-quick-jumper
show-size-changer
@@ -235,6 +237,7 @@
spinLoading: false,
confirmLoading: false,
selectedRowKeys: [],
num:'',
pageNo: 1,
pageSize: 10,
row: {}
@@ -321,8 +324,9 @@
this.newVisible = true
this.form = {}
},
editData(edit) {
editData(edit,num) {
// 编辑一行的数据
this.num = num
let query = JSON.parse(JSON.stringify(edit))
if (query.projectVersion) {
query.projectVersion = query.projectVersion.split(',')