Просмотр исходного кода

修改网上申报跳转,更多错误

asd123a20 2 лет назад
Родитель
Сommit
f5cf7f1e24
3 измененных файлов с 9 добавлено и 5 удалено
  1. 2 2
      src/components/foots/index.vue
  2. 6 2
      src/components/list/index.vue
  3. 1 1
      src/views/Home.vue

+ 2 - 2
src/components/foots/index.vue

@@ -18,11 +18,11 @@
         <p class="itemBox itemBox1">
           <span class="item">{{ infos.title && infos.title.name }}{{ infos.title && infos.title.value }}</span>
         </p>
-        <p class="itemBox itemBox1">
+        <!-- <p class="itemBox itemBox1">
           <el-input size="mini" placeholder="请输入关键字" v-model="searchName" class="search">
             <el-button @click="btnSearch" slot="append" icon="el-icon-search"></el-button>
           </el-input>
-        </p>
+        </p> -->
       </div>
     </div>
   </div>

+ 6 - 2
src/components/list/index.vue

@@ -79,12 +79,16 @@ export default {
   methods: {
     setactive(e) {
       this.activeName = this.tabsList[e]?.code;
+      console.log(this.activeName);
       this.handleClick(this.tabsList[e]);
     },
-    handleClick(e) {
-      // console.log(this.parentCode);
+    async handleClick(e) {
       // 菜单编码
       this.code = e.name || e.code;
+      const itemType = this.menusall.find(j => j.code == this.code);
+      if (itemType && itemType.type == 0) {
+        window.open(itemType.url);
+      }
       const item = this.tabsList.find(i => i.code == this.code);
       const data = { name: this.code };
       if (item.parentCode) data.parentCode = true;

+ 1 - 1
src/views/Home.vue

@@ -73,7 +73,7 @@ export default {
       universalList: [
         { title: '评奖信息', code: '061' },
         { title: '获奖成果', code: '062' },
-        { title: '网上申报', code: '064' }
+        { title: '网上申报', code: '063' }
       ],
       // 智库建设
       builds: [],