main
赵培友 3 years ago
parent f46cded2e7
commit 55e6f2c11d
  1. BIN
      src/assets/img/wel/zhanwushuju.png
  2. 1
      src/views/plugin/workflow/process/components/form.vue
  3. 2
      src/views/plugin/workflow/process/crontab.vue
  4. 87
      src/views/wel/index.vue

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

@ -277,7 +277,6 @@ export default {
// //
taskParentChange(id) { taskParentChange(id) {
getTaskTypeData({ parentId: id }).then((res) => { getTaskTypeData({ parentId: id }).then((res) => {
console.log(this.option.column)
const renwuzhonglei = this.findObject( const renwuzhonglei = this.findObject(
this.option.column, this.option.column,
"renwuzhonglei" "renwuzhonglei"

@ -109,7 +109,7 @@
>详情</el-button >详情</el-button
> >
<el-button <el-button
v-if="row.isBreak === 0" v-if="row.isBreak === 0 && row.status === 10"
type="danger" type="danger"
@click="stopHandle(row)" @click="stopHandle(row)"
>终止</el-button >终止</el-button

@ -6,7 +6,11 @@
v-for="(item, index) in headerList" v-for="(item, index) in headerList"
:key="index" :key="index"
> >
<div class="header__item__box" @click="goRouter(item)" :style="{cursor:[1,2].includes(item.id)?'pointer':'default'}"> <div
class="header__item__box"
@click="goRouter(item)"
:style="{ cursor: [1, 2].includes(item.id) ? 'pointer' : 'default' }"
>
<div> <div>
<span class="title">{{ item.title }}</span <span class="title">{{ item.title }}</span
><br /> ><br />
@ -34,13 +38,35 @@
</div> </div>
<div class="footer"> <div class="footer">
<div class="footer__item1"> <div class="footer__item1">
<div id="pieItemOne" style="height: 310px"></div> <div id="pieItemOne" style="height: 310px" v-if="flowType"></div>
<img
v-else
:src="require('@/assets/img/wel/zhanwushuju.png')"
alt=""
height="310px"
width="100%"
/>
</div> </div>
<div class="footer__item2"> <div class="footer__item2">
<div id="pieItemTwo" style="height: 310px;"></div> <div id="pieItemTwo" style="height: 310px" v-if="flowStatus"></div>
<img
v-else
:src="require('@/assets/img/wel/zhanwushuju.png')"
alt=""
height="310px"
width="100%"
/>
</div> </div>
<div class="footer__item3"> <div class="footer__item3">
<div id="barChart" style="height: 310px"></div> <div id="barChart" style="height: 310px" v-if="flowTime"></div>
<img
v-else
:src="require('@/assets/img/wel/zhanwushuju.png')"
alt=""
height="310px"
width="60%"
style="margin-left:20%;"
/>
</div> </div>
</div> </div>
</div> </div>
@ -63,27 +89,30 @@ export default {
id: 1, id: 1,
title: "到期提醒", title: "到期提醒",
num: "", num: "",
link: "/plugin/workflow/process/workorder" link: "/plugin/workflow/process/workorder",
}, },
{ {
id: 2, id: 2,
title: "我的待办", title: "我的待办",
num: "", num: "",
link: "/plugin/workflow/process/todo" link: "/plugin/workflow/process/todo",
}, },
{ {
id: 3, id: 3,
title: "今日新增", title: "今日新增",
num: "", num: "",
link: "" link: "",
}, },
{ {
id: 4, id: 4,
title: "今日完成", title: "今日完成",
num: "", num: "",
link: "" link: "",
}, },
], ],
flowType: true,
flowStatus: true,
flowTime: true,
}; };
}, },
created() { created() {
@ -239,7 +268,7 @@ export default {
series: [ series: [
{ {
center: ["36%", "48%"], center: ["36%", "48%"],
name: "业务类型统计", name: "",
type: "pie", type: "pie",
radius: "55%", radius: "55%",
data, data,
@ -274,7 +303,7 @@ export default {
var myChart = this.$echarts.init(document.getElementById("pieItemTwo")); var myChart = this.$echarts.init(document.getElementById("pieItemTwo"));
// //
var option = { var option = {
color: ["#FF9130", "#2EE27C", "#4CA3FB"], color: ["#FF9130", "#4CA3FB", "#2EE27C"],
title: { title: {
text: "按照完成状态统计", text: "按照完成状态统计",
textStyle: { textStyle: {
@ -459,26 +488,44 @@ export default {
}); });
// //
getFlowListType().then((res) => { getFlowListType().then((res) => {
this.pieOneChart(res.data.data); let data = res.data.data;
if (data.length > 0) {
this.flowType = true;
this.pieOneChart(data);
} else {
this.flowType = false;
}
}); });
// //
getFlowStatus().then((res) => { getFlowStatus().then((res) => {
this.pieTwoChart(res.data.data); let data = res.data.data;
if (data.length > 0) {
this.flowStatus = true;
this.pieTwoChart(data);
} else {
this.flowStatus = false;
}
}); });
// //
getFlowTakeTime().then((res) => { getFlowTakeTime().then((res) => {
const { XData, YData } = res.data.data; let result = res.data.data;
const data = XData.map((item) => { if (result.XData.length > 0) {
return item + "天"; this.flowTime = true;
}); const { XData, YData } = result;
this.barChart(data, YData); const xdata = XData.map((item) => {
return item + "天";
});
this.barChart(xdata, YData);
} else {
this.flowTime = false;
}
}); });
}, },
goRouter(item) { goRouter(item) {
if([1,2].includes(item.id)) { if ([1, 2].includes(item.id)) {
this.$router.push(item.link) this.$router.push(item.link);
} }
} },
}, },
}; };
</script> </script>

Loading…
Cancel
Save