榆山数据端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

83 lines
1.8 KiB

// subpages/issue/pages/topicsNumDetail/components/project/project.js
import {getProjectChart,getProjectChart2} from '../../../../utils/echarts'
Component({
/**
* 组件的属性列表
*/
properties: {
ProjectData:{
type:Array,
value:[]
},
resolvedData:{
type:Array,
value:[]
},
isshow2:{
type:Boolean
},
data:{
type:Object
},
resolvedPercent:{
type:Number
},
beSolvedPercent:{
type:Number
},
passedProjectPercent:{
type:Number
},
deptId:{
type:String
},
colorProject:{
type:Array
},
isShowEcharts:{
type:Boolean,
}
},
observers: {
passedProjectPercent() {
this.setData({
isShow6:!this.data.isShow6
})
setTimeout(() => {
this.setData({
isShow6:!this.data.isShow6
})
}, 1000)
}
},
/**
* 组件的初始数据
*/
data: {
ec:{},
isShow6:true,
},
/**
* 组件的方法列表
*/
methods: {
echartInit (e) {
getProjectChart(e.detail.canvas, e.detail.width, e.detail.height,this.properties.ProjectData);
},
echartInit2 (e) {
getProjectChart2(e.detail.canvas, e.detail.width, e.detail.height,this.properties.resolvedData,this.properties.colorProject);
},
goControlProject(){
wx.navigateTo({ url: `/subpages/issue/pages/controlProject/controlProject?deptId=${this.data.deptId}`});
},
goIndex(){
wx.navigateTo({ url: '/subpages/issue/pages/list/solveProject/solveProject' });
},
goUnSolved(){
wx.navigateTo({ url: '/subpages/issue/pages/list/unSolved/unSolved' });
}
}
})