diff --git a/api/apply/visualDev.js b/api/apply/visualDev.js index 11fd15b..a82e0c0 100644 --- a/api/apply/visualDev.js +++ b/api/apply/visualDev.js @@ -1,4 +1,57 @@ import request from '@/utils/request' + +export function getDesForm(modelId,data) { + return request({ + url: `/admin-api/MobileMenu/desform/${modelId}`, + method: 'POST', + data, + options: { + load: false + } + }) +} +// 获取表单id +export function getProcessBusinessInfo(id) { + return request({ + url: `/admin-api/MobileProcess/getProcessBusinessInfo?processInstanceId=${id}`, + method: 'GET' + }) +} + +// 获取流程表单 +export function getdbformlist(dbFormId) { + return request({ + url: `/admin-api/bpm/process-definition/dbformlist?dbFormId=${dbFormId}`, + method: 'GET' + }) +} +// 获取审批节点 +export function getAssignList(id) { + return request({ + url: `/admin-api/bpm/task-assign-rule/list?processDefinitionId=${id}`, + method: 'GET' + }) +} + +// 发起流程 +export function getListCreate(data,id) { + return request({ + url: `/admin-api/MobileMenu/addMobileProcessLog/${id}`, + method: 'POST', + data, + options: { + load: false + } + }) +} +// 获取审批记录数据 +export function getByProcess(id) { + return request({ + url: `/admin-api/bpm/task/list-by-process-instance-id?processInstanceId=${id}`, + method: 'GET' + }) +} + // 获取列表表单配置JSON export function getConfigData(modelId, menuId) { return request({ @@ -25,10 +78,33 @@ export function getModelList(modelId, data, options) { } }) } + +// 获取数据列表 +export function getModelDataList(id, data, options) { + return request({ + url: `/admin-api/MobileMenu/list/${id}`, + method: 'POST', + data, + options: { + load: false + } + }) +} +// 获取申请单位下拉选项 +export function getDbfromList(id, data={}, options) { + return request({ + url: `/admin-api/jeelowcode/dbform-data/list/${id}`, + method: 'POST', + data, + options: { + load: false + } + }) +} // 添加数据 export function createModel(modelId, data) { return request({ - url: `/api/visualdev/OnlineDev/${modelId}?menuId=${data.menuId}`, + url: `/admin-api/MobileMenu/addMobileOperateLog/${modelId}`, method: 'POST', data }) @@ -42,10 +118,10 @@ export function updateModel(modelId, data) { }) } // 获取数据信息 -export function getModelInfo(modelId, id, menuId) { +export function getModelInfo(modelId, id) { return request({ - url: `/api/visualdev/OnlineDev/${modelId}/${id}?menuId=${menuId}`, - method: 'GET' + url: `/admin-api/jeelowcode/dbform-data/detail/${modelId}/${id}`, + method: 'POST' }) } // 删除数据 diff --git a/api/common.js b/api/common.js index b495612..7384e75 100644 --- a/api/common.js +++ b/api/common.js @@ -72,13 +72,32 @@ export function getOrganizeSelector(data) { parentId: '0' }; return request({ - url: '/api/permission/Organize/Selector', + url: '/admin-api/jeelowcode/adapter/dept/list', options: { load: false }, data }) } +// 获取人员选项 +export function getAdapterUserList(data, options) { + return request({ + url: `/admin-api/jeelowcode/adapter/user/list`, + method: 'POST', + data, + options: { + load: true + } + }) +} +// 获取人员角色 +export function getAdapterRoleList() { + return request({ + url: '/admin-api/jeelowcode/adapter/role/list', + method: 'GET' + }) +} + // 获取组织和岗位下拉框列表 export function getOrgAndPosSelector(data) { if (!data) data = { @@ -203,14 +222,21 @@ export function getDataInterfaceRes(id, data) { // 用户登录 export function login(data) { return request({ - url: '/api/oauth/Login', + url: '/admin-api/system/auth/login', method: 'post', data, header: { - 'Content-Type': 'application/x-www-form-urlencoded', + 'Content-Type': 'application/json', } }) } +// 获取用户角色 +export function getPermissionInfo() { + return request({ + url: '/admin-api/system/auth/get-permission-info', + method: 'GET' + }) +} // 账号注销 export function accountCancel(token) { return request({ @@ -349,6 +375,16 @@ export function getConfig(account) { } }) } +// 获取配置信息 +export function getByName(name) { + return request({ + url: `/admin-api/system/tenant/get-id-by-name?name=${name}`, + method: 'get', + options: { + load: false + } + }) +} // 获取行政区划下拉框数据 export function getProvinceSelector(id) { return request({ diff --git a/api/index/index.js b/api/index/index.js index e35e230..550acc7 100644 --- a/api/index/index.js +++ b/api/index/index.js @@ -7,4 +7,25 @@ export function getHomeData(id) { load: true } }) +} + +export function getMenuData(id) { + return request({ + url: `/admin-api/MobileMenu/getMenu`, + method: 'get', + options: { + load: true + } + }) +} + +export function getDonePage(data) { + return request({ + url: `/admin-api/bpm/task/done-page`, + method: 'get', + data, + options: { + load: true + } + }) } \ No newline at end of file diff --git a/api/workFlow/template.js b/api/workFlow/template.js index faf7aaa..dbdb220 100644 --- a/api/workFlow/template.js +++ b/api/workFlow/template.js @@ -30,6 +30,54 @@ export function getOperatorList(data) { }) } +// 获取我的流程 +export function getMyPage(data) { + return request({ + url: `/admin-api/bpm/process-instance/my-page`, + method: 'get', + data, + options: { + load: false + } + }) +} + +// 获取待办流程 +export function getTodoPage(data) { + return request({ + url: `/admin-api/bpm/task/todo-page`, + method: 'get', + data, + options: { + load: false + } + }) +} + +// 获取已办流程 +export function getDonePage(data) { + return request({ + url: `/admin-api/bpm/task/done-page`, + method: 'get', + data, + options: { + load: false + } + }) +} + +// 获取抄送流程 +export function getCcMyPage(data) { + return request({ + url: `/admin-api/bpm/process-instance/cc/my-page`, + method: 'get', + data, + options: { + load: false + } + }) +} + // 获取流程发起列表 diff --git a/components/CommonPane/indexSystem.vue b/components/CommonPane/indexSystem.vue new file mode 100644 index 0000000..def80db --- /dev/null +++ b/components/CommonPane/indexSystem.vue @@ -0,0 +1,215 @@ + + + + + + {{title}} + + + + + + + + + + + {{item.name}} + + + + + 添加 + + + + + + + + + + \ No newline at end of file diff --git a/components/Jnpf/CandidateSelect/SelectPopup.vue b/components/Jnpf/CandidateSelect/SelectPopup.vue new file mode 100644 index 0000000..6d4393d --- /dev/null +++ b/components/Jnpf/CandidateSelect/SelectPopup.vue @@ -0,0 +1,469 @@ + + + + + + 选择用户 + + + + + + + + {{$t('component.jnpf.common.selected')}}({{selectedList.length||0}}) + + {{$t('component.jnpf.common.clearAll')}} + + + + + + + + + + + + 用户 + + + + + 角色 + + + + + + + 用户组 + + + 组织岗位 + + + 角色 + + + + 用户列表 + + + + + + + + + + + {{item.deptName}} + + + + + + + + + + + + + + + {{item.nickName}} + + + + + + + + + {{$t('common.cancelText')}} + {{$t('common.okText')}} + + + + + \ No newline at end of file diff --git a/components/Jnpf/CandidateSelect/index.vue b/components/Jnpf/CandidateSelect/index.vue new file mode 100644 index 0000000..dd3f57a --- /dev/null +++ b/components/Jnpf/CandidateSelect/index.vue @@ -0,0 +1,116 @@ + + + + + + + + \ No newline at end of file diff --git a/components/Jnpf/OrganizeSelect/SelectPopup.vue b/components/Jnpf/OrganizeSelect/SelectPopup.vue index b081715..efb4e1b 100644 --- a/components/Jnpf/OrganizeSelect/SelectPopup.vue +++ b/components/Jnpf/OrganizeSelect/SelectPopup.vue @@ -3,7 +3,7 @@ - 组织选择 + 选择申请人单位 + :text="item.deptName" class="u-selectTag" /> - - 组织构架 - + + + - + :checked="selectedIds.includes(item.deptId)" /> - {{item.orgNameTree}} + {{item.deptName}} @@ -73,6 +74,7 @@ + \ No newline at end of file + + + \ No newline at end of file diff --git a/components/Jnpf/OrganizeSelect/index.vue b/components/Jnpf/OrganizeSelect/index.vue index 3b550a3..bd29de4 100644 --- a/components/Jnpf/OrganizeSelect/index.vue +++ b/components/Jnpf/OrganizeSelect/index.vue @@ -3,16 +3,16 @@ + @confirm="handleConfirm" :selectType="selectType" :type="type" :ableIds="ableIds" /> + + + + + + diff --git a/libs/chat.js b/libs/chat.js index 820c6db..13ac32a 100644 --- a/libs/chat.js +++ b/libs/chat.js @@ -189,7 +189,7 @@ const Socket = { }, //重连 reConnect() { - Socket.initSocket() + // Socket.initSocket() }, close() { socketTask.close({ diff --git a/locale/zh-Hans.json b/locale/zh-Hans.json index b6547e5..de23015 100644 --- a/locale/zh-Hans.json +++ b/locale/zh-Hans.json @@ -650,8 +650,10 @@ "views.dynamicModel.showMore": "加载更多", "views.dynamicModel.hideSome": "隐藏部分", "app.tabBar.home": "工作台", + "app.tabBar.home1": "工作台1", "app.tabBar.dashboard": "仪表盘", "app.tabBar.message": "消息", + "app.tabBar.task": "待办任务", "app.tabBar.my": "我的", "app.tabBar.menu": "应用功能", "app.tabBar.workFlow": "发起审批", diff --git a/locale/zh-Hant.json b/locale/zh-Hant.json index fc16597..497fcfb 100644 --- a/locale/zh-Hant.json +++ b/locale/zh-Hant.json @@ -650,8 +650,10 @@ "views.dynamicModel.showMore": "加載更多", "views.dynamicModel.hideSome": "隱藏部分", "app.tabBar.home": "工作台", + "app.tabBar.home1": "工作台1", "app.tabBar.dashboard": "仪表盘", "app.tabBar.message": "消息", + "app.tabBar.task": "待办任务", "app.tabBar.my": "我的", "app.tabBar.menu": "應用功能", "app.tabBar.workFlow": "發起審批", diff --git a/pages.json b/pages.json index 595068d..f30e736 100644 --- a/pages.json +++ b/pages.json @@ -66,6 +66,16 @@ } } }, + { + "path": "pages/index/indexWork", + "style": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "综合监控系统", + "app-plus": { + "bounce": "none" // 取消APP端iOS回弹,避免与下拉刷新冲突 (可统一配在 'globalStyle') + } + } + }, { "path": "pages/index/dashboard", "style": { @@ -392,6 +402,30 @@ "navigationBarTitleText": "" } }, + { + "path": "dynamicModelList/index", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "dynamicModelList/form", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "dynamicModelList/detail", + "style": { + "navigationBarTitleText": "详情" + } + }, + { + "path": "dynamicModelList/scanForm", + "style": { + "navigationBarTitleText": "" + } + }, { "path": "tableLinkage/index", "style": { @@ -567,21 +601,29 @@ "color": "#303133", "selectedColor": "#2979FF", "backgroundColor": "#ffffff", - "list": [{ + "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/dashboard", + // "text": "%app.tabBar.dashboard%", + // "iconPath": "static/image/tabbar/workFlow.png", + // "selectedIconPath": "static/image/tabbar/workFlowHL.png" + // }, { "pagePath": "pages/index/message", - "text": "%app.tabBar.message%", + "text": "%app.tabBar.task%", "iconPath": "static/image/tabbar/message.png", "selectedIconPath": "static/image/tabbar/messageHL.png" }, diff --git a/pages/apply/dynamicModel/detail.vue b/pages/apply/dynamicModel/detail.vue index 4d54d49..22ce23b 100644 --- a/pages/apply/dynamicModel/detail.vue +++ b/pages/apply/dynamicModel/detail.vue @@ -240,6 +240,7 @@ }, getConfigData() { this.loading = true; + console.log(this.modelId,'modelId-------') getConfigData(this.modelId).then((res) => { if (res.code !== 200 || !res.data) { uni.showToast({ diff --git a/pages/apply/dynamicModel/form.vue b/pages/apply/dynamicModel/form.vue index 2a28186..895f3af 100644 --- a/pages/apply/dynamicModel/form.vue +++ b/pages/apply/dynamicModel/form.vue @@ -120,6 +120,7 @@ return } this.formConf = res.data.formData ? JSON.parse(res.data.formData) : {}; + console.log(this.formConf,'formConf----') this.showPage = true this.initData() }) diff --git a/pages/apply/dynamicModelList/bulkOperationMixin.js b/pages/apply/dynamicModelList/bulkOperationMixin.js new file mode 100644 index 0000000..ad35d25 --- /dev/null +++ b/pages/apply/dynamicModelList/bulkOperationMixin.js @@ -0,0 +1,75 @@ +import { + deteleModel +} from '@/api/apply/visualDev' +export default { + data() { + return { + slide: '', + slide2: '', + checkedAll: false, + ids: [], + showTop: false, + } + }, + methods: { + /* 批量删除 */ + batchDelete() { + if (!this.selectItems.length) { + return this.$u.toast('请选择一条数据') + } + uni.showModal({ + title: '提示', + content: '删除后数据无法恢复', + success: (res) => { + if (res.confirm) { + const uniqueIds = new Set(); + this.selectItems.forEach(item => { + uniqueIds.add(item.id); + }); + const ids = [...uniqueIds]; + let data = { + flowId: this.config.flowId, + ids + }; + deteleModel(data, this.modelId).then(res => { + this.selectItems = []; + this.$u.toast(res.msg) + this.mescroll.resetUpScroll() + }) + } + } + }) + }, + openBatchOperate() { + this.showTop = !this.showTop + if (this.showTop) { + this.slide = 'slide-up' + this.slide2 = 'slide-up2' + } + }, + checkAll() { + this.checkedAll = !this.checkedAll + this.list = this.list.map(o => ({ + ...o, + checked: false + })) + if (this.checkedAll) { + this.list = this.list.map(o => ({ + ...o, + checked: true + })) + } + }, + cancel() { + this.list = this.list.map(o => ({ + ...o, + checked: false + })) + this.showTop = false + this.checkedAll = false + this.$nextTick(() => { + this.$refs.list.handleCheckAll() + }) + } + } +} \ No newline at end of file diff --git a/pages/apply/dynamicModelList/components/detail/Item.vue b/pages/apply/dynamicModelList/components/detail/Item.vue new file mode 100644 index 0000000..23f9ed8 --- /dev/null +++ b/pages/apply/dynamicModelList/components/detail/Item.vue @@ -0,0 +1,596 @@ + + + + + + + + + + {{formData[item.__vModel__]}} + + + + + + + {{formData[item.__vModel__]}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ getValue(item) }} + + + + + + + {{item.header}} + + + + + + + + {{config.label}} + + + + + ({{columnIndex+1}}) + + + + + + {{ column[childItem.relationField.split('_jnpfTable_')[0]+'_'+childItem.showField] }} + + + {{column[childItem.__vModel__]}} + + + + {{column[childItem.__vModel__]}} + + + + + + + + + + + + + + + + + + + {{column[childItem.__vModel__]}} + + + + + + + {{item.__config__.label}}合计 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pages/apply/dynamicModelList/components/detail/Parser.vue b/pages/apply/dynamicModelList/components/detail/Parser.vue new file mode 100644 index 0000000..b791aa3 --- /dev/null +++ b/pages/apply/dynamicModelList/components/detail/Parser.vue @@ -0,0 +1,68 @@ + + + + + + + + + + \ No newline at end of file diff --git a/pages/apply/dynamicModelList/components/form/index.vue b/pages/apply/dynamicModelList/components/form/index.vue new file mode 100644 index 0000000..3a50f84 --- /dev/null +++ b/pages/apply/dynamicModelList/components/form/index.vue @@ -0,0 +1,179 @@ + + + + + {{$t('common.resetText')}} + + {{getOkText}} + + + + + + \ No newline at end of file diff --git a/pages/apply/dynamicModelList/components/list/index.vue b/pages/apply/dynamicModelList/components/list/index.vue new file mode 100644 index 0000000..6acc908 --- /dev/null +++ b/pages/apply/dynamicModelList/components/list/index.vue @@ -0,0 +1,1051 @@ + + + + + + {{$t('common.cancelText')}} + + + {{$t('component.jnpf.common.selected')}}({{selectItems.length}}) + + + + + + + + + + + + + + + + + + + + + + + + + {{$t('common.cleanText')}} + + {{$t('common.okText')}} + + + + + + + + + + + + + + + {{$t('common.resetText')}} + {{$t('common.searchText')}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{$t('common.moreText')}} + + + + + + {{item.label}} + + + + + {{$t('common.batchDelText')}} + + + + + + + + \ No newline at end of file diff --git a/pages/apply/dynamicModelList/components/list/list.vue b/pages/apply/dynamicModelList/components/list/list.vue new file mode 100644 index 0000000..4df451a --- /dev/null +++ b/pages/apply/dynamicModelList/components/list/list.vue @@ -0,0 +1,273 @@ + + + + + + + + + + + + + 单号 + {{ item.billNo }} + + + 申请单位: + {{ item.applyDepName }} + + + 申请人员: + {{ item.applyUser}} + + + 创建时间: + {{ formatTime(item.create_time) }} + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pages/apply/dynamicModelList/components/parser/index.vue b/pages/apply/dynamicModelList/components/parser/index.vue new file mode 100644 index 0000000..0e901ba --- /dev/null +++ b/pages/apply/dynamicModelList/components/parser/index.vue @@ -0,0 +1,224 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pages/apply/dynamicModelList/components/tableCell.vue b/pages/apply/dynamicModelList/components/tableCell.vue new file mode 100644 index 0000000..7fc9a17 --- /dev/null +++ b/pages/apply/dynamicModelList/components/tableCell.vue @@ -0,0 +1,125 @@ + + + + + + + {{label+':'}} + + {{$t('app.apply.expandData')}} + + + + + + {{cld.labelI18nCode ? $t(cld.labelI18nCode, cld.label) : cld.label}}: + + {{toThousands(item[cld.vModel],cld) }} + + + {{item[cld.vModel]}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{item[cld.vModel]}} + + + + + 加载更多 + + + + + \ No newline at end of file diff --git a/pages/apply/dynamicModelList/detail.vue b/pages/apply/dynamicModelList/detail.vue new file mode 100644 index 0000000..22ce23b --- /dev/null +++ b/pages/apply/dynamicModelList/detail.vue @@ -0,0 +1,450 @@ + + + + + + + 修改记录 + + + + + + + + + + + + {{labelS.btn_edit}} + + + {{$t('common.cancelText')}} + + + + + + \ No newline at end of file diff --git a/pages/apply/dynamicModelList/form.vue b/pages/apply/dynamicModelList/form.vue new file mode 100644 index 0000000..33e6e82 --- /dev/null +++ b/pages/apply/dynamicModelList/form.vue @@ -0,0 +1,1645 @@ + + + + + + + 审批记录 + + + + + + 任务:{{ item.name }} + + {{ item.result === 1 ? '处理中' : (item.result === 2 ? '通过' : '不通过') }} + + + + + 审批人: + {{ item.assigneeUser.nickname }} + {{ item.assigneeUser.deptName }} + + 创建时间: + {{ formatTime(item.createTime) }} + + 审批时间: + {{ formatTime(item.endTime) }} + + 耗时: + {{ formatDuration(item.durationInMillis) }} + + + + {{ item.reason }} + + + + + + + + + + + + {{getOkText}} + + + + + {{$t('common.moreText')}} + + + + + + {{item.label}} + + + + + + + + + + + 选择流程表单 + + + + + + + + {{ item.name }} + + + + + + + 暂无可用流程 + + + + + + 加载中... + + + + 取消 + 提交 + + + + + + + + + 发起人选择审批人 + + + + + + + 审批节点: + {{ node.taskDefinitionName || '未命名节点' }} + + + + + 候选人* + + handleUserChange(node, value, data,index)" + style="margin-top: 10rpx;" + /> + + + + + + + + + 加载中... + + + + + 暂无审批人 + + + + 确定 + + + + + + + + + + {{ approvalType === 'through' ? '审批通过' : '审批不通过' }} + + + + + + 审批意见 + + + + + + 取消 + + 确认提交 + + + + + + + + + + \ No newline at end of file diff --git a/pages/apply/dynamicModelList/img/APPROVED.png b/pages/apply/dynamicModelList/img/APPROVED.png new file mode 100644 index 0000000..081b61d Binary files /dev/null and b/pages/apply/dynamicModelList/img/APPROVED.png differ diff --git a/pages/apply/dynamicModelList/img/APPROVING.png b/pages/apply/dynamicModelList/img/APPROVING.png new file mode 100644 index 0000000..db9d354 Binary files /dev/null and b/pages/apply/dynamicModelList/img/APPROVING.png differ diff --git a/pages/apply/dynamicModelList/img/INVALID.png b/pages/apply/dynamicModelList/img/INVALID.png new file mode 100644 index 0000000..6d53912 Binary files /dev/null and b/pages/apply/dynamicModelList/img/INVALID.png differ diff --git a/pages/apply/dynamicModelList/img/REJECTED.png b/pages/apply/dynamicModelList/img/REJECTED.png new file mode 100644 index 0000000..d406644 Binary files /dev/null and b/pages/apply/dynamicModelList/img/REJECTED.png differ diff --git a/pages/apply/dynamicModelList/img/UNAPPROVED.png b/pages/apply/dynamicModelList/img/UNAPPROVED.png new file mode 100644 index 0000000..c58ff42 Binary files /dev/null and b/pages/apply/dynamicModelList/img/UNAPPROVED.png differ diff --git a/pages/apply/dynamicModelList/index.vue b/pages/apply/dynamicModelList/index.vue new file mode 100644 index 0000000..89b3735 --- /dev/null +++ b/pages/apply/dynamicModelList/index.vue @@ -0,0 +1,121 @@ + + + + + + + + + \ No newline at end of file diff --git a/pages/apply/dynamicModelList/scanForm.vue b/pages/apply/dynamicModelList/scanForm.vue new file mode 100644 index 0000000..773af74 --- /dev/null +++ b/pages/apply/dynamicModelList/scanForm.vue @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pages/index/indexWork.vue b/pages/index/indexWork.vue new file mode 100644 index 0000000..c09eb61 --- /dev/null +++ b/pages/index/indexWork.vue @@ -0,0 +1,635 @@ + + + + + + + + + + 待处理事项 + + + + 工作信息 + + + + + + + + + 单号 + {{item.businessInfo.billNo}} + + + + + + 单据类型: + {{item.processInstance.name}} + + + 发起人: + {{item.processInstance.startUserNickname}} + + + 创建时间: + {{formatTime(item.createTime) || '2026-01-15 14:16:36'}} + + + + + + + + 暂无数据 + + + + + + + + \ No newline at end of file diff --git a/pages/launch/index.vue b/pages/launch/index.vue index c1ee0e8..5a2accb 100644 --- a/pages/launch/index.vue +++ b/pages/launch/index.vue @@ -6,7 +6,7 @@ - Copyright © 2025 引迈信息技术有限公司出品 + Copyright © 2025 CSCN技术有限公司出品 diff --git a/pages/login/index.vue b/pages/login/index.vue index 97be348..48020fa 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -3,24 +3,30 @@ - + + - + - - + + + + + @@ -107,13 +113,14 @@ - {{copyright}} + {{copyright}} diff --git a/pages/workFlow/flowTodo/img/REJECTED.png b/pages/workFlow/flowTodo/img/REJECTED.png new file mode 100644 index 0000000..d406644 Binary files /dev/null and b/pages/workFlow/flowTodo/img/REJECTED.png differ diff --git a/pages/workFlow/flowTodo/img/doing.png b/pages/workFlow/flowTodo/img/doing.png new file mode 100644 index 0000000..3b0c347 Binary files /dev/null and b/pages/workFlow/flowTodo/img/doing.png differ diff --git a/pages/workFlow/flowTodo/img/jihuo.png b/pages/workFlow/flowTodo/img/jihuo.png new file mode 100644 index 0000000..9613eff Binary files /dev/null and b/pages/workFlow/flowTodo/img/jihuo.png differ diff --git a/pages/workFlow/flowTodo/img/pass.png b/pages/workFlow/flowTodo/img/pass.png new file mode 100644 index 0000000..ed8d80b Binary files /dev/null and b/pages/workFlow/flowTodo/img/pass.png differ diff --git a/pages/workFlow/flowTodo/img/quxiao.png b/pages/workFlow/flowTodo/img/quxiao.png new file mode 100644 index 0000000..4eb379a Binary files /dev/null and b/pages/workFlow/flowTodo/img/quxiao.png differ diff --git a/pages/workFlow/flowTodo/img/togo.png b/pages/workFlow/flowTodo/img/togo.png new file mode 100644 index 0000000..9584b6d Binary files /dev/null and b/pages/workFlow/flowTodo/img/togo.png differ diff --git a/pages/workFlow/flowTodo/img/wanc.png b/pages/workFlow/flowTodo/img/wanc.png new file mode 100644 index 0000000..2dafa7f Binary files /dev/null and b/pages/workFlow/flowTodo/img/wanc.png differ diff --git a/pages/workFlow/flowTodo/img/wanchen.png b/pages/workFlow/flowTodo/img/wanchen.png new file mode 100644 index 0000000..75c5f27 Binary files /dev/null and b/pages/workFlow/flowTodo/img/wanchen.png differ diff --git a/pages/workFlow/flowTodo/img/weipai.png b/pages/workFlow/flowTodo/img/weipai.png new file mode 100644 index 0000000..b5b6ec3 Binary files /dev/null and b/pages/workFlow/flowTodo/img/weipai.png differ diff --git a/pages/workFlow/flowTodo/index.vue b/pages/workFlow/flowTodo/index.vue index 89c7c6c..079ac3d 100644 --- a/pages/workFlow/flowTodo/index.vue +++ b/pages/workFlow/flowTodo/index.vue @@ -10,11 +10,11 @@ - + diff --git a/pages/workFlow/workFlowForm/dynamicForm/index.vue b/pages/workFlow/workFlowForm/dynamicForm/index.vue index ce8483c..edf1f98 100644 --- a/pages/workFlow/workFlowForm/dynamicForm/index.vue +++ b/pages/workFlow/workFlowForm/dynamicForm/index.vue @@ -37,6 +37,7 @@ this.userInfo = uni.getStorageSync('userInfo') || {} this.setting = data this.formConf = data.formConf ? JSON.parse(data.formConf) : {} + console.log(this.formConf,'formConf112') this.dataForm.id = data.id || null; this.dataForm.flowId = data.flowId; this.loading = true; @@ -74,91 +75,91 @@ }, fillFormData(form, data) { form.disabled = this.setting.readonly - const loop = (list, parent) => { - for (let i = 0; i < list.length; i++) { - let item = list[i] - let vModel = item.__vModel__ - let config = item.__config__ - if (vModel) { - let val = data.hasOwnProperty(vModel) ? data[vModel] : config.defaultValue - if (!config.isSubTable) config.defaultValue = val - if (this.isAdd || config.isSubTable) { //新增时候,默认当前 - if (config.defaultCurrent) { - if (config.jnpfKey === 'datePicker') { - if (!data.hasOwnProperty(vModel)) { - let format = this.jnpf.handelFormat(item.format) - let dateStr = this.jnpf.toDate(new Date().getTime(), format) - let time = format === 'yyyy' ? '-01-01 00:00:00' : format === 'yyyy-MM' ? - '-01 00:00:00' : format === 'yyyy-MM-dd' ? - ' 00:00:00' : '' - val = new Date(dateStr + time).getTime() - config.defaultValue = val - } - } - if (config.jnpfKey === 'timePicker') { - if (!data.hasOwnProperty(vModel)) { - config.defaultValue = this.jnpf.toDate(new Date(), item.format) - } - } - if (config.jnpfKey === 'organizeSelect' && this.userInfo.organizeIds?.length) { - config.defaultValue = item.multiple ? this.userInfo.organizeIds : - this.userInfo.organizeId - } - if (config.jnpfKey === 'posSelect' && this.userInfo.positionIds?.length) { - config.defaultValue = item.multiple ? this.userInfo.positionIds : - this.userInfo.positionId - } - const userId = this.userInfo.userId - if (config.jnpfKey === 'userSelect' && userId) { - config.defaultValue = item.multiple ? [userId] : userId; - } - if (config.jnpfKey === 'usersSelect' && userId) { - config.defaultValue = [userId + '--user']; - } - if (config.jnpfKey === 'sign' && this.userInfo.signImg) { - config.defaultValue = this.userInfo.signImg - } - } - } - let noShow = item.__config__.noShow || false, - isDisabled = item.disabled || false, - required = item.__config__.required || false, - isVisibility = false - if (!item.__config__.visibility || (Array.isArray(item.__config__.visibility) && item - .__config__.visibility.includes('app'))) isVisibility = true - if (this.setting.formOperates && this.setting.formOperates.length) { - let id = item.__config__.isSubTable ? parent?.__vModel__ + '-' + item?.__vModel__ : - item - .__vModel__ - let arr = this.setting.formOperates.filter(o => o.id === id) || [] - if (arr.length) { - let obj = arr[0] - noShow = !obj.read - isDisabled = !obj.write - required = obj.required ? obj.required : item.__config__.required - } - } - isDisabled = item.readonly ? item.readonly : isDisabled; - if (this.setting.readonly || config.disabled) isDisabled = true - if (this.setting.origin === 'scan') isDisabled = true - this.$set(item, 'disabled', isDisabled) - this.$set(item.__config__, 'noShow', noShow) - this.$set(item.__config__, 'required', required) - this.$set(item.__config__, 'isVisibility', isVisibility) - } else { - let noShow = item.__config__.noShow ? item.__config__.noShow : false, - isVisibility = false - if (!item.__config__.visibility || (Array.isArray(item.__config__.visibility) && item - .__config__.visibility.includes('app'))) isVisibility = true - this.$set(item.__config__, 'isVisibility', isVisibility) - this.$set(item.__config__, 'noShow', noShow) - } - if (item.__config__ && item.__config__.children && Array.isArray(item.__config__.children)) { - loop(item.__config__.children, item) - } - } - } - loop(form.fields) + // const loop = (list, parent) => { + // for (let i = 0; i < list?.length; i++) { + // let item = list[i] + // let vModel = item.__vModel__ + // let config = item.__config__ + // if (vModel) { + // let val = data.hasOwnProperty(vModel) ? data[vModel] : config.defaultValue + // if (!config.isSubTable) config.defaultValue = val + // if (this.isAdd || config.isSubTable) { //新增时候,默认当前 + // if (config.defaultCurrent) { + // if (config.jnpfKey === 'datePicker') { + // if (!data.hasOwnProperty(vModel)) { + // let format = this.jnpf.handelFormat(item.format) + // let dateStr = this.jnpf.toDate(new Date().getTime(), format) + // let time = format === 'yyyy' ? '-01-01 00:00:00' : format === 'yyyy-MM' ? + // '-01 00:00:00' : format === 'yyyy-MM-dd' ? + // ' 00:00:00' : '' + // val = new Date(dateStr + time).getTime() + // config.defaultValue = val + // } + // } + // if (config.jnpfKey === 'timePicker') { + // if (!data.hasOwnProperty(vModel)) { + // config.defaultValue = this.jnpf.toDate(new Date(), item.format) + // } + // } + // if (config.jnpfKey === 'organizeSelect' && this.userInfo.organizeIds?.length) { + // config.defaultValue = item.multiple ? this.userInfo.organizeIds : + // this.userInfo.organizeId + // } + // if (config.jnpfKey === 'posSelect' && this.userInfo.positionIds?.length) { + // config.defaultValue = item.multiple ? this.userInfo.positionIds : + // this.userInfo.positionId + // } + // const userId = this.userInfo.userId + // if (config.jnpfKey === 'userSelect' && userId) { + // config.defaultValue = item.multiple ? [userId] : userId; + // } + // if (config.jnpfKey === 'usersSelect' && userId) { + // config.defaultValue = [userId + '--user']; + // } + // if (config.jnpfKey === 'sign' && this.userInfo.signImg) { + // config.defaultValue = this.userInfo.signImg + // } + // } + // } + // let noShow = item.__config__.noShow || false, + // isDisabled = item.disabled || false, + // required = item.__config__.required || false, + // isVisibility = false + // if (!item.__config__.visibility || (Array.isArray(item.__config__.visibility) && item + // .__config__.visibility.includes('app'))) isVisibility = true + // if (this.setting.formOperates && this.setting.formOperates.length) { + // let id = item.__config__.isSubTable ? parent?.__vModel__ + '-' + item?.__vModel__ : + // item + // .__vModel__ + // let arr = this.setting.formOperates.filter(o => o.id === id) || [] + // if (arr.length) { + // let obj = arr[0] + // noShow = !obj.read + // isDisabled = !obj.write + // required = obj.required ? obj.required : item.__config__.required + // } + // } + // isDisabled = item.readonly ? item.readonly : isDisabled; + // if (this.setting.readonly || config.disabled) isDisabled = true + // if (this.setting.origin === 'scan') isDisabled = true + // this.$set(item, 'disabled', isDisabled) + // this.$set(item.__config__, 'noShow', noShow) + // this.$set(item.__config__, 'required', required) + // this.$set(item.__config__, 'isVisibility', isVisibility) + // } else { + // let noShow = item.__config__.noShow ? item.__config__.noShow : false, + // isVisibility = false + // if (!item.__config__.visibility || (Array.isArray(item.__config__.visibility) && item + // .__config__.visibility.includes('app'))) isVisibility = true + // this.$set(item.__config__, 'isVisibility', isVisibility) + // this.$set(item.__config__, 'noShow', noShow) + // } + // if (item.__config__ && item.__config__.children && Array.isArray(item.__config__.children)) { + // loop(item.__config__.children, item) + // } + // } + // } + // loop(form.fields) form.formData = data }, sumbitForm(data, callback) { diff --git a/static/image/logo.png b/static/image/logo.png new file mode 100644 index 0000000..44cdae3 Binary files /dev/null and b/static/image/logo.png differ diff --git a/static/image/logoT.png b/static/image/logoT.png new file mode 100644 index 0000000..b8e8c9b Binary files /dev/null and b/static/image/logoT.png differ diff --git a/store/modules/user.js b/store/modules/user.js index d324420..70806e6 100644 --- a/store/modules/user.js +++ b/store/modules/user.js @@ -14,6 +14,7 @@ export const useUserStore = defineStore({ token: "", userInfo: {}, menuList: [], + tenantId: '' }), getters: { getToken() { @@ -21,6 +22,11 @@ export const useUserStore = defineStore({ }, }, actions: { + setTenantId(tenantId) { + console.log(tenantId,'tenantId---') + this.tenantId = tenantId + uni.setStorageSync('tenantId', tenantId) + }, setToken(token) { this.token = token uni.setStorageSync('token', token) @@ -63,6 +69,7 @@ export const useUserStore = defineStore({ return new Promise((resolve, reject) => { logout().then(() => { this.setToken('') + this.setTenantId('') this.setCid('') this.setUserInfo({}) this.resetToken() diff --git a/uni_modules/lsj-upload/components/lsj-upload/LsjFile.js b/uni_modules/lsj-upload/components/lsj-upload/LsjFile.js index f3082c3..d4e3594 100644 --- a/uni_modules/lsj-upload/components/lsj-upload/LsjFile.js +++ b/uni_modules/lsj-upload/components/lsj-upload/LsjFile.js @@ -342,7 +342,7 @@ export class LsjFile { } form.append(name, item.file); let xmlRequest = new XMLHttpRequest(); - xmlRequest.open(method, `${url}?parentId=${parentId}`, true); + xmlRequest.open(method, `${url}`, true); for (let keys in header) { xmlRequest.setRequestHeader(keys, header[keys]) } diff --git a/uni_modules/lsj-upload/components/lsj-upload/lsj-upload.vue b/uni_modules/lsj-upload/components/lsj-upload/lsj-upload.vue index 9d7d003..f039c18 100644 --- a/uni_modules/lsj-upload/components/lsj-upload/lsj-upload.vue +++ b/uni_modules/lsj-upload/components/lsj-upload/lsj-upload.vue @@ -126,6 +126,7 @@ watch: { option(v) { // #ifdef APP-PLUS + console.log(v,'v22222222222') this.lsjFile && this.show(); // #endif } diff --git a/uni_modules/vk-uview-ui/components/u-radio-group/u-radio-group.vue b/uni_modules/vk-uview-ui/components/u-radio-group/u-radio-group.vue index 05599af..f27faef 100644 --- a/uni_modules/vk-uview-ui/components/u-radio-group/u-radio-group.vue +++ b/uni_modules/vk-uview-ui/components/u-radio-group/u-radio-group.vue @@ -163,7 +163,7 @@ export default { .u-radio-group { /* #ifndef MP || APP-NVUE */ - display: inline-flex; + // display: inline-flex; flex-wrap: wrap; /* #endif */ } diff --git a/unpackage/dist/cache/.vite/deps/_metadata.json b/unpackage/dist/cache/.vite/deps/_metadata.json index 219ae51..bdddcfb 100644 --- a/unpackage/dist/cache/.vite/deps/_metadata.json +++ b/unpackage/dist/cache/.vite/deps/_metadata.json @@ -1,13 +1,13 @@ { - "hash": "76a9be6d", - "configHash": "13b242e7", + "hash": "6b0aadf4", + "configHash": "9cd3108c", "lockfileHash": "e3b0c442", - "browserHash": "305fc28d", + "browserHash": "4216b578", "optimized": { "crypto-js": { "src": "../../../../../node_modules/crypto-js/index.js", "file": "crypto-js.js", - "fileHash": "cf97db96", + "fileHash": "d697042e", "needsInterop": true } }, diff --git a/unpackage/dist/cache/.vite/deps/crypto-js.js b/unpackage/dist/cache/.vite/deps/crypto-js.js index fc215ef..7ce70fc 100644 --- a/unpackage/dist/cache/.vite/deps/crypto-js.js +++ b/unpackage/dist/cache/.vite/deps/crypto-js.js @@ -23,9 +23,9 @@ var require_crypto = __commonJS({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/core.js +// E:/web/jnpf_app/node_modules/crypto-js/core.js var require_core = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/core.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/x64-core.js +// E:/web/jnpf_app/node_modules/crypto-js/x64-core.js var require_x64_core = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/x64-core.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/lib-typedarrays.js +// E:/web/jnpf_app/node_modules/crypto-js/lib-typedarrays.js var require_lib_typedarrays = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/lib-typedarrays.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/enc-utf16.js +// E:/web/jnpf_app/node_modules/crypto-js/enc-utf16.js var require_enc_utf16 = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/enc-utf16.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/enc-base64.js +// E:/web/jnpf_app/node_modules/crypto-js/enc-base64.js var require_enc_base64 = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/enc-base64.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/enc-base64url.js +// E:/web/jnpf_app/node_modules/crypto-js/enc-base64url.js var require_enc_base64url = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/enc-base64url.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/md5.js +// E:/web/jnpf_app/node_modules/crypto-js/md5.js var require_md5 = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/md5.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/sha1.js +// E:/web/jnpf_app/node_modules/crypto-js/sha1.js var require_sha1 = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/sha1.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/sha256.js +// E:/web/jnpf_app/node_modules/crypto-js/sha256.js var require_sha256 = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/sha256.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/sha224.js +// E:/web/jnpf_app/node_modules/crypto-js/sha224.js var require_sha224 = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/sha224.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/sha512.js +// E:/web/jnpf_app/node_modules/crypto-js/sha512.js var require_sha512 = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/sha512.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/sha384.js +// E:/web/jnpf_app/node_modules/crypto-js/sha384.js var require_sha384 = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/sha384.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/sha3.js +// E:/web/jnpf_app/node_modules/crypto-js/sha3.js var require_sha3 = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/sha3.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/ripemd160.js +// E:/web/jnpf_app/node_modules/crypto-js/ripemd160.js var require_ripemd160 = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/ripemd160.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/hmac.js +// E:/web/jnpf_app/node_modules/crypto-js/hmac.js var require_hmac = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/hmac.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/pbkdf2.js +// E:/web/jnpf_app/node_modules/crypto-js/pbkdf2.js var require_pbkdf2 = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/pbkdf2.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/evpkdf.js +// E:/web/jnpf_app/node_modules/crypto-js/evpkdf.js var require_evpkdf = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/evpkdf.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/cipher-core.js +// E:/web/jnpf_app/node_modules/crypto-js/cipher-core.js var require_cipher_core = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/cipher-core.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/mode-cfb.js +// E:/web/jnpf_app/node_modules/crypto-js/mode-cfb.js var require_mode_cfb = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/mode-cfb.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/mode-ctr.js +// E:/web/jnpf_app/node_modules/crypto-js/mode-ctr.js var require_mode_ctr = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/mode-ctr.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/mode-ctr-gladman.js +// E:/web/jnpf_app/node_modules/crypto-js/mode-ctr-gladman.js var require_mode_ctr_gladman = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/mode-ctr-gladman.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/mode-ofb.js +// E:/web/jnpf_app/node_modules/crypto-js/mode-ofb.js var require_mode_ofb = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/mode-ofb.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/mode-ecb.js +// E:/web/jnpf_app/node_modules/crypto-js/mode-ecb.js var require_mode_ecb = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/mode-ecb.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/pad-ansix923.js +// E:/web/jnpf_app/node_modules/crypto-js/pad-ansix923.js var require_pad_ansix923 = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/pad-ansix923.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/pad-iso10126.js +// E:/web/jnpf_app/node_modules/crypto-js/pad-iso10126.js var require_pad_iso10126 = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/pad-iso10126.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/pad-iso97971.js +// E:/web/jnpf_app/node_modules/crypto-js/pad-iso97971.js var require_pad_iso97971 = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/pad-iso97971.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/pad-zeropadding.js +// E:/web/jnpf_app/node_modules/crypto-js/pad-zeropadding.js var require_pad_zeropadding = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/pad-zeropadding.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/pad-nopadding.js +// E:/web/jnpf_app/node_modules/crypto-js/pad-nopadding.js var require_pad_nopadding = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/pad-nopadding.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/format-hex.js +// E:/web/jnpf_app/node_modules/crypto-js/format-hex.js var require_format_hex = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/format-hex.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/aes.js +// E:/web/jnpf_app/node_modules/crypto-js/aes.js var require_aes = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/aes.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/tripledes.js +// E:/web/jnpf_app/node_modules/crypto-js/tripledes.js var require_tripledes = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/tripledes.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/rc4.js +// E:/web/jnpf_app/node_modules/crypto-js/rc4.js var require_rc4 = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/rc4.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/rabbit.js +// E:/web/jnpf_app/node_modules/crypto-js/rabbit.js var require_rabbit = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/rabbit.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/rabbit-legacy.js +// E:/web/jnpf_app/node_modules/crypto-js/rabbit-legacy.js var require_rabbit_legacy = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/rabbit-legacy.js"(exports, module) { + "E:/web/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({ } }); -// ../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/index.js +// E:/web/jnpf_app/node_modules/crypto-js/index.js var require_crypto_js = __commonJS({ - "../../../../SourceCode/jnpf6.0/jnpf/jnpf-app-vue3-v6x/node_modules/crypto-js/index.js"(exports, module) { + "E:/web/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()); diff --git a/utils/define.js b/utils/define.js index ef48465..29f9134 100644 --- a/utils/define.js +++ b/utils/define.js @@ -1,17 +1,17 @@ /* process.env.NODE_ENV设置生产环境模式 */ // #ifndef MP -const baseURL = process.env.NODE_ENV === "production" ? "https://app.java.jnpfsoft.com" : "http://localhost:30000" +const baseURL = process.env.NODE_ENV === "production" ? "https://app.java.jnpfsoft.com" : "http://10.28.117.48:48080" const webSocketUrl = process.env.NODE_ENV === "production" ? "wss://app.java.jnpfsoft.com/websocket" : - "ws://localhost:30000/api/message/websocket" -const report = process.env.NODE_ENV === 'production' ? 'https://java.jnpfsoft.com/Report' : 'http://localhost:8200' -const pcURL = process.env.NODE_ENV === 'production' ? 'https://java.jnpfsoft.com' : 'http://localhost:3000' + "ws://10.28.117.183:30000/api/message/websocket" +const report = process.env.NODE_ENV === 'production' ? 'https://java.jnpfsoft.com/Report' : 'http://10.28.117.183:8200' +const pcURL = process.env.NODE_ENV === 'production' ? 'https://java.jnpfsoft.com' : 'http://10.28.117.183:3000' // #endif // #ifdef MP -const baseURL = "http://localhost:30000" -const webSocketUrl = "ws://localhost:30000/api/message/websocket" -const report = 'http://localhost:8200' -const pcURL = 'http://localhost:3000' +const baseURL = "http://10.28.117.48:30000" +const webSocketUrl = "ws://10.28.117.183:30000/api/message/websocket" +const report = 'http://10.28.117.183:8200' +const pcURL = 'http://10.28.117.183:3000' // #endif const define = { diff --git a/utils/request.js b/utils/request.js index 8508c1b..32b1687 100644 --- a/utils/request.js +++ b/utils/request.js @@ -6,7 +6,7 @@ import { const { getBackLocale } = useLocale(); -const host = define.baseURL +let host = define.baseURL const defaultOpt = { load: true } @@ -28,19 +28,30 @@ const defaultOpt = { function request(config) { config.options = Object.assign(defaultOpt, config.options) const token = uni.getStorageSync('token') || '' + const tenantId = uni.getStorageSync('tenantId') || '' const systemCode = uni.getStorageSync('systemCode') || '' const locale = getBackLocale() let header = { + "accept" : 'application/json, text/plain, */*', "App-Code": systemCode, "Content-Type": "application/json;charset=UTF-8", "Jnpf-Origin": "app", "Vue-Version": "3", "Accept-Language": locale, + "tenant-id": tenantId, ...config.header } header['App-Code'] = encodeURIComponent(header['App-Code']) if (token) header['Authorization'] = token + // 测试 todo + console.log(config.url,config.url.includes('admin-api'),'config.url.includes---') + if(config.url.includes('admin-api')){ + host = 'http://10.28.117.48:48080' + }else { + host = define.baseURL + } let url = config.url.indexOf('http') > -1 ? config.url : host + config.url + if (config.options.load) { uni.showLoading({ @@ -57,7 +68,7 @@ function request(config) { timeout: define.timeout, success: res => { if (res.statusCode === 200) { - if (res.data.code == 200) { + if (res.data.code == 200 || res.data.code == 0) { resolve(res.data) } else { ajaxError(res.data) @@ -88,7 +99,7 @@ function ajaxError(data) { title: data.msg || '请求出错,请重试', icon: 'none', complete() { - if (data.code === 600 || data.code === 601 || data.code === 602) { + if (data.code === 600 || data.code === 601 || data.code === 602 || data.code === 401) { setTimeout(() => { uni.removeStorageSync('token') uni.removeStorageSync('cid') diff --git a/utils/useDefineSetting.ts b/utils/useDefineSetting.ts index 75a6d85..3dc9d3c 100644 --- a/utils/useDefineSetting.ts +++ b/utils/useDefineSetting.ts @@ -131,7 +131,7 @@ export const useDefineSetting = () => { b = Math.floor(a * parseInt(values[2]) + (1 - a) * 255); return '#' + ('0' + r.toString(16)).slice(-2) + ('0' + g.toString(16)).slice(-2) + ('0' + b.toString(16)).slice(-2); } - + return { flowStatusList, flowUrgentList,
{{$t('common.cancelText')}}
{{$t('component.jnpf.common.selected')}}({{selectItems.length}})
+
{{$t('common.moreText')}}
{{item.label}}
{{$t('common.batchDelText')}}