From 30818a79449579dc2b45464e87642cb9ffdbd6de Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Thu, 11 Jul 2024 16:14:12 +0800 Subject: [PATCH] =?UTF-8?q?0704=E4=BC=9A=E8=AE=AE=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/showDashboardArticle.vue | 129 +++++++++ src/views/dashboard/index.vue | 96 +++++-- src/views/task/list/components/addPatrol.vue | 21 +- src/views/task/list/components/checkUnit.vue | 257 +++++++++++++++--- src/views/task/list/patrol.vue | 16 +- src/views/task/list/unit.vue | 65 ++--- 6 files changed, 470 insertions(+), 114 deletions(-) create mode 100644 src/views/dashboard/components/showDashboardArticle.vue diff --git a/src/views/dashboard/components/showDashboardArticle.vue b/src/views/dashboard/components/showDashboardArticle.vue new file mode 100644 index 0000000..55d4ceb --- /dev/null +++ b/src/views/dashboard/components/showDashboardArticle.vue @@ -0,0 +1,129 @@ + + + + + diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index d092d84..98a62b4 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -16,6 +16,7 @@

{{ item.title }}

@@ -34,9 +35,15 @@
+
+
  • +
    {{item.title?item.title:''}}
    +
    {{item.created_at?item.created_at.substr(0,11):''}}
    +
  • +
    - - + -->
    @@ -98,7 +105,7 @@ content="您可以按照任务要求完成任务"> @@ -147,7 +154,7 @@ content="您可以按照任务要求完成任务"> @@ -182,14 +189,20 @@
    -
    - -
    + + +
    - +
    @@ -202,7 +215,7 @@ content="您可以按照任务要求完成任务"> @@ -230,7 +243,7 @@ content="您可以按照任务要求完成任务">
    @@ -392,7 +405,8 @@ - + +
    @@ -435,7 +449,9 @@ import checkUnit from '@/views/task/list/components/checkUnit.vue' import addPatrol from '@/views/task/list/components/addPatrol.vue' import answerQuestion from '@/views/task/list/components/answerQuestion.vue' import showPlan from '@/views/task/list/components/showPlan.vue' -import showArticle from '@/views/dashboard/components/showArticle.vue' +import showArticle from '@/views/dashboard/components/showArticle.vue' +import showDashboardArticle from '@/views/dashboard/components/showDashboardArticle.vue' + import state from '@/store/modules/user.js' import addUnit from '@/views/task/list/components/addUnit.vue' export default { @@ -453,6 +469,7 @@ export default { addPatrol, answerQuestion, showArticle, + showDashboardArticle, showPlan, addUnit, }, @@ -478,7 +495,8 @@ export default { mission_ask_id:"答题", mission_material_feedback_id:'资料收集', mission_train_feedback_id:'培训反馈', - id:"专项专题任务" + id:"专项专题任务", + }, activeTable: [{ prop: "created_at", @@ -1049,6 +1067,18 @@ export default { }, methods: { + + showActiveInfo(item){ + console.log(item) + if(item.is_id==='mission'){ + this.checkUnits(item.mission_id,'show') + }else if(item.is_id==='plan'){ + this.showPlan(item.mission_id,'show') + }else{ + this.checkUnits(item.mission_id,'show') + } + + }, // 资讯动态 async getSwiperList() { const res = await indexSwiper({ @@ -1171,6 +1201,7 @@ export default { await listarticle(1, '', '', 20, '').then(res => { let arr = [] for(var k of res.data){ + k.title = k.title + '已归档' arr.push({active_type:k.menu?k.menu.name:'',...k}) } this.articleList = arr; @@ -1213,7 +1244,8 @@ export default { is_mission = 'plan' } if(a=="id"){ - status_name = this.missionStatus[k.audit_status] + // status_name = this.missionStatus[k.audit_status] + status_name = '归档' toid = k.id } this.activeList.push({ @@ -1238,6 +1270,7 @@ export default { if(arrs.length>30){ arrs.splice(30,arrs.length-1) } + this.activeAllList = arrs }, dateData(property, bol) { @@ -1270,6 +1303,10 @@ export default { this.isautoplay = false this.$refs.showArticle.isShow = true }, + showDashboardArticle(id){ + this.$refs.showDashboardArticle.id = id + this.$refs.showDashboardArticle.isShow = true + }, refreshIsshow(e){ if(!e){ this.isautoplay = true @@ -1730,6 +1767,31 @@ export default { width: 50%; margin-bottom: 60px; } + } + +} + .active_info{ + overflow-y: scroll; + } + .active_li{ + padding: 5px; + /* box-sizing: border-box; */ + list-style: none; + display: flex; + justify-content: space-between; + align-items: flex-start; + cursor: pointer; + font-size: 15px; + + } + .active_li:hover{ + color:#0077CC + } + .active_div{ + width: calc(100% - 120px); + } + .active_div2{ + width:100px; + text-align: right; } -} diff --git a/src/views/task/list/components/addPatrol.vue b/src/views/task/list/components/addPatrol.vue index 1f443f2..b9008e6 100644 --- a/src/views/task/list/components/addPatrol.vue +++ b/src/views/task/list/components/addPatrol.vue @@ -2,7 +2,7 @@
    -