feat: 新增需求
This commit is contained in:
BIN
pages/index/img/dun.png
Normal file
BIN
pages/index/img/dun.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 996 KiB |
@@ -1,4 +1,15 @@
|
||||
<template>
|
||||
<view class="custom-nav-bar">
|
||||
<!-- 左侧图标 + 标题 -->
|
||||
<view class="nav-left">
|
||||
<image class="nav-icon" src="./img/dun.png" mode="widthFix"></image>
|
||||
<text class="nav-title">{{'综合监控系统'}}</text>
|
||||
</view>
|
||||
<!-- <view class="nav-right">
|
||||
<image class="nav-avatar" :src="userInfo.avatar || '/static/image/avatar-default.png'" mode="widthFix"></image>
|
||||
<text class="nav-dot" v-if="count > 0">●</text>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="index_v">
|
||||
<!-- <u-sticky>
|
||||
<view class="head-tabs u-flex">
|
||||
@@ -40,7 +51,7 @@
|
||||
<view class="todo-title">
|
||||
<view class="title-left">
|
||||
<view >待处理事项</view>
|
||||
<u-badge type="error" :count="count" :absolute="true" :offset="offset" />
|
||||
<!-- <u-badge type="error" :count="count" :absolute="true" :offset="offset" /> -->
|
||||
</view>
|
||||
<view class="title-right" @click="openToDoPage">
|
||||
工作信息
|
||||
@@ -64,7 +75,7 @@
|
||||
<view class="todo-header">
|
||||
<view class="todo-code">
|
||||
<text class="code-label">单号</text>
|
||||
<text class="code-value">{{item.businessInfo.billNo}}</text>
|
||||
<text class="code-value">{{item.businessInfo && item.businessInfo.billNo}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 信息列表 -->
|
||||
@@ -115,6 +126,9 @@
|
||||
updatePassword,
|
||||
updatePasswordMessage
|
||||
} from '@/api/common.js'
|
||||
import {
|
||||
getProcessBusinessInfo
|
||||
} from '@/api/apply/visualDev'
|
||||
import chat from '@/libs/chat'
|
||||
import CommonPane from '@/components/CommonPane'
|
||||
import CommonPaneSys from '@/components/CommonPane/indexSystem'
|
||||
@@ -387,9 +401,15 @@
|
||||
pageSize: 3
|
||||
}
|
||||
getDonePage(params).then(res=>{
|
||||
console.log(res,'res-------')
|
||||
this.count = res.data.total
|
||||
this.todoList = res.data.list || []
|
||||
const {code,data} = res
|
||||
if(code == 0){
|
||||
this.count = data.total
|
||||
uni.setTabBarBadge({
|
||||
index: 1, // 待办任务的tab索引
|
||||
text: res.data.total.toString() // 角标数字
|
||||
});
|
||||
this.todoList = data.list || []
|
||||
}
|
||||
})
|
||||
},
|
||||
//更多按钮
|
||||
@@ -406,7 +426,8 @@
|
||||
},
|
||||
// 跳转待办
|
||||
openToDoPage() {
|
||||
uni.navigateTo({
|
||||
uni.setStorageSync('fromNonTabBar', true);
|
||||
uni.switchTab({
|
||||
url: '/pages/workFlow/flowTodo/index',
|
||||
});
|
||||
},
|
||||
@@ -419,17 +440,35 @@
|
||||
},
|
||||
// 待处理事项跳转详情
|
||||
goDetail(item) {
|
||||
console.log(item,'item----------')
|
||||
const {processInstance} = item
|
||||
getProcessBusinessInfo(processInstance.id).then(res=>{
|
||||
if(res.code == 0){
|
||||
const {dbformId,businessId} = res.data
|
||||
// this.processBusinessInfo = res.data || {}
|
||||
const config = {
|
||||
modelId: dbformId,
|
||||
id: businessId,
|
||||
name: processInstance.name,
|
||||
btnType: 'btn_process',
|
||||
current: 2
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/apply/dynamicModelList/form?config=' +
|
||||
this.jnpf.base64.encode(JSON.stringify(config))
|
||||
})
|
||||
}
|
||||
})
|
||||
const config = {
|
||||
opType: item.opType,
|
||||
operatorId: item.id,
|
||||
category: '1',
|
||||
...item
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/workFlow/flowBefore/index?config=' +
|
||||
this.jnpf.base64.encode(JSON.stringify(config))
|
||||
})
|
||||
// /pages/apply/dynamicModelList/form
|
||||
// uni.navigateTo({
|
||||
// url: '/pages/workFlow/flowBefore/index?config=' +
|
||||
// this.jnpf.base64.encode(JSON.stringify(config))
|
||||
// })
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -440,8 +479,62 @@
|
||||
background-color: #f0f2f6;
|
||||
padding-bottom: 20rpx;
|
||||
}
|
||||
.custom-nav-bar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 999;
|
||||
height: 44px;
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #f0f2f6;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 20rpx;
|
||||
box-sizing: border-box;
|
||||
|
||||
.nav-left {
|
||||
display: flex;
|
||||
align-items: center; // 图标和标题垂直居中
|
||||
}
|
||||
|
||||
.nav-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
|
||||
.nav-title {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #303133;
|
||||
// 标题左对齐(flex布局默认左排列)
|
||||
}
|
||||
|
||||
.nav-right {
|
||||
margin-left: auto; // 右侧元素靠右
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.nav-avatar {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.nav-dot {
|
||||
position: absolute;
|
||||
top: -2px;
|
||||
right: -2px;
|
||||
color: #f56c6c;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.index_v {
|
||||
padding-top: 65rpx;
|
||||
.head-tabs {
|
||||
background-color: #fff;
|
||||
width: 100%;
|
||||
|
||||
@@ -164,11 +164,81 @@
|
||||
if (!chatStore.getSocket) chat.initSocket()
|
||||
},
|
||||
onShow() {
|
||||
UserSettingInfo().then(res => {
|
||||
this.baseInfo = res.data || {}
|
||||
this.avatarSrc = this.baseURL2 + this.baseInfo.avatar
|
||||
this.loading = true
|
||||
})
|
||||
// UserSettingInfo().then(res => {
|
||||
// this.baseInfo = res.data || {}
|
||||
// this.avatarSrc = this.baseURL2 + this.baseInfo.avatar
|
||||
// this.loading = true
|
||||
// })
|
||||
this.baseInfo = {
|
||||
"id": "777911634713641349",
|
||||
"account": "chenl",
|
||||
"realName": "默认",
|
||||
"organize": "引迈信息技术有限公司/总裁办",
|
||||
"company": null,
|
||||
"position": "总裁",
|
||||
"manager": null,
|
||||
"roleId": "",
|
||||
"creatorTime": 1767604989000,
|
||||
"prevLogTime": 1768896697000,
|
||||
"signature": null,
|
||||
"gender": "1",
|
||||
"nation": null,
|
||||
"nativePlace": null,
|
||||
"entryDate": null,
|
||||
"certificatesType": null,
|
||||
"certificatesNumber": null,
|
||||
"education": null,
|
||||
"birthday": null,
|
||||
"telePhone": null,
|
||||
"landline": null,
|
||||
"mobilePhone": null,
|
||||
"email": null,
|
||||
"urgentContacts": null,
|
||||
"urgentTelePhone": null,
|
||||
"postalAddress": null,
|
||||
"avatar": "/api/file/Image/userAvatar/001.png",
|
||||
"theme": "W-001",
|
||||
"language": "zh-CN",
|
||||
"ranks": null,
|
||||
"isTenant": false,
|
||||
"currentTenantInfo": null,
|
||||
"preferenceJson": null,
|
||||
"propertyJson": null,
|
||||
"pcOnlineModelList": [],
|
||||
"appOnlineModelList": [
|
||||
{
|
||||
"userId": "777911634713641349",
|
||||
"userAccount": null,
|
||||
"userName": "陈力/chenl",
|
||||
"loginTime": "2026-01-20 16:11",
|
||||
"loginIPAddress": "61.183.89.14",
|
||||
"loginSystem": "iPhone 18_5",
|
||||
"tenantId": "",
|
||||
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiI3Nzc5MTE2MzQ3MTM2NDEzNDkiLCJyblN0ciI6IkdWczEzRTRBNWRkQU4zMEVIanM3d0JXOFlSQ1h5ZUs5IiwidXNlcl9pZCI6Ijc3NzkxMTYzNDcxMzY0MTM0OSIsInVzZXJfbmFtZSI6ImNoZW5sIiwic2luZ2xlTG9naW4iOjIsImV4cCI6MTc2ODk1MDY5NjYyNywidG9rZW4iOiJsb2dpbl90b2tlbl83ODMzMjk0NTA3OTUyMDQ2NzcifQ.85PXC7GbqgLEuoEcmgeuBBXyFCfgLJX-mq8_5a-cr8Y",
|
||||
"device": "APP",
|
||||
"organize": null,
|
||||
"loginBrowser": "Safari 18.5",
|
||||
"loginAddress": "湖北省武汉市 电信",
|
||||
"isCurrent": true
|
||||
},
|
||||
{
|
||||
"userId": "777911634713641349",
|
||||
"userAccount": null,
|
||||
"userName": "陈力/chenl",
|
||||
"loginTime": "2026-01-20 09:59",
|
||||
"loginIPAddress": "61.183.89.14",
|
||||
"loginSystem": "iPhone 18_5",
|
||||
"tenantId": "",
|
||||
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiI3Nzc5MTE2MzQ3MTM2NDEzNDkiLCJyblN0ciI6Ik0yVDI5T2o3cEd0bTZiZkN1aXBYUklrR3BUaTZrT0FxIiwidXNlcl9pZCI6Ijc3NzkxMTYzNDcxMzY0MTM0OSIsInVzZXJfbmFtZSI6ImNoZW5sIiwic2luZ2xlTG9naW4iOjIsImV4cCI6MTc2ODkyODM5NDcyNywidG9rZW4iOiJsb2dpbl90b2tlbl83ODMyMzU5MDk4NDY4MjcwNzcifQ.wRKZT-ZEYc4Tao8k7LI9OPlPvnBhLFrzWdQsAljQIRA",
|
||||
"device": "APP",
|
||||
"organize": null,
|
||||
"loginBrowser": "Safari 18.5",
|
||||
"loginAddress": "湖北省武汉市 电信",
|
||||
"isCurrent": false
|
||||
}
|
||||
]
|
||||
}
|
||||
this.loading = true
|
||||
uni.setNavigationBarTitle({
|
||||
title: "我的"
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user