Selaa lähdekoodia

修改tabar切换

l1448442195@163.com 1 vuosi sitten
vanhempi
commit
e7c93f4f12

BIN
manpower/images/home-bg.png


+ 1 - 1
manpower/index.html

@@ -26,7 +26,7 @@
 </head>
 
 <body>
-  <div id="app">
+  <div id="app" v-cloak>
     <header class="my-header">
       <span>国有资本数智化平台人力资源系统</span>
       <span class="right">{{time}}</span>

+ 2 - 2
manpower/index2.html

@@ -23,7 +23,7 @@
 </head>
 
 <body>
-  <div id="app">
+  <div id="app" v-cloak>
     <header class="my-header">
       <span class="left" @click="handleGoBack"><img style="width: 70px;height: 70px;" src="./images/back.png"></img>
       </span>
@@ -219,7 +219,7 @@
       </div>
     </div>
     <div class="footer">
-      <a class="item" v-for="(item,index) in companyList" :key="index"
+      <a class="item" v-for="(item,index) in companyListTitle" :key="index"
         @click="handleGoPage(item.link)">{{item.name}}</a>
     </div>
   </div>

+ 2 - 2
manpower/index3.html

@@ -22,7 +22,7 @@
 </head>
 
 <body>
-  <div id="app">
+  <div id="app" v-cloak>
     <header class="my-header">
       <span class="left" @click="handleGoBack"><img style="width: 70px;height: 70px;" src="./images/back.png"></img>
       </span>
@@ -218,7 +218,7 @@
       </div>
     </div>
     <div class="footer" style="width: 70%;">
-      <a class="item" v-for="(item,index) in companyList" :key="index"
+      <a class="item" v-for="(item,index) in companyListTitle" :key="index"
         @click="handleGoPage(item.link)">{{item.name}}</a>
     </div>
   </div>

+ 1 - 1
manpower/index4.html

@@ -22,7 +22,7 @@
 </head>
 
 <body>
-  <div id="app">
+  <div id="app" v-cloak>
     <header class="my-header">
       <span class="left" @click="handleGoBack"><img style="width: 70px;height: 70px;" src="./images/back.png"></img>
       </span>

+ 11 - 0
manpower/js/data2.js

@@ -9,6 +9,17 @@ const companyList = [
   { name: '晋控电力山西新能源有限公司' },
   { name: '晋能控股煤业集团有限公司' }
 ]
+const companyListTitle = [
+  { name: '山西煤炭运销集团长治有限公司', link:'./index3.html' },
+  { name: '山西煤炭运销集团忻州有限公司' },
+  { name: '晋能控股电力集团有限公司' },
+  { name: '中国太原煤炭交易中心有限公司' },
+  { name: '晋能控股装备制造集团有限公司' },
+  { name: '晋能控股山西煤业集团有限公司' },
+  { name: '晋能控股山西电力股份有限公司' },
+  { name: '晋控电力山西新能源有限公司' },
+  { name: '晋能控股煤业集团有限公司' }
+]
 const data = {
   info: {
     value1: '1708',

+ 13 - 1
manpower/js/data3.js

@@ -10,6 +10,18 @@ const companyList = [
   { name: '山西煤炭运销集团三元古韩荆宝煤业有限公司' },
   { name: '长治县三元王庄华泰水泥有限公司' }
 ]
+const companyListTitle = [
+  { name: '山西三元煤业股份有限公司', link: './index4.html' },
+  { name: '山西煤炭运销集团三元石窟煤业有限公司' },
+  { name: '山西三元福达煤业有限公司' },
+  { name: '长治市聚通能源发展有限公司' },
+  { name: '长治三元中能煤业有限公司' },
+  { name: '山西马堡煤业有限公司' },
+  { name: '山西长治郊区三元南耀小常煤业有限公司' },
+  { name: '山西长治王庄煤业有限责任公司' },
+  { name: '山西煤炭运销集团三元古韩荆宝煤业有限公司' },
+  { name: '长治县三元王庄华泰水泥有限公司' }
+]
 const data = {
   info: {
     value1: '52',
@@ -38,7 +50,7 @@ const dataL1 = [
   [17, 27, 47, 4, 36, 43, 33, 36, 34, 17]
 ]
 const dataL2 = [
-  [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
+  [48, 27, 28, 42, 37, 44, 34, 37, 35, 18]
 ]
 const dataL3 = [
   [34, 54, 94, 8, 72, 86, 66, 72, 68, 34]

+ 3 - 1
manpower/js/index.js

@@ -182,7 +182,9 @@ let app = new Vue({
       this.tipNum = index
     },
     handleGoPage (url) {
-      window.location.href = url
+      if (url.length) {
+        window.location.href = url
+      }
     },
     numFormat (value) {
       if (!value) return '0'

+ 4 - 1
manpower/js/index2.js

@@ -46,6 +46,7 @@ let app = new Vue({
         ],
       },
       companyList: companyList,
+      companyListTitle: companyListTitle,
       commonOption: {
         title: {
           text: 'xxx',
@@ -162,7 +163,9 @@ let app = new Vue({
   },
   methods: {
     handleGoPage (url) {
-      window.location.href = url
+      if (url.length) {
+        window.location.href = url
+      }
     },
     handleGoBack () {
       window.history.go(-1)

+ 4 - 1
manpower/js/index3.js

@@ -46,6 +46,7 @@ let app = new Vue({
         ],
       },
       companyList: companyList,
+      companyListTitle: companyListTitle,
       commonOption: {
         title: {
           text: 'xxx',
@@ -162,7 +163,9 @@ let app = new Vue({
   },
   methods: {
     handleGoPage (url) {
-      window.location.href = url
+      if (url.length) {
+        window.location.href = url
+      }
     },
     handleGoBack () {
       window.history.go(-1)

+ 3 - 1
manpower/js/index4.js

@@ -162,7 +162,9 @@ let app = new Vue({
   },
   methods: {
     handleGoPage (url) {
-      window.location.href = url
+      if (url.length) {
+        window.location.href = url
+      }
     },
     handleGoBack () {
       window.history.go(-1)

+ 3 - 1
manpower/styles/index.css

@@ -13,7 +13,9 @@ body {
   font-family: 'Microsoft YaHei', 'Helvetica Neue', Helvetica, 'PingFang SC',
     'Hiragino Sans GB', Arial, sans-serif;
 }
-
+[v-cloak] {
+  display: none;
+}
 .flex {
   display: flex;
 }