ソースを参照

专家质控-收藏列表:增加引用功能,点击后引用搜索条件查询,关闭窗口

liyanyan 1 週間 前
コミット
fb2afb3012

+ 7 - 0
src/views/recordsRoom/qc/components/expertQualityControl/CollectListModal.vue

@@ -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: '确定',