|
@@ -25,6 +25,7 @@
|
|
|
<el-col :span="8" style="text-align: right">
|
|
|
<!-- <el-radio v-model="item.is_default" :label="1" disabled>默认</el-radio> -->
|
|
|
<el-tag size="small" type="success" v-if="item.is_default == 1" style="margin-right:10px">默认</el-tag>
|
|
|
+ <el-button @click="onUse(item)" type="text">引用</el-button>
|
|
|
<el-button class="el-icon-edit-outline" @click="openCollectModal(item)" type="text" />
|
|
|
<el-button class="el-icon-delete" @click="onRemove(item)" type="text" style="color: #ef1f3a" />
|
|
|
</el-col>
|
|
@@ -95,6 +96,12 @@ export default {
|
|
|
this.$refs.CollectModalBoxRef.openModal('EDIT', row);
|
|
|
},
|
|
|
|
|
|
+ onUse(row) {
|
|
|
+ this.$parent.formData = {...this.$parent.formData, ...JSON.parse(row.filter_content)};
|
|
|
+ this.$parent.onSubmit();
|
|
|
+ this.onCancel();
|
|
|
+ },
|
|
|
+
|
|
|
onRemove(row) {
|
|
|
this.$confirm('确定要删除吗?', '提示', {
|
|
|
confirmButtonText: '确定',
|