浏览代码

feat: 文案以及默认值调整

cuiyalong 10 月之前
父节点
当前提交
8ff3c0212e
共有 3 个文件被更改,包括 8 次插入6 次删除
  1. 1 1
      frontend/src/components/spider/RunSpider.vue
  2. 5 3
      frontend/src/views/CodeList.vue
  3. 2 2
      frontend/src/views/ReviewList.vue

+ 1 - 1
frontend/src/components/spider/RunSpider.vue

@@ -107,7 +107,7 @@ import { EventsOn, EventsOff } from "../../../wailsjs/runtime"
 
 let originData = {}
 const defaultFormValue = {
-    maxPages: 2,
+    maxPages: 1,
 }
 
 const formData = ref({

+ 5 - 3
frontend/src/views/CodeList.vue

@@ -46,7 +46,7 @@
                         </el-select>
                     </div>
                     <div class="action-bar-item">
-                        <el-input v-model="filters.search" placeholder="按照爬虫代码搜索" @keydown.enter="onInputSearch" />
+                        <el-input v-model="filters.search" placeholder="按照站点、爬虫代码搜索" @keydown.enter="onInputSearch" />
                     </div>
                     <div class="action-bar-item">
                         <el-button type="primary" :icon="Search" @click="onInputSearch">搜索</el-button>
@@ -56,9 +56,9 @@
         </el-header>
         <el-main>
             <el-table ref="spiderTable" :data="listState.list" stripe :row-style="getRowStyle" v-loading="listState.loading">
-                <el-table-column prop="code" label="代码" align="center" show-overflow-tooltip></el-table-column>
                 <el-table-column prop="site" label="网站" align="center" show-overflow-tooltip></el-table-column>
                 <el-table-column prop="channel" label="栏目" align="center" show-overflow-tooltip></el-table-column>
+                <el-table-column prop="code" label="代码" align="center" show-overflow-tooltip></el-table-column>
                 <el-table-column prop="stateText" label="爬虫状态" width="80" align="center" show-overflow-tooltip></el-table-column>
                 <el-table-column prop="claimText" label="认领状态" width="100" align="center" show-overflow-tooltip></el-table-column>
                 <el-table-column prop="href" label="栏目地址" show-overflow-tooltip></el-table-column>
@@ -381,9 +381,10 @@ const userClaimCodes = async () => {
     }
 }
 const clickClaimCodes = () => {
-    ElMessageBox.confirm('确定要认领一批爬虫?', '提示',
+    ElMessageBox.confirm('确定要认领爬虫?', '提示',
         {
             customClass: 'j-confirm-message-box',
+            type: 'warning',
             confirmButtonText: '确定',
             cancelButtonText: '取消',
             showCancelButton: false,
@@ -663,6 +664,7 @@ const tableEvents = {
         ElMessageBox.confirm('确定退回?', '提示',
             {
                 customClass: 'j-confirm-message-box',
+                type: 'warning',
                 confirmButtonText: '确定',
                 cancelButtonText: '取消',
                 showCancelButton: false,

+ 2 - 2
frontend/src/views/ReviewList.vue

@@ -46,7 +46,7 @@
                         </el-select>
                     </div> -->
                     <div class="action-bar-item">
-                        <el-input v-model="filters.search" placeholder="按照爬虫代码搜索" @keydown.enter="onInputSearch" />
+                        <el-input v-model="filters.search" placeholder="按照站点、爬虫代码搜索" @keydown.enter="onInputSearch" />
                     </div>
                     <div class="action-bar-item">
                         <el-button type="primary" :icon="Search" @click="onInputSearch">搜索</el-button>
@@ -57,9 +57,9 @@
         <el-main>
             <el-table ref="spiderTable" :data="listState.list" stripe :row-style="getRowStyle" @selection-change="handleSelectionChange" v-loading="listState.loading">
                 <el-table-column type="selection" width="55" :selectable="tableRowSelectable" v-if="isAdmin" />
-                <el-table-column prop="code" label="代码" align="center" show-overflow-tooltip></el-table-column>
                 <el-table-column prop="site" label="网站" align="center" show-overflow-tooltip></el-table-column>
                 <el-table-column prop="channel" label="栏目" align="center" show-overflow-tooltip></el-table-column>
+                <el-table-column prop="code" label="代码" align="center" show-overflow-tooltip></el-table-column>
                 <el-table-column prop="stateText" label="爬虫状态" width="80" align="center" show-overflow-tooltip></el-table-column>
                 <el-table-column prop="claimText" label="认领状态" width="100" align="center" show-overflow-tooltip></el-table-column>
                 <el-table-column prop="href" label="栏目地址" show-overflow-tooltip></el-table-column>