From 68f5e4c6bbaa19787aea5bec9c10f035a9e73f89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=AD=A6=E5=9D=A4?= <1107410514@qq.com> Date: Wed, 9 Oct 2019 23:19:06 +0800 Subject: [PATCH] kun 19/10/9/23:20 --- src/views/InformationQuery.vue | 52 +++++++++++++++++++++++----------- src/views/home/ApplyFor.vue | 2 +- src/views/home/HomePage.vue | 33 ++++++++++++--------- src/views/home/NewsDetails.vue | 5 ++-- src/views/home/NewsList.vue | 3 +- src/views/personal/Declare.vue | 11 +++---- src/views/project/Project.vue | 10 ++++--- 7 files changed, 72 insertions(+), 44 deletions(-) diff --git a/src/views/InformationQuery.vue b/src/views/InformationQuery.vue index 4a7407f..66707d2 100644 --- a/src/views/InformationQuery.vue +++ b/src/views/InformationQuery.vue @@ -14,22 +14,22 @@
- + - - - @@ -125,12 +125,10 @@ export default { searchVal: "", searchValue: [], record: [], - screeOut: { - society_type: '类型', - reg_time0: '登记时间', - reg_time1: '年检年份', - status: '年检情况' - }, + society_type: [], + reg_time0: [], + reg_time1: [], + status: [], bgData: [], arr1: [], arr0: [], @@ -207,6 +205,24 @@ export default { console.log(err) }) }, + getDataG() { + let _this = this + this.$http({ + method: 'get', + url: 'v1/society/get-type', + params: {} + }).then(res => { + if (res.data.code !== 200) { + return; + } + console.log(res) + _this.society_type = res.data.data + }) + // eslint-disable-next-line handle-callback-err + .catch(err => { + console.log(err) + }) + }, getDataZ() { let _this = this this.$http({ @@ -217,7 +233,7 @@ export default { } }).then(res => { if (res.data.data.code !== 200) { - alert('数据请求失败!') + alert('数据请求失败!') } _this.bgData = res.data.data.data.info _this.conversion = _this.bgData @@ -246,10 +262,12 @@ export default { .catch(err => { console.log(err) }) - } + }, + scree() { } }, created() { this.getData() + this.getDataG() }, mounted() { } @@ -479,9 +497,9 @@ export default { -moz-appearance: none; -webkit-appearance: none; /* 右侧添加小箭头的背景图 */ - background: url("../../static/img/xa.png") 90px center no-repeat; + background: url("../../static/img/xa.png") 126px center no-repeat; background-size: 14px 8px; - width: 134px; + width: 170px; height: 38px; background-color: #f9f8f8; border-radius: 4px; diff --git a/src/views/home/ApplyFor.vue b/src/views/home/ApplyFor.vue index 3e32e28..4fa172f 100644 --- a/src/views/home/ApplyFor.vue +++ b/src/views/home/ApplyFor.vue @@ -322,7 +322,7 @@ export default { } _this.sub = s } else { - _this.$message.error('请求数据有问题!') + _this.$message.warning(res.data.message) } }) // eslint-disable-next-line handle-callback-err diff --git a/src/views/home/HomePage.vue b/src/views/home/HomePage.vue index 110e138..e1e8792 100644 --- a/src/views/home/HomePage.vue +++ b/src/views/home/HomePage.vue @@ -9,7 +9,11 @@
-