feat: 新增需求
This commit is contained in:
@@ -21,7 +21,7 @@ export function getMenuData(id) {
|
||||
|
||||
export function getDonePage(data) {
|
||||
return request({
|
||||
url: `/admin-api/bpm/task/done-page`,
|
||||
url: `/admin-api/bpm/task/todo-page`,
|
||||
method: 'get',
|
||||
data,
|
||||
options: {
|
||||
|
||||
@@ -5,11 +5,12 @@
|
||||
<view class="u-flex card-left">
|
||||
<view class="card-title">{{title}}</view>
|
||||
</view>
|
||||
<view @click="openPage" class="morebtn">更多<u-icon name="arrow-right" class="u-p-r-10"
|
||||
color="#666"></u-icon></view>
|
||||
</view>
|
||||
<view class="card-item">
|
||||
<!-- 遍历渲染业务图标 -->
|
||||
<view class="item u-flex-col" v-for="(item,index) in cardData" :key="index" @click="clickItem(item)">
|
||||
<!-- 替换原有 class 图标为 iconify-icon 标签 -->
|
||||
<view class="item-icon" :style="{ background: item.iconBackground || '#008cff' }">
|
||||
<!-- 使用 iconify-icon 渲染 ep 系列图标 -->
|
||||
<iconify-icon
|
||||
@@ -114,14 +115,7 @@
|
||||
})
|
||||
},
|
||||
openPage() {
|
||||
let url;
|
||||
if (this.type === 'collect') {
|
||||
url = this.tabType === 'menu' ? '/pages/commonPage/morePage/index?type=2' :
|
||||
'/pages/commonPage/morePage/index?type=1'
|
||||
} else {
|
||||
url = this.tabType === 'menu' ? '/pages/apply/menu/index' : '/pages/workFlow/workFlow/index'
|
||||
}
|
||||
this.$emit('openPage', url)
|
||||
this.$emit('openPage', '/pages/apply/menu/index')
|
||||
},
|
||||
add() {
|
||||
let url = this.tabType === 'menu' ? '/pages/apply/allAppApply/index' :
|
||||
|
||||
102
pages.json
102
pages.json
@@ -6,27 +6,27 @@
|
||||
"^jnpf-(.*)": "@/components/Jnpf/$1/index.vue"
|
||||
}
|
||||
},
|
||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
||||
"pages": [
|
||||
// #ifdef APP
|
||||
{
|
||||
"path": "pages/launch/index",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTextStyle": "black" // 状态栏字体为白色
|
||||
"navigationBarTextStyle": "black"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/launch/policy",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTextStyle": "black" // 状态栏字体为白色
|
||||
"navigationBarTextStyle": "black"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/launch/guide",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTextStyle": "black" // 状态栏字体为白色
|
||||
"navigationBarTextStyle": "black"
|
||||
}
|
||||
},
|
||||
// #endif
|
||||
@@ -34,14 +34,14 @@
|
||||
"path": "pages/login/index",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTextStyle": "black" // 状态栏字体为白色
|
||||
"navigationBarTextStyle": "black"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/login/sso-redirect",
|
||||
"style": {
|
||||
"navigationStyle": "custom", // 隐藏系统导航栏
|
||||
"navigationBarTextStyle": "black" // 状态栏字体为白色
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTextStyle": "black"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -62,17 +62,18 @@
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "JNPF快速开发平台",
|
||||
"app-plus": {
|
||||
"bounce": "none" // 取消APP端iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle')
|
||||
"bounce": "none"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/index/indexWork",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "综合监控系统",
|
||||
"app-plus": {
|
||||
"bounce": "none" // 取消APP端iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle')
|
||||
"bounce": "none"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -83,11 +84,14 @@
|
||||
"navigationBarTitleText": "%app.tabBar.dashboard%"
|
||||
}
|
||||
},
|
||||
// 核心修改:将审批中心页面移到根pages数组(删除分包里的同名配置)
|
||||
{
|
||||
"path": "pages/index/message",
|
||||
"path": "pages/workFlow/flowTodo/index",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "%app.tabBar.message%"
|
||||
"navigationBarTitleText": "审批中心", // 审批中心标题
|
||||
"app-plus": {
|
||||
"bounce": "none"
|
||||
}
|
||||
}
|
||||
},
|
||||
// #ifndef MP
|
||||
@@ -122,15 +126,16 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"subPackages": [{
|
||||
"subPackages": [
|
||||
{
|
||||
"root": "pages/portal",
|
||||
"pages": [
|
||||
// #ifndef MP
|
||||
{
|
||||
"path": "applyPortal/index",
|
||||
"style": {
|
||||
"navigationStyle": "custom", // 隐藏系统导航栏
|
||||
"navigationBarTextStyle": "black" // 状态栏字体为白色
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTextStyle": "black"
|
||||
}
|
||||
},
|
||||
// #endif
|
||||
@@ -138,8 +143,8 @@
|
||||
{
|
||||
"path": "mpPortal/index",
|
||||
"style": {
|
||||
"navigationStyle": "custom", // 隐藏系统导航栏
|
||||
"navigationBarTextStyle": "black" // 状态栏字体为白色
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTextStyle": "black"
|
||||
}
|
||||
},
|
||||
// #endif
|
||||
@@ -153,7 +158,8 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/message",
|
||||
"pages": [{
|
||||
"pages": [
|
||||
{
|
||||
"path": "messageDetail/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "详情"
|
||||
@@ -175,7 +181,8 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/workFlow",
|
||||
"pages": [{
|
||||
"pages": [
|
||||
{
|
||||
"path": "flowBefore/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": ""
|
||||
@@ -226,7 +233,7 @@
|
||||
{
|
||||
"path": "schedule/detail",
|
||||
"style": {
|
||||
"navigationStyle": "custom", // 隐藏系统导航栏
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "详情",
|
||||
"app-plus": {
|
||||
"titleNView": false,
|
||||
@@ -262,12 +269,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "flowTodo/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "审批中心"
|
||||
}
|
||||
},
|
||||
// 注意:删除分包里的flowTodo/index配置(已移到根pages)
|
||||
// #ifdef MP
|
||||
{
|
||||
"path": "filePreview/index",
|
||||
@@ -326,16 +328,19 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/commonPage",
|
||||
"pages": [{
|
||||
"path": "morePage/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "常用菜单"
|
||||
"pages": [
|
||||
{
|
||||
"path": "morePage/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "常用菜单"
|
||||
}
|
||||
}
|
||||
}]
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "pages/apply",
|
||||
"pages": [{
|
||||
"pages": [
|
||||
{
|
||||
"path": "menu/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "应用功能"
|
||||
@@ -356,7 +361,7 @@
|
||||
{
|
||||
"path": "catalog/index",
|
||||
"style": {
|
||||
"navigationStyle": "custom" // 隐藏系统导航栏
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -462,7 +467,8 @@
|
||||
},
|
||||
{
|
||||
"root": "pages/my",
|
||||
"pages": [{
|
||||
"pages": [
|
||||
{
|
||||
"path": "contacts/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "%app.my.contacts%"
|
||||
@@ -481,7 +487,8 @@
|
||||
"style": {
|
||||
"navigationBarTitleText": "用户列表"
|
||||
}
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"path": "settings/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "%app.my.setting%",
|
||||
@@ -586,15 +593,11 @@
|
||||
"preloadRule": {
|
||||
"pages/index/message": {
|
||||
"network": "all",
|
||||
"packages": [
|
||||
"pages/message"
|
||||
]
|
||||
"packages": ["pages/message"]
|
||||
},
|
||||
"pages/index/my": {
|
||||
"network": "all",
|
||||
"packages": [
|
||||
"pages/my"
|
||||
]
|
||||
"packages": ["pages/my"]
|
||||
}
|
||||
},
|
||||
"tabBar": {
|
||||
@@ -604,25 +607,18 @@
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/index/indexWork",
|
||||
"text": "%app.tabBar.home1%",
|
||||
"iconPath": "static/image/tabbar/home.png",
|
||||
"selectedIconPath": "static/image/tabbar/homeHL.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/index/index",
|
||||
"text": "%app.tabBar.home%",
|
||||
"iconPath": "static/image/tabbar/home.png",
|
||||
"selectedIconPath": "static/image/tabbar/homeHL.png"
|
||||
},
|
||||
|
||||
// {
|
||||
// "pagePath": "pages/index/dashboard",
|
||||
// "text": "%app.tabBar.dashboard%",
|
||||
// "iconPath": "static/image/tabbar/workFlow.png",
|
||||
// "selectedIconPath": "static/image/tabbar/workFlowHL.png"
|
||||
// "pagePath": "pages/index/index",
|
||||
// "text": "%app.tabBar.home%",
|
||||
// "iconPath": "static/image/tabbar/home.png",
|
||||
// "selectedIconPath": "static/image/tabbar/homeHL.png"
|
||||
// },
|
||||
{
|
||||
"pagePath": "pages/index/message",
|
||||
"pagePath": "pages/workFlow/flowTodo/index",
|
||||
"text": "%app.tabBar.task%",
|
||||
"iconPath": "static/image/tabbar/message.png",
|
||||
"selectedIconPath": "static/image/tabbar/messageHL.png"
|
||||
|
||||
@@ -81,10 +81,8 @@
|
||||
</view>
|
||||
<view v-if="!showTop">
|
||||
<!-- 新增按钮 -->
|
||||
<view v-if="config.webType !=4">
|
||||
<view class="com-addBtn"
|
||||
v-if="isPreview||(permission.btnPermission && permission.btnPermission.includes('btn_add'))"
|
||||
@click="addPage()">
|
||||
<view>
|
||||
<view class="com-addBtn" @click="addPage()">
|
||||
<u-icon name="plus" size="48" color="#fff" />
|
||||
</view>
|
||||
</view>
|
||||
@@ -114,10 +112,9 @@
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
useBaseStore
|
||||
} from '@/store/modules/base'
|
||||
import { useBaseStore } from '@/store/modules/base'
|
||||
const baseStore = useBaseStore()
|
||||
import list from './list.vue'
|
||||
import resources from '@/libs/resources.js'
|
||||
@@ -126,18 +123,16 @@
|
||||
import jnpf from "@/utils/jnpf";
|
||||
import Parser from '../parser/index.vue'
|
||||
import {
|
||||
getModelList,
|
||||
getModelDataList,
|
||||
getDbfromList,
|
||||
deteleModel,
|
||||
getModelInfo,
|
||||
launchFlow
|
||||
} from '@/api/apply/visualDev'
|
||||
import {
|
||||
getDataInterfaceRes
|
||||
} from '@/api/common'
|
||||
import { getDataInterfaceRes } from '@/api/common'
|
||||
import deepClone from '../../../../../uni_modules/vk-uview-ui/libs/function/deepClone';
|
||||
import {
|
||||
useDefineSetting
|
||||
} from '@/utils/useDefineSetting';
|
||||
import { useDefineSetting } from '@/utils/useDefineSetting';
|
||||
|
||||
export default {
|
||||
mixins: [MescrollMixin, bulkOperationMixin],
|
||||
props: ['config', 'modelId', 'isPreview', 'title', 'menuId'],
|
||||
@@ -147,6 +142,7 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
selectedSort: {},
|
||||
tabActiveKey: 0,
|
||||
tabList: [],
|
||||
tabQueryJson: {},
|
||||
@@ -172,16 +168,17 @@
|
||||
list: [],
|
||||
listQuery: {
|
||||
sidx: '',
|
||||
keyword: '',
|
||||
queryJson: ''
|
||||
asc: '', // 升序
|
||||
desc: '', // 降序
|
||||
queryJson: {}
|
||||
},
|
||||
actionOptions: [],
|
||||
showParser: false,
|
||||
showParser: true, // 强制显示筛选面板
|
||||
columnData: {},
|
||||
columnList: [],
|
||||
sortList: [],
|
||||
sortOptions: [],
|
||||
searchList: [],
|
||||
searchList: [], // 初始化空数组
|
||||
searchFormConf: [],
|
||||
permission: {},
|
||||
selectListIndex: 0,
|
||||
@@ -196,23 +193,29 @@
|
||||
selectItems: [],
|
||||
listInnerBtn: [],
|
||||
listTopBtn: [],
|
||||
useDefine: useDefineSetting()
|
||||
useDefine: useDefineSetting(),
|
||||
departmentList: [] // 新增:存储接口返回的部门列表
|
||||
}
|
||||
},
|
||||
created() {
|
||||
async created() {
|
||||
// 1. 先加载部门数据(await 确保接口完成后再执行init)
|
||||
await this.loadDepartmentList()
|
||||
// 2. 强制执行初始化
|
||||
this.init()
|
||||
// 3. 强制触发列表加载,确保页面初始化完成
|
||||
this.$nextTick(() => {
|
||||
this.mescrollInit()
|
||||
this.mescroll.resetUpScroll()
|
||||
})
|
||||
},
|
||||
mounted() {
|
||||
// 兜底:mounted阶段再次强制设置mock数据
|
||||
this.forceSetMockData()
|
||||
},
|
||||
computed: {
|
||||
showBatchOperate() {
|
||||
return this.list.length && (this.isBatchRemove || this.listTopBtn.length)
|
||||
},
|
||||
isBatchRemove() {
|
||||
return this.columnData.btnsList.find(item => item.value === "batchRemove" && item.show)
|
||||
},
|
||||
showTabs() {
|
||||
return this.columnData?.tabConfig?.on && this.tabList.length
|
||||
},
|
||||
/* 底部自定义按钮 */
|
||||
bottomCustomBtnsList() {
|
||||
if (this.listTopBtn.length <= 3) return [this.listTopBtn, []];
|
||||
const firstArray = this.listTopBtn.slice(0, 3);
|
||||
@@ -231,36 +234,208 @@
|
||||
},
|
||||
customBtnsList() {
|
||||
return this.columnData?.customBtnsList?.some(item => item.event?.btnType === 1);
|
||||
},
|
||||
isBatchRemove() {
|
||||
return this.columnData?.btnsList?.find(item => item.value === "batchRemove" && item.show)
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 加载部门列表(改为async/await,确保异步逻辑等待完成)
|
||||
*/
|
||||
async loadDepartmentList() {
|
||||
console.log(this.modelId,'modelId------')
|
||||
try {
|
||||
// 用await等待接口返回,解决异步时序问题
|
||||
const res = await getDbfromList('1964207990401785857');
|
||||
console.log(res,'res---------111')
|
||||
if(res.code == 0 && res.data?.records?.length){
|
||||
this.departmentList = res.data.records.map(item => ({
|
||||
label: item.full_name,
|
||||
value: item.id // 如需用名称作为value,可改为 item.full_name
|
||||
}));
|
||||
}
|
||||
console.log(this.departmentList,'departmentList----')
|
||||
|
||||
// 关键:接口返回后更新筛选配置的部门选项
|
||||
this.mockSearchListForDepartment();
|
||||
this.handleSearchList();
|
||||
} catch (error) {
|
||||
console.error('加载部门列表失败:', error);
|
||||
// 接口失败时的兜底数据
|
||||
this.departmentList = [
|
||||
{ label: '技术部', value: '技术部' },
|
||||
{ label: '财务部', value: '财务部' },
|
||||
{ label: '行政部', value: '行政部' },
|
||||
{ label: '销售部', value: '销售部' }
|
||||
];
|
||||
// 兜底数据也要更新筛选配置
|
||||
this.mockSearchListForDepartment();
|
||||
this.handleSearchList();
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 专门生成带部门列表的筛选配置(只更新申请单位项,不影响其他筛选项)
|
||||
*/
|
||||
mockSearchListForDepartment() {
|
||||
// 先检查是否已有申请单位的筛选项,有则更新options,无则新增
|
||||
const depItemIndex = this.searchList.findIndex(item => item.id === 'applyDepId');
|
||||
if (depItemIndex > -1) {
|
||||
// 已有则更新options
|
||||
this.searchList[depItemIndex].options = this.departmentList;
|
||||
} else {
|
||||
// 没有则新增申请单位筛选项
|
||||
this.searchList.push({
|
||||
id: 'applyDepId',
|
||||
prop: '$applyDepId',
|
||||
label: '申请单位',
|
||||
placeholder: '请选择申请单位',
|
||||
jnpfKey: 'select',
|
||||
value: '',
|
||||
options: this.departmentList,
|
||||
__config__: {
|
||||
jnpfKey: 'select',
|
||||
label: '申请单位',
|
||||
isFromParam: false
|
||||
},
|
||||
noShow: false
|
||||
});
|
||||
}
|
||||
// 同时更新forceSetMockData里的申请单位options(兜底)
|
||||
this.forceSetMockData();
|
||||
},
|
||||
filterEmpty(arr) {
|
||||
return arr.filter(item => {
|
||||
// 处理数组情况
|
||||
if (Array.isArray(item)) return item.length > 0;
|
||||
// 处理对象情况
|
||||
if (typeof item === 'object' && item !== null) return Object.keys(item).length > 0;
|
||||
// 其他情况保留
|
||||
return true;
|
||||
});
|
||||
},
|
||||
selectCheckbox(data) {
|
||||
this.selectItems = data
|
||||
},
|
||||
// 新增:强制设置mock数据(兜底逻辑)
|
||||
forceSetMockData() {
|
||||
// 强制设置排序选项
|
||||
if (!this.sortOptions.length) {
|
||||
this.sortOptions = [
|
||||
{ label: '创建时间 升序', value: 'create_time_asc', field: 'create_time', type: 'asc' },
|
||||
{ label: '创建时间 降序', value: 'create_time_desc', field: 'create_time', type: 'desc' },
|
||||
];
|
||||
}
|
||||
// 强制设置筛选配置(只在无数据时初始化,避免覆盖接口返回的配置)
|
||||
if (!this.searchFormConf.length) {
|
||||
this.searchFormConf = [
|
||||
{
|
||||
id: 'applyDepId',
|
||||
prop: '$applyDepId',
|
||||
label: '申请单位',
|
||||
placeholder: '请选择申请单位',
|
||||
jnpfKey: 'select',
|
||||
value: '',
|
||||
options: this.departmentList, // 动态绑定最新部门列表
|
||||
__config__: {
|
||||
jnpfKey: 'select',
|
||||
label: '申请单位',
|
||||
isFromParam: false
|
||||
},
|
||||
noShow: false
|
||||
},
|
||||
{
|
||||
id: 'applyUser',
|
||||
prop: 'applyUser',
|
||||
label: '申请人',
|
||||
placeholder: '请输入申请人员',
|
||||
jnpfKey: 'input',
|
||||
clearable: true,
|
||||
isKeyword: true,
|
||||
value: '',
|
||||
__config__: {
|
||||
jnpfKey: 'input',
|
||||
label: '申请人',
|
||||
isFromParam: false
|
||||
},
|
||||
noShow: false
|
||||
},
|
||||
{
|
||||
id: 'operationDepName',
|
||||
prop: 'operationDepName',
|
||||
label: '作业单位',
|
||||
placeholder: '请输入作业单位',
|
||||
jnpfKey: 'input',
|
||||
clearable: true,
|
||||
isKeyword: true,
|
||||
value: '',
|
||||
__config__: {
|
||||
jnpfKey: 'input',
|
||||
label: '作业单位',
|
||||
isFromParam: false
|
||||
},
|
||||
noShow: false
|
||||
},
|
||||
];
|
||||
this.searchList = [...this.searchFormConf]
|
||||
} else {
|
||||
// 如果已有筛选配置,只更新申请单位的options
|
||||
const depConfIndex = this.searchFormConf.findIndex(item => item.id === 'applyDepId');
|
||||
if (depConfIndex > -1) {
|
||||
this.searchFormConf[depConfIndex].options = this.departmentList;
|
||||
}
|
||||
}
|
||||
},
|
||||
init() {
|
||||
this.userInfo = uni.getStorageSync('userInfo') || {};
|
||||
this.properties = this.config.flowTemplateJson ? JSON.parse(this.config.flowTemplateJson).properties : {};
|
||||
let columnDataStr = this.config?.appColumnData || '[]';
|
||||
let columnDataStr = this.config?.appColumnData || '{}'; // 改为空对象,避免解析报错
|
||||
try {
|
||||
this.columnData = JSON.parse(columnDataStr);
|
||||
} catch (e) {
|
||||
this.columnData = [];
|
||||
this.columnData = {};
|
||||
}
|
||||
this.permission = this.$permission.getPermission(this.columnData, this.menuId, this.jnpf.getScriptFunc);
|
||||
this.enableFunc = this.permission.enableFunc;
|
||||
this.upOption.page.size = this.columnData.hasPage ? this.columnData.pageSize : 1000000;
|
||||
this.setDefaultQuery();
|
||||
this.columnList = this.permission.columnPermission || [];
|
||||
|
||||
// ========== 强制设置列数据(优先级最高) ==========
|
||||
this.columnList = [
|
||||
{
|
||||
prop: 'billNo',
|
||||
label: '单号',
|
||||
sortable: true,
|
||||
jnpfKey: 'table',
|
||||
labelI18nCode: 'app.apply.billNo'
|
||||
},
|
||||
{
|
||||
prop: 'applyDepName',
|
||||
label: '申请单位',
|
||||
sortable: false,
|
||||
jnpfKey: 'table',
|
||||
labelI18nCode: 'app.apply.applyDepName'
|
||||
},
|
||||
{
|
||||
prop: 'applyUser',
|
||||
label: '申请人员',
|
||||
sortable: true,
|
||||
jnpfKey: 'table',
|
||||
labelI18nCode: 'app.apply.applyUser'
|
||||
},
|
||||
{
|
||||
prop: 'create_time',
|
||||
label: '创建时间',
|
||||
sortable: true,
|
||||
jnpfKey: 'table',
|
||||
labelI18nCode: 'app.apply.createTime'
|
||||
},
|
||||
{
|
||||
prop: 'approveStatusName',
|
||||
label: '审批状态',
|
||||
sortable: false,
|
||||
jnpfKey: 'table',
|
||||
labelI18nCode: 'app.apply.approveStatus'
|
||||
}
|
||||
];
|
||||
|
||||
this.columnData.customBtnsList = this.permission.customBtnsPermission || [];
|
||||
this.columnData.customBtnsList.map((o) => {
|
||||
if (o.labelI18nCode) o.label = this.$t(o.labelI18nCode)
|
||||
@@ -269,14 +444,21 @@
|
||||
this.columnList = this.transformColumnList(this.columnList)
|
||||
this.columnList.map((o) => {
|
||||
if (o.labelI18nCode) o.label = this.$t(o.labelI18nCode)
|
||||
// if (o.jnpfKey != 'table' && o.label.length > 4) o.label = o.label.substring(0, 4)
|
||||
})
|
||||
this.sortList = this.columnList.filter(o => o.sortable)
|
||||
});
|
||||
|
||||
// ========== 强制设置排序数据 ==========
|
||||
this.sortList = this.columnList.filter(o => o.sortable);
|
||||
// this.handleSortList(); // 立即生成排序选项
|
||||
|
||||
// ========== 强制设置筛选数据 ==========
|
||||
this.handleSearchList(); // 处理筛选配置
|
||||
|
||||
this.getTabList();
|
||||
this.handleSearchList()
|
||||
this.handleSortList()
|
||||
this.handleDeleteBtn()
|
||||
this.key = +new Date()
|
||||
|
||||
// 兜底:强制触发mock数据生效
|
||||
this.forceSetMockData()
|
||||
},
|
||||
setBtns() {
|
||||
const buttons = {
|
||||
@@ -292,14 +474,17 @@
|
||||
},
|
||||
upCallback(page) {
|
||||
if (this.isPreview == '1') return this.mescroll.endSuccess(0, false);
|
||||
const { asc, desc, queryJson = {} } = this.listQuery
|
||||
const query = {
|
||||
currentPage: page.num,
|
||||
pageNo: page.num,
|
||||
pageSize: page.size,
|
||||
menuId: this.menuId,
|
||||
modelId: this.modelId,
|
||||
...this.listQuery
|
||||
asc,
|
||||
desc,
|
||||
...queryJson
|
||||
}
|
||||
getModelList(this.modelId, query, {
|
||||
getDbfromList(this.modelId, query, {
|
||||
load: page.num == 1
|
||||
}).then(res => {
|
||||
this.selectItems = []
|
||||
@@ -308,13 +493,14 @@
|
||||
})
|
||||
this.showParser = true
|
||||
if (page.num == 1) this.list = [];
|
||||
this.mescroll.endSuccess(res.data.list.length);
|
||||
const list = res.data.list.map((o, i) => ({
|
||||
this.mescroll.endSuccess(res.data.records.length);
|
||||
const list = res.data.records.map((o, i) => ({
|
||||
checked: false,
|
||||
index: i,
|
||||
...o
|
||||
}));
|
||||
this.list = this.list.concat(list);
|
||||
console.log(this.list, 'list----')
|
||||
this.$nextTick(() => {
|
||||
if (this.columnData.funcs && this.columnData.funcs.afterOnload) this
|
||||
.setTableLoadFunc()
|
||||
@@ -325,7 +511,6 @@
|
||||
this.mescroll.endErr();
|
||||
})
|
||||
},
|
||||
//获取标签面板数据、设置标签面板默认值
|
||||
async getTabList() {
|
||||
this.tabList = [];
|
||||
if (!this.columnData.tabConfig) return;
|
||||
@@ -356,13 +541,11 @@
|
||||
relationField
|
||||
} = this.columnData.tabConfig;
|
||||
const currentTab = this.tabList[val];
|
||||
// 合并条件判断
|
||||
const shouldSetRelation = !hasAllTab || val !== 0;
|
||||
this.tabActiveKey = val;
|
||||
this.tabQueryJson = shouldSetRelation ? {
|
||||
[relationField]: currentTab.id
|
||||
} : {};
|
||||
// 使用可选链操作符和空对象兜底
|
||||
const search = this.$refs.searchForm?.allCondition() || {};
|
||||
this.listQuery.queryJson = JSON.stringify({
|
||||
...search,
|
||||
@@ -389,26 +572,14 @@
|
||||
return newData
|
||||
},
|
||||
sumbitSearchForm(data) {
|
||||
let queryJson = data || {}
|
||||
this.searchFormData = data
|
||||
// 标签面板查询
|
||||
if (this.columnData.tabConfig && this.columnData.tabConfig.on) {
|
||||
this.tabQueryJson = {
|
||||
[this.columnData.tabConfig.relationField]: this.tabList[this.tabActiveKey]?.id
|
||||
};
|
||||
queryJson = {
|
||||
...queryJson,
|
||||
...this.tabQueryJson
|
||||
}
|
||||
}
|
||||
this.listQuery.queryJson = JSON.stringify(queryJson) !== '{}' ? JSON.stringify(queryJson) : ''
|
||||
this.listQuery.queryJson = data
|
||||
this.$refs.uDropdown.close();
|
||||
this.$nextTick(() => {
|
||||
this.list = [];
|
||||
this.mescroll.resetUpScroll();
|
||||
})
|
||||
},
|
||||
// 处理启用规则
|
||||
customEnableRule(data, funcName) {
|
||||
// #ifdef MP-WEIXIN
|
||||
return true
|
||||
@@ -441,7 +612,8 @@
|
||||
}))
|
||||
},
|
||||
handleSearchList() {
|
||||
this.searchList = (this.$u.deepClone(this.columnData.searchList) || []).filter(o => !o.noShow)
|
||||
// 保留mock数据,不被原有逻辑覆盖
|
||||
this.searchList = this.searchList.filter(o => !o.noShow)
|
||||
for (let i = 0; i < this.searchList.length; i++) {
|
||||
const item = this.searchList[i]
|
||||
if (item.labelI18nCode) {
|
||||
@@ -457,59 +629,8 @@
|
||||
if (this.config.webType == 4) config.label = item.label
|
||||
}
|
||||
if (Object.keys(this.searchFormData).length) this.listQuery.queryJson = JSON.stringify(this.searchFormData)
|
||||
if (this.searchList.some(o => o.isKeyword)) {
|
||||
const keywordItem = {
|
||||
id: 'jnpfKeyword',
|
||||
fullName: '关键词',
|
||||
prop: 'jnpfKeyword',
|
||||
label: this.$t('common.keyword'),
|
||||
jnpfKey: 'input',
|
||||
clearable: true,
|
||||
placeholder: '请输入',
|
||||
value: undefined,
|
||||
__config__: {
|
||||
jnpfKey: 'input'
|
||||
},
|
||||
};
|
||||
this.searchList.unshift(keywordItem);
|
||||
}
|
||||
if (this.config.enableFlow && this.searchList.length) {
|
||||
const flowStateItem = {
|
||||
id: 'jnpfFlowState',
|
||||
fullName: '状态',
|
||||
prop: 'jnpfFlowState',
|
||||
label: '状态',
|
||||
jnpfKey: 'select',
|
||||
placeholder: '请选择状态',
|
||||
value: undefined,
|
||||
options: this.useDefine.flowStatusList,
|
||||
__config__: {
|
||||
jnpfKey: 'select',
|
||||
},
|
||||
};
|
||||
this.searchList.push(flowStateItem);
|
||||
}
|
||||
this.searchFormConf = this.$u.deepClone(this.searchList)
|
||||
},
|
||||
handleSortList() {
|
||||
this.sortOptions = [];
|
||||
const sortList = this.sortList
|
||||
for (let i = 0; i < sortList.length; i++) {
|
||||
let ascItem = {
|
||||
label: sortList[i].label + ' ' + this.$t('app.apply.ascendingOrder'),
|
||||
value: sortList[i].prop,
|
||||
sidx: sortList[i].prop,
|
||||
sort: 'asc'
|
||||
}
|
||||
let descItem = {
|
||||
label: sortList[i].label + ' ' + this.$t('app.apply.descendingOrder'),
|
||||
value: '-' + sortList[i].prop,
|
||||
sidx: sortList[i].prop,
|
||||
sort: 'desc'
|
||||
}
|
||||
this.sortOptions.push(ascItem, descItem)
|
||||
}
|
||||
},
|
||||
transformColumnList(columnList) {
|
||||
let list = []
|
||||
for (let i = 0; i < columnList.length; i++) {
|
||||
@@ -547,9 +668,8 @@
|
||||
return list
|
||||
},
|
||||
setDefaultQuery() {
|
||||
const defaultSortConfig = (this.columnData.defaultSortConfig || []).map(o =>
|
||||
(o.sort === 'desc' ? '-' : '') + o.field);
|
||||
this.listQuery.sidx = defaultSortConfig.join(',')
|
||||
this.listQuery.desc = 'create_time';
|
||||
this.listQuery.asc = '';
|
||||
},
|
||||
setTableLoadFunc() {
|
||||
const JNPFTable = this.$refs.tableRef
|
||||
@@ -562,7 +682,6 @@
|
||||
if (!func) return
|
||||
func.call(this, parameter)
|
||||
},
|
||||
//删除操作
|
||||
handleClick(index) {
|
||||
const item = this.list[index]
|
||||
if (!this.permission.btnPermission.includes('btn_remove')) return this.$u.toast("未开启删除权限")
|
||||
@@ -591,16 +710,13 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
//底部更多按钮
|
||||
handleBottomMoreClick(type) {
|
||||
this.showBottomMoreBtn = true
|
||||
},
|
||||
//更多按钮弹窗
|
||||
handleMoreClick(index) {
|
||||
this.selectListIndex = index
|
||||
this.showMoreBtn = true
|
||||
},
|
||||
//底部按钮操作
|
||||
bottomBtnConfirm(e) {
|
||||
if (Array.isArray(e) && e.length) {
|
||||
const index = this.bottomCustomBtnsList[1].findIndex(item => item.value === e[0].value);
|
||||
@@ -615,13 +731,11 @@
|
||||
if (!this.selectItems.length && e.event.dataRequired) {
|
||||
return this.$u.toast('请选择一条数据')
|
||||
}
|
||||
// 当e是一个对象且包含event属性时
|
||||
if (e.event.btnType == 2) this.handleScriptFunc(e.event, this.selectItems)
|
||||
if (e.event.btnType === 3) this.handleBottomBtnInterface(e.event);
|
||||
if (e.event.btnType == 4) this.handleLaunchFlow(e, this.selectItems)
|
||||
}
|
||||
},
|
||||
//底部自定义按钮接口操作
|
||||
handleBottomBtnInterface(item) {
|
||||
const selectedItemsCopy = [...this.selectItems];
|
||||
const webType = this.config.webType;
|
||||
@@ -646,14 +760,13 @@
|
||||
content: item.confirmTitle || '确认执行此操作?',
|
||||
showCancel: true,
|
||||
confirmText: '确定',
|
||||
success: function(res) {
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
handlerInterface(data)
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
// 自定义按钮事件
|
||||
selectBtnconfirm(e) {
|
||||
var i = this.columnData.customBtnsList.findIndex((item) => {
|
||||
return item.value == e[0].value
|
||||
@@ -661,14 +774,12 @@
|
||||
const item = this.columnData.customBtnsList[i]
|
||||
const row = this.list[this.selectListIndex]
|
||||
const index = this.selectListIndex
|
||||
// 自定义启用规则判断
|
||||
if (!this.customEnableRule(row, item.value)) return this.$u.toast('没有' + item.label + '权限')
|
||||
if (item.event.btnType == 1) this.handlePopup(item.event, row)
|
||||
if (item.event.btnType == 2) this.handleScriptFunc(item.event, row, index)
|
||||
if (item.event.btnType == 3) this.handleInterface(item.event, row)
|
||||
if (item.event.btnType == 4) this.handleLaunchFlow(item, [row])
|
||||
},
|
||||
//自定义按钮发起流程
|
||||
handleLaunchFlow(item, records) {
|
||||
const data = deepClone(item.event.launchFlow)
|
||||
let dataList = [];
|
||||
@@ -688,7 +799,6 @@
|
||||
this.$u.toast(res.msg)
|
||||
});
|
||||
},
|
||||
//自定义按钮弹窗操作
|
||||
handlePopup(item, row) {
|
||||
this.handleListen()
|
||||
let data = {
|
||||
@@ -703,7 +813,6 @@
|
||||
url: '/pages/apply/customBtn/index?data=' + data
|
||||
})
|
||||
},
|
||||
//自定义按钮JS操作
|
||||
handleScriptFunc(item, row, index) {
|
||||
const parameter = {
|
||||
data: row,
|
||||
@@ -715,7 +824,6 @@
|
||||
if (!func) return
|
||||
func.call(this, parameter)
|
||||
},
|
||||
//自定义按钮接口操作
|
||||
handleInterface(item, row) {
|
||||
const handlerData = () => {
|
||||
getModelInfo(this.modelId, row[this.getModelInfo]).then(res => {
|
||||
@@ -778,7 +886,7 @@
|
||||
},
|
||||
addPage() {
|
||||
this.handleListen()
|
||||
this.jumPage({}, '')
|
||||
this.jumPage({}, 'btn_add')
|
||||
},
|
||||
jumPage(item, btnType) {
|
||||
if (!item.id && !item.flowState) btnType = 'btn_add'
|
||||
@@ -807,18 +915,11 @@
|
||||
} else {
|
||||
const type = btnType == 'btn_detail' ? 'detail' : 'form'
|
||||
const currentMenu = encodeURIComponent(JSON.stringify(this.permission.formPermission))
|
||||
let btnType_ = this.permission.btnPermission.includes('btn_edit') ? 'btn_edit' : 'btn_add'
|
||||
let enableEdit = this.customEnableRule(item, 'edit')
|
||||
let labelS = {}
|
||||
for (let i = 0; i < this.columnData.columnBtnsList.length; i++) {
|
||||
const item = this.columnData.columnBtnsList[i]
|
||||
if (item.value == 'edit') {
|
||||
labelS[btnType_] = item.labelI18nCode ? this.$t(item.labelI18nCode) : item.label
|
||||
}
|
||||
}
|
||||
const config = {
|
||||
currentMenu,
|
||||
btnType: btnType_,
|
||||
btnType,
|
||||
list: this.list,
|
||||
modelId: this.modelId,
|
||||
menuId: this.menuId,
|
||||
@@ -826,9 +927,11 @@
|
||||
id: item.id || '',
|
||||
index: item.index,
|
||||
enableEdit,
|
||||
labelS
|
||||
labelS,
|
||||
name: this.config.name,
|
||||
billNoPrefix: this.config.billNoPrefix
|
||||
}
|
||||
const url = '/pages/apply/dynamicModel/' + type + '?config=' +
|
||||
const url = '/pages/apply/dynamicModelList/' + type + '?config=' +
|
||||
this.jnpf.base64.encode(JSON.stringify(config))
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
@@ -836,8 +939,8 @@
|
||||
}
|
||||
},
|
||||
goDetail(item) {
|
||||
if (this.config.webType == 4) return
|
||||
this.handleListen()
|
||||
return this.jumPage(item, 'btn_edit')
|
||||
let hasDetail = this.permission.btnPermission.includes('btn_detail')
|
||||
let hasEdit = this.permission.btnPermission.includes('btn_edit')
|
||||
if (!hasDetail && !hasEdit) return
|
||||
@@ -856,14 +959,11 @@
|
||||
},
|
||||
cellClick(item) {
|
||||
if (this.isPreview == '1') return this.$u.toast('功能预览不支持排序')
|
||||
const findIndex = this.sortValue.findIndex(o => o === item.value);
|
||||
if (findIndex < 0) {
|
||||
const findLikeIndex = this.sortValue.findIndex(o => o.indexOf(item.sidx) > -1);
|
||||
if (findLikeIndex > -1) this.sortValue.splice(findLikeIndex, 1)
|
||||
this.sortValue.push(item.value)
|
||||
} else {
|
||||
this.sortValue.splice(findIndex, 1)
|
||||
}
|
||||
this.sortValue = [item.value];
|
||||
this.selectedSort = {
|
||||
field: item.field,
|
||||
type: item.type
|
||||
};
|
||||
},
|
||||
handleReset() {
|
||||
this.searchFormData = {}
|
||||
@@ -902,19 +1002,32 @@
|
||||
},
|
||||
handleSortReset() {
|
||||
this.sortValue = []
|
||||
this.selectedSort = {};
|
||||
this.listQuery.asc = '';
|
||||
this.listQuery.desc = '';
|
||||
},
|
||||
handleSortSearch() {
|
||||
if (this.sortValue.length) {
|
||||
this.listQuery.sidx = this.sortValue.join(',')
|
||||
this.listQuery.asc = '';
|
||||
this.listQuery.desc = '';
|
||||
if (Object.keys(this.selectedSort).length > 0) {
|
||||
const sortItem = this.selectedSort;
|
||||
if (sortItem.type === 'asc') {
|
||||
this.listQuery.asc = sortItem.field;
|
||||
this.listQuery.desc = '';
|
||||
} else {
|
||||
this.listQuery.desc = sortItem.field;
|
||||
this.listQuery.asc = '';
|
||||
}
|
||||
} else {
|
||||
this.setDefaultQuery()
|
||||
this.setDefaultQuery();
|
||||
}
|
||||
console.log(this.listQuery, 'listQuery')
|
||||
this.$refs.uDropdown.close();
|
||||
this.$nextTick(() => {
|
||||
this.list = [];
|
||||
this.mescroll.resetUpScroll();
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -930,6 +1043,7 @@
|
||||
width: 100%;
|
||||
/* #endif */
|
||||
}
|
||||
|
||||
:deep(.u-cell) {
|
||||
padding: 0rpx;
|
||||
height: 112rpx;
|
||||
|
||||
@@ -3,69 +3,58 @@
|
||||
<view class="list-box">
|
||||
<SwipeItem :list="list" :buttons="options" @action="actionClick" ref="swipeItem" :marginB="20">
|
||||
<template v-slot="{ item }">
|
||||
<view class="item" @tap.stop="goDetail(item)" style="border: 1px solid #fff;">
|
||||
<view class="u-m-b-10 checkbox_box" v-if="showCheckbox">
|
||||
<u-checkbox @change="checkboxChange($event,item)" v-model="item.checked" class="checkbox"
|
||||
@tap.stop shape="circle"></u-checkbox>
|
||||
</view>
|
||||
<view class="item-cell" v-for="(column,i) in columnList" :key="i">
|
||||
<template v-if="column.jnpfKey != 'table'">
|
||||
<text class="item-cell-label">{{column.label}}:</text>
|
||||
<text class="item-cell-content"
|
||||
v-if="['calculate','inputNumber'].includes(column.jnpfKey)">
|
||||
{{toThousands(item[column.prop],column)}}
|
||||
</text>
|
||||
<text class="item-cell-content text-primary"
|
||||
v-else-if="column.jnpfKey == 'relationForm'"
|
||||
@click.stop="relationFormClick(item,column)">
|
||||
{{item[column.prop]}}
|
||||
</text>
|
||||
<view class="item-cell-content" v-else-if="column.jnpfKey == 'sign'">
|
||||
<JnpfSign v-model="item[column.prop]" align="left" detailed />
|
||||
<view class="item" @tap.stop="goDetail(item)">
|
||||
<view class="item-content">
|
||||
<!-- 左侧信息区 -->
|
||||
<view class="item-left">
|
||||
<!-- 单号 + 普通标签(核心修改区域) -->
|
||||
<view class="item-row item-header">
|
||||
<!-- 新增:普通标签 -->
|
||||
<view class="flow-tag">单号</view>
|
||||
<text class="content unit-name">{{ item.billNo }}</text>
|
||||
</view>
|
||||
<view class="item-cell-content" v-else-if="column.jnpfKey == 'signature'">
|
||||
<JnpfSignature v-model="item[column.prop]" align="left" detailed />
|
||||
<view class="item-row">
|
||||
<text class="label">申请单位:</text>
|
||||
<text class="content unit-name">{{ item.applyDepName }}</text>
|
||||
</view>
|
||||
<view class="item-cell-content" v-else-if="column.jnpfKey == 'uploadImg'" @click.stop>
|
||||
<JnpfUploadImg v-model="item[column.prop]" detailed simple
|
||||
v-if="item[column.prop]&&item[column.prop].length" />
|
||||
<view class="item-row">
|
||||
<text class="label">申请人员:</text>
|
||||
<text class="content">{{ item.applyUser}}</text>
|
||||
</view>
|
||||
<!-- #ifndef APP-HARMONY -->
|
||||
<view class="item-cell-content" v-else-if="column.jnpfKey == 'uploadFile'" @click.stop>
|
||||
<JnpfUploadFile v-model="item[column.prop]" detailed
|
||||
v-if="item[column.prop]&&item[column.prop].length" align="left" />
|
||||
<view class="item-row">
|
||||
<text class="label">创建时间:</text>
|
||||
<text class="content">{{ formatTime(item.create_time) }}</text>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef APP-HARMONY -->
|
||||
<view class="item-cell-content" v-else-if="column.jnpfKey == 'uploadFile'" @click.stop>
|
||||
<JnpfUploadFileH v-model="item[column.prop]" detailed
|
||||
v-if="item[column.prop]&&item[column.prop].length" align="left" />
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<view class="item-cell-content" v-else-if="column.jnpfKey == 'rate'">
|
||||
<JnpfRate v-model="item[column.prop]" :max="column.count"
|
||||
:allowHalf="column.allowHalf" disabled />
|
||||
</view>
|
||||
<view class="item-cell-content item-cell-slider" v-else-if="column.jnpfKey == 'slider'">
|
||||
<JnpfSlider v-model="item[column.prop]" :min="column.min" :max="column.max"
|
||||
:step="column.step" disabled />
|
||||
</view>
|
||||
<view class="item-cell-content" v-else-if="column.jnpfKey == 'input'">
|
||||
<JnpfInput v-model="item[column.prop]" detailed showOverflow
|
||||
:useMask="column.useMask" :maskConfig="column.maskConfig" align='left' />
|
||||
</view>
|
||||
<text class="item-cell-content" v-else>{{item[column.prop]}}</text>
|
||||
</template>
|
||||
<tableCell v-else @click.stop class="tableCell" ref="tableCell" :label="column.label"
|
||||
:childList="item[column.prop]" :children="column.children" :pageLen="3"
|
||||
@cRelationForm="relationFormClick" :key="item.id+i">
|
||||
</tableCell>
|
||||
</view>
|
||||
<view class="item-cell" v-if="config.enableFlow==1">
|
||||
<text class="item-cell-label">审批状态:</text>
|
||||
<text :style="{color:useDefine.getFlowStatusColor(item.flowState)}">
|
||||
{{useDefine.getFlowStatusContent(item.flowState)}}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<!-- 右侧状态图 -->
|
||||
<view class="item-right">
|
||||
<image
|
||||
v-if="item.approveStatusName == '未审核'"
|
||||
src="../../img/UNAPPROVED.png"
|
||||
mode="widthFix"
|
||||
class="status-img" />
|
||||
<image
|
||||
v-if="item.approveStatusName == '审批中'"
|
||||
src="../../img/APPROVING.png"
|
||||
mode="widthFix"
|
||||
class="status-img" />
|
||||
<image
|
||||
v-if="item.approveStatusName == '已审批'"
|
||||
src="../../img/APPROVED.png"
|
||||
mode="widthFix"
|
||||
class="status-img" />
|
||||
<image
|
||||
v-if="item.approveStatusName == '已驳回'"
|
||||
src="../../img/REJECTED.png"
|
||||
mode="widthFix"
|
||||
class="status-img" />
|
||||
<image
|
||||
v-if="item.approveStatusName == '已作废'"
|
||||
src="../../img/INVALID.png"
|
||||
mode="widthFix"
|
||||
class="status-img" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -75,9 +64,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
useDefineSetting
|
||||
} from '@/utils/useDefineSetting';
|
||||
// 脚本部分无需修改,保持原逻辑
|
||||
import { useDefineSetting } from '@/utils/useDefineSetting';
|
||||
import tableCell from '../tableCell.vue'
|
||||
import SwipeItem from "@/components/SwipeItem/index"
|
||||
export default {
|
||||
@@ -86,7 +74,14 @@
|
||||
tableCell,
|
||||
SwipeItem
|
||||
},
|
||||
props: ['config', 'list', 'columnList', 'actionOptions', 'showSelect', 'checkedAll', 'modelValue', 'isMoreBtn',
|
||||
props: [
|
||||
'config',
|
||||
'list',
|
||||
'actionOptions',
|
||||
'showSelect',
|
||||
'checkedAll',
|
||||
'modelValue',
|
||||
'isMoreBtn',
|
||||
'customBtnsList'
|
||||
],
|
||||
data() {
|
||||
@@ -121,28 +116,41 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/* 关联表单操作 */
|
||||
formatTime(timestamp) {
|
||||
if (!timestamp) return '-';
|
||||
const date = new Date(timestamp);
|
||||
const year = date.getFullYear();
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0');
|
||||
const day = String(date.getDate()).padStart(2, '0');
|
||||
const hours = String(date.getHours()).padStart(2, '0');
|
||||
const minutes = String(date.getMinutes()).padStart(2, '0');
|
||||
const seconds = String(date.getSeconds()).padStart(2, '0');
|
||||
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
|
||||
},
|
||||
getStatusClass(statusName) {
|
||||
switch (statusName) {
|
||||
case '已审批':
|
||||
return 'status-approved';
|
||||
case '未审核':
|
||||
return 'status-unchecked';
|
||||
default:
|
||||
return 'status-other';
|
||||
}
|
||||
},
|
||||
relationFormClick(item, column) {
|
||||
this.$emit('relationFormClick', item, column)
|
||||
},
|
||||
/* 跳转详情 */
|
||||
goDetail(item) {
|
||||
this.$emit('goDetail', item)
|
||||
},
|
||||
actionClick(data) {
|
||||
const {
|
||||
index,
|
||||
value
|
||||
} = data
|
||||
const { index, value } = data
|
||||
if (value === 'remove') return this.$emit('handleClick', index)
|
||||
if (value === 'more') return this.$emit('handleMoreClick', index)
|
||||
},
|
||||
/* 列表选择框 */
|
||||
checkboxChange(e, item) {
|
||||
const isSelected = e.value;
|
||||
const selectedItemsSet = new Set(this.selectData.map(selectedItem => {
|
||||
return selectedItem.id;
|
||||
}));
|
||||
const selectedItemsSet = new Set(this.selectData.map(selectedItem => selectedItem.id));
|
||||
if (isSelected) {
|
||||
selectedItemsSet.add(item.id);
|
||||
} else {
|
||||
@@ -153,67 +161,113 @@
|
||||
});
|
||||
this.$emit('selectCheckbox', this.selectData);
|
||||
},
|
||||
/* 全部选中 */
|
||||
handleCheckAll() {
|
||||
this.selectData = []
|
||||
if (this.checkedAll) this.selectData = this.list.filter(o => o.checked)
|
||||
this.$emit('selectCheckbox', this.selectData)
|
||||
},
|
||||
/* 千分位操作 */
|
||||
toThousands(val, column) {
|
||||
if (val) {
|
||||
let valList = val.toString().split('.')
|
||||
let num = Number(valList[0])
|
||||
let newVal = column.thousands ? num.toLocaleString() : num
|
||||
return valList[1] ? newVal + '.' + valList[1] : newVal
|
||||
} else {
|
||||
return val
|
||||
}
|
||||
this.$emit('selectCheckbox', this.selectData);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
<style lang="scss" scoped>
|
||||
.list {
|
||||
.list_box {
|
||||
background-color: #f0f2f6;
|
||||
.list-box {
|
||||
.item {
|
||||
padding: 0;
|
||||
background: #fff;
|
||||
border-radius: 12rpx;
|
||||
margin-bottom: 20rpx;
|
||||
padding: 20rpx;
|
||||
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.05);
|
||||
position: relative;
|
||||
|
||||
.checkbox_box {
|
||||
width: 60rpx;
|
||||
height: 46rpx;
|
||||
position: relative;
|
||||
.item-content {
|
||||
display: flex;
|
||||
align-items: flex-start; /* 改为顶部对齐,避免标签错位 */
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.checkbox {
|
||||
position: absolute;
|
||||
top: 6rpx;
|
||||
left: 8rpx;
|
||||
z-index: 9999;
|
||||
.item-left {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.item-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 8rpx; /* 调整行间距 */
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.label {
|
||||
font-size: 26rpx;
|
||||
color: #909399;
|
||||
min-width: 140rpx;
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
.content {
|
||||
font-size: 28rpx;
|
||||
color: #303133;
|
||||
}
|
||||
}
|
||||
|
||||
// 单号+标签的布局样式(核心新增)
|
||||
.item-header {
|
||||
align-items: center;
|
||||
gap: 10rpx; // 标签、单号、单号值之间的间距
|
||||
// 普通标签样式
|
||||
.flow-tag {
|
||||
font-size: 22rpx;
|
||||
color: #1677ff;
|
||||
background: #e8f3ff;
|
||||
padding: 2rpx 8rpx;
|
||||
border-radius: 4rpx;
|
||||
font-weight: 500;
|
||||
}
|
||||
// 单号文本样式
|
||||
.bill-label {
|
||||
font-size: 26rpx;
|
||||
color: #303133;
|
||||
}
|
||||
}
|
||||
|
||||
// 流程名称样式(对应图中的“管理员的动火审批流程”)
|
||||
.flow-name {
|
||||
font-size: 28rpx;
|
||||
color: #1E293B;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.status-tag {
|
||||
padding: 4rpx 16rpx;
|
||||
border-radius: 20rpx;
|
||||
font-size: 26rpx;
|
||||
color: #fff;
|
||||
&.status-approved {
|
||||
background-color: #67c23a;
|
||||
}
|
||||
&.status-unchecked {
|
||||
background-color: #e6a23c;
|
||||
}
|
||||
&.status-other {
|
||||
background-color: #909399;
|
||||
}
|
||||
}
|
||||
|
||||
// 右侧状态图样式
|
||||
.item-right {
|
||||
width: 100rpx;
|
||||
height: 160rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
.status-img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
object-fit: contain;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.right-option-box {
|
||||
display: flex;
|
||||
width: max-content;
|
||||
|
||||
.right-option {
|
||||
width: 144rpx;
|
||||
height: 100%;
|
||||
font-size: 16px;
|
||||
color: #fff;
|
||||
background-color: #dd524d;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.more-option {
|
||||
background-color: #1890ff;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<u-form :model="formData" ref="dataForm" :errorType="['toast']" label-position="left" label-width="150">
|
||||
<u-form-item :label="item.label" :prop="item.id" v-for="(item, i) in formConfCopy" :key="i">
|
||||
<u-form-item :label="item.label" :prop="item.id" v-for="(item, i) in formConfCopy" :key="`${item.id}-${i}`">
|
||||
<JnpfInput v-if="useInputList.includes(item.__config__.jnpfKey)" input-align='right'
|
||||
v-model="formData[item.id]" :placeholder="textPrefix+item.label" clearable />
|
||||
<template v-if="['inputNumber','calculate'].includes(item.__config__.jnpfKey)">
|
||||
@@ -12,11 +12,19 @@
|
||||
<template v-if="['rate', 'slider'].includes(item.__config__.jnpfKey)">
|
||||
<JnpfNumberRange v-model="formData[item.id]" :precision="item.allowHalf ? 1 : 0" />
|
||||
</template>
|
||||
<JnpfSelect v-if="useSelectList.includes(item.__config__.jnpfKey)" v-model="formData[item.id]"
|
||||
:placeholder="selectPrefix+item.label" :options="item.options" :props="item.props"
|
||||
:multiple="item.searchMultiple" :key="key" filterable />
|
||||
<JnpfSelect
|
||||
v-if="useSelectList.includes(item.__config__.jnpfKey)"
|
||||
v-model="formData[item.id]"
|
||||
:placeholder="selectPrefix+item.label"
|
||||
:options="item.options || []"
|
||||
:props="item.props || { label: 'label', value: 'value' }"
|
||||
:multiple="!!item.searchMultiple"
|
||||
:key="`select-${item.id}-${key}`"
|
||||
filterable
|
||||
/>
|
||||
|
||||
<JnpfCascader v-if="item.__config__.jnpfKey==='cascader'" v-model="formData[item.id]"
|
||||
:placeholder="selectPrefix+item.label" :options="item.options" :props="item.props" filterable
|
||||
:placeholder="selectPrefix+item.label" :options="item.options || []" :props="item.props" filterable
|
||||
:showAllLevels="item.showAllLevels" :multiple="item.searchMultiple" />
|
||||
<JnpfAutoComplete v-if="item.__config__.jnpfKey==='autoComplete'" v-model="formData[item.id]"
|
||||
:interfaceName="item.interfaceName" :placeholder="selectPrefix+item.label"
|
||||
@@ -44,10 +52,12 @@
|
||||
<JnpfUsersSelect v-if="item.__config__.jnpfKey==='usersSelect'" v-model="formData[item.id]"
|
||||
:placeholder="selectPrefix+item.label" :clearable="item.clearable" />
|
||||
<JnpfTreeSelect v-if="item.__config__.jnpfKey==='treeSelect'" v-model="formData[item.id]"
|
||||
:options="item.options" :props="item.props" :placeholder="selectPrefix+item.label" filterable
|
||||
:options="item.options || []" :props="item.props" :placeholder="selectPrefix+item.label" filterable
|
||||
:multiple="item.searchMultiple" />
|
||||
<JnpfAreaSelect v-if="item.__config__.jnpfKey==='areaSelect'" v-model="formData[item.id]"
|
||||
:placeholder="selectPrefix+item.label" :level="item.level" :multiple="item.searchMultiple" />
|
||||
|
||||
<!-- 日期/时间选择 -->
|
||||
<template v-if="useDateList.includes(item.__config__.jnpfKey)">
|
||||
<JnpfDatePicker v-model="formData[item.id]" :format='item.format' v-if="item.__config__.isFromParam" />
|
||||
<JnpfDateRange v-model="formData[item.id]" :format='item.format' v-else />
|
||||
@@ -58,41 +68,71 @@
|
||||
</u-form>
|
||||
</template>
|
||||
<script>
|
||||
import {
|
||||
getDictionaryDataSelector,
|
||||
getDataInterfaceRes
|
||||
} from '@/api/common'
|
||||
|
||||
const dyOptionsList = ['radio', 'checkbox', 'select', 'cascader', 'treeSelect'];
|
||||
const useSelectList = ['radio', 'checkbox', 'select'];
|
||||
const useInputList = ['input', 'textarea', 'text', 'link', 'billRule', 'location'];
|
||||
const useDateList = ['createTime', 'modifyTime', 'datePicker', 'dateCalculate'];
|
||||
const useArrList = ['cascader', 'address', 'numInput', 'calculate', ...useDateList]
|
||||
|
||||
export default {
|
||||
props: ['formConf', 'webType', 'searchFormData'],
|
||||
data() {
|
||||
const data = {
|
||||
return {
|
||||
useInputList,
|
||||
useDateList,
|
||||
useSelectList,
|
||||
formConfCopy: this.$u.deepClone(this.formConf),
|
||||
formData: this.$u.deepClone(this.searchFormData),
|
||||
formConfCopy: [], // 初始化为空,避免提前克隆
|
||||
formData: {},
|
||||
key: +new Date(),
|
||||
textPrefix: this.$t('common.inputTextPrefix') + ' ',
|
||||
selectPrefix: this.$t('common.chooseTextPrefix') + ' ',
|
||||
}
|
||||
this.initRelationForm(data.formConfCopy)
|
||||
this.initFormData(data.formConfCopy, data.formData)
|
||||
return data
|
||||
},
|
||||
// 核心:深度监听formConf变化,确保数据同步
|
||||
watch: {
|
||||
searchFormData(val) {
|
||||
this.formData = val
|
||||
// 监听父组件传递的formConf(深度+立即执行)
|
||||
formConf: {
|
||||
deep: true,
|
||||
immediate: true,
|
||||
handler(newVal) {
|
||||
if (!newVal) return;
|
||||
// 重新克隆最新的配置
|
||||
this.formConfCopy = this.$u.deepClone(newVal);
|
||||
// 延迟初始化,确保DOM更新
|
||||
this.$nextTick(() => {
|
||||
this.initRelationForm(this.formConfCopy);
|
||||
// 初始化时彻底跳过接口请求
|
||||
this.initFormData(this.formConfCopy, this.formData);
|
||||
});
|
||||
}
|
||||
},
|
||||
// 监听搜索数据变化
|
||||
searchFormData: {
|
||||
deep: true,
|
||||
immediate: true,
|
||||
handler(newVal) {
|
||||
this.formData = this.$u.deepClone(newVal);
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 初始化表单数据(彻底跳过接口请求)
|
||||
*/
|
||||
initFormData(componentList, formData) {
|
||||
console.log('Parser接收的配置:', componentList);
|
||||
if (!componentList || !Array.isArray(componentList)) return;
|
||||
|
||||
componentList.forEach(cur => {
|
||||
const config = cur.__config__
|
||||
const config = cur.__config__ || {};
|
||||
if (cur.id && formData[cur.id] === undefined) {
|
||||
// 初始化表单默认值
|
||||
formData[cur.id] = cur.value || (cur.searchMultiple ? [] : '');
|
||||
}
|
||||
|
||||
// 原接口逻辑全部注释,彻底跳过
|
||||
/*
|
||||
if (dyOptionsList.indexOf(config.jnpfKey) > -1) {
|
||||
if (config.dataType === 'dictionary' && config.dictionaryType) {
|
||||
getDictionaryDataSelector(config.dictionaryType).then(res => {
|
||||
@@ -113,51 +153,71 @@
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
*/
|
||||
});
|
||||
|
||||
// 更新key强制刷新组件
|
||||
this.key = +new Date();
|
||||
},
|
||||
|
||||
/**
|
||||
* 初始化关联表单配置
|
||||
*/
|
||||
initRelationForm(componentList) {
|
||||
if (!componentList) return;
|
||||
componentList.forEach(cur => {
|
||||
const config = cur.__config__
|
||||
const config = cur.__config__ || {};
|
||||
if (config.jnpfKey == 'relationFormAttr' || config.jnpfKey == 'popupAttr') {
|
||||
const relationKey = cur.relationField.split("_jnpfTable_")[0]
|
||||
const relationKey = cur.relationField?.split("_jnpfTable_")[0];
|
||||
if (!relationKey) return;
|
||||
componentList.forEach(item => {
|
||||
const noVisibility = Array.isArray(item.__config__.visibility) && !item
|
||||
.__config__.visibility.includes('app')
|
||||
if ((relationKey == item.id) && (noVisibility || !!item.__config__
|
||||
.noShow)) {
|
||||
cur.__config__.noShow = true
|
||||
const noVisibility = Array.isArray(item.__config__?.visibility) && !item.__config__.visibility.includes('app');
|
||||
if ((relationKey == item.id) && (noVisibility || !!item.__config__?.noShow)) {
|
||||
cur.__config__.noShow = true;
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
if (cur.__config__.children && cur.__config__.children.length) this.initRelationForm(cur
|
||||
.__config__.children)
|
||||
})
|
||||
if (cur.__config__?.children && cur.__config__.children.length) {
|
||||
this.initRelationForm(cur.__config__.children);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取表单数据(空值处理)
|
||||
*/
|
||||
allCondition() {
|
||||
for (let key in this.formData) {
|
||||
if (this.formData[key] !== 0 && !this.formData[key]) this.formData[key] = undefined;
|
||||
if (this.formData[key] && Array.isArray(this.formData[key]) && !this.formData[key]
|
||||
.length) {
|
||||
this.formData[key] = undefined
|
||||
const result = {...this.formData};
|
||||
for (let key in result) {
|
||||
if (result[key] === 0) continue;
|
||||
if (!result[key] || (Array.isArray(result[key]) && result[key].length === 0)) {
|
||||
delete result[key];
|
||||
}
|
||||
}
|
||||
return this.formData
|
||||
return result;
|
||||
},
|
||||
|
||||
/**
|
||||
* 提交表单
|
||||
*/
|
||||
submitForm() {
|
||||
if (!this.$refs.dataForm) {
|
||||
this.$emit('submit', this.allCondition());
|
||||
return;
|
||||
}
|
||||
this.$refs.dataForm.validate(valid => {
|
||||
if (!valid) return
|
||||
for (let key in this.formData) {
|
||||
if (this.formData[key] !== 0 && !this.formData[key]) this.formData[key] = undefined;
|
||||
if (this.formData[key] && Array.isArray(this.formData[key]) && !this.formData[key]
|
||||
.length) {
|
||||
this.formData[key] = undefined
|
||||
}
|
||||
}
|
||||
this.$emit('submit', this.formData)
|
||||
})
|
||||
if (!valid) return;
|
||||
this.$emit('submit', this.allCondition());
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* 重置表单
|
||||
*/
|
||||
resetForm() {
|
||||
this.$refs.dataForm.resetFields()
|
||||
if (this.$refs.dataForm) {
|
||||
this.$refs.dataForm.resetFields();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
BIN
pages/apply/dynamicModel/img/APPROVED.png
Normal file
BIN
pages/apply/dynamicModel/img/APPROVED.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
BIN
pages/apply/dynamicModel/img/APPROVING.png
Normal file
BIN
pages/apply/dynamicModel/img/APPROVING.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 MiB |
BIN
pages/apply/dynamicModel/img/INVALID.png
Normal file
BIN
pages/apply/dynamicModel/img/INVALID.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
BIN
pages/apply/dynamicModel/img/REJECTED.png
Normal file
BIN
pages/apply/dynamicModel/img/REJECTED.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 MiB |
BIN
pages/apply/dynamicModel/img/UNAPPROVED.png
Normal file
BIN
pages/apply/dynamicModel/img/UNAPPROVED.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 MiB |
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="dynamicModel-v">
|
||||
<Form v-if="webType == 1" :config="config" :modelId="modelId" :isPreview="isPreview" />
|
||||
<List v-if="webType == 2 || webType == 4" :config="config" :modelId="modelId" :isPreview="isPreview"
|
||||
<!-- <Form :config="config" :modelId="modelId" :isPreview="isPreview" /> -->
|
||||
<List :config="config" :modelId="modelId" :isPreview="isPreview"
|
||||
:title="title" :menuId="menuId" ref="List" />
|
||||
</view>
|
||||
</template>
|
||||
@@ -18,6 +18,7 @@
|
||||
import {
|
||||
useBaseStore
|
||||
} from '@/store/modules/base'
|
||||
import { computed } from "vue";
|
||||
const baseStore = useBaseStore()
|
||||
|
||||
export default {
|
||||
@@ -41,18 +42,18 @@
|
||||
};
|
||||
},
|
||||
onLoad(obj) {
|
||||
baseStore.getDictionaryDataAll()
|
||||
// baseStore.getDictionaryDataAll()
|
||||
this.config = JSON.parse(this.jnpf.base64.decode(obj.config)) || {};
|
||||
this.isPreview = this.config.isPreview || false;
|
||||
this.enableFlow = this.config.type === 9 ? 1 : 0;
|
||||
this.title = this.config.fullName || "";
|
||||
this.menuId = this.config.id || "";
|
||||
this.title = this.config.name || "";
|
||||
this.modelId = this.config.id || "";
|
||||
uni.setNavigationBarTitle({
|
||||
title: this.title,
|
||||
});
|
||||
if (!this.enableFlow) return this.getConfigData();
|
||||
// if (!this.enableFlow) return this.getConfigData();
|
||||
this.flowId = this.config.moduleId
|
||||
this.getModelId()
|
||||
// this.getModelId()
|
||||
},
|
||||
methods: {
|
||||
// 获取流程版本ID和发起节点表单ID
|
||||
@@ -60,7 +61,7 @@
|
||||
getFlowStartFormId(this.flowId).then(res => {
|
||||
if (!res.data || !res.data.formId) return;
|
||||
this.config.moduleId = res.data.formId
|
||||
this.getConfigData();
|
||||
// this.getConfigData();
|
||||
})
|
||||
},
|
||||
getConfigData() {
|
||||
|
||||
@@ -931,6 +931,8 @@
|
||||
name: this.config.name,
|
||||
billNoPrefix: this.config.billNoPrefix
|
||||
}
|
||||
console.log(config,'config12233')
|
||||
|
||||
const url = '/pages/apply/dynamicModelList/' + type + '?config=' +
|
||||
this.jnpf.base64.encode(JSON.stringify(config))
|
||||
uni.navigateTo({
|
||||
|
||||
@@ -1,63 +1,75 @@
|
||||
<template>
|
||||
<view class="dynamicModel-form-v jnpf-wrap jnpf-wrap-form" v-if="showPage">
|
||||
<JnpfParser :formConf="formConf" ref="dynamicForm" @submit="sumbitForm" :key="key" v-if="!loading" />
|
||||
|
||||
<!-- 审批记录区域 -->
|
||||
<view v-if="false&&(dataForm.approveStatus == 1 || dataForm.approveStatus == 2)">
|
||||
<view class="approval-title">审批记录</view>
|
||||
<view class="approval-list">
|
||||
<view
|
||||
class="approval-item"
|
||||
v-for="(item, index) in approvalData"
|
||||
:key="item.id"
|
||||
>
|
||||
<!-- 审批内容 -->
|
||||
<view class="approval-content">
|
||||
<view class="task-header">
|
||||
<text class="task-name">任务:{{ item.name }}</text>
|
||||
<view class="status-tag" :class="getStatusTagClass(item.result)">
|
||||
{{ item.result === 1 ? '处理中' : (item.result === 2 ? '通过' : '不通过') }}
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="approvalData.length">
|
||||
<view class="approval-title">审批记录</view>
|
||||
<view class="approval-list">
|
||||
<view
|
||||
class="approval-item"
|
||||
v-for="(item, index) in approvalData"
|
||||
:key="item.id"
|
||||
>
|
||||
<!-- 左侧状态线 + 状态点 -->
|
||||
<view class="approval-line-container">
|
||||
<!-- 状态点 -->
|
||||
<view class="status-icon" :class="getStatusClass(item.result)">
|
||||
<!-- <u-icon
|
||||
:name="item.result === 1 ? 'clock' : (item.result === 2 ? 'checkmark-circle' : 'close-circle')"
|
||||
size="20"
|
||||
:color="item.result === 1 ? '#409EFF' : (item.result === 2 ? '#67C23A' : '#F56C6C')"
|
||||
/> -->
|
||||
</view>
|
||||
<!-- 竖线(最后一条隐藏) -->
|
||||
<view class="approval-line" v-if="index < approvalData.length - 1"></view>
|
||||
</view>
|
||||
|
||||
<view class="info-row">
|
||||
<text class="info-label">审批人:</text>
|
||||
<text class="info-value">{{ item.assigneeUser.nickname }}</text>
|
||||
<view class="dept-tag">{{ item.assigneeUser.deptName }}</view>
|
||||
<!-- 审批内容 -->
|
||||
<view class="approval-content">
|
||||
<!-- 任务名称 + 状态标签 -->
|
||||
<view class="task-header">
|
||||
<text class="task-name">任务:{{ item.name }}</text>
|
||||
<!-- 状态标签(参考图的右上角样式) -->
|
||||
<view class="status-tag" :class="getStatusTagClass(item.result)">
|
||||
{{ item.result === 1 ? '审批中' : (item.result === 2 ? '已提交' : '不通过') }}
|
||||
<!-- 时间显示在标签右侧 -->
|
||||
<text class="status-time">{{ formatTime(item.createTime) }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<text class="info-label ml-20">创建时间:</text>
|
||||
<text class="info-value">{{ formatTime(item.createTime) }}</text>
|
||||
<!-- 审批人信息 -->
|
||||
<view class="info-row">
|
||||
<text class="info-label">审批人:</text>
|
||||
<text class="info-value">{{ item.assigneeUser.nickname }}</text>
|
||||
<text class="info-value-tag">{{ item.assigneeUser.deptName }}</text>
|
||||
|
||||
<text class="info-label ml-20" v-if="item.endTime">审批时间:</text>
|
||||
<text class="info-value" v-if="item.endTime">{{ formatTime(item.endTime) }}</text>
|
||||
<view class="pending-tag" v-if="item.result === 1">待审批</view>
|
||||
</view>
|
||||
|
||||
<text class="info-label ml-20" v-if="item.durationInMillis">耗时:</text>
|
||||
<text class="info-value" v-if="item.durationInMillis">{{ formatDuration(item.durationInMillis) }}</text>
|
||||
</view>
|
||||
|
||||
<view class="reason-box" v-if="item.reason">
|
||||
{{ item.reason }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 审批意见(有则显示) -->
|
||||
<view class="reason-box" v-if="item.reason">
|
||||
{{ item.reason }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 底部操作按钮区域 -->
|
||||
<view class="buttom-actions" v-if="btnType === 'btn_edit' || btnType === 'btn_add'">
|
||||
<CustomButton
|
||||
class="u-flex buttom-btn-left-inner"
|
||||
:btnText="getCancelText"
|
||||
btnIcon="icon-ym icon-ym-add-cancel"
|
||||
customIcon
|
||||
:btnLoading="btnLoading"
|
||||
/>
|
||||
|
||||
<u-button class="buttom-btn" type="primary" @click.stop="submit" :disabled="idDsabled" :loading="btnLoading">
|
||||
{{getOkText}}
|
||||
<view v-if="!loading && (!(dataForm.approveStatus == 1 || dataForm.approveStatus == 2 || dataForm.approveStatus == 4) || !dataForm.id || config.current && config.current == 2)" class="buttom-actions">
|
||||
<u-button v-if="(!dataForm.approveStatus && dataForm.id) || dataForm.approveStatus == 3" class="buttom-btn launch-flow-btn" type="primary" @click.stop="handleLaunchFlow" :disabled="idDsabled" :loading="btnLoading">
|
||||
发起流程
|
||||
</u-button>
|
||||
|
||||
<view class="more-btn" @click.stop="toggleMoreMenu" v-if="dataForm.id && moreMenuList.length && !idDsabled">
|
||||
<u-button v-if="!config.current" class="buttom-btn" type="primary" @click.stop="submit" :disabled="idDsabled" :loading="btnLoading">
|
||||
保存
|
||||
</u-button>
|
||||
<u-button v-if="config.current == 2" class="buttom-btn" type="error" @click.stop="handleFail" :disabled="idDsabled" :loading="btnLoading">
|
||||
不通过
|
||||
</u-button>
|
||||
<u-button v-if="config.current == 2" class="buttom-btn launch-flow-btn" type="primary" @click.stop="handleThrough" :disabled="idDsabled" :loading="btnLoading">
|
||||
通过
|
||||
</u-button>
|
||||
<view class="more-btn" @click.stop="toggleMoreMenu" v-if="dataForm.id && moreMenuList.length && !idDsabled || config.current == 2">
|
||||
<u-icon name="more-dot-fill" size="34"></u-icon>
|
||||
<text class="more-text">{{$t('common.moreText')}}</text>
|
||||
|
||||
@@ -69,7 +81,7 @@
|
||||
:style="{color: item.color || '#333'}"
|
||||
>
|
||||
<view @click.stop="handleMoreMenuClick(item)">
|
||||
<text class="menu-icon" :class="item.icon"></text>
|
||||
<!-- <text class="menu-icon" :class="item.icon"></text> -->
|
||||
<text class="menu-label">{{item.label}}</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -207,6 +219,66 @@
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<!-- 抄送规则弹窗 -->
|
||||
<u-popup v-model="showCopyDialog" mode="center" :round="10">
|
||||
<view class="copy-dialog">
|
||||
<view class="dialog-header">
|
||||
<text class="dialog-title">修改任务规则</text>
|
||||
<u-icon name="close" size="24" color="#999" @click="showCopyDialog = false" class="close-icon"></u-icon>
|
||||
</view>
|
||||
|
||||
<view class="dialog-content">
|
||||
<!-- <view class="form-item">
|
||||
<text class="label">任务名称</text>
|
||||
<text class="value">{{ copyForm.taskName || '安全监护人' }}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">任务标识</text>
|
||||
<text class="value">{{ copyForm.taskId || '' }}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">流程名称</text>
|
||||
<text class="value">{{ copyForm.flowName || '动土作业审批' }}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">流程标识</text>
|
||||
<text class="value">{{ copyForm.flowId || '' }}</text>
|
||||
</view>
|
||||
<view class="form-item required">
|
||||
<text class="label">规则类型</text>
|
||||
<u-select v-model="copyForm.ruleType" placeholder="请选择"> -->
|
||||
<!-- <u-select-item label="用户" value="user"></u-select-item> -->
|
||||
<!-- 如果有其他类型,可以在这里添加 -->
|
||||
<!-- </u-select> -->
|
||||
<!-- </view> -->
|
||||
<view class="form-item-user required">
|
||||
<text class="label">指定用户</text>
|
||||
<view>
|
||||
<user-select
|
||||
v-model="copyForm.options"
|
||||
placeholder="请选择用户"
|
||||
:multiple="true"
|
||||
:selectType="type"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="form-item required">
|
||||
<text class="label">抄送原因</text>
|
||||
<u-input
|
||||
v-model="copyForm.reason"
|
||||
type="textarea"
|
||||
placeholder="请输入抄送原因"
|
||||
:rows="3"
|
||||
border="surround"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="dialog-footer">
|
||||
<u-button class="footer-btn cancel-btn" @click="showCopyDialog = false">取消</u-button>
|
||||
<u-button class="footer-btn submit-btn" type="primary" @click="submitCopyRule" :loading="copySubmitting">确定</u-button>
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -226,7 +298,7 @@
|
||||
} from '@/api/apply/visualDev'
|
||||
import UserSelect from '@/components/Jnpf/CandidateSelect'
|
||||
import {getOrganizeSelector} from '@/api/common.js'
|
||||
|
||||
import flowBtn from '../../workFlow/components/flowBtn.vue'
|
||||
export default {
|
||||
components: {
|
||||
CustomButton,
|
||||
@@ -278,21 +350,26 @@
|
||||
showApprovalReasonDialog: false, // 弹窗显示状态
|
||||
approvalType: '', // 审批类型:through(通过) / fail(不通过)
|
||||
approvalReason: '', // 审批意见内容
|
||||
approvalSubmitting: false // 提交加载状态
|
||||
approvalSubmitting: false, // 提交加载状态
|
||||
// 抄送
|
||||
showCopyDialog: false,
|
||||
copySubmitting: false,
|
||||
copyForm: {
|
||||
processInstanceKey: '',
|
||||
processInstanceName: '',
|
||||
options: {},
|
||||
reason: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
getOkText() {
|
||||
const text = this.formConf.confirmButtonTextI18nCode ?
|
||||
this.$t(this.formConf.confirmButtonTextI18nCode, this.formConf.confirmButtonText) :
|
||||
this.formConf.confirmButtonText;
|
||||
return text || this.$t('common.okText');
|
||||
// btnType
|
||||
console.log(this.btnType,'btnType--')
|
||||
return this.$t('common.saveText');
|
||||
},
|
||||
getCancelText() {
|
||||
const text = this.formConf.cancelButtonTextI18nCode ?
|
||||
this.$t(this.formConf.cancelButtonTextI18nCode, this.formConf.cancelButtonText) :
|
||||
this.formConf.cancelButtonText;
|
||||
return text || this.$t('common.cancelText');
|
||||
getProcessText() {
|
||||
return '发起流程'
|
||||
},
|
||||
isAllCandidatesSelected() {
|
||||
const result = this.approverList.every(item=>{
|
||||
@@ -325,7 +402,7 @@
|
||||
btnType = '',
|
||||
modelId,
|
||||
isPreview = '0',
|
||||
id = ''
|
||||
id = '',
|
||||
} = config
|
||||
const formPermissionList =[]
|
||||
Object.assign(this, {
|
||||
@@ -358,6 +435,9 @@
|
||||
...this.approverList[index],
|
||||
[name] : value
|
||||
}
|
||||
},
|
||||
handleRuleUserChange(node, value, data){
|
||||
|
||||
},
|
||||
confirmLaunchFlow() {
|
||||
const result = this.approverList.every(item=>{
|
||||
@@ -387,6 +467,10 @@
|
||||
processDefinitionId: this.selectedProcess
|
||||
}
|
||||
}
|
||||
this.getListCreateData(params)
|
||||
},
|
||||
// 请求日志
|
||||
getListCreateData(params){
|
||||
getListCreate(params,this.modelId).then(res=>{
|
||||
if(res.code == 0) {
|
||||
uni.showToast({
|
||||
@@ -403,66 +487,36 @@
|
||||
initMoreMenuList() {
|
||||
let menuList = [
|
||||
// {
|
||||
// label: '通过',
|
||||
// value: 'through',
|
||||
// icon: 'icon-ym icon-ym-flow-launch',
|
||||
// color: '#67c23a'
|
||||
// },
|
||||
// {
|
||||
// label: '不通过',
|
||||
// value: 'fail',
|
||||
// icon: 'icon-ym icon-ym-flow-launch',
|
||||
// color: '#f56c6c'
|
||||
// },
|
||||
// {
|
||||
// label: '发起流程',
|
||||
// value: 'launchFlow',
|
||||
// icon: 'icon-ym icon-ym-flow-launch',
|
||||
// color: '#0293fc'
|
||||
// },
|
||||
{
|
||||
// label: '删除',
|
||||
// value: 'delete',
|
||||
// icon: 'icon-ym icon-ym-app-delete',
|
||||
// color: '#dd524d'
|
||||
// }
|
||||
]
|
||||
console.log(this.dataForm.approveStatus,'approveStatus--')
|
||||
if((!this.dataForm.approveStatus && this.dataForm.id) || this.dataForm.approveStatus == 3){
|
||||
// 未审核 | 驳回
|
||||
menuList.push({
|
||||
label: '删除',
|
||||
value: 'delete',
|
||||
icon: 'icon-ym icon-ym-app-delete',
|
||||
color: '#dd524d'
|
||||
}
|
||||
]
|
||||
if(this.dataForm.approveStatus == 0 || this.dataForm.approveStatus == 3 || !this.dataForm.approveStatus){
|
||||
menuList.unshift({
|
||||
label: '发起流程',
|
||||
value: 'launchFlow',
|
||||
icon: 'icon-ym icon-ym-flow-launch',
|
||||
color: '#0293fc'
|
||||
},)
|
||||
}
|
||||
if(this.dataForm.approveStatus == 1){
|
||||
menuList.unshift({
|
||||
label: '通过',
|
||||
value: 'through',
|
||||
icon: 'icon-ym icon-ym-flow-launch',
|
||||
color: '#67c23a'
|
||||
},
|
||||
{
|
||||
label: '不通过',
|
||||
value: 'fail',
|
||||
icon: 'icon-ym icon-ym-flow-launch',
|
||||
color: '#f56c6c'
|
||||
})
|
||||
}
|
||||
// if(this.dataForm.approveStatus == 1){
|
||||
// menuList.unshift({
|
||||
// label: '通过',
|
||||
// value: 'through',
|
||||
// icon: 'icon-ym icon-ym-flow-launch',
|
||||
// color: '#67c23a'
|
||||
// },
|
||||
// {
|
||||
// label: '不通过',
|
||||
// value: 'fail',
|
||||
// icon: 'icon-ym icon-ym-flow-launch',
|
||||
// color: '#f56c6c'
|
||||
// })
|
||||
// }
|
||||
if(this.config.current == 2){
|
||||
menuList.unshift({
|
||||
label: '抄送',
|
||||
value: 'send',
|
||||
icon: 'icon-ym icon-ym-flow-launch',
|
||||
color: '#409eff'
|
||||
},
|
||||
{
|
||||
label: '回退',
|
||||
value: 'reject',
|
||||
icon: 'icon-ym icon-ym-flow-launch',
|
||||
color: '#e6a23c'
|
||||
})
|
||||
}
|
||||
this.moreMenuList = menuList
|
||||
},
|
||||
toggleMoreMenu() {
|
||||
@@ -481,18 +535,15 @@
|
||||
case 'edit':
|
||||
this.handleEdit()
|
||||
break
|
||||
case 'launchFlow':
|
||||
this.handleLaunchFlow()
|
||||
case 'send':
|
||||
this.handleSend()
|
||||
break
|
||||
case 'reject':
|
||||
this.handleReject()
|
||||
break
|
||||
case 'delete':
|
||||
this.handleDelete()
|
||||
break
|
||||
case 'through':
|
||||
this.handleThrough()
|
||||
break
|
||||
case 'fail':
|
||||
this.handleFail()
|
||||
break
|
||||
}
|
||||
},
|
||||
handleEdit() {
|
||||
@@ -536,6 +587,43 @@
|
||||
this.loadingProcess = false
|
||||
}
|
||||
},
|
||||
// 抄送
|
||||
handleSend() {
|
||||
this.showCopyDialog = true
|
||||
},
|
||||
// 抄送-提交
|
||||
submitCopyRule(){
|
||||
const {id,processInstance} = this.approvalData[0]
|
||||
const params = {
|
||||
processType: '4',
|
||||
processDefinitionId:Object.values(this.copyForm.options),
|
||||
processInstanceId: this.formData.processInstanceId,
|
||||
id: this.dataForm.id,
|
||||
data: {
|
||||
startUserId: processInstance.startUserId,
|
||||
taskId: id,
|
||||
...this.copyForm,
|
||||
options: Object.values(this.copyForm.options),
|
||||
processInstanceKey:processInstance.id,
|
||||
processInstanceName:processInstance.name
|
||||
}
|
||||
}
|
||||
this.getListCreateData(params)
|
||||
},
|
||||
// 回退
|
||||
handleReject() {
|
||||
const {id,processInstance} = this.approvalData[0]
|
||||
const params = {
|
||||
processType: '3', // 回退code todo
|
||||
// processDefinitionId:Object.values(this.copyForm.options),
|
||||
processInstanceId: this.formData.processInstanceId,
|
||||
id: this.dataForm.id,
|
||||
data: {
|
||||
taskId: id
|
||||
}
|
||||
}
|
||||
this.getListCreateData(params)
|
||||
},
|
||||
selectProcess(item) {
|
||||
this.selectedProcess = item
|
||||
},
|
||||
@@ -571,17 +659,7 @@
|
||||
processDefinitionId: this.selectedProcess
|
||||
}
|
||||
}
|
||||
const res = await getListCreate(params,this.modelId)
|
||||
if(res.code == 0) {
|
||||
uni.showToast({
|
||||
title: '发起成功',
|
||||
icon: 'success'
|
||||
})
|
||||
setTimeout(() => {
|
||||
uni.$emit('refresh')
|
||||
uni.navigateBack()
|
||||
}, 1500)
|
||||
}
|
||||
this.getListCreateData(params)
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
@@ -652,11 +730,10 @@
|
||||
this.showApprovalReasonDialog = true
|
||||
},
|
||||
|
||||
// 新增:提交审批结果(通过/不通过)
|
||||
// 提交审批结果(通过/不通过)
|
||||
async submitApprovalResult() {
|
||||
try {
|
||||
this.approvalSubmitting = true
|
||||
console.log(this.formData,'formData----')
|
||||
// 构造审批参数(
|
||||
const params = {
|
||||
processType: this.approvalType === 'through' ? 1 : 2, // 1=通过,2=不通过
|
||||
@@ -669,26 +746,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
//调用审批接口(替换为你的实际审批接口)
|
||||
const res = await getListCreate(params,this.modelId)
|
||||
if (res.code !== 0) {
|
||||
uni.showToast({
|
||||
title: res.msg || '审批失败',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
// 关闭弹窗,刷新审批记录
|
||||
this.showApprovalReasonDialog = false
|
||||
uni.showToast({
|
||||
title: '发起成功',
|
||||
icon: 'success'
|
||||
})
|
||||
setTimeout(() => {
|
||||
// 返回上一页或刷新列表
|
||||
uni.$emit('refresh')
|
||||
uni.navigateBack()
|
||||
}, 1500)
|
||||
//调用审批接口
|
||||
this.getListCreateData(params)
|
||||
|
||||
} catch (err) {
|
||||
console.error('提交审批结果失败:', err)
|
||||
@@ -802,6 +861,7 @@
|
||||
applyDepName: res.data.applyDepName || '',
|
||||
applyDepData: res.data.applyDepData || null,
|
||||
};
|
||||
console.log(this.formData,'formData123')
|
||||
this.$nextTick(()=>{
|
||||
if (this.$refs.dynamicForm && this.$refs.dynamicForm.setFormData) {
|
||||
this.$refs.dynamicForm.setFormData('applyDepId', this.formData.applyDepId);
|
||||
@@ -1220,20 +1280,31 @@
|
||||
.buttom-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
padding: 20rpx 30rpx;
|
||||
// justify-content: flex-end;
|
||||
// padding: 20rpx 30rpx;
|
||||
background: #fff;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 99;
|
||||
gap: 20rpx;
|
||||
z-index: 999 !important;
|
||||
padding: 10rpx 0rpx;
|
||||
// gap: 20rpx;
|
||||
|
||||
.buttom-btn {
|
||||
min-width: 180rpx;
|
||||
width: 300rpx;
|
||||
min-width: 300rpx;
|
||||
padding: 12rpx 15rpx;
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
.launch-flow-btn {
|
||||
background: #19be6b !important;
|
||||
}
|
||||
.launch-flow-btn[disabled] {
|
||||
background: #19be6b !important;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.more-btn {
|
||||
position: relative;
|
||||
@@ -1243,7 +1314,7 @@
|
||||
justify-content: center;
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
|
||||
flex: 1;
|
||||
.more-text {
|
||||
font-size: 22rpx;
|
||||
color: #606266;
|
||||
@@ -1493,25 +1564,26 @@
|
||||
}
|
||||
|
||||
.approval-list {
|
||||
padding: 20rpx 30rpx;
|
||||
padding: 10rpx 30rpx;
|
||||
}
|
||||
|
||||
.approval-item {
|
||||
display: flex;
|
||||
position: relative;
|
||||
margin-bottom: 30rpx;
|
||||
margin-bottom: 20rpx;
|
||||
padding-top: 10rpx;
|
||||
}
|
||||
|
||||
.approval-line-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-right: 20rpx;
|
||||
margin-right: 16rpx;
|
||||
}
|
||||
|
||||
.approval-line {
|
||||
width: 2rpx;
|
||||
background-color: #e5e5e5;
|
||||
background-color: #8e8585;
|
||||
flex: 1;
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
@@ -1523,15 +1595,20 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
// background-color: #fff;
|
||||
border: 2rpx solid;
|
||||
/* 状态点边框色 */
|
||||
&.status-processing {
|
||||
background-color: #E6F7FF;
|
||||
background-color: #409EFF;
|
||||
border-color: #409EFF;
|
||||
}
|
||||
&.status-pass {
|
||||
background-color: #F0F9EB;
|
||||
background-color: #67C23A;
|
||||
border-color: #67C23A;
|
||||
}
|
||||
&.status-reject {
|
||||
background-color: #FFF2F0;
|
||||
background-color: #F56C6C;
|
||||
border-color: #F56C6C;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1546,34 +1623,45 @@
|
||||
.task-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 16rpx;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 12rpx;
|
||||
|
||||
.task-name {
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
.status-tag {
|
||||
font-size: 24rpx;
|
||||
padding: 4rpx 12rpx;
|
||||
border-radius: 4rpx;
|
||||
margin-left: 12rpx;
|
||||
.status-tag {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 22rpx;
|
||||
padding: 2rpx 8rpx;
|
||||
border-radius: 4rpx;
|
||||
margin-left: 12rpx;
|
||||
|
||||
&.tag-processing {
|
||||
background-color: #E6F7FF;
|
||||
color: #409EFF;
|
||||
}
|
||||
&.tag-pass {
|
||||
background-color: #F0F9EB;
|
||||
color: #67C23A;
|
||||
}
|
||||
&.tag-reject {
|
||||
background-color: #FFF2F0;
|
||||
color: #F56C6C;
|
||||
}
|
||||
/* 状态对应的样式 */
|
||||
&.tag-processing {
|
||||
background-color: #E6F7FF;
|
||||
color: #409EFF;
|
||||
}
|
||||
&.tag-pass {
|
||||
background-color: #F0F9EB;
|
||||
color: #67C23A;
|
||||
}
|
||||
&.tag-reject {
|
||||
background-color: #FFF2F0;
|
||||
color: #F56C6C;
|
||||
}
|
||||
|
||||
/* 状态标签内的时间 */
|
||||
.status-time {
|
||||
font-size: 20rpx;
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.info-row {
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
@@ -1586,6 +1674,23 @@
|
||||
.info-value {
|
||||
color: #666;
|
||||
}
|
||||
.info-value-tag {
|
||||
background: #f4f4f5;
|
||||
color: #a0a4a7;
|
||||
padding: 2rpx 10rpx;
|
||||
margin-left: 10rpx;
|
||||
border: 10rpx;
|
||||
}
|
||||
.pending-tag {
|
||||
display: inline-block;
|
||||
background-color: #FAFAFA;
|
||||
border: 1rpx solid #E5E5E5;
|
||||
color: #666;
|
||||
padding: 2rpx 8rpx;
|
||||
border-radius: 4rpx;
|
||||
margin-left: 10rpx;
|
||||
font-size: 20rpx;
|
||||
}
|
||||
.dept-tag {
|
||||
display: inline-block;
|
||||
background-color: #F5F7FA;
|
||||
@@ -1642,4 +1747,52 @@
|
||||
padding: 20rpx 30rpx;
|
||||
border-top: 1rpx solid #f0f0f0;
|
||||
}
|
||||
|
||||
.copy-dialog {
|
||||
width: 90vw;
|
||||
max-height: 80vh;
|
||||
background: #fff;
|
||||
border-radius: 12rpx;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.dialog-content {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 30rpx;
|
||||
}
|
||||
|
||||
.form-item-user {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.form-item {
|
||||
margin-bottom: 24rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.form-item.required .label::after {
|
||||
content: '*';
|
||||
color: #F56C6C;
|
||||
margin-left: 4rpx;
|
||||
}
|
||||
|
||||
.label {
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
margin-bottom: 12rpx;
|
||||
}
|
||||
|
||||
.value {
|
||||
font-size: 26rpx;
|
||||
color: #666;
|
||||
padding: 12rpx;
|
||||
background: #f9fafc;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
</style>
|
||||
@@ -8,28 +8,37 @@
|
||||
<mescroll-body ref="mescrollRef" @down="downCallback" :down="downOption" :sticky="false" @up="upCallback"
|
||||
:up="upOption" :bottombar="false" @init="mescrollInit" :top="mescrollTop">
|
||||
<view class="workFlow-list">
|
||||
<view class="part" v-for="(item, i) in menuList" :key="i">
|
||||
<view class="caption u-line-1" v-if="item?.children?.length">
|
||||
{{ item.fullName }}
|
||||
</view>
|
||||
<view class="u-flex u-flex-wrap">
|
||||
<view class="item u-flex-col u-col-center" v-for="(child, ii) in item.children" :key="ii"
|
||||
@click="handelClick(child)">
|
||||
<text class="u-font-40 item-icon" :class="child.icon"
|
||||
:style="{ background: child.iconBackground || '#008cff' }" />
|
||||
<text class="u-font-24 u-line-1 item-text">{{child.fullName}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="caption u-line-1">业务表单</view>
|
||||
<view class="u-flex u-flex-wrap item-container">
|
||||
<view class="item u-flex-col u-col-center"
|
||||
v-for="(item, i) in menuList"
|
||||
:key="item.id"
|
||||
@click="handelClick(item)">
|
||||
<!-- 渲染图标 -->
|
||||
<view class="item-icon" :style="{ background: item.iconBackground || '#008cff' }">
|
||||
<!-- 使用 iconify-icon 渲染 ep 系列图标 -->
|
||||
<iconify-icon
|
||||
:icon="item.icon"
|
||||
color="#ffffff"
|
||||
width="24"
|
||||
height="24"
|
||||
></iconify-icon>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 渲染名称 -->
|
||||
<text class="u-font-24 u-line-1 item-text">{{item.name}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</mescroll-body>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import {
|
||||
getMenuList,
|
||||
getChildList
|
||||
} from "@/api/apply/apply.js";
|
||||
import {
|
||||
getMenuData
|
||||
} from "@/api/index/index";
|
||||
import resources from "@/libs/resources.js";
|
||||
import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
|
||||
import {
|
||||
@@ -91,84 +100,7 @@
|
||||
},
|
||||
methods: {
|
||||
handelClick(item) {
|
||||
if (item.type == 1) {
|
||||
getChildList(item.id).then(res => {
|
||||
this.listChild = res.data || []
|
||||
this.handleProperty(this.listChild)
|
||||
this.$nextTick(() => {
|
||||
uni.navigateTo({
|
||||
url: "/pages/apply/catalog/index?config=" +
|
||||
this.jnpf.base64.encode(JSON.stringify(this.listChild[0])),
|
||||
fail: (err) => {
|
||||
this.$u.toast("暂无此页面");
|
||||
},
|
||||
});
|
||||
})
|
||||
})
|
||||
return;
|
||||
}
|
||||
let url = ''
|
||||
// 2-页面 11-回传表单
|
||||
if (item.type == 2 || item.type == 11) {
|
||||
if (!item.pageAddress) {
|
||||
this.$u.toast("暂无此页面");
|
||||
return;
|
||||
}
|
||||
url = item.pageAddress + "?menuId=" + item.id + "&fullName=" + item.fullName
|
||||
}
|
||||
// 3-在线表单 9-流程
|
||||
if (item.type == 3 || item.type == 9) {
|
||||
if (!item.moduleId) {
|
||||
this.$u.toast("暂无此页面");
|
||||
return;
|
||||
}
|
||||
url = "/pages/apply/dynamicModel/index?config=" + this.jnpf.base64.encode(JSON.stringify(item))
|
||||
}
|
||||
// 外链
|
||||
if (item.type == 7) {
|
||||
if (!item.pageAddress) {
|
||||
this.$u.toast("暂无此页面");
|
||||
return;
|
||||
}
|
||||
url = "/pages/apply/externalLink/index?url=" + encodeURIComponent(item.pageAddress) + "&fullName=" +
|
||||
item.fullName + "&type=" + item.type
|
||||
}
|
||||
// 报表(原)
|
||||
if (item.type == 5) {
|
||||
if (!item.moduleId) {
|
||||
this.$u.toast("暂无此页面");
|
||||
return;
|
||||
}
|
||||
userInfo = uni.getStorageSync('userInfo') || {}
|
||||
const appCode = userInfo.systemCode
|
||||
const urlPre = encodeURIComponent(
|
||||
`${this.report}/preview.html?id=${item.moduleId}&token=${this.token}}&appCode=${appCode}&page=1&from=menu`
|
||||
)
|
||||
url = "/pages/apply/externalLink/index?url=" + urlPre + "&fullName=" + item.fullName + "&type=" +
|
||||
item.type
|
||||
}
|
||||
// 报表
|
||||
if (item.type == 10) {
|
||||
if (!item.moduleId) {
|
||||
this.$u.toast("暂无此页面");
|
||||
return;
|
||||
}
|
||||
const urlPre = encodeURIComponent(
|
||||
`${this.pcURL}/reportPreview?id=${item.moduleId}&token=${this.token}&from=app`
|
||||
);
|
||||
url = "/pages/apply/externalLink/index?url=" + urlPre + "&fullName=" + item.fullName + "&type=" +
|
||||
item.type
|
||||
}
|
||||
// 门户
|
||||
if (item.type == 8) {
|
||||
if (!item.moduleId) {
|
||||
this.$u.toast("暂无此页面");
|
||||
return;
|
||||
}
|
||||
url = "/pages/portal/scanPortal/index?id=" + item.moduleId + "&portalType=1&fullName=" +
|
||||
item.fullName
|
||||
}
|
||||
if (!url) return;
|
||||
let url = "/pages/apply/dynamicModelList/index?config=" + this.jnpf.base64.encode(JSON.stringify(item))
|
||||
uni.navigateTo({
|
||||
url,
|
||||
fail: () => {
|
||||
@@ -184,13 +116,13 @@
|
||||
title: '正在加载',
|
||||
mask: true
|
||||
})
|
||||
getMenuList(query)
|
||||
getMenuData()
|
||||
.then((res) => {
|
||||
let list = res.data.list || [];
|
||||
let list =res?.data || [];
|
||||
this.mescroll.endSuccess(list.length);
|
||||
this.list = list.filter(o => o.children && o.children.length)
|
||||
this.menuList = this.list;
|
||||
this.handleProperty(this.list)
|
||||
this.menuList = list;
|
||||
console.log(this.menuList,'menuList---')
|
||||
// this.handleProperty(this.list)
|
||||
uni.hideLoading()
|
||||
this.key = +new Date();
|
||||
this.mescroll.endSuccess(this.menuList.length, false);
|
||||
@@ -338,4 +270,54 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.menu-v {
|
||||
// 原有样式...
|
||||
|
||||
.workFlow-list {
|
||||
background-color: #fff;
|
||||
padding: 20rpx;
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
// 分类标题样式
|
||||
.caption {
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
padding: 0 20rpx 20rpx;
|
||||
border-bottom: 1px solid #f5f5f5;
|
||||
}
|
||||
|
||||
// 项容器(让项横向排列)
|
||||
.item-container {
|
||||
padding: 20rpx;
|
||||
}
|
||||
|
||||
// 单个项的样式
|
||||
.item {
|
||||
width: 25%; // 一行显示4个(可根据需求调整)
|
||||
margin-bottom: 30rpx;
|
||||
align-items: center;
|
||||
|
||||
// 图标样式
|
||||
.item-icon {
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
border-radius: 20rpx; // 圆角更美观
|
||||
color: #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
|
||||
// 文字样式
|
||||
.item-text {
|
||||
font-size: 24rpx;
|
||||
color: #333;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
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: "我的"
|
||||
})
|
||||
|
||||
@@ -31,11 +31,11 @@
|
||||
onShow() {
|
||||
if (this.needRefresh) {
|
||||
this.needRefresh = false;
|
||||
this.init();
|
||||
// this.init();
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.init()
|
||||
// this.init()
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<view class='common-lable'>
|
||||
单号
|
||||
</view>
|
||||
<text class="title u-font-28 u-line-1">{{item.businessInfo.billNo}}</text>
|
||||
<text class="title u-font-28 u-line-1">{{item.businessInfo && item.businessInfo.billNo}}</text>
|
||||
</view>
|
||||
<text class="title u-line-1 u-font-24">单据类型:{{item.name || item.processInstanceName}}<text
|
||||
class="titInner">{{item.thisStep ? item.thisStep : ''}}</text></text>
|
||||
@@ -22,7 +22,7 @@
|
||||
class="titInner">{{item.createTime?$u.timeFormat(item.createTime, 'yyyy-mm-dd hh:MM:ss'):''}}</text></text>
|
||||
</view>
|
||||
<view v-if="category == 2" class="item-right">
|
||||
<image v-if="item.result == 1" src="./img/jihuo.png" mode="widthFix" class="item-right-img" />
|
||||
<image v-if="item.suspensionState == 1" src="./img/jihuo.png" mode="widthFix" class="item-right-img" />
|
||||
<image v-else src="./img/wanc.png" mode="widthFix" class="item-right-img" />
|
||||
</view>
|
||||
<view v-else class="item-right">
|
||||
@@ -41,6 +41,9 @@
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import {
|
||||
getProcessBusinessInfo
|
||||
} from '@/api/apply/visualDev'
|
||||
import {
|
||||
delFlowLaunch
|
||||
} from '@/api/workFlow/template'
|
||||
@@ -86,15 +89,24 @@
|
||||
})
|
||||
},
|
||||
goDetail(item) {
|
||||
const config = {
|
||||
opType: item.opType,
|
||||
operatorId: item.id,
|
||||
category: this.category,
|
||||
...item
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/workFlow/flowBefore/index?config=' +
|
||||
this.jnpf.base64.encode(JSON.stringify(config))
|
||||
const {processInstance,processDefinitionId} = item
|
||||
const id = !!processDefinitionId ? item.id :processInstance.id
|
||||
const name = !!processDefinitionId ? item.name : processInstance.name
|
||||
getProcessBusinessInfo(id).then(res=>{
|
||||
if(res.code == 0){
|
||||
const {dbformId,businessId} = res.data
|
||||
const config = {
|
||||
modelId: dbformId,
|
||||
id: businessId,
|
||||
name: name,
|
||||
btnType: 'btn_process',
|
||||
current: this.category
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/apply/dynamicModelList/form?config=' +
|
||||
this.jnpf.base64.encode(JSON.stringify(config))
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
handleClick(data) {
|
||||
|
||||
@@ -28,6 +28,9 @@
|
||||
import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
|
||||
import FlowMixin from "./FlowMixin.js";
|
||||
import flowlist from './flowList.vue'
|
||||
import {
|
||||
useUserStore
|
||||
} from '@/store/modules/user'
|
||||
export default {
|
||||
components: {
|
||||
flowlist
|
||||
@@ -63,6 +66,14 @@
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
const fromNonTabBar = uni.getStorageSync('fromNonTabBar');
|
||||
console.log(fromNonTabBar,'fromNonTabBar---')
|
||||
if(!fromNonTabBar){
|
||||
this.current = 1
|
||||
}else {
|
||||
this.current = 0
|
||||
}
|
||||
uni.removeStorageSync('fromNonTabBar');
|
||||
uni.$off('operate')
|
||||
uni.$on('refresh', () => {
|
||||
this.list = [];
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
this.setting = data
|
||||
this.formConf = data.formConf ? JSON.parse(data.formConf) : {}
|
||||
console.log(this.formConf,'formConf112')
|
||||
console.log(data,'data112')
|
||||
this.dataForm.id = data.id || null;
|
||||
this.dataForm.flowId = data.flowId;
|
||||
this.loading = true;
|
||||
|
||||
@@ -9,19 +9,28 @@ import store from '../index'
|
||||
import permission from '@/libs/permission'
|
||||
|
||||
export const useUserStore = defineStore({
|
||||
id: ' user',
|
||||
id: 'user',
|
||||
state: () => ({
|
||||
token: "",
|
||||
userInfo: {},
|
||||
menuList: [],
|
||||
tenantId: ''
|
||||
tenantId: '',
|
||||
current: 0
|
||||
}),
|
||||
getters: {
|
||||
getToken() {
|
||||
return this.token
|
||||
},
|
||||
getCurrent() {
|
||||
return this.current
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
setCurrent(current) {
|
||||
this.current = current
|
||||
console.log(current,'current--')
|
||||
uni.setStorageSync('current', current)
|
||||
},
|
||||
setTenantId(tenantId) {
|
||||
console.log(tenantId,'tenantId---')
|
||||
this.tenantId = tenantId
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
{
|
||||
"hash": "6b0aadf4",
|
||||
"configHash": "9cd3108c",
|
||||
"hash": "546c637a",
|
||||
"configHash": "9b3d750a",
|
||||
"lockfileHash": "e3b0c442",
|
||||
"browserHash": "4216b578",
|
||||
"browserHash": "68bd3506",
|
||||
"optimized": {
|
||||
"crypto-js": {
|
||||
"src": "../../../../../node_modules/crypto-js/index.js",
|
||||
"file": "crypto-js.js",
|
||||
"fileHash": "d697042e",
|
||||
"fileHash": "209eb0b3",
|
||||
"needsInterop": true
|
||||
}
|
||||
},
|
||||
|
||||
140
unpackage/dist/cache/.vite/deps/crypto-js.js
vendored
140
unpackage/dist/cache/.vite/deps/crypto-js.js
vendored
@@ -23,9 +23,9 @@ var require_crypto = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/core.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/core.js
|
||||
var require_core = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/core.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/core.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory();
|
||||
@@ -631,9 +631,9 @@ var require_core = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/x64-core.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/x64-core.js
|
||||
var require_x64_core = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/x64-core.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/x64-core.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
@@ -888,9 +888,9 @@ var require_x64_core = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/lib-typedarrays.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/lib-typedarrays.js
|
||||
var require_lib_typedarrays = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/lib-typedarrays.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/lib-typedarrays.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
@@ -933,9 +933,9 @@ var require_lib_typedarrays = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/enc-utf16.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/enc-utf16.js
|
||||
var require_enc_utf16 = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/enc-utf16.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/enc-utf16.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
@@ -1051,9 +1051,9 @@ var require_enc_utf16 = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/enc-base64.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/enc-base64.js
|
||||
var require_enc_base64 = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/enc-base64.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/enc-base64.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
@@ -1159,9 +1159,9 @@ var require_enc_base64 = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/enc-base64url.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/enc-base64url.js
|
||||
var require_enc_base64url = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/enc-base64url.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/enc-base64url.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
@@ -1272,9 +1272,9 @@ var require_enc_base64url = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/md5.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/md5.js
|
||||
var require_md5 = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/md5.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/md5.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
@@ -1451,9 +1451,9 @@ var require_md5 = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/sha1.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/sha1.js
|
||||
var require_sha1 = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/sha1.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/sha1.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
@@ -1542,9 +1542,9 @@ var require_sha1 = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/sha256.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/sha256.js
|
||||
var require_sha256 = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/sha256.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/sha256.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
@@ -1663,9 +1663,9 @@ var require_sha256 = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/sha224.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/sha224.js
|
||||
var require_sha224 = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/sha224.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/sha224.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_sha256());
|
||||
@@ -1708,9 +1708,9 @@ var require_sha224 = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/sha512.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/sha512.js
|
||||
var require_sha512 = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/sha512.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/sha512.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_x64_core());
|
||||
@@ -1990,9 +1990,9 @@ var require_sha512 = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/sha384.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/sha384.js
|
||||
var require_sha384 = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/sha384.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/sha384.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_x64_core(), require_sha512());
|
||||
@@ -2036,9 +2036,9 @@ var require_sha384 = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/sha3.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/sha3.js
|
||||
var require_sha3 = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/sha3.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/sha3.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_x64_core());
|
||||
@@ -2238,9 +2238,9 @@ var require_sha3 = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/ripemd160.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/ripemd160.js
|
||||
var require_ripemd160 = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/ripemd160.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/ripemd160.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
@@ -2709,9 +2709,9 @@ var require_ripemd160 = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/hmac.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/hmac.js
|
||||
var require_hmac = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/hmac.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/hmac.js"(exports, module) {
|
||||
(function(root, factory) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core());
|
||||
@@ -2816,9 +2816,9 @@ var require_hmac = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/pbkdf2.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/pbkdf2.js
|
||||
var require_pbkdf2 = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/pbkdf2.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/pbkdf2.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_sha1(), require_hmac());
|
||||
@@ -2914,9 +2914,9 @@ var require_pbkdf2 = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/evpkdf.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/evpkdf.js
|
||||
var require_evpkdf = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/evpkdf.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/evpkdf.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_sha1(), require_hmac());
|
||||
@@ -3005,9 +3005,9 @@ var require_evpkdf = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/cipher-core.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/cipher-core.js
|
||||
var require_cipher_core = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/cipher-core.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/cipher-core.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_evpkdf());
|
||||
@@ -3645,9 +3645,9 @@ var require_cipher_core = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/mode-cfb.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/mode-cfb.js
|
||||
var require_mode_cfb = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/mode-cfb.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/mode-cfb.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
@@ -3697,9 +3697,9 @@ var require_mode_cfb = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/mode-ctr.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/mode-ctr.js
|
||||
var require_mode_ctr = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/mode-ctr.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/mode-ctr.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
@@ -3737,9 +3737,9 @@ var require_mode_ctr = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/mode-ctr-gladman.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/mode-ctr-gladman.js
|
||||
var require_mode_ctr_gladman = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/mode-ctr-gladman.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/mode-ctr-gladman.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
@@ -3812,9 +3812,9 @@ var require_mode_ctr_gladman = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/mode-ofb.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/mode-ofb.js
|
||||
var require_mode_ofb = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/mode-ofb.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/mode-ofb.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
@@ -3850,9 +3850,9 @@ var require_mode_ofb = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/mode-ecb.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/mode-ecb.js
|
||||
var require_mode_ecb = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/mode-ecb.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/mode-ecb.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
@@ -3881,9 +3881,9 @@ var require_mode_ecb = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/pad-ansix923.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/pad-ansix923.js
|
||||
var require_pad_ansix923 = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/pad-ansix923.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/pad-ansix923.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
@@ -3913,9 +3913,9 @@ var require_pad_ansix923 = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/pad-iso10126.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/pad-iso10126.js
|
||||
var require_pad_iso10126 = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/pad-iso10126.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/pad-iso10126.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
@@ -3941,9 +3941,9 @@ var require_pad_iso10126 = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/pad-iso97971.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/pad-iso97971.js
|
||||
var require_pad_iso97971 = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/pad-iso97971.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/pad-iso97971.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
@@ -3968,9 +3968,9 @@ var require_pad_iso97971 = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/pad-zeropadding.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/pad-zeropadding.js
|
||||
var require_pad_zeropadding = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/pad-zeropadding.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/pad-zeropadding.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
@@ -4002,9 +4002,9 @@ var require_pad_zeropadding = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/pad-nopadding.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/pad-nopadding.js
|
||||
var require_pad_nopadding = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/pad-nopadding.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/pad-nopadding.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
@@ -4025,9 +4025,9 @@ var require_pad_nopadding = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/format-hex.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/format-hex.js
|
||||
var require_format_hex = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/format-hex.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/format-hex.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_cipher_core());
|
||||
@@ -4085,9 +4085,9 @@ var require_format_hex = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/aes.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/aes.js
|
||||
var require_aes = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/aes.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/aes.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core());
|
||||
@@ -4239,9 +4239,9 @@ var require_aes = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/tripledes.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/tripledes.js
|
||||
var require_tripledes = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/tripledes.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/tripledes.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core());
|
||||
@@ -5020,9 +5020,9 @@ var require_tripledes = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/rc4.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/rc4.js
|
||||
var require_rc4 = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/rc4.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/rc4.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core());
|
||||
@@ -5103,9 +5103,9 @@ var require_rc4 = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/rabbit.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/rabbit.js
|
||||
var require_rabbit = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/rabbit.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/rabbit.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core());
|
||||
@@ -5232,9 +5232,9 @@ var require_rabbit = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/rabbit-legacy.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/rabbit-legacy.js
|
||||
var require_rabbit_legacy = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/rabbit-legacy.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/rabbit-legacy.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_enc_base64(), require_md5(), require_evpkdf(), require_cipher_core());
|
||||
@@ -5358,9 +5358,9 @@ var require_rabbit_legacy = __commonJS({
|
||||
}
|
||||
});
|
||||
|
||||
// E:/web/jnpf_app/node_modules/crypto-js/index.js
|
||||
// E:/web/ruantong/jnpf_app/node_modules/crypto-js/index.js
|
||||
var require_crypto_js = __commonJS({
|
||||
"E:/web/jnpf_app/node_modules/crypto-js/index.js"(exports, module) {
|
||||
"E:/web/ruantong/jnpf_app/node_modules/crypto-js/index.js"(exports, module) {
|
||||
(function(root, factory, undef) {
|
||||
if (typeof exports === "object") {
|
||||
module.exports = exports = factory(require_core(), require_x64_core(), require_lib_typedarrays(), require_enc_utf16(), require_enc_base64(), require_enc_base64url(), require_md5(), require_sha1(), require_sha256(), require_sha224(), require_sha512(), require_sha384(), require_sha3(), require_ripemd160(), require_hmac(), require_pbkdf2(), require_evpkdf(), require_cipher_core(), require_mode_cfb(), require_mode_ctr(), require_mode_ctr_gladman(), require_mode_ofb(), require_mode_ecb(), require_pad_ansix923(), require_pad_iso10126(), require_pad_iso97971(), require_pad_zeropadding(), require_pad_nopadding(), require_format_hex(), require_aes(), require_tripledes(), require_rc4(), require_rabbit(), require_rabbit_legacy());
|
||||
|
||||
Reference in New Issue
Block a user