From 9a61e46d96536f3299e57f7259ae1c9972256ec6 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 30 九月 2025 09:42:09 +0800
Subject: [PATCH] 1. 隐藏未完成的账户匹配页面 2. 根据第三方新的接口文档修改接口url地址
---
src/components/SearchBar.vue | 27 +++++++++++++++++++++------
1 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/src/components/SearchBar.vue b/src/components/SearchBar.vue
index 83835cb..19f48c3 100644
--- a/src/components/SearchBar.vue
+++ b/src/components/SearchBar.vue
@@ -1,6 +1,6 @@
<template>
<el-row class="layout">
- <el-col :span="10">
+ <el-col :span="$slots.summary ? 10 : 24">
<el-form :inline="true" :model="formSearch">
<el-form-item label="鎬讳换鍔�">
<!-- <el-input v-model="formSearch.topTaskId" placeholder="鎬讳换鍔�" /> -->
@@ -22,12 +22,12 @@
:type="2"
v-model:value="formSearch.scenetype"
></FYOptionScene>
- <el-form-item>
+ <el-form-item v-show="btnShow">
<el-button type="primary" @click="onSubmit">鏌ヨ</el-button>
</el-form-item>
</el-form>
</el-col>
- <el-col :span="14">
+ <el-col :span="$slots.summary ? 14 : 0">
<el-row justify="end">
<slot name="summary"></slot>
</el-row>
@@ -40,6 +40,17 @@
export default {
emits: ['onSubmit'],
+ props: {
+ btnShow: {
+ type: Boolean,
+ default: true
+ },
+ init: {
+ type: Boolean,
+ default: true
+ }
+ },
+
data() {
return {
topTasks: [],
@@ -62,7 +73,9 @@
});
this.topTasks = list;
this.formSearch.topTaskId = list[0].value;
- this.onSubmit();
+ if (this.init) {
+ this.onSubmit();
+ }
});
},
//鏌ヨ瀛愪换鍔$粺璁′俊鎭�
@@ -72,7 +85,8 @@
);
const param = {
topTask: task ? task.data : {},
- sceneTypeId: this.formSearch.scenetype.value
+ sceneTypeId: this.formSearch.scenetype.value,
+ sceneTypeName: this.formSearch.scenetype.label,
};
// console.log(param);
@@ -81,7 +95,8 @@
},
mounted() {
this.getOptions();
- }
+ },
+ expose: ['onSubmit']
};
</script>
--
Gitblit v1.9.3