-
附件:
-
@@ -94,13 +98,12 @@
show({
table_name: 'articles',
id: this.id,
- with_relations:['image']
+ with_relations:['image','video']
}).then(res => {
this.form = {
show: ''
}
- this.showform = res
- this.extension = res.image?res.image.extension:''
+ this.showform = res
}).catch(error => {});
}
}
diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue
index 77eaf7d..b390cae 100644
--- a/src/views/dashboard/index.vue
+++ b/src/views/dashboard/index.vue
@@ -16,13 +16,10 @@
-
-
-
-
+
{{ item.title }}
@@ -37,7 +34,7 @@
动态信息
+ href="#">工作动态
@@ -96,7 +93,7 @@
+ @click="goMyunit(scope.row.id)">去办理
@@ -914,8 +911,8 @@ export default {
},
methods: {
- goMyunit(){
- this.$router.push('/task/list/unit_5')
+ goMyunit(id){
+ this.$router.push('/task/list/unit_5?dashboardId='+id)
},
showActiveInfo(item){
console.log(item)
diff --git a/src/views/task/list/components/addBackPlan.vue b/src/views/task/list/components/addBackPlan.vue
index 6b99898..b6c13b2 100644
--- a/src/views/task/list/components/addBackPlan.vue
+++ b/src/views/task/list/components/addBackPlan.vue
@@ -164,7 +164,8 @@
this.selsectMenu = arr
this.form.menu_id = arr[1]
if (e.mission_distribute && e.mission_distribute.length > 0) {
- let _arr = []
+ let _arr = []
+ let arr = []
e.mission_distribute.map(item => {
if (item.files.length > 0) {
item.files.map(file => {
@@ -173,12 +174,20 @@
name: file.original_name,
url: file.url,
upload_name:item.accept_admin.name
- })
+ })
+ if(item.accept_admin_id===e.main_admin_id){
+ arr.push({
+ id: file.id,
+ name: file.original_name,
+ url: file.url,
+ })
+ }
})
}
})
- this.otherList = _arr
+ this.otherList = _arr
+ this.pictureList = arr
}
},
async getMenus() {
diff --git a/src/views/task/list/components/sendNotice.vue b/src/views/task/list/components/sendNotice.vue
index 29f9467..5a585b9 100644
--- a/src/views/task/list/components/sendNotice.vue
+++ b/src/views/task/list/components/sendNotice.vue
@@ -8,7 +8,7 @@
*提醒内容:
-
@@ -84,6 +84,7 @@
if (e) {
let arr = []
let Arr = []
+ this.form.title = `"${e.name}"任务请及时处理(安全生产管理平台)`
this.form.mission_id = e.id
e.mission_distribute.map(item=>{
// if(item.admin_type>1){
diff --git a/src/views/task/list/unit.vue b/src/views/task/list/unit.vue
index fd2b3b8..f25619c 100644
--- a/src/views/task/list/unit.vue
+++ b/src/views/task/list/unit.vue
@@ -461,12 +461,29 @@
this.getUnitTypeList()
this.getUnDoTotal()
this.getList()
- console.log("this.$route.query123",this.$route.query)
+ console.log("this.$route.query123",this.$route.query)
+
+
+ // 从大平台跳转过来的
+
+ let that = this
if (this.$route.query.token && this.$route.query.tp){
+
if(this.$route.query.notice_id){
this.sendIsRead(this.$route.query.notice_id)
}
- }
+ setTimeout(()=>{
+ that.checkUnits(that.$route.query.missionId,'show')
+ },5000)
+ }
+ // 从首页
+ if (this.$route.query.dashboardId){
+ setTimeout(()=>{
+ that.checkUnits(that.$route.query.dashboardId,'show')
+ },5000)
+ }
+
+
},
watch: {},
methods: {