Ver Fonte

feat: 移除导入模版按钮

cuiyalong há 9 meses atrás
pai
commit
1d98e7289c
1 ficheiros alterados com 9 adições e 7 exclusões
  1. 9 7
      frontend/src/components/spider/EditSpider.vue

+ 9 - 7
frontend/src/components/spider/EditSpider.vue

@@ -148,9 +148,9 @@
                     </span>
                 </template>
                 <el-divider>
-                    <el-button type="primary" style="margin-right: 12px;" @click='editorHandle.createImportListCode'>生成样例</el-button>
                     手写列表页提取JS代码
-                    <el-button type="primary" @click='editorHandle.ImportListCode'>导入模板</el-button>
+                    <!-- <el-button type="primary" @click='editorHandle.ImportListCode'>导入模板</el-button> -->
+                    <el-button type="primary" @click='editorHandle.createImportListCode'>生成JS代码</el-button>
                 </el-divider>
                 <el-row>
                     <el-input v-model="formData.listJs" class="codeEditor" :rows="6" type="textarea"
@@ -167,9 +167,10 @@
                     </span>
                 </template>
                 <el-divider>
-                    <el-button type="primary" style="margin-right: 12px;" @click='editorHandle.createImportListTrunPageCode'>生成样例</el-button>
                     手写列表页翻页JS代码
-                    <el-button type="primary" @click='editorHandle.ImportListTrunPageCode'>导入模板</el-button></el-divider>
+                    <!-- <el-button type="primary" @click='editorHandle.ImportListTrunPageCode'>导入模板</el-button> -->
+                    <el-button type="primary" @click='editorHandle.createImportListTrunPageCode'>生成JS代码</el-button>
+                </el-divider>
                 <el-row>
                     <el-input v-model="formData.listTurnPageJs" class="codeEditor" :rows="6" type="textarea"
                         placeholder="Please input" />
@@ -186,9 +187,10 @@
                     </span>
                 </template>
                 <el-divider>
-                    <el-button type="primary" style="margin-right: 12px;" @click='editorHandle.createImportContentCode'>生成样例</el-button>
                     手写附件下载/上传JS代码
-                    <el-button type="primary" @click='editorHandle.ImportContentCode'>导入模板</el-button></el-divider>
+                    <!-- <el-button type="primary" @click='editorHandle.ImportContentCode'>导入模板</el-button> -->
+                    <el-button type="primary" @click='editorHandle.createImportContentCode'>生成样例</el-button>
+                </el-divider>
                 <el-row><el-input v-model="formData.contentJs" class="codeEditor" :rows="6" type="textarea"
                         placeholder="Please input" />
                 </el-row>
@@ -216,7 +218,7 @@ const store = useStore()
 
 const defaultFormValue = {
     delayTime: 500,
-    maxPages: 1,
+    maxPages: 2,
 }
 //表单数据
 const formData = ref({