diff --git a/src/assets/font/04B_0.TTF b/src/assets/font/04B_0.TTF new file mode 100644 index 0000000..7eccbf6 Binary files /dev/null and b/src/assets/font/04B_0.TTF differ diff --git a/src/assets/font/font.css b/src/assets/font/font.css new file mode 100644 index 0000000..41bf6af --- /dev/null +++ b/src/assets/font/font.css @@ -0,0 +1,35 @@ +@font-face { + + font-family: 'ALHY'; + + src: url('../font/阿里汉仪智能黑体.TTF'); + + font-weight: normal; + + font-style: normal; + + } + + @font-face { + + font-family: 'FZSK'; + + src: url('../font/方正尚酷简体.TTF'); + + font-weight: normal; + + font-style: normal; + + } + + @font-face { + + font-family: '04B'; + + src: url('../font/04B_0.TTF'); + + font-weight: normal; + + font-style: normal; + + } \ No newline at end of file diff --git a/src/assets/font/方正尚酷简体.TTF b/src/assets/font/方正尚酷简体.TTF new file mode 100644 index 0000000..c5f59b6 Binary files /dev/null and b/src/assets/font/方正尚酷简体.TTF differ diff --git a/src/assets/font/阿里汉仪智能黑体.TTF b/src/assets/font/阿里汉仪智能黑体.TTF new file mode 100644 index 0000000..448b06a Binary files /dev/null and b/src/assets/font/阿里汉仪智能黑体.TTF differ diff --git a/src/assets/img/background.jpg b/src/assets/img/background.jpg new file mode 100644 index 0000000..bedcb59 Binary files /dev/null and b/src/assets/img/background.jpg differ diff --git a/src/assets/img/pos.png b/src/assets/img/pos.png new file mode 100644 index 0000000..eb23e0e Binary files /dev/null and b/src/assets/img/pos.png differ diff --git a/src/assets/img/tit_bag.png b/src/assets/img/tit_bag.png new file mode 100644 index 0000000..7af07b2 Binary files /dev/null and b/src/assets/img/tit_bag.png differ diff --git a/src/assets/img/weather.png b/src/assets/img/weather.png new file mode 100644 index 0000000..5fd9957 Binary files /dev/null and b/src/assets/img/weather.png differ diff --git a/src/router/index.js b/src/router/index.js index d65b962..c651c03 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2,6 +2,7 @@ import Vue from "vue"; import VueRouter from "vue-router"; import DashBoard from "../views/dashboard/dashboard.vue"; import HomePage from "../views/dashboard/homepage.vue"; +import home from "../views/dashboard/home.vue"; Vue.use(VueRouter); @@ -12,10 +13,15 @@ const routes = [ component: DashBoard, }, { - path: "/", + path: "/homepage", name: "homepage", component: HomePage, }, + { + path: "/", + name: "home", + component: home, + }, ]; const router = new VueRouter({ diff --git a/src/views/dashboard/home.vue b/src/views/dashboard/home.vue new file mode 100644 index 0000000..e6b88f6 --- /dev/null +++ b/src/views/dashboard/home.vue @@ -0,0 +1,330 @@ + + + + + diff --git a/src/views/dashboard/homepage.vue b/src/views/dashboard/homepage.vue index c8faed2..c5dac18 100644 --- a/src/views/dashboard/homepage.vue +++ b/src/views/dashboard/homepage.vue @@ -10,7 +10,7 @@
- +
{{ temp }}℃
{{ weather }}
@@ -273,6 +273,7 @@ export default { created() { this.getTime(); this.readExcelFile("http://192.168.1.35:8080/excel/wuliu.xlsx"); + // this.readExcelFile("/excelapi/ces.xlsx"); this.$nextTick(() => { this.createCharts(); }); @@ -520,7 +521,10 @@ export default { let sheets = wb.Sheets; // 获取文档数据 // console.log(sheets); this.content = this.transformSheets(sheets); - }); + // this.$message('读取成功'); + }).catch((err) =>{ + this.$message.error(err); + }) }, transformSheets(sheets) { const content1 = []; @@ -535,6 +539,8 @@ export default { { name: "派件量", data: content1[0][0].日总派件量, huanbi: content1[0][0].派件量日总环比 }, { name: "签件量", data: content1[0][0].日总签件量, huanbi: content1[0][0].签件量日总环比 } ); + + this.monthData.push( { name: "收件量", data: content1[0][0].月总收件量, huanbi: content1[0][0].收件量月总环比 }, { name: "发件量", data: content1[0][0].月总发件量, huanbi: content1[0][0].发件量月总环比 }, @@ -548,7 +554,9 @@ export default { this.yData1.push(item.到件量); this.yData2.push(item.派件量); }); - this.dateTime = content1[0][0].日期.replaceAll(".", "/"); + // this.dateTime = content1[0][0].日期.replaceAll(".", "/"); + this.dateTime = content1[0][0].日期.replace(/\D/g, '/'); + // this.$message.success(content1[0][0].日期); content1[3].map((item) => { this.villageData.push({ name: item.村点名称, upData: item.上行, downData: item.下行 }); }); @@ -1035,6 +1043,11 @@ export default { justify-content: center; align-items: center; + .wea_img{ + width: 0.8rem; + height: 0.6rem + } + .weather_txt { font-size: 0.18rem; color: #fff;