Browse Source

修改bug

Jing 1 ngày trước cách đây
mục cha
commit
eda3b8b928

+ 16 - 6
src/layout/components/Navbar.vue

@@ -115,18 +115,16 @@
           </div>
 
           <div class="noticeTabsLinkLine">
-            <div v-if="userType == 10000 || userType == 1 || userType == 3">
+            <div v-if="userType == 10000">
               <div v-if="tabsIndex == 1" @click="goToPath(1, 0)">待审核列表</div>
               <div v-if="tabsIndex == 2" @click="goToPath(2, 0)">待审核列表</div>
-              <div class="qiuFlex" v-if="tabsIndex == 3 && qiu == true && (userType == 10000 || userType == 1)"
-                @click="goToPath(3, 0)">
+              <div class="qiuFlex" v-if="tabsIndex == 3 && qiu == true && userType == 10000" @click="goToPath(3, 0)">
                 <span :class="{ 'qiuPillow': true, 'qiuPillowHover': qiu1 == true }" @mouseover="handleQiu(1)"
                   @click="goToPath(3.1, 0)">待审核列表</span>
                 <span :class="{ 'qiuPillow': true, 'qiuPillowHover': qiu2 == true }" @mouseover="handleQiu(2)"
                   @click="goToPath(3.2, 0)">职场机会</span>
               </div>
-              <div class="qiuFlex" v-if="tabsIndex == 3 && zhao == true && (userType == 10000 || userType == 3)"
-                @click="goToPath(3, 0)">
+              <div class="qiuFlex" v-if="tabsIndex == 3 && zhao == true && userType == 10000" @click="goToPath(3, 0)">
                 <span :class="{ 'qiuPillow': true, 'qiuPillowHover': zhao1 == true }" @mouseover="handleQiu(3)"
                   @click="goToPath(3.3, 0)">待审核列表</span>
                 <span :class="{ 'qiuPillow': true, 'qiuPillowHover': zhao2 == true }" @mouseover="handleQiu(4)"
@@ -152,7 +150,19 @@
             <div v-else>
               <div v-if="tabsIndex == 1" @click="goToPath(1, -1)">资讯列表</div>
               <div v-if="tabsIndex == 2" @click="goToPath(2, -1)">商品列表</div>
-              <div v-if="tabsIndex == 3" @click="goToPath(3, -1)">求职招聘列表</div>
+              <div v-if="tabsIndex == 3 && (userType == 2 || userType == 4)" @click="goToPath(3, -1)">求职招聘列表</div>
+              <div class="qiuFlex" v-if="tabsIndex == 3 && qiu == true && userType == 1" @click="goToPath(3, 0)">
+                <span :class="{ 'qiuPillow': true, 'qiuPillowHover': qiu1 == true }" @mouseover="handleQiu(1)"
+                  @click="goToPath(3.1, -1)">求职列表</span>
+                <span :class="{ 'qiuPillow': true, 'qiuPillowHover': qiu2 == true }" @mouseover="handleQiu(2)"
+                  @click="goToPath(3.2, 0)">职场机会</span>
+              </div>
+              <div class="qiuFlex" v-if="tabsIndex == 3 && zhao == true && userType == 3" @click="goToPath(3, 0)">
+                <span :class="{ 'qiuPillow': true, 'qiuPillowHover': zhao1 == true }" @mouseover="handleQiu(3)"
+                  @click="goToPath(3.3, -1)">招聘列表</span>
+                <span :class="{ 'qiuPillow': true, 'qiuPillowHover': zhao2 == true }" @mouseover="handleQiu(4)"
+                  @click="goToPath(3.4, 0)">人才库</span>
+              </div>
               <div v-if="tabsIndex == 4" @click="goToPath(4, -1)">书刊列表</div>
               <!-- <div class="qiuFlex" v-if="tabsIndex == 5">
                 <span style="cursor: default;" :class="{ 'qiuPillow': true, 'qiuPillowHover': single == true }"

+ 7 - 2
src/views/news/addBook.vue

@@ -170,6 +170,9 @@ import myEditor from '../../components/edit/myEditor.vue';
 //引入tag标签组件
 import tagInput from '../../components/InputTag/index.vue';
 
+import { getWebSiteId, getUseType } from '@/utils/auth'
+
+
 //格式化时间
 import { formatLocalDate } from '@/utils/public';
 
@@ -351,7 +354,8 @@ export default {
           }
           console.log(level, 'level--1--');
           let pid = level == 0 ? 0 : data.value
-          let website_id = self.form.website_id == '' ? 2 : self.form.website_id;
+          this.website_id = getWebSiteId();
+          let website_id = self.form.website_id == '' ? this.website_id : self.form.website_id;
           console.log(website_id, 'website_id--111-----');
           let parames = {
             'type': 3,
@@ -501,7 +505,7 @@ export default {
           } else {
             this.form.status = 1
           }
-          this.form.website_id = this.form.website_id == '' ? 2 : this.form.website_id;
+          this.form.website_id = this.form.website_id == '' ? this.website_id : this.form.website_id;
           this.form.price == '' ? this.form.price = 0 : this.form.price = this.form.price;
           this.form.market_price == '' ? this.form.market_price = 0 : this.form.market_price = this.form.market_price;
           this.form.page == '' ? this.form.page = 0 : this.form.page = this.form.page;
@@ -754,6 +758,7 @@ export default {
     }
     this.fetchWebsiteOptions();
     this.getUserInfo();
+    this.website_id = getWebSiteId();
 
     //复制内容到富文本 start ------------------------------------------------------------>
     //复制富文本 end ------------------------------------------------------------>

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

@@ -394,7 +394,7 @@ export default {
             if (res.data) {
               const nodes = res.data.map(item => ({
                 value: item.category_id,
-                label: item.name,
+                label: item.alias,
                 leaf: level >= 3,
                 children: [],
                 disabled: item.type != 1