Commit 7d222bec authored by 张锡奇's avatar 张锡奇

commit

parent af1c37cf
...@@ -6,7 +6,7 @@ function urlFun(name){ ...@@ -6,7 +6,7 @@ function urlFun(name){
/** /**
* 门市域名 * 门市域名
*/ */
// sales:`http://192.168.4.40:5000`, // sales:`http://192.168.4.67:5000`,
// sales:`http://122.224.36.54:18005`,//测试服务器 // sales:`http://122.224.36.54:18005`,//测试服务器
sales:`https://weixin.huansi.net/apiproxy/huansi/Mall`, sales:`https://weixin.huansi.net/apiproxy/huansi/Mall`,
/** /**
......
...@@ -64,6 +64,7 @@ FastClick.attach(document.body) ...@@ -64,6 +64,7 @@ FastClick.attach(document.body)
Vue.config.productionTip = false; Vue.config.productionTip = false;
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
console.log(222)
if(to.path.indexOf('shopVersion') != -1 && to.params.hasOwnProperty('iProjectId')){ if(to.path.indexOf('shopVersion') != -1 && to.params.hasOwnProperty('iProjectId')){
store.dispatch('setIproject',to.params.iProjectId); store.dispatch('setIproject',to.params.iProjectId);
} }
......
...@@ -106,6 +106,8 @@ export default { ...@@ -106,6 +106,8 @@ export default {
await this.getPbcustomer(); await this.getPbcustomer();
await this.getPbsales(); await this.getPbsales();
this.global.$off('searchData');
this.global.$on('searchData',async ()=>{ this.global.$on('searchData',async ()=>{
await this.getPbcustomer(); await this.getPbcustomer();
await this.getPbsales(); await this.getPbsales();
...@@ -189,7 +191,6 @@ export default { ...@@ -189,7 +191,6 @@ export default {
this.setChart(this.myChart2,this.pbsales,'pbsales') this.setChart(this.myChart2,this.pbsales,'pbsales')
}, },
setChart(myChart,value,id){ setChart(myChart,value,id){
console.log(myChart)
let options = { let options = {
title:{ title:{
subtext:"长按查看详情", subtext:"长按查看详情",
......
...@@ -108,6 +108,8 @@ export default { ...@@ -108,6 +108,8 @@ export default {
await this.getPayable(); await this.getPayable();
await this.getReceivepay(); await this.getReceivepay();
this.global.$off('searchData');
this.global.$on('searchData',async ()=>{ this.global.$on('searchData',async ()=>{
await this.getPayable(); await this.getPayable();
await this.getReceivepay(); await this.getReceivepay();
......
...@@ -169,7 +169,9 @@ export default { ...@@ -169,7 +169,9 @@ export default {
this.iProjectId= this.$route.params.iProjectId; this.iProjectId= this.$route.params.iProjectId;
this.$store.dispatch('setIproject',this.iProjectId); this.$store.dispatch('setIproject',this.iProjectId);
this.searchData() this.searchData();
this.global.$off('searchData');
this.global.$on('searchData',()=>{ this.global.$on('searchData',()=>{
this.searchData() this.searchData()
}) })
......
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
data () { data () {
return { return {
search:{ search:{
dBeginDate:Util.dateFormat(new Date(),'yyyy-01-01'), dBeginDate:Util.dateFormat(new Date(),'yyyy-MM-01'),
dEndDate:Util.dateFormat(new Date(),'yyyy-MM-dd') dEndDate:Util.dateFormat(new Date(),'yyyy-MM-dd')
}, },
typeList:{time:true}, typeList:{time:true},
...@@ -144,8 +144,7 @@ export default { ...@@ -144,8 +144,7 @@ export default {
await this.renderChart3(); await this.renderChart3();
} }
}) })
},
async activated(){
window.d = this; window.d = this;
this.global.$off('searchData'); this.global.$off('searchData');
//查询条件触发加载 //查询条件触发加载
...@@ -176,6 +175,9 @@ export default { ...@@ -176,6 +175,9 @@ export default {
await this.renderChart3(); await this.renderChart3();
} }
}); });
},
async activated(){
}, },
methods:{ methods:{
renderResize() { renderResize() {
......
...@@ -72,14 +72,15 @@ export const employees = { ...@@ -72,14 +72,15 @@ export const employees = {
padding: [ 3, 5 ] padding: [ 3, 5 ]
}, },
onShow: function onShow(ev) { onShow: function onShow(ev) {
console.log(ev)
const items = ev.items; const items = ev.items;
items[0].name = ''; items[0].name = '';
items[0].value = items[0].value + ' 元'; items[0].value = items[0].value + ' 元';
} }
}); });
this.chart1.interval().position('sSalesName*nAmount').style({ // this.chart1.interval().position('sSalesName*nAmount').style({
radius: [ 2, 2, 0, 0 ] // radius: [ 2, 2, 0, 0 ]
}); // });
// 定义进度条 // 定义进度条
this.chart1.scrollBar({ this.chart1.scrollBar({
......
...@@ -43,9 +43,10 @@ export const orderAmount = { ...@@ -43,9 +43,10 @@ export const orderAmount = {
onShow: function onShow(ev) { onShow: function onShow(ev) {
const items = ev.items; const items = ev.items;
items[0].name = items[0].title; items[0].name = items[0].title;
items[0].value = items[0].value + ' 元';
ev.items.splice(1,1);
} }
}); });
this.chart3.line().position('sMonth*nAmount');
this.chart3.point().position('sMonth*nAmount').style({ this.chart3.point().position('sMonth*nAmount').style({
lineWidth: 1, lineWidth: 1,
stroke: '#fff' stroke: '#fff'
......
...@@ -43,14 +43,16 @@ export const receivable = { ...@@ -43,14 +43,16 @@ export const receivable = {
onShow: function onShow(ev) { onShow: function onShow(ev) {
const items = ev.items; const items = ev.items;
items[0].name = items[0].title; items[0].name = items[0].title;
items[0].value = items[0].value + ' 元';
ev.items.splice(1,1);
} }
}); });
this.chart2.line().position('sMonth*nPaydAmount');
this.chart2.line().position('sMonth*nPaydAmount').color('#708bf6');
this.chart2.point().position('sMonth*nPaydAmount').style({ this.chart2.point().position('sMonth*nPaydAmount').style({
lineWidth: 1, lineWidth: 1,
stroke: '#fff' stroke: '#fff'
}); });
this.chart2.interaction('pan'); this.chart2.interaction('pan');
// 定义进度条 // 定义进度条
this.chart2.scrollBar({ this.chart2.scrollBar({
...@@ -61,8 +63,6 @@ export const receivable = { ...@@ -61,8 +63,6 @@ export const receivable = {
offsetY: -2 offsetY: -2
} }
}); });
this.chart2.line().position('sMonth*nPaydAmount').color('#708bf6');
this.chart2.render(); this.chart2.render();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment