|
@@ -138,9 +138,14 @@
|
|
|
<script>
|
|
|
import LineChart from "@/components/Echarts/LineChart.vue";
|
|
|
import echarts from "echarts";
|
|
|
-import {getCanteenData, getCanteenNameList, videoList} from "@/api/screen/service";
|
|
|
+import {
|
|
|
+ getCanteenData,
|
|
|
+ getCanteenNameList,
|
|
|
+ getIssueListLastWeek, getIssueNum, getOverIssueNum,
|
|
|
+ getProjectNumThisWeek, planCheckList, planDoneList,
|
|
|
+ videoList
|
|
|
+} from '@/api/screen/service'
|
|
|
import BarChart from "@/components/Echarts/BarChart.vue";
|
|
|
-import {getIssueList,getProjectNumX,geterProjectList,getProjectThisWeek,getProjectLastWeek,getProjectNumThisWeek} from "@/api/screen/engineering";
|
|
|
|
|
|
|
|
|
export default {
|
|
@@ -161,19 +166,19 @@ export default {
|
|
|
getProList:[],
|
|
|
getProjecList:[],
|
|
|
thisweek:[],
|
|
|
- issues:[],
|
|
|
+ issues:0,
|
|
|
issueCount: 0,
|
|
|
- lastweek:[],
|
|
|
+ lastweek:0,
|
|
|
getprojectnum:[]
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.getProjectNumX()
|
|
|
- this.getIssueList()
|
|
|
- this.geterProjectList()
|
|
|
- this.getProjectThisWeek()
|
|
|
- this.getProjectLastWeek()
|
|
|
this.getProjectNumThisWeek()
|
|
|
+ this.getIssueNum()
|
|
|
+ this.getOverIssueNum()
|
|
|
+ this.getIssueListLastWeek()
|
|
|
+ this.planCheckList()
|
|
|
+ this.planDoneList()
|
|
|
},
|
|
|
destroyed() {},
|
|
|
beforeDestroy() {},
|
|
@@ -182,8 +187,8 @@ export default {
|
|
|
co(){
|
|
|
console.log(this.getProjecList)
|
|
|
},
|
|
|
- getProjectNumX(){
|
|
|
- getProjectNumX(this.$props.appOrg).then((res) => {
|
|
|
+ getIssueListLastWeek(){
|
|
|
+ getIssueListLastWeek(this.$props.appOrg).then((res) => {
|
|
|
if (Number(res.code) === 200) {
|
|
|
this.getProList = res.data;
|
|
|
this.getProList.forEach((item, index) => {
|
|
@@ -194,22 +199,22 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- getProjectThisWeek(){
|
|
|
- getProjectThisWeek(this.$props.appOrg).then((res) => {
|
|
|
+ planCheckList(){
|
|
|
+ planCheckList(this.$props.appOrg).then((res) => {
|
|
|
if (Number(res.code) === 200) {
|
|
|
this.thisweek = res.data;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- geterProjectList(){
|
|
|
- geterProjectList(this.$props.appOrg).then((res) => {
|
|
|
+ planDoneList(){
|
|
|
+ planDoneList(this.$props.appOrg).then((res) => {
|
|
|
if (Number(res.code) === 200) {
|
|
|
this.getProjecList = res.data;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- getIssueList(){
|
|
|
- getIssueList(this.$props.appOrg).then((res) => {
|
|
|
+ getProjectNumThisWeek(){
|
|
|
+ getProjectNumThisWeek(this.$props.appOrg).then((res) => {
|
|
|
if (Number(res.code) === 200) {
|
|
|
this.issues=res.data;
|
|
|
this.issueCount = res.data.length;
|
|
@@ -217,15 +222,15 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- getProjectLastWeek(){
|
|
|
- getProjectLastWeek(this.$props.appOrg).then((res) => {
|
|
|
+ getIssueNum(){
|
|
|
+ getIssueNum(this.$props.appOrg).then((res) => {
|
|
|
if (Number(res.code) === 200) {
|
|
|
this.lastweek = res.data;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- getProjectNumThisWeek(){
|
|
|
- getProjectNumThisWeek(this.$props.appOrg).then((res) => {
|
|
|
+ getOverIssueNum(){
|
|
|
+ getOverIssueNum(this.$props.appOrg).then((res) => {
|
|
|
if (Number(res.code) === 200) {
|
|
|
this.getprojectnum = res.data;
|
|
|
}
|