Jing 3 сар өмнө
parent
commit
dc1dae8e0a

+ 76 - 0
src/api/tabbar.js

@@ -0,0 +1,76 @@
+// 底部导航
+import request from '@/utils/request'
+
+//获取并搜索底部导航
+export const getFooterCategory = (data) => {
+    return request({
+        url: '/footer/getFooterCategory',
+        method: 'post',
+        data
+    })
+}
+
+//添加底部导航
+export const getTemplateClass = (data) => {
+    return request({
+        url: '/footer/addFooterCategory',
+        method: 'post',
+        data
+    })
+}
+
+//更新底部导航
+export const upFooterCategory = (data) => {
+    return request({
+        url: '/footer/upFooterCategory',
+        method: 'post',
+        data
+    })
+}
+
+//删除底部导航
+export const delFooterCategory = (data) => {
+    return request({
+        url: '/footer/delFooterCategory',
+        method: 'post',
+        data
+    })
+}
+
+
+//底部导航列表  -------------------------------------
+//添加导航列表
+export const addFooterContent = (data) => {
+    return request({
+        url: '/footer/addFooterContent',
+        method: 'post',
+        data
+    })
+}
+
+//搜索并获取列表
+export const getFooterContent = (data) => {
+    return request({
+        url: '/footer/getFooterContent',
+        method: 'post',
+        data
+    })
+}
+
+//修改导航列表
+export const upFooterContent = (data) => {
+    return request({
+        url: '/footer/upFooterContent',
+        method: 'post',
+        data
+    })
+}
+
+//删除导航列表
+export const delFooterContent = (data) => {
+    return request({
+        url: '/footer/delFooterContent',
+        method: 'post',
+        data
+    })
+}

+ 2 - 2
src/views/crawler/webCrawler.vue

@@ -79,8 +79,8 @@
                     <el-form-item label="规则类型:" prop="ruleType" class="keywords">
                         <el-select v-model="ruleForm.ruleType" placeholder="请选择规则类型" :disabled="disabledType">
                             <el-option label="一般规则" value="1"></el-option>
-                            <el-option label="接口规则" value="2"></el-option>
-                            <el-option label="自定义规则" value="3"></el-option>
+                            <!-- <el-option label="接口规则" value="2"></el-option>
+                            <el-option label="自定义规则" value="3"></el-option> -->
                         </el-select>
                         <el-tooltip class="item" effect="dark" content="列表翻页后,网址变化的为一般接口;列表翻页后,网址没变化的为接口规则。"
                             placement="top-start">

+ 17 - 17
src/views/crawler/webRule.vue

@@ -615,119 +615,119 @@ export default {
                 //第1页网址  接口类的开始采集地址 first_url
                 const first_url = sessionStorage.getItem("first_url");
                 if (first_url !== null) {
-                    this.ruleForm.ruleName = first_url
+                    this.ruleForm.first_url = first_url
                 } else {
                     this.ruleForm.first_url = ''
                 }
                 //接口类 采集地址 collect
                 const collect = sessionStorage.getItem("collect");
                 if (collect !== null) {
-                    this.ruleForm.ruleName = collect
+                    this.ruleForm.collect = collect
                 } else {
                     this.ruleForm.collect = ''
                 }
                 //第2页网址开头 second_start
                 const second_start = sessionStorage.getItem("second_start");
                 if (second_start !== null) {
-                    this.ruleForm.ruleName = second_start
+                    this.ruleForm.second_start = second_start
                 } else {
                     this.ruleForm.second_start = ''
                 }
                 //第2页代码页数 second_num
                 const second_num = sessionStorage.getItem("second_num");
                 if (second_num !== null) {
-                    this.ruleForm.ruleName = second_num
+                    this.ruleForm.second_num = second_num
                 } else {
                     this.ruleForm.second_num = ''
                 }
                 //第2页网址结束字符串 second_end
                 const second_end = sessionStorage.getItem("second_end");
                 if (second_end !== null) {
-                    this.ruleForm.ruleName = second_end
+                    this.ruleForm.second_end = second_end
                 } else {
                     this.ruleForm.second_end = ''
                 }
                 //startCode: '', 起始代码
                 const startCode = sessionStorage.getItem("startCode");
                 if (startCode !== null) {
-                    this.ruleForm.ruleName = startCode
+                    this.ruleForm.startCode = startCode
                 } else {
                     this.ruleForm.startCode = ''
                 }
                 // startLabel: '',列表开始标签
                 const startLabel = sessionStorage.getItem("startLabel");
                 if (startLabel !== null) {
-                    this.ruleForm.ruleName = startLabel
+                    this.ruleForm.startLabel = startLabel
                 } else {
                     this.ruleForm.startLabel = ''
                 }
                 //endPage: '', //结束页数
                 const endPage = sessionStorage.getItem("endPage");
                 if (endPage !== null) {
-                    this.ruleForm.ruleName = endPage
+                    this.ruleForm.endPage = endPage
                 } else {
                     this.ruleForm.endPage = ''
                 }
                 //title: '',  //标题字符串
                 const title = sessionStorage.getItem("title");
                 if (title !== null) {
-                    this.ruleForm.ruleName = title
+                    this.ruleForm.title = title
                 } else {
                     this.ruleForm.title = ''
                 }
                 // content: '', //内容字符串
                 const content = sessionStorage.getItem("content");
                 if (content !== null) {
-                    this.ruleForm.ruleName = content
+                    this.ruleForm.content = content
                 } else {
                     this.ruleForm.content = ''
                 }
                 // detailPage: '', //详情页标签
                 const detailPage = sessionStorage.getItem("detailPage");
                 if (detailPage !== null) {
-                    this.ruleForm.ruleName = detailPage
+                    this.ruleForm.detailPage = detailPage
                 } else {
                     this.ruleForm.detailPage = ''
                 }
                 // webSite_start: '',  //详情页网址前缀
                 const webSite_start = sessionStorage.getItem("webSite_start");
                 if (webSite_start !== null) {
-                    this.ruleForm.ruleName = webSite_start
+                    this.ruleForm.webSite_start = webSite_start
                 } else {
                     this.ruleForm.webSite_start = ''
                 }
                 //source: '', // 来源字符串
                 const source = sessionStorage.getItem("source");
                 if (source !== null) {
-                    this.ruleForm.ruleName = source
+                    this.ruleForm.source = source
                 } else {
                     this.ruleForm.source = ''
                 }
                 //author: '', // 作者字符串
                 const author = sessionStorage.getItem("author");
                 if (author !== null) {
-                    this.ruleForm.ruleName = author
+                    this.ruleForm.author = author
                 } else {
                     this.ruleForm.author = ''
                 }
                 //authorName: '', // 作者替换名称
                 const authorName = sessionStorage.getItem("authorName");
                 if (authorName !== null) {
-                    this.ruleForm.ruleName = authorName
+                    this.ruleForm.authorName = authorName
                 } else {
                     this.ruleForm.authorName = ''
                 }
                 //parameter: '',  //接口类2 接口参数
                 const parameter = sessionStorage.getItem("parameter");
                 if (parameter !== null) {
-                    this.ruleForm.ruleName = parameter
+                    this.ruleForm.parameter = parameter
                 } else {
                     this.ruleForm.parameter = ''
                 }
                 //diy_rule: '',自定义类
                 const diy_rule = sessionStorage.getItem("diy_rule");
                 if (diy_rule !== null) {
-                    this.ruleForm.ruleName = diy_rule
+                    this.ruleForm.diy_rule = diy_rule
                 } else {
                     this.ruleForm.diy_rule = ''
                 }