Pārlūkot izejas kodu

Merge branch 'pre' of http://git.bjzxtw.org.cn:3000/zxt/admin_home into pre

rkljw 1 nedēļu atpakaļ
vecāks
revīzija
c3c9f506d8

+ 5 - 1
src/views/job/creatJob.vue

@@ -378,6 +378,7 @@ export default {
           }
 
           let parames = {
+            'type': 4,
             'website_id': self.form.web_site_id ? self.form.web_site_id : self.websiteid,
             'pid': parentId
 
@@ -805,7 +806,10 @@ export default {
       let that = this;
       this.form.web_site_id = this.form.web_site_id[0]
       that.parentKey_2 += 1;
-      this.$store.dispatch('pool/get_creatNews_nav_son_actions', { pid: String(this.creatNews_pid_num), website_id: String(this.form.web_site_id) }).then(res => {
+      this.$store.dispatch('pool/get_creatNews_nav_son_actions', {
+        'type': 4,
+        pid: String(this.creatNews_pid_num), website_id: String(this.form.web_site_id)
+      }).then(res => {
         if (res.data.length == 0) {//没有导航池子级
           // alert("没有导航池子级");
           return

+ 1 - 0
src/views/news/addBook.vue

@@ -355,6 +355,7 @@ export default {
           let website_id = self.form.website_id == '' ? 2 : self.form.website_id;
           console.log(website_id, 'website_id--111-----');
           let parames = {
+            'type': 3,
             'website_id': website_id,
             'pid': pid
           }

+ 12 - 2
src/views/news/addGood.vue

@@ -107,9 +107,9 @@
               </el-upload>
             </div>
           </el-form-item>
-          <div class="imgBox" style="margin-left: 100px ;margin-bottom: 20px; padding-top: -20px;">
+          <di v class="imgBox" style="margin-left: 100px ;margin-bottom: 20px; padding-top: -20px;">
             最多可上传5张,每张图片大小不能超过500K,推荐上传图片尺寸
-            宽1000像素 高1000像素。(首张显示为商品头图)</div>
+            宽1000像素 高1000像素。(首张显示为商品头图)</di>
           <!-- <el-form-item label="商品关键词:" prop="keyword" class="custom-align-right">
             <el-input v-model="form.keyword" autocomplete="off" placeholder="请输入商品关键词"></el-input>
           </el-form-item> -->
@@ -141,6 +141,10 @@
             <el-input type="number" v-model="form.hits" autocomplete="off" placeholder="请输入浏览量"></el-input>
           </el-form-item>
 
+          <el-form-item label="公司名称:" prop="com" class="custom-align-right">
+            <el-input v-model="form.com" autocomplete="off" placeholder="请输入公司名称"></el-input>
+          </el-form-item>
+
           <el-form-item label="联系人:" prop="contact" class="custom-align-right">
             <el-input v-model="form.contact" autocomplete="off" placeholder="请输入联系人"></el-input>
           </el-form-item>
@@ -162,6 +166,9 @@
           <el-form-item label="详细地址:" prop="address" class="custom-align-right">
             <el-input v-model="form.address" autocomplete="off" placeholder="请输入详细地址"></el-input>
           </el-form-item>
+
+
+
         </div>
       </el-form>
     </div>
@@ -265,6 +272,7 @@ export default {
         address: '',
         city_id: '',
         imgurl: [],//缩略图
+        com: '',
       },
       //1.2 表单验证规则
       formRules: {
@@ -406,6 +414,7 @@ export default {
           let website_id = self.form.website_id == '' ? 2 : self.form.website_id;
           console.log(website_id, 'website_id--111-----');
           let parames = {
+            'type': 2,
             'website_id': website_id,
             'pid': pid
           }
@@ -668,6 +677,7 @@ export default {
         this.form.postal = res.data.postal;
         this.form.address = res.data.address;
         this.form.level = res.data.level;
+        this.form.com = res.data.com;
         if (res.data.level == "[0]" || res.data.level == "[]" || res.data.level == "") {
           this.form.level = [];
         } else {

+ 5 - 1
src/views/news/addJobHunting.vue

@@ -578,6 +578,7 @@ export default {
             parentId = self.creatNews_pid_num.toString();
           }
           let parames = {
+            'type': 5,
             'website_id': self.form.web_site_id ? self.form.web_site_id : self.websiteid,
             'pid': parentId
 
@@ -1061,7 +1062,10 @@ export default {
     },
     creatNews_nav_pool_change_fun() {      //xx  导航池级
       let that = this; this.form.web_site_id = this.form.web_site_id[0]
-      that.parentKey_2 += 1; this.$store.dispatch('pool/get_creatNews_nav_son_actions', { pid: String(this.creatNews_pid_num), website_id: String(this.form.web_site_id) }).then(res => {
+      that.parentKey_2 += 1; this.$store.dispatch('pool/get_creatNews_nav_son_actions', {
+        'type': 5,
+        pid: String(this.creatNews_pid_num), website_id: String(this.form.web_site_id)
+      }).then(res => {
         if (res.data.length == 0) {//没有导航池子级
           // alert("没有导航池子级");
           return

+ 3 - 1
src/views/news/creatNews.vue

@@ -371,6 +371,7 @@ export default {
           let parentId;
           parentId = level == 0 ? 0 : data.value;
           let parames = {
+            'type': 1,
             'website_id': getWebSiteId(),
             'pid': parentId
           }
@@ -407,6 +408,7 @@ export default {
             self.ifwebsitId = false;
           }
           let parames = {
+            'type': 1,
             'website_id': self.form.web_site_id,
             'pid': parentId
           }
@@ -998,7 +1000,7 @@ export default {
       let that = this;
       this.form.web_site_id = this.form.web_site_id[0]
       that.parentKey_2 += 1;
-      this.$store.dispatch('pool/get_creatNews_nav_son_actions', { pid: String(this.creatNews_pid_num), website_id: String(this.form.web_site_id) }).then(res => {
+      this.$store.dispatch('pool/get_creatNews_nav_son_actions', { type: 1, pid: String(this.creatNews_pid_num), website_id: String(this.form.web_site_id) }).then(res => {
         if (res.data.length == 0) {//没有导航池子级
           // alert("没有导航池子级");
           return

+ 85 - 58
src/views/website/categoryList.vue

@@ -6,7 +6,7 @@
         <el-col :span="8">
           <div class="searchBox">
             <div class="searchTitle">栏目名称:</div>
-            <el-input v-model="getApiData.name"   placeholder="请输入栏目名称"  :clearable="true" @clear="onInputClear"/>
+            <el-input v-model="getApiData.name" placeholder="请输入栏目名称" :clearable="true" @clear="onInputClear" />
             <!-- <el-input placeholder="请输入栏目名称" autocomplete="off" v-model="getApiData.name" /> -->
           </div>
         </el-col>
@@ -28,19 +28,15 @@
       <tableTitle :name="tableDivTitle" />
       <el-row>
         <template>
-          <el-table 
-          :data="tableData"
-          style="width: 100%"
-          row-key="id"
-          :default-expand-all="isExpandAll"
-          :tree-props="{children: 'children', hasChildren: 'hasChildren'}" 
-          >
+          <el-table :data="tableData" style="width: 100%" row-key="id" :default-expand-all="isExpandAll"
+            :tree-props="{ children: 'children', hasChildren: 'hasChildren' }">
             <el-table-column fixed prop="id" label="编号" width="150"></el-table-column>
             <el-table-column prop="name" label="栏目名称">
               <template slot-scope="scope">
-                <span :class="{ highlight: isHighlight(scope.row, search) }" v-if="scope.row.pid==0">{{ scope.row.name }}</span>
-                <span :class="{ highlight: isHighlight(scope.row, search)}"  v-else>____{{ scope.row.name }}</span>
-            </template>
+                <span :class="{ highlight: isHighlight(scope.row, search) }" v-if="scope.row.pid == 0">{{ scope.row.name
+                }}</span>
+                <span :class="{ highlight: isHighlight(scope.row, search) }" v-else>____{{ scope.row.name }}</span>
+              </template>
             </el-table-column>
             <el-table-column label="是否外链" align="center">
               <template slot-scope="scope">
@@ -54,9 +50,12 @@
             <el-table-column fixed="right" label="操作" width="230" header-align="center">
               <template slot-scope="scope">
                 <div class="listBtnBox">
-                  <div class="listDeleteBtn" @click="deleteData(scope.row.id, tableData)"><i class="el-icon-delete"></i>删除</div>
-                  <div class="listEditBtn" @click="getDataMain(scope.row.id, tableData)"><i  class="el-icon-edit-outline"></i>编辑</div>
-                  <div class="listMainBtn" @click="addCategoryList(scope.row)"><i class="el-icon-document-add"></i>添加</div>
+                  <div class="listDeleteBtn" @click="deleteData(scope.row.id, tableData)"><i
+                      class="el-icon-delete"></i>删除</div>
+                  <div class="listEditBtn" @click="getDataMain(scope.row.id, tableData)"><i
+                      class="el-icon-edit-outline"></i>编辑</div>
+                  <div class="listMainBtn" @click="addCategoryList(scope.row)"><i class="el-icon-document-add"></i>添加
+                  </div>
                 </div>
                 <!-- <el-button @click.native.prevent="deleteData(scope.row.id, tableData)" type="text" size="small">删除</el-button>
                 <el-button @click.native.prevent="getDataMain(scope.row.id, tableData)" type="text" size="small">编辑</el-button> -->
@@ -117,6 +116,30 @@
             <el-form-item label="父级栏目:" :label-width="formLabelWidth" class="custom-align-right">
               <el-cascader :key="parentKey" v-model="form.pid_arr" placeholder="请选择要绑定的父级栏目" :props="parentData"
                 filterable clearable></el-cascader>
+            </el-form-item>
+            <el-form-item label="栏目类型:" :label-width="formLabelWidth" prop="type" class="custom-align-right">
+              <template #label>
+                <span class="askBox">
+                  栏目类型:
+                  <el-tooltip class="item" effect="dark" content=" 选择类型提交后不可更改,请谨慎考虑后提交!" placement="top">
+                    <i class="el-icon-question"></i>
+                  </el-tooltip>
+                </span>
+              </template>
+
+              <el-radio-group v-model="form.type" size="small" :disabled="editId ? true : false">
+                <el-radio-button label="1">资讯</el-radio-button>
+                <el-radio-button label="2">商品</el-radio-button>
+                <el-radio-button label="3">书刊音响</el-radio-button>
+                <el-radio-button label="4">招聘</el-radio-button>
+                <el-radio-button label="5">求职</el-radio-button>
+              </el-radio-group>
+              <!-- 选择类型提交后不可更改,请谨慎考虑后提交! 提示词 -->
+              <div style="color: brown;">
+                选择类型提交后不可更改,请谨慎考虑后提交!
+              </div>
+
+
             </el-form-item>
             <el-form-item label="栏目标题:" :label-width="formLabelWidth" prop="seo_title" class="custom-align-right">
               <template #label>
@@ -184,7 +207,7 @@ export default {
     InputTag
   },
   data() {
-   
+
     //0.全局操作 start ------------------------------------------------------------>
     //表单验证
     const validateEmpty = (rule, value, callback) => {
@@ -315,6 +338,7 @@ export default {
         seo_title: "",//标题
         seo_keywords: "",//关键词
         seo_description: "",//描述
+        type: 1,//栏目类型
         pid_arr: []//父级栏目
       },
       //4.2表单验证规则
@@ -416,7 +440,7 @@ export default {
     }
   },
   methods: {
-    onInputClear(){
+    onInputClear() {
       this.isExpandAll = false;
       this.getData();
     },
@@ -424,10 +448,10 @@ export default {
     //1.列表和分页相关 start ------------------------------------------------------------>
     //1.1 开始请求列表信息方法
     getData(type) {
-      if(type=='search'){
-        this.getApiData.page=1
+      if (type == 'search') {
+        this.getApiData.page = 1
         this.isExpandAll = true;
-      }else{
+      } else {
         this.isExpandAll = false;
       }
       //搜索条件
@@ -440,7 +464,7 @@ export default {
       //   this.getApiData.city_id = this.getApiData.city_id[this.getApiData.city_id.length - 1];
       // }
       //如果是搜索,重新加载第一页
-  
+
       this.$store.dispatch('pool/getCategoryList', this.getApiData).then(res => {
         // console.log("=============:",res.data)
         this.tableData = res.data.rows; //��与内容
@@ -524,19 +548,19 @@ export default {
     },
     //2.1.1 添加栏目池
     addCategoryList(row) {
-      this.form.pid_arr =[];
+      this.form.pid_arr = [];
       this.show_url = false;
       // this.form.is_url = 0;
       this.editId = 0;
       this.editBtn = false;
       this.tags = []
-      if(row){
-        if(row.pid==0){
+      if (row) {
+        if (row.pid == 0) {
           this.form.pid_arr.push(row.id)
-        }else{
+        } else {
           let pidArr = [];
           // console.log("fuck:",row.pid_arr);
-          pidArr =  JSON.parse(row.pid_arr)
+          pidArr = JSON.parse(row.pid_arr)
           pidArr.push(row.id)
           this.form.pid_arr = pidArr
           // console.log('追加id:',this.form.pid_arr)
@@ -668,6 +692,7 @@ export default {
         this.form.seo_keywords = res.data.seo_keywords;
         this.tags = res.data.seo_keywords ? res.data.seo_keywords.split(',') : [];
         this.form.seo_description = res.data.seo_description;
+        this.form.type = res.data.type;
 
         //回显排序
         this.form.sort = res.data.sort;
@@ -757,6 +782,7 @@ export default {
 ::v-deep .highlight {
   background-color: yellow;
 }
+
 //表单微调 start------------------------------------------------------------>*/
 ::v-deep .custom-form-item>.el-form-item__label {
   line-height: 140px !important;
@@ -771,43 +797,44 @@ export default {
   text-align: right;
   /* 设置标签文字右对齐 */
 }
-.collector {
-        margin-left: 0px;
-        padding-left: 0px;
-        margin-right: 20px;
-        width: 76px;
-        height: 36px;
-        line-height: 36px;
-        position: relative;
-
-        .collectorIcon {
-            display: inline-block;
-            width: 20px;
-            height: 20px;
-            background: url("../../assets/advertise/Graph.png");
-            vertical-align: middle;
-            margin-right: 6px;
-        }
 
-        .collectorIcon1 {
-            position: absolute;
-            top: 12px;
-            left: 8px;
-        }
+.collector {
+  margin-left: 0px;
+  padding-left: 0px;
+  margin-right: 20px;
+  width: 76px;
+  height: 36px;
+  line-height: 36px;
+  position: relative;
+
+  .collectorIcon {
+    display: inline-block;
+    width: 20px;
+    height: 20px;
+    background: url("../../assets/advertise/Graph.png");
+    vertical-align: middle;
+    margin-right: 6px;
+  }
 
-    }
+  .collectorIcon1 {
+    position: absolute;
+    top: 12px;
+    left: 8px;
+  }
 
+}
 
-    .collector {
-        text-align: center;
-        border-radius: 8px;
-        cursor: pointer;
-        color: #519C66;
-        background-color: rgba(81, 156, 102, 0.16);
 
-        >i {
-            padding-right: 8px;
-        }
-    }
+.collector {
+  text-align: center;
+  border-radius: 8px;
+  cursor: pointer;
+  color: #519C66;
+  background-color: rgba(81, 156, 102, 0.16);
+
+  >i {
+    padding-right: 8px;
+  }
+}
 
 //表单微调 end------------------------------------------------------------>*/</style>

+ 113 - 105
src/views/website/editNavigation.vue

@@ -5,7 +5,7 @@
         <el-col :span="8">
           <div class="searchBox">
             <div class="searchTitle">栏目名称:</div>
-            <el-input v-model="search"   placeholder="请输入栏目名称"  :clearable="true"/>
+            <el-input v-model="search" placeholder="请输入栏目名称" :clearable="true" />
             <!-- <el-input placeholder="请输入栏目名称" autocomplete="off" v-model="getApiData.name" /> -->
           </div>
         </el-col>
@@ -66,41 +66,44 @@
 
     <!--表格内容 start------------------------------------------------------------>
     <div class="layerBox">
-      <tableTitle :name="tableDivTitle"/>
+      <tableTitle :name="tableDivTitle" />
       <el-row>
         <template>
-          <el-table   
-            :data="tableData.filter(data => searchFilter(data, search))"
-            style="width: 100%"
-            row-key="id"
-            :default-expand-all="isExpandAll"
-            :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
-            :row-class-name="tableRowClassName"
-            >
+          <el-table :data="tableData.filter(data => searchFilter(data, search))" style="width: 100%" row-key="id"
+            :default-expand-all="isExpandAll" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
+            :row-class-name="tableRowClassName">
             <el-table-column fixed prop="category_id" label="编号" width="180"></el-table-column>
             <el-table-column prop="name" label="栏目名称">
               <template slot-scope="scope">
-                <span :class="{ highlight: isHighlight(scope.row, search) }" v-if="scope.row.pid==0">{{ scope.row.name }}</span>
-                <span :class="{ highlight: isHighlight(scope.row, search)}"  v-else>____{{ scope.row.name }}</span>
+                <span :class="{ highlight: isHighlight(scope.row, search) }" v-if="scope.row.pid == 0">{{ scope.row.name
+                }}</span>
+                <span :class="{ highlight: isHighlight(scope.row, search) }" v-else>____{{ scope.row.name }}</span>
               </template>
             </el-table-column>
             <el-table-column prop="alias" label="展示名称"></el-table-column>
-            <el-table-column label="排序"    width="95">
-            <template slot-scope="scope" >
-              <el-input
-                v-model="scope.row.sort"
-                @blur="handleBlur(scope.row)"
-                placeholder="请输入排序值"
-                maxlength="5"
-              ></el-input>
-            </template>
-          </el-table-column>
+            <el-table-column prop="type" label="栏目类型">
+              <template slot-scope="scope">
+                <span v-if="scope.row.type == 1">资讯</span>
+                <span v-else-if="scope.row.type == 2">商品</span>
+                <span v-else-if="scope.row.type == 3">书刊音像</span>
+                <span v-else-if="scope.row.type == 4">招聘</span>
+                <span v-else-if="scope.row.type == 5">求职</span>
+              </template>
+            </el-table-column>
+            <el-table-column label="排序" width="95">
+              <template slot-scope="scope">
+                <el-input v-model="scope.row.sort" @blur="handleBlur(scope.row)" placeholder="请输入排序值"
+                  maxlength="5"></el-input>
+              </template>
+            </el-table-column>
             <el-table-column prop="created_at" label="创建时间"></el-table-column>
             <el-table-column prop="updated_at" label="修改时间"></el-table-column>
             <el-table-column fixed="right" label="操作" width="120" header-align="center">
               <template slot-scope="scope">
                 <div class="listBtnBox">
-                  <div class="listEditBtn" @click="editRow(scope.row.category_id)"><i class="el-icon-edit-outline"></i>编辑</div>
+                  <div class="listEditBtn" @click="editRow(scope.row.category_id)"><i
+                      class="el-icon-edit-outline"></i>编辑
+                  </div>
                 </div>
               </template>
             </el-table-column>
@@ -129,7 +132,7 @@
             <input type="hidden" v-model="form.seo_title">
           </el-form-item>
 
-          <el-form-item label="名称拼音:" :label-width="formLabelWidth"  class="custom-align-right">
+          <el-form-item label="名称拼音:" :label-width="formLabelWidth" class="custom-align-right">
             <el-input v-model="form.alias_pinyin" autocomplete="off"></el-input>
           </el-form-item>
 
@@ -140,7 +143,7 @@
           </el-form-item>
           <el-form-item label="展示关键词:" :label-width="formLabelWidth" prop="seo_keywords" class="custom-align-right">
             <div class="formLabelFloatBox">
-              <inputTag  :initialTags="tags" @tags-updated="updateTags"/> 
+              <inputTag :initialTags="tags" @tags-updated="updateTags" />
               <!-- <inputTag  :initialTags="form.seo_keywords" @tags-updated="updateTags"/> -->
               <!-- <el-input v-model="form.seo_keywords" autocomplete="off"></el-input> -->
             </div>
@@ -150,7 +153,7 @@
           </el-form-item>
           <el-form-item label="排序:" :label-width="formLabelWidth" prop="sort" class="custom-align-right">
             <div class="formLabelFloatBox">
-              <el-input v-model="form.sort" autocomplete="off" ></el-input>
+              <el-input v-model="form.sort" autocomplete="off"></el-input>
             </div>
           </el-form-item>
         </div>
@@ -183,7 +186,7 @@ export default {
   data() {
     //0.全局操作 start ------------------------------------------------------------>
     //表单验证
-    const validateEmpty = (rule,value,callback) => {
+    const validateEmpty = (rule, value, callback) => {
       if (value.length == 0) {
         callback(new Error('该项不能为空!'))
       } else {
@@ -198,35 +201,35 @@ export default {
       search: '',
       tags: [],
       //1.列表和分页相关 start ------------------------------------------------------------>
-      tableDivTitle:"栏目详情",
+      tableDivTitle: "栏目详情",
       tableData: [],//列表
-      allCount:0,//总条数
-      editId:0,//要修改的网站id
-      getApiData:{
-        website_id:0,//网站id
-        name:"",//导航名称
-        alias:"",//网站导航名称
-        city_id:"",//行政区划
-        department_id:"",//行政职能部门
-        page:1,//当前是第几页
-        pageSize:10,//一共多少条
+      allCount: 0,//总条数
+      editId: 0,//要修改的网站id
+      getApiData: {
+        website_id: 0,//网站id
+        name: "",//导航名称
+        alias: "",//网站导航名称
+        city_id: "",//行政区划
+        department_id: "",//行政职能部门
+        page: 1,//当前是第几页
+        pageSize: 10,//一共多少条
       },
-      website_column_arr:[],//获得的网系
+      website_column_arr: [],//获得的网系
       //分页相关 end ------------------------------------------------------------>
 
       //2.弹出框设置 start ------------------------------------------------------------>
       //是否显示弹出窗口
-      windowStatus:false,
+      windowStatus: false,
       formLabelWidth: '120px',
       //弹出框设置 end ------------------------------------------------------------>
 
       //3.搜索相关 start ------------------------------------------------------------>
       //3.1获得职能部门
-      searchDepartmentKey:0,
+      searchDepartmentKey: 0,
       searchDepartmentData: {
         checkStrictly: true,
         lazy: true,
-        async lazyLoad (node, resolve) {
+        async lazyLoad(node, resolve) {
           const { level, data } = node;
           if (data && data.children && data.children.length !== 0) {
             return resolve(node)
@@ -234,9 +237,9 @@ export default {
           console.log(level)
           let parentId = level == 0 ? 0 : data.value
           let parames = {
-            'pid':parentId
+            'pid': parentId
           }
-          self.$store.dispatch('pool/getDepartment',parames).then(res=> {
+          self.$store.dispatch('pool/getDepartment', parames).then(res => {
             if (res.data) {
               const nodes = res.data.map(item => ({
                 value: item.id,
@@ -250,11 +253,11 @@ export default {
         }
       },
       //3.2获得行政区划
-      searchCascaderKey:0, //列表缓存key
+      searchCascaderKey: 0, //列表缓存key
       searchCityData: {
         checkStrictly: true,
         lazy: true,
-        async lazyLoad (node, resolve) {
+        async lazyLoad(node, resolve) {
           const { level, data } = node;
           if (data && data.children && data.children.length !== 0) {
             return resolve(node)
@@ -262,9 +265,9 @@ export default {
           console.log(level)
           let parentId = level == 0 ? 0 : data.value
           let parames = {
-            'pid':parentId
+            'pid': parentId
           }
-          self.$store.dispatch('pool/getcityList',parames).then(res=> {
+          self.$store.dispatch('pool/getcityList', parames).then(res => {
             if (res.data) {
               const nodes = res.data.map(item => ({
                 value: item.id,
@@ -282,47 +285,47 @@ export default {
       //3.弹出框中的表单设置 start ------------------------------------------------------------>
       //3.1 表单收集的数据
       form: {
-        website_id:0,//网站id
-        category_id:0,//导航id
-        alias:"",//导航名称
-        alias_pinyin:"",//导航名称拼音
-        seo_title:"",//导航seo名称
-        seo_keywords:"",//导航关键词
-        seo_description:"",//导航描述
-        sort:0//排序
+        website_id: 0,//网站id
+        category_id: 0,//导航id
+        alias: "",//导航名称
+        alias_pinyin: "",//导航名称拼音
+        seo_title: "",//导航seo名称
+        seo_keywords: "",//导航关键词
+        seo_description: "",//导航描述
+        sort: 0//排序
       },
       //3.2表单验证规则
       formRules: {
         //网站名称不能为空
-        alias:[{required:true,trigger:'blur',validator:validateEmpty}],
-        sort:[{required:true,trigger:'blur',validator:validateEmpty}],
+        alias: [{ required: true, trigger: 'blur', validator: validateEmpty }],
+        sort: [{ required: true, trigger: 'blur', validator: validateEmpty }],
         //网站标题,关键词,描述不能为空
-        seo_title:[{required:true,trigger:'blur',validator:validateEmpty}],
-        seo_keywords:[{required:true,trigger:'blur',validator:validateEmpty}],
-        seo_description:[{required:true,trigger:'blur',validator:validateEmpty}],
+        seo_title: [{ required: true, trigger: 'blur', validator: validateEmpty }],
+        seo_keywords: [{ required: true, trigger: 'blur', validator: validateEmpty }],
+        seo_description: [{ required: true, trigger: 'blur', validator: validateEmpty }],
       },
       //弹出框中的表单设置 end ------------------------------------------------------------>
     }
   },
   methods: {
-      tableRowClassName({row, rowIndex}) {
-        if (row.pid == 0) {
-          return 'warning-row';
-        } 
-        return '';
-      },
+    tableRowClassName({ row, rowIndex }) {
+      if (row.pid == 0) {
+        return 'warning-row';
+      }
+      return '';
+    },
     //1.列表和分页相关 start ------------------------------------------------------------>
     //1.1 获取内容
-    getData(){
+    getData() {
       //行政职能部门提交最后一个
-      if(this.getApiData.department_id.length>0){
+      if (this.getApiData.department_id.length > 0) {
         this.getApiData.department_id = this.getApiData.department_id[this.getApiData.department_id.length - 1];
       }
       //城市id提交最后一个
-      if(this.getApiData.city_id.length>0){
+      if (this.getApiData.city_id.length > 0) {
         this.getApiData.city_id = this.getApiData.city_id[this.getApiData.city_id.length - 1];
       }
-      this.$store.dispatch('pool/getWebsiteAllCategory',this.getApiData).then(res=> {
+      this.$store.dispatch('pool/getWebsiteAllCategory', this.getApiData).then(res => {
         let data = res.data;
         this.tableData = data;//放入数据
         // this.allCount = res.data.count;//放入总条数
@@ -340,7 +343,7 @@ export default {
     //   this.getData();
     // },
     //1.4 重置按钮
-    clearSearchList(){
+    clearSearchList() {
       this.tableData = [];
       this.getApiData.alias = "";
       this.getApiData.name = "";
@@ -359,12 +362,12 @@ export default {
       this.windowStatus = true;
     },
     //2.2 关闭弹出框
-    closeWindow(){
+    closeWindow() {
       this.windowStatus = false;
       this.clearToServe();
     },
     //2.3 清空提交窗口
-    clearToServe(){
+    clearToServe() {
       //重置窗口
       this.editId = "";
       this.form.website_id = 0;
@@ -379,13 +382,13 @@ export default {
 
     //4.编辑导航 start ------------------------------------------------------------>
     //回显数据
-    editRow(id){
+    editRow(id) {
       this.openWindow();
       let data = {
-        website_id:this.$route.query.website_id,
-        category_id:id
+        website_id: this.$route.query.website_id,
+        category_id: id
       }
-      this.$store.dispatch('pool/getWebsiteCategoryOnes',data).then(res=> {
+      this.$store.dispatch('pool/getWebsiteCategoryOnes', data).then(res => {
         // console.log(res.data)
         this.form.website_id = this.$route.query.website_id;
         this.form.category_id = id;
@@ -393,18 +396,18 @@ export default {
         this.form.alias = res.data.alias;
         this.form.seo_title = res.data.seo_title;
         this.form.seo_keywords = res.data.seo_keywords;
-        this.tags = res.data.seo_keywords?res.data.seo_keywords.split(','):[];
+        this.tags = res.data.seo_keywords ? res.data.seo_keywords.split(',') : [];
         this.form.seo_description = res.data.seo_description;
         this.form.sort = res.data.sort;
       })
     },
     //提交编辑的数据
-    addToServe(){
+    addToServe() {
       //把标题的值给与seo_title
       // this.form.seo_title = this.form.alias;
       this.$refs.form.validate(valid => {
         if (valid) {
-          this.$store.dispatch('pool/upWebsiteCategoryones',this.form).then(res=> {
+          this.$store.dispatch('pool/upWebsiteCategoryones', this.form).then(res => {
             //汇报结果
             this.$message({
               type: 'success',
@@ -425,32 +428,32 @@ export default {
     },
     //编辑导航 end ------------------------------------------------------------>
     updateTags(newTags) {
-            // this.foem.seo_keywords = newTags;
-            this.tags = newTags;
-            this.form.seo_keywords = newTags.join(',');
+      // this.foem.seo_keywords = newTags;
+      this.tags = newTags;
+      this.form.seo_keywords = newTags.join(',');
     },
     handleBlur(row) {
       const inputValue = row.sort;
       if (/^\d+$/.test(inputValue)) {
         row.sort = parseInt(inputValue, 10);
         let parems = {
-            'website_id':row.website_id,
-            'id':row.id,
-            'sort':row.sort
+          'website_id': row.website_id,
+          'id': row.id,
+          'sort': row.sort
         }
-        this.$store.dispatch('pool/upWebsiteCategorySort',parems).then(res=> {
-            //汇报结果
-            this.$message({
-              type: 'success',
-              message: '排序修改成功!'
-            });
-            this.getData();
-          }).catch(() => {
-            this.$message({
-              type: 'info',
-              message: '网络错误,请重试!'
-            });
-          })
+        this.$store.dispatch('pool/upWebsiteCategorySort', parems).then(res => {
+          //汇报结果
+          this.$message({
+            type: 'success',
+            message: '排序修改成功!'
+          });
+          this.getData();
+        }).catch(() => {
+          this.$message({
+            type: 'info',
+            message: '网络错误,请重试!'
+          });
+        })
         // 这里可以添加保存数据到后端的逻辑,例如使用 axios 发送请求
         console.log('数据保存成功:', row);
       } else {
@@ -480,7 +483,7 @@ export default {
       return row.name.toLowerCase().includes(lowerSearch);
     },
   },
-  mounted(){
+  mounted() {
     //console.log(this.$route.query);
     //获取具体参数
     this.getApiData.website_id = this.$route.query.website_id;
@@ -492,7 +495,7 @@ export default {
   watch: {
     search(newValue, oldValue) {
       this.isExpandAll = true
-      console.log("====:",this.isExpandAll)
+      console.log("====:", this.isExpandAll)
     }
   }
 }
@@ -502,14 +505,19 @@ export default {
 ::v-deep .highlight {
   background-color: yellow;
 }
+
 //表单微调 start------------------------------------------------------------>*/
-::v-deep .custom-form-item > .el-form-item__label {
+::v-deep .custom-form-item>.el-form-item__label {
   line-height: 140px !important;
 }
+
 ::v-deep .custom-textarea .el-textarea__inner {
-  resize: none; /* 禁止用���拖拽调整大小 */
+  resize: none;
+  /* 禁止用���拖拽调整大小 */
 }
+
 ::v-deep .custom-align-right .el-form-item__label {
-  text-align: right; /* 设置标签文字右对齐 */
+  text-align: right;
+  /* 设置标签文字右对齐 */
 }
 </style>