|
|
@@ -57,7 +57,7 @@
|
|
|
@change="changeType($event)"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="item in dict.type.plan_cycle"
|
|
|
+ v-for="item in dict.type.resumption_plan_cycle"
|
|
|
:key="item.value"
|
|
|
:label="item.label"
|
|
|
:value="item.value"
|
|
|
@@ -82,7 +82,9 @@
|
|
|
class="searchTitle"
|
|
|
label="计划时间"
|
|
|
v-if="
|
|
|
- queryParams.executeCycle == 1 || queryParams.executeCycle == 2 || queryParams.executeCycle == null || queryParams.executeCycle==0
|
|
|
+ queryParams.executeCycle == 1 ||
|
|
|
+ queryParams.executeCycle == 2 ||
|
|
|
+ queryParams.executeCycle == null
|
|
|
"
|
|
|
>
|
|
|
<DataRangePicker
|
|
|
@@ -280,11 +282,11 @@
|
|
|
</el-row>
|
|
|
<el-table v-loading="loading" :data="pageData">
|
|
|
<el-table-column
|
|
|
- type="index"
|
|
|
+ type="index"
|
|
|
min-width="4%"
|
|
|
+ label="序号"
|
|
|
v-if="columns[0].visible"
|
|
|
>
|
|
|
- <template slot-scope="r">{{ r.row.order }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="name"
|
|
|
@@ -292,7 +294,6 @@
|
|
|
min-width="20%"
|
|
|
v-if="columns[1].visible"
|
|
|
>
|
|
|
- <template slot-scope="r">{{ r.row.planName }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="planStartTime"
|
|
|
@@ -308,34 +309,25 @@
|
|
|
/>
|
|
|
|
|
|
<el-table-column
|
|
|
- prop="status"
|
|
|
+ prop="parentOrgName"
|
|
|
label="上级机构"
|
|
|
min-width="15%"
|
|
|
v-if="columns[4].visible"
|
|
|
>
|
|
|
- <template slot-scope="r">
|
|
|
- {{ r.row.parentOrgName }}
|
|
|
- </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="status"
|
|
|
+ prop="orgName"
|
|
|
label="履职机构"
|
|
|
min-width="15%"
|
|
|
v-if="columns[5].visible"
|
|
|
>
|
|
|
- <template slot-scope="r">
|
|
|
- {{ r.row.orgName }}
|
|
|
- </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="status"
|
|
|
+ prop="roleName"
|
|
|
label="履职角色"
|
|
|
min-width="10%"
|
|
|
v-if="columns[6].visible"
|
|
|
>
|
|
|
- <template slot-scope="r">
|
|
|
- {{ r.row.roleName }}
|
|
|
- </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="submitter"
|
|
|
@@ -358,17 +350,16 @@
|
|
|
min-width="9%"
|
|
|
v-if="columns[8].visible"
|
|
|
>
|
|
|
- <template slot-scope="r">{{ r.row.abnormalDataNums }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop="status"
|
|
|
label="任务状态"
|
|
|
- min-width="8%"
|
|
|
+ width="100px"
|
|
|
v-if="columns[9].visible"
|
|
|
>
|
|
|
<template slot-scope="r">
|
|
|
- <label :style="statusStyle(r.row.status)">
|
|
|
- {{ getLabel(dict.type.resumption_status, r.row.status) }}</label
|
|
|
+ <ul :style="statusStyle(r.row.status)"><li>{{ getLabel(dict.type.resumption_status, r.row.status) }}</li>
|
|
|
+ </ul
|
|
|
>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -383,8 +374,16 @@
|
|
|
r.row.status != 'NOT' &&
|
|
|
r.row.status != 'WAIT'
|
|
|
" type="text" @click="onEdit(r.row.id, { isRead: true })">查看</el-button> -->
|
|
|
- <el-button type="text" @click="showDetail(r.row)" v-show="r.row.status!=2 || r.row.status!=3">查看</el-button>
|
|
|
- <el-button type="text" @click="showscanRecord(r.row)" v-show="r.row.status!=2 || r.row.status!=3"
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="showDetail(r.row)"
|
|
|
+ v-show="r.row.status != 2 || r.row.status != 3"
|
|
|
+ >查看</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="showscanRecord(r.row)"
|
|
|
+ v-show="r.row.status != 2 || r.row.status != 3"
|
|
|
>扫描记录</el-button
|
|
|
>
|
|
|
</template>
|
|
|
@@ -417,7 +416,7 @@ import { getLabel } from "@/views/commonOption.js";
|
|
|
|
|
|
export default {
|
|
|
name: "overviewDetialList",
|
|
|
- dicts: ["plan_cycle", "resumption_status"],
|
|
|
+ dicts: ["resumption_plan_cycle", "resumption_status"],
|
|
|
components: { DialogDetail, DialogScanRecord, DataRangePicker, OrgTree },
|
|
|
data() {
|
|
|
// const { params, query } = this.$route;
|
|
|
@@ -496,7 +495,7 @@ export default {
|
|
|
{ key: "4", value: 4, text: "第四季度" },
|
|
|
],
|
|
|
queryParams: {
|
|
|
- executeCycle: "1",
|
|
|
+ executeCycle: "2",
|
|
|
checkSub: false,
|
|
|
orgId: null,
|
|
|
range: [sDate, eDate],
|
|
|
@@ -650,7 +649,7 @@ export default {
|
|
|
await api.exportResumptionRecord(this.queryParams);
|
|
|
},
|
|
|
showDetail(row) {
|
|
|
- this.$refs.detaildialog.show(row.resumptionId, row.name,row.ymd);
|
|
|
+ this.$refs.detaildialog.show(row.resumptionId, row.name);
|
|
|
//this.$refs.detaildialog.show("75246a09eba74e018b60ade0b1f336f8", row.planName);
|
|
|
},
|
|
|
showscanRecord(row) {
|
|
|
@@ -666,7 +665,7 @@ export default {
|
|
|
//单选框状态改变
|
|
|
checkChange(state) {
|
|
|
this.queryParams.checkSub = state;
|
|
|
-
|
|
|
+
|
|
|
this.getList();
|
|
|
},
|
|
|
// 节点单击事件
|
|
|
@@ -701,7 +700,7 @@ export default {
|
|
|
api
|
|
|
.getRoles({
|
|
|
orgId: this.queryParams.orgId,
|
|
|
- planCycle: Number(this.queryParams.executeCycle),
|
|
|
+ planCycle: this.queryParams.executeCycle
|
|
|
})
|
|
|
.then((r) => (this.roleList = r.data));
|
|
|
},
|
|
|
@@ -710,7 +709,7 @@ export default {
|
|
|
api
|
|
|
.getPlans({
|
|
|
orgId: this.queryParams.orgId,
|
|
|
- // checkSub: this.queryParams.checkSub,
|
|
|
+ planCycle: this.queryParams.executeCycle
|
|
|
})
|
|
|
.then((r) => {
|
|
|
this.planList = r.data;
|
|
|
@@ -747,21 +746,22 @@ export default {
|
|
|
// 1每小时;2每天.......;3每月;4每季度;4每半年;5每年
|
|
|
if (this.queryParams.executeCycle == 3) {
|
|
|
if (!this.week) this.week = new Date();
|
|
|
-
|
|
|
- let oneDayLong = 24*60*60*1000
|
|
|
- let c_day = this.week.getDay()
|
|
|
- let monday=this.week-(c_day==0?6:(c_day-1))*oneDayLong;
|
|
|
- let sunday=this.week+(c_day==0?0:(7-c_day))*oneDayLong;
|
|
|
|
|
|
- this.weekStart =`${monday.getYear()}-${monday.getMonth()}-${monday.getDate()}`;
|
|
|
+ let oneDayLong = 24 * 60 * 60 * 1000;
|
|
|
+ let c_day = this.week.getDay();
|
|
|
+ let monday = this.week - (c_day == 0 ? 6 : c_day - 1) * oneDayLong;
|
|
|
+ let sunday = this.week + (c_day == 0 ? 0 : 7 - c_day) * oneDayLong;
|
|
|
+
|
|
|
+ this.weekStart = `${monday.getYear()}-${monday.getMonth()}-${monday.getDate()}`;
|
|
|
this.weekEnd = `${sunday.getYear()}-${sunday.getMonth()}-${sunday.getDate()}`;
|
|
|
// this.weekChanged();
|
|
|
}
|
|
|
this.resetRangeParam();
|
|
|
+ this.loadPlanList();
|
|
|
+ this.loadRoles();
|
|
|
},
|
|
|
|
|
|
weekChanged() {
|
|
|
-
|
|
|
var date = this.$moment(this.week).isoWeekday(1);
|
|
|
this.weekStart = date.weekday(1).format("YYYY-MM-DD");
|
|
|
this.weekEnd = date.weekday(7).format("YYYY-MM-DD");
|
|
|
@@ -770,8 +770,8 @@ export default {
|
|
|
monthChanged() {
|
|
|
this.resetRangeParam();
|
|
|
},
|
|
|
- async resetRangeParam() {
|
|
|
- if (this.queryParams.executeCycle == 3) {
|
|
|
+ async resetRangeParam() {
|
|
|
+ if (this.queryParams.executeCycle == 5) {
|
|
|
let yearSval = this.yearS.getFullYear();
|
|
|
let yearEval = this.yearE.getFullYear();
|
|
|
let sQDate = yearSval + "-";
|
|
|
@@ -808,7 +808,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
this.queryParams.range = [new Date(sQDate), new Date(eQData)];
|
|
|
- } else if (this.queryParams.executeCycle == 4) {
|
|
|
+ } else if (this.queryParams.executeCycle == 6) {
|
|
|
let yearSval = this.yearS.getFullYear();
|
|
|
let yearEval = this.yearE.getFullYear();
|
|
|
let sHDate = yearSval + "-";
|
|
|
@@ -832,14 +832,14 @@ export default {
|
|
|
break;
|
|
|
}
|
|
|
this.queryParams.range = [new Date(sHDate), new Date(eHData)];
|
|
|
- } else if (this.queryParams.executeCycle == 5) {
|
|
|
+ } else if (this.queryParams.executeCycle == 7) {
|
|
|
let yearSval = this.yearS.getFullYear();
|
|
|
let yearEval = this.yearE.getFullYear();
|
|
|
let sYDate = yearSval + "-01-01";
|
|
|
let eYData = yearEval + "-12-31";
|
|
|
|
|
|
this.queryParams.range = [new Date(sYDate), new Date(eYData)];
|
|
|
- } else if (this.queryParams.executeCycle == 2) {
|
|
|
+ } else if (this.queryParams.executeCycle == 4) {
|
|
|
if (!this.monthRange || this.monthRange.length != 2) {
|
|
|
this.queryParams.range = null;
|
|
|
} else {
|
|
|
@@ -952,14 +952,14 @@ export default {
|
|
|
}
|
|
|
this.queryParams.range = [new Date(sMDate), new Date(eMData)];
|
|
|
}
|
|
|
- } else if (this.queryParams.executeCycle == 1) {
|
|
|
+ } else if (this.queryParams.executeCycle == 3) {
|
|
|
this.queryParams.range = [
|
|
|
new Date(this.weekStart),
|
|
|
new Date(this.weekEnd),
|
|
|
];
|
|
|
} else if (
|
|
|
- this.queryParams.executeCycle === 0 ||
|
|
|
- this.queryParams.executeCycle == 6
|
|
|
+ this.queryParams.executeCycle === 1 ||
|
|
|
+ this.queryParams.executeCycle == 2
|
|
|
) {
|
|
|
this.queryParams.range = this.$dateRange.before(0);
|
|
|
}
|
|
|
@@ -977,7 +977,7 @@ export default {
|
|
|
color = "F5222D";
|
|
|
}
|
|
|
|
|
|
- return "list-style-type:disc;color:" + color;
|
|
|
+ return "list-style-type:disc;padding-left:10px;color:" + color;
|
|
|
},
|
|
|
},
|
|
|
async mounted() {
|