diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue
index de6e5c1..c1955e0 100644
--- a/src/views/dashboard/index.vue
+++ b/src/views/dashboard/index.vue
@@ -181,6 +181,23 @@
+
+
+
@@ -429,7 +446,48 @@ export default {
}
},
],
-
+ depList:[],
+ depTable:[{
+ prop:'dep',
+ label:'月份/科室',
+
+ },{
+ prop:'yiyue',
+ label:'一月',
+ },{
+ prop:'eryue',
+ label:'二月',
+ },{
+ prop:'sanyue',
+ label:'三月',
+ },{
+ prop:'siyue',
+ label:'四月',
+ },{
+ prop:'wuyue',
+ label:'五月',
+ },{
+ prop:'liuyue',
+ label:'六月',
+ },{
+ prop:'qiyue',
+ label:'七月',
+ },{
+ prop:'bayue',
+ label:'八月',
+ },{
+ prop:'jiuyue',
+ label:'九月',
+ },{
+ prop:'shiyue',
+ label:'十月',
+ },{
+ prop:'shiyiyue',
+ label:'十一月',
+ },{
+ prop:'shieryue',
+ label:'十二月',
+ }],
icon1: require('@/assets/index/icon1.png'),
icon2: require('@/assets/index/icon2.png'),
icon3: require('@/assets/index/icon3.png'),
@@ -817,6 +875,10 @@ export default {
let x_dep = []
for(var d of res.department){
x_dep.push(d.name)
+ this.depList.push({
+ dep:d.name,
+ // yiyue:(d.mission.total+d.mission_plan.total) +'/' + (d.mission.no_end+d.mission_plan.no_end)
+ })
all_dep.push({
value:d.mission.total+d.mission_plan.total,
plan:d.mission_plan.total,
diff --git a/src/views/task/list/components/addUnit.vue b/src/views/task/list/components/addUnit.vue
index a33f2da..2f8b396 100644
--- a/src/views/task/list/components/addUnit.vue
+++ b/src/views/task/list/components/addUnit.vue
@@ -2,6 +2,26 @@
+
+
+
+
+
+
-->
-
+
{
+ return value===4?'专项专题任务':'年度计划任务'
+ }
+ }, {
label: "状态",
prop: 'audit_status',
width: 80,
@@ -373,13 +381,14 @@
this.stateObj = state.state
},
methods: {
- editorUnit(type, plan_id) {
+ editorUnit(type, unit_id) {
this.$refs.addUnit.type = type
if(type==='editor'){
- this.$refs.addUnit.id=plan_id
+ this.$refs.addUnit.id=unit_id
}else{
this.$refs.addUnit.plan_id = this.id
- this.$refs.addUnit.setNameContent(this.showform.level,this.showform.content)
+ this.$refs.addUnit.setNameContent(this.showform.out_line_content,this.showform.content)
+ this.$refs.addUnit.setMenuLevel(this.showform.menu,this.showform.level)
}
this.$refs.addUnit.isShow = true
diff --git a/src/views/task/list/outline.vue b/src/views/task/list/outline.vue
index f325797..4d49da9 100644
--- a/src/views/task/list/outline.vue
+++ b/src/views/task/list/outline.vue
@@ -18,15 +18,23 @@
-
+
-
+
+
+
+
+
+
+ @click="editorOutline(scope.row.id,'editor')">编辑大纲
@@ -43,7 +51,9 @@
-
+
+
+
@@ -60,11 +70,13 @@
groupBy
} from '@/utils/contactTable.js'
import addOutline from '../list/components/addOutline.vue'
- import addPlan from '../list/components/addPlan.vue'
+ import addPlan from '../list/components/addPlan.vue'
+ import addUnit from '../list/components/addUnit.vue'
export default {
components: {
addOutline,
- addPlan
+ addPlan,
+ addUnit
},
data() {
return {
@@ -217,7 +229,14 @@
this.$refs.addPlan.setMenuLevel(row.menu,row.level,row.id,row.content,row.flow)
this.$refs.addPlan.type = type
this.$refs.addPlan.isShow = true
- }
+ },
+ editUnit(row,type){
+ this.$refs.addUnit.setoutLineId(row.id)
+ this.$refs.addUnit.setType(type)
+ this.$refs.addUnit.setNameContent(row.content,row.flow)
+ this.$refs.addUnit.setMenuLevel(row.menu,row.level)
+ this.$refs.addUnit.isShow = true
+ },
},
watch: {}
diff --git a/src/views/task/list/patrol.vue b/src/views/task/list/patrol.vue
index 5194d5a..f65c0f4 100644
--- a/src/views/task/list/patrol.vue
+++ b/src/views/task/list/patrol.vue
@@ -790,6 +790,15 @@
}
.tablecontent{
width:89%
+ }
+ /deep/ .tablemonth .el-checkbox{
+ width:100%;
+ }
+ /deep/ .tablemonth .el-checkbox__input{
+ vertical-align: top!important;
+ }
+ /deep/ .tablemonth .el-checkbox__label {
+ text-wrap:wrap;
}
/deep/ .v-table .el-table__body .missionName{
vertical-align: top!important;
diff --git a/src/views/task/list/plan.vue b/src/views/task/list/plan.vue
index d77250b..29c0f98 100644
--- a/src/views/task/list/plan.vue
+++ b/src/views/task/list/plan.vue
@@ -17,7 +17,7 @@
-->
-
+
+
+
+
+
+
+ @click="editorPlan(scope.row.id,'editor')">编辑年度计划
@@ -416,7 +424,6 @@
// });
// });
this.currentTableList = this.filterBySelectedMonths(this.list,this.selectMonth)
- console.log("this.currentTableList",this.currentTableList)
this.total = res.total
},
@@ -546,6 +553,13 @@
showPlan(id) {
this.$refs.showPlan.id = id
this.$refs.showPlan.isShow = true
+ },
+ editUnit(row,type){
+ this.$refs.addUnit.plan_id = row.id
+ this.$refs.addUnit.setType(type)
+ this.$refs.addUnit.setNameContent(row.out_line_content,row.content)
+ this.$refs.addUnit.setMenuLevel(row.menu,row.level)
+ this.$refs.addUnit.isShow = true
},
deleteList(id) {
var that = this;
diff --git a/src/views/task/list/planunit.vue b/src/views/task/list/planunit.vue
new file mode 100644
index 0000000..e419d10
--- /dev/null
+++ b/src/views/task/list/planunit.vue
@@ -0,0 +1,765 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{selectMonth.join('、')}}共有{{currentTableList.length}}项任务,{{auditStatus2.length}}项未完成
+
{select.page_size = e,getList()}"
+ @pageIndexChange="e => {select.page = e,getList()}"
+ :table-item="table">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 请确认是否将该任务归档到安全生产标准化台账管理中?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/task/list/unit.vue b/src/views/task/list/unit.vue
index 1f4f49f..465777e 100644
--- a/src/views/task/list/unit.vue
+++ b/src/views/task/list/unit.vue
@@ -23,8 +23,8 @@
-
+
@@ -42,6 +42,7 @@
+
{{selectMonth.join('、')}}共有{{currentTableList.length}}项任务,{{auditStatus2.length}}项未完成
{
@@ -567,7 +579,6 @@
r.monthName = allMonths[parseInt(dateArr[1])-1]
let _index = monthObj[r.monthName]<10?"0"+monthObj[r.monthName]:monthObj[r.monthName]
r.monthIndex = parseInt(dateArr[0])+""+_index
- console.log(r.monthName,r.monthIndex)
}
@@ -653,8 +664,12 @@
}
this.list = res.data
- this.currentTableList = this.filterBySelectedMonths(this.list,this.selectMonth)
- console.log("this.currentTableList",this.currentTableList)
+ let _arr = []
+ let _arr2 = []
+ _arr = this.filterBySelectedMonths(this.list,this.selectMonth)
+ this.currentTableList = _arr
+ _arr2 = _arr.filter(item=>item.audit_status===2)
+ this.auditStatus2= _arr2
this.total = res.total
@@ -663,16 +678,22 @@
this.selectMonth = val ? this.allMonths : [];
this.isIndeterminate = false;
let _arr = []
+ let _arr2 = []
_arr = this.filterBySelectedMonths(this.list,this.selectMonth)
this.currentTableList = _arr
+ _arr2 = _arr.filter(item=>item.audit_status===2)
+ this.auditStatus2= _arr2
},
changeMonth(e){
let checkedCount = e.length;
this.checkAll = checkedCount === this.allMonths.length;
this.isIndeterminate = checkedCount > 0 && checkedCount < this.allMonths.length;
let _arr = []
+ let _arr2 = []
_arr = this.filterBySelectedMonths(this.list,this.selectMonth)
this.currentTableList = _arr
+ _arr2 = _arr.filter(item=>item.audit_status===2)
+ this.auditStatus2= _arr2
},
filterBySelectedMonths(arr, selectMonth) {
if (!selectMonth || selectMonth.length === 0) {