From 0c14153f387755551121da645710007c9931dd6c Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期四, 05 一月 2023 08:08:54 +0800
Subject: [PATCH] 修改前端页面
---
src/components/page/leaderShow/leaderIndex.vue | 46 +++++++++++-----------
src/components/page/leaderShow/leaderLogin.vue | 4 +-
src/components/page/Index.vue | 10 ++--
src/components/page/Index2.vue | 2
src/components/page/leaderShow/Dialog/breakLawOrderForm.vue | 2
src/components/page/leaderShow/Dialog/daibanForm.vue | 2
src/components/page/leaderShow/Dialog/zhipaiForm.vue | 6 +-
7 files changed, 36 insertions(+), 36 deletions(-)
diff --git a/src/components/page/Index.vue b/src/components/page/Index.vue
index 6d26e79..e52aa6c 100644
--- a/src/components/page/Index.vue
+++ b/src/components/page/Index.vue
@@ -70,12 +70,12 @@
var cs = url.split('?')[1];
var cs_arr = cs.split('&');
var cs={};
- for(var i=0;i<cs_arr.length;i++){聽 聽 聽 聽 聽
+ for(var i=0;i<cs_arr.length;i++){
cs[cs_arr[i].split('=')[0]] = cs_arr[i].split('=')[1]
}
this.ticketId = cs.id;
this.$byutil.postData(this, this.$systemconfig.basePath + '/ticket/findById', {id:cs.id}, res => {
- this.statisticData = res.obj;
+ this.statisticData = res.data;
})
},
methods: {
@@ -83,11 +83,11 @@
//window.location.href = "https://payapp.weixin.qq.com/life/index?fr=PSBC&pg=charge&ct=39&sv=20&wx=130100002001&bk=13040621E00000002330"
this.$byutil.postData(this, this.$systemconfig.basePath + '/ffPay/zhiFa', {id:this.ticketId}, res => {
this.$message({
- message: '10绉掑悗鑷姩璺宠浆鍒版敮浠橀〉闈紝闃叉鍐呭缃戞暟鎹悓姝ュ欢杩燂紝璇风◢绛�',
+ message: '2绉掑悗鑷姩璺宠浆鍒版敮浠橀〉闈紝闃叉鍐呭缃戞暟鎹悓姝ュ欢杩燂紝璇风◢绛�',
type: 'success',
- duration:10000,
+ duration:2000,
});
- setTimeout(function(){window.location.href = res.obj;},10000);
+ setTimeout(function(){window.location.href = res.msg;},2000);
this.showFlag = false;
})
}
diff --git a/src/components/page/Index2.vue b/src/components/page/Index2.vue
index a32de5c..da13ffc 100644
--- a/src/components/page/Index2.vue
+++ b/src/components/page/Index2.vue
@@ -125,7 +125,7 @@
this.showFlag = false;
}else{
this.$message({
- message: res.message, type: 'error', duration:2000,
+ message: res.msg, type: 'error', duration:2000,
});
}
diff --git a/src/components/page/leaderShow/Dialog/breakLawOrderForm.vue b/src/components/page/leaderShow/Dialog/breakLawOrderForm.vue
index c03abdb..d59d5b2 100644
--- a/src/components/page/leaderShow/Dialog/breakLawOrderForm.vue
+++ b/src/components/page/leaderShow/Dialog/breakLawOrderForm.vue
@@ -155,7 +155,7 @@
}).then(() => {
console.log('row-------',row.id)
this.$byutil.postData(this,this.pageConfig.deleteDataUrl,{id:row.id},res => {
- this.$message.success(res.message)
+ this.$message.success(res.msg)
this.loadData();
})
}).catch(() => {
diff --git a/src/components/page/leaderShow/Dialog/daibanForm.vue b/src/components/page/leaderShow/Dialog/daibanForm.vue
index 61ad5a4..2138720 100644
--- a/src/components/page/leaderShow/Dialog/daibanForm.vue
+++ b/src/components/page/leaderShow/Dialog/daibanForm.vue
@@ -182,7 +182,7 @@
}).then(() => {
console.log('row-------',row.id)
this.$byutil.postData(this,this.pageConfig.deleteDataUrl,{id:row.id},res => {
- this.$message.success(res.message)
+ this.$message.success(res.msg)
this.loadData();
})
}).catch(() => {
diff --git a/src/components/page/leaderShow/Dialog/zhipaiForm.vue b/src/components/page/leaderShow/Dialog/zhipaiForm.vue
index f2f4a43..ef424f3 100644
--- a/src/components/page/leaderShow/Dialog/zhipaiForm.vue
+++ b/src/components/page/leaderShow/Dialog/zhipaiForm.vue
@@ -108,10 +108,10 @@
initData() {
this.dialogVisible = true
this.$byutil.postData4(this,this.pageConfig.weizhangData,null,res => {
- this.weizhangOptions = res.obj
+ this.weizhangOptions = res.data
})
this.$byutil.postData4(this,this.pageConfig.zhixingrenData,null,res => {
- this.zhixingrenOptions = res.obj
+ this.zhixingrenOptions = res.data
})
},
submitForm(formName) {
@@ -120,7 +120,7 @@
this.$byutil.postData(this,this.pageConfig.saveData,this.zhipaiForm,res => {
this.$refs[formName].resetFields();
this.dialogVisible = false
- this.$message.success(res.message)
+ this.$message.success(res.msg)
})
}
})
diff --git a/src/components/page/leaderShow/leaderIndex.vue b/src/components/page/leaderShow/leaderIndex.vue
index c7a8eae..58a6d0e 100644
--- a/src/components/page/leaderShow/leaderIndex.vue
+++ b/src/components/page/leaderShow/leaderIndex.vue
@@ -352,7 +352,7 @@
},
illegalCarUrl() {
this.$byutil.postData4(this,this.pageConfig.illegalCarUrl,null,res => {
- this.weizhangList = res.obj
+ this.weizhangList = res.data
})
},
houtaiBtn() { //璺宠浆鍚庡彴椤甸潰
@@ -361,30 +361,30 @@
},
getData() {
this.$byutil.postData4(this,this.pageConfig.getDataUrl,null,res => {
- this.tongjiNumObj.data1 = res.obj.data1
- this.tongjiNumObj.data2 = res.obj.data2
- this.tongjiNumObj.data3 = res.obj.data3
- this.tongjiNumObj.data4 = res.obj.data4
- this.tongjiNumObj.data5 = res.obj.data5
- this.tongjiNumObj.data6 = res.obj.data6
- this.tongjiNumObj.data7 = res.obj.data7
- this.tongjiNumObj.data8 = res.obj.data8
- this.tongjiNumObj.data9 = res.obj.data9
- this.tongjiNumObj.data10 = res.obj.data10
- this.tongjiNumObj.data11 = res.obj.data11
- this.tongjiNumObj.data12 = res.obj.data12
- this.tongjiNumObj.data13 = res.obj.data13
+ this.tongjiNumObj.data1 = res.data.data1
+ this.tongjiNumObj.data2 = res.data.data2
+ this.tongjiNumObj.data3 = res.data.data3
+ this.tongjiNumObj.data4 = res.data.data4
+ this.tongjiNumObj.data5 = res.data.data5
+ this.tongjiNumObj.data6 = res.data.data6
+ this.tongjiNumObj.data7 = res.data.data7
+ this.tongjiNumObj.data8 = res.data.data8
+ this.tongjiNumObj.data9 = res.data.data9
+ this.tongjiNumObj.data10 = res.data.data10
+ this.tongjiNumObj.data11 = res.data.data11
+ this.tongjiNumObj.data12 = res.data.data12
+ this.tongjiNumObj.data13 = res.data.data13
console.log('this.tongjiNumObj.data13--------',this.tongjiNumObj.data13)
this.zhengticheweiliyonglv()
- this.tongjiNumObj.data14 = res.obj.data14
+ this.tongjiNumObj.data14 = res.data.data14
console.log('this.tongjiNumObj.data14--------',this.tongjiNumObj.data14)
this.fakuancheliangchengjiaolv()
- this.tongjiNumObj.data15 = res.obj.data15
- this.tongjiNumObj.data16 = res.obj.data16
- this.tongjiNumObj.data17 = res.obj.data17
- this.tongjiNumObj.data18 = res.obj.data18
- this.tongjiNumObj.data19 = res.obj.data19
- this.tongjiNumObj.data20 = res.obj.data20
+ this.tongjiNumObj.data15 = res.data.data15
+ this.tongjiNumObj.data16 = res.data.data16
+ this.tongjiNumObj.data17 = res.data.data17
+ this.tongjiNumObj.data18 = res.data.data18
+ this.tongjiNumObj.data19 = res.data.data19
+ this.tongjiNumObj.data20 = res.data.data20
})
},
@@ -463,7 +463,7 @@
},
addHeatMap(map) { //鐑姏鍥�
this.$byutil.postData(this,this.pageConfig.getLogoUrl,null,res => {
- this.reliArry = res.obj
+ this.reliArry = res.data
this.reliArry.forEach(item => {
this.lngData.push({count:70,lat:item.lat,lng:item.lng})
})
@@ -485,7 +485,7 @@
},
addMarker(map,point) { //娣诲姞鑷畾涔夊浘鏍�
this.$byutil.postData(this,this.pageConfig.findAllUrl,null,res => {
- res.obj.forEach(item => {
+ res.data.forEach(item => {
if(item.lat) {
point = new BMap.Point(item.lng,item.lat)
//璁剧疆鏍囨敞鐨勫浘鏍�
diff --git a/src/components/page/leaderShow/leaderLogin.vue b/src/components/page/leaderShow/leaderLogin.vue
index d70ae41..fd6a1ad 100644
--- a/src/components/page/leaderShow/leaderLogin.vue
+++ b/src/components/page/leaderShow/leaderLogin.vue
@@ -53,9 +53,9 @@
methods:{
loginBtn() {
this.$byutil.postData(this,this.pageConfig.loginDataUrl,this.loginForm,res => {
- if(res.success) {
+ if(res.code == 0) {
//this.$message.success(res.message)
- this.setStore('userinfo',res.obj)
+ this.setStore('userinfo',res.data)
this.$router.push({
path:'/leaderIndex'
})
--
Gitblit v1.9.1