|
|
|
@ -248,6 +248,9 @@
|
|
|
|
|
import portalItem from '@/components/visualPortal/components/index.vue'
|
|
|
|
|
import defaultPortal from '@/components/visualPortal/components/defaultPortal.vue'
|
|
|
|
|
import request from '@/utils/request'
|
|
|
|
|
import {
|
|
|
|
|
getFlowTodoCount
|
|
|
|
|
} from "@/api/workFlow/flowEngine";
|
|
|
|
|
import {
|
|
|
|
|
auth
|
|
|
|
|
} from '@/api/portal/portal.js'
|
|
|
|
@ -265,6 +268,7 @@
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
flowTodoData: {},
|
|
|
|
|
homeInfo: {},
|
|
|
|
|
showWebView: true,
|
|
|
|
|
emptyImg: require(`@/static/image/defProtal.png`),
|
|
|
|
@ -303,14 +307,26 @@
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
const query = {
|
|
|
|
|
flowCirculateType: this.flowCirculateType,
|
|
|
|
|
flowDoneType: this.flowDone,
|
|
|
|
|
toBeReviewedType: this.toBeReviewed,
|
|
|
|
|
}
|
|
|
|
|
getFlowTodoCount(query).then(res => {
|
|
|
|
|
this.flowTodoData = res.data
|
|
|
|
|
this.getHomeInfo()
|
|
|
|
|
this.userInfo = uni.getStorageSync('userInfo') || {}
|
|
|
|
|
this.mescrollInitByRef();
|
|
|
|
|
this.mescroll.resetUpScroll()
|
|
|
|
|
})
|
|
|
|
|
// this.getHomeInfo()
|
|
|
|
|
// this.$forceUpdate()
|
|
|
|
|
// this.token = uni.getStorageSync('token')
|
|
|
|
|
// if (!this.$store.state.chat.socket) chat.initSocket()
|
|
|
|
|
// this.mpPortalUrl = this.define.baseURL + '/pages/mpPortal/index?token=' + this.token
|
|
|
|
|
this.userInfo = uni.getStorageSync('userInfo') || {}
|
|
|
|
|
this.mescrollInitByRef();
|
|
|
|
|
this.mescroll.resetUpScroll()
|
|
|
|
|
// this.userInfo = uni.getStorageSync('userInfo') || {}
|
|
|
|
|
// this.mescrollInitByRef();
|
|
|
|
|
// this.mescroll.resetUpScroll()
|
|
|
|
|
// this.$refs.mescrollRef.mescroll.resetUpScroll()
|
|
|
|
|
// if (!this.userInfo.appPortalId) return
|
|
|
|
|
// // #ifndef MP
|
|
|
|
@ -384,7 +400,7 @@
|
|
|
|
|
this.authConfig = res.data || {}
|
|
|
|
|
let data = JSON.parse(res.data.formData) || {};
|
|
|
|
|
this.formData = []
|
|
|
|
|
this.formData = data.layout ? JSON.parse(JSON.stringify(data.layout)) : []
|
|
|
|
|
this.formData = data.layout ? JSON.parse(JSON.stringify(data.layout)) : [];
|
|
|
|
|
this.handelFormData(data)
|
|
|
|
|
if (data.refresh.autoRefresh) {
|
|
|
|
|
setInterval(() => {
|
|
|
|
@ -406,6 +422,16 @@
|
|
|
|
|
const loop = (list) => {
|
|
|
|
|
list.forEach(o => {
|
|
|
|
|
o.allRefresh = data.refresh
|
|
|
|
|
o.option.defaultValue.forEach(p => {
|
|
|
|
|
|
|
|
|
|
if(p.fullName == '待办事宜'){
|
|
|
|
|
p.num = this.flowTodoData.toBeReviewed
|
|
|
|
|
}
|
|
|
|
|
if(p.fullName == '抄送事宜'){
|
|
|
|
|
p.num = 0
|
|
|
|
|
p.num = this.flowTodoData.flowCirculate
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
o.show = false
|
|
|
|
|
if (o.visibility && o.visibility.length && o.visibility.includes('app')) o.show =
|
|
|
|
|
true
|
|
|
|
|