|
@@ -26,18 +26,34 @@
|
|
|
</pane>
|
|
|
<pane class="center-container">
|
|
|
<div class="input-box">
|
|
|
- <el-select v-model="state.queryParams.RetrievalType" placeholder="请选择" class="width120" @change="handleQuery" :disabled="centerLoading">
|
|
|
+ <el-select
|
|
|
+ v-model="state.queryParams.RetrievalType"
|
|
|
+ placeholder="请选择"
|
|
|
+ class="width120"
|
|
|
+ @change="handleQuery"
|
|
|
+ :disabled="centerLoading"
|
|
|
+ >
|
|
|
<el-option label="全文" value="0" />
|
|
|
<el-option label="标题" value="1" />
|
|
|
<el-option label="内容" value="2" />
|
|
|
</el-select>
|
|
|
<div class="input-with-button w100">
|
|
|
<div class="flex">
|
|
|
- <el-input v-model="state.queryParams.Keyword" placeholder="关键词" clearable class="mr10 w100" @keyup.enter="handleQuery" :disabled="centerLoading"> </el-input>
|
|
|
+ <el-input
|
|
|
+ v-model="state.queryParams.Keyword"
|
|
|
+ placeholder="关键词"
|
|
|
+ clearable
|
|
|
+ class="mr10 w100"
|
|
|
+ @keyup.enter="handleQuery"
|
|
|
+ :disabled="centerLoading"
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
<el-button type="primary" class="btn" :loading="centerLoading" @click="handleQuery"
|
|
|
><SvgIcon name="ele-Search" class="mr5" />搜索</el-button
|
|
|
>
|
|
|
- <el-button @click="resetQuery" class="default-button" :loading="centerLoading"> <SvgIcon name="ele-Refresh" class="mr5" />重置</el-button>
|
|
|
+ <el-button @click="resetQuery" class="default-button" :loading="centerLoading">
|
|
|
+ <SvgIcon name="ele-Refresh" class="mr5" />重置</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -236,10 +252,10 @@ const resetQuery = throttle(() => {
|
|
|
state.queryParams.SortField = 'pageView';
|
|
|
state.queryParams.Title = null;
|
|
|
state.queryParams.Content = null;
|
|
|
- treeSearchRef.value.setSelected(state.queryParams.PlanTypeID , false); // 清空选择
|
|
|
+ treeSearchRef.value.setSelected(state.queryParams.PlanTypeID, false); // 清空选择
|
|
|
treeSearchRef.value.clearKeyword(); // 清空搜索关键词
|
|
|
treeSearchRef.value.search(); // 搜索
|
|
|
- state.queryParams.PlanTypeID = null;
|
|
|
+ state.queryParams.PlanTypeID = null;
|
|
|
queryList();
|
|
|
|
|
|
setTimeout(() => {
|