From f78853d4c5ee88da1b0bc2861c27062152a08663 Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Wed, 22 Dec 2021 15:20:28 +0800 Subject: [PATCH 1/8] feat: There is no way the,iphone config --- src/App.vue | 2 +- src/main.js | 112 ++++++++++++++++++------------ src/pages/processedPage/index.vue | 30 ++++++++ src/router/index.js | 9 +++ 4 files changed, 109 insertions(+), 44 deletions(-) create mode 100644 src/pages/processedPage/index.vue diff --git a/src/App.vue b/src/App.vue index 77b537dbb..610b62e0c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -215,7 +215,7 @@ export default { && this.$route.name !== 'beeEnergyLogin' && this.$route.name !== 'mdLawLogin' && this.$route.name !== 'nuoBLogin' && this.$route.name !== 'sTLogin' && this.$route.name !== 'StandardSearch' && this.$route.name !== 'phoneIndex' - && this.$route.name !== 'blankPage') { + && this.$route.name !== 'blankPage' && this.$route.name !== 'processedPage' ) { this.isBoolean = true } else { this.isBoolean = false diff --git a/src/main.js b/src/main.js index dd100ae16..e05c9b850 100644 --- a/src/main.js +++ b/src/main.js @@ -107,6 +107,9 @@ router.beforeEach(function (to, from, next) { // 返回值为登录状态 /** 判断是不是在手机端操作 */ if (isMobile()) { + if(toName === 'processCenter'){ + window.close(); + } if ((token === null || token === '' ) && toName !== 'Login') { if(toName !== 'phoneIndex'){ sessionStorage.removeItem("param"); @@ -117,13 +120,18 @@ router.beforeEach(function (to, from, next) { } } else { if (toName.slice(0,5) !== 'phone') { - let paramPhone = 'taskIds=' + taskId + '&prcId=' + prcId + '&prcNum=' + prcNum + - '&taskAssignee=' + toName + '&prcName=' + prcName + '&prcType=' + prcType - let phoneRouter = 'phone' + toName.charAt(0).toUpperCase() + toName.slice(1) - next({path: phoneRouter + '?' + paramPhone}) + if(toName === 'LoginVerify'){ + next('/blankPage') + }else { + if(toName === 'blankPage' || toName === 'processedPage') { + next() + }else { + extractedVerify() + } + } }else { if(toName !== 'blankPage'){ - if(to.matched.length == 0){ + if(to.matched.length === 0){ next('/blankPage') }else { next() @@ -174,48 +182,54 @@ router.beforeEach(function (to, from, next) { let commitStatus = res.commitStatus === undefined ? 0 : res.commitStatus; let isNotFinished = res.isNotFinished === undefined ? 0 : res.isNotFinished; - if (hisCount && hisCount > 0) { // 业务系统 当前节点已完成 - // 根据type判断跳转具体流程页面 - if (prcType === '1') { - // 标准入库流程数据 - extracted("bzrkStep5"); - } else if (prcType === '4') { - //标准清单发布流程数据 - extracted("bzqdfbStep1-4"); - } else if (prcType === '5') { - //标准项目合规评估 标准维度 - if (path === "/xmpgStep2" || path === "/xmpgStep1" || path === "/xmpgStep1-2") { - extracted("xmpgStep1-2"); - } else { - extracted("xmpgStep1-7"); + if ((hisCount && hisCount > 0)) { // 业务系统 当前节点已完成 + if(isMobile()){ + next('/processedPage') + }else { + // 根据type判断跳转具体流程页面 + if (prcType === '1') { + // 标准入库流程数据 + extracted("bzrkStep5"); + } else if (prcType === '4') { + //标准清单发布流程数据 + extracted("bzqdfbStep1-4"); + } else if (prcType === '5') { + //标准项目合规评估 标准维度 + if (path === "/xmpgStep2" || path === "/xmpgStep1" || path === "/xmpgStep1-2") { + extracted("xmpgStep1-2"); + } else { + extracted("xmpgStep1-7"); + } + } else if (prcType === '6') { + //标准项目合规评估 项目维度 + if (path === "/xmpg2Step1" || path === "/xmpg2Step2" || path === "/xmpg2Step1-2") { + extracted("xmpg2Step1-2"); + } else { + extracted("xmpg2Step1-12"); + } + } else if (prcType === '8') { + // 未符合项整改 + extracted("wfhxzgStep5-1"); + } else if (prcType === '9') { + extracted("bzjdStep1-6"); + //标准调研流程 + } else if (prcType === '2') { + extracted("bzdyStep1-9"); + } else if (prcType === '3') { + //标准征求意见 + extracted("bzzqyjStep1-9"); + } else if (prcType === '10') { + //项目清单确认 + extracted("xmqdqrStep1-3"); + } } - } else if (prcType === '6') { - //标准项目合规评估 项目维度 - if (path === "/xmpg2Step1" || path === "/xmpg2Step2" || path === "/xmpg2Step1-2") { - extracted("xmpg2Step1-2"); - } else { - extracted("xmpg2Step1-12"); - } - } else if (prcType === '8') { - // 未符合项整改 - extracted("wfhxzgStep5-1"); - } else if (prcType === '9') { - extracted("bzjdStep1-6"); - //标准调研流程 - } else if (prcType === '2') { - extracted("bzdyStep1-9"); - } else if (prcType === '3') { - //标准征求意见 - extracted("bzzqyjStep1-9"); - } else if (prcType === '10') { - //项目清单确认 - extracted("xmqdqrStep1-3"); - } } else { // 业务系统 当前节点未完成 // commitStatus 大于0 表示当前节点存在未完成干活流程 // isNotFinished OA 系统显示接受任务 已置为已办 if (routerType && routerType === 'oa' &&isNotFinished && isNotFinished > 0 && commitStatus && commitStatus > 0) { - if (prcType === '3') { + if(isMobile()) { + extractedIphone() + }else if (prcType === '3') { //标准征求意见 接受节点 未完成 oa已办 跳转详情页面 if (path === '/bzzqyjStep3') { extracted2("processAcceptDetail","prcNum=" + prcNum + "&tabsName=AlreadyProcess"); @@ -246,7 +260,12 @@ router.beforeEach(function (to, from, next) { } } } else { - extracted3() + if(isMobile()) { + extractedIphone() + }else{ + extracted3() + } + } } function extracted(routerPath) { @@ -268,6 +287,13 @@ router.beforeEach(function (to, from, next) { next() } } + + function extractedIphone() { + let paramPhone = 'taskIds=' + taskId + '&prcId=' + prcId + '&prcNum=' + prcNum + + '&taskAssignee=' + toName + '&prcName=' + prcName + '&prcType=' + prcType + let phoneRouter = 'phone' + toName.charAt(0).toUpperCase() + toName.slice(1) + next({path: phoneRouter + '?' + paramPhone}) + } function extracted2(routerPath,param2) { if (token === null || token === '') { extractedLocalStorage(routerPath,param2); diff --git a/src/pages/processedPage/index.vue b/src/pages/processedPage/index.vue new file mode 100644 index 000000000..efd7a6d63 --- /dev/null +++ b/src/pages/processedPage/index.vue @@ -0,0 +1,30 @@ + + + + + diff --git a/src/router/index.js b/src/router/index.js index 4d6bc0a6d..d8bdd59cb 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -23,6 +23,15 @@ const routes = [ title: '手机提示页面', } }, + { + path: '/processedPage', + name: 'processedPage', + component: resolve => require(['@/pages/processedPage/index.vue'], resolve), + meta: { + requireAuth: true, + title: '手机提示页面', + } + }, { path: '*', redirect: '/loginVerify' From 6b7af8ad844035eb1e62a5b78c5202be5d02a56b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Wed, 22 Dec 2021 15:27:28 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E7=AB=AF=E9=80=89?= =?UTF-8?q?=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/cywbbzzxd/step4.vue | 11 +- .../pages/creatProcess/cywbbzzxd/step5.vue | 11 +- .../pages/creatProcess/cywbbzzxd/step6.vue | 11 +- .../pages/phone/bzqdfb/step4.vue | 61 +++-- .../pages/phone/cywbbzzxd/step4.vue | 241 ++++++++--------- .../pages/phone/cywbbzzxd/step5.vue | 243 +++++++++--------- .../pages/phone/cywbbzzxd/step6.vue | 243 +++++++++--------- .../pages/phone/jrbzhxh/step3.vue | 15 ++ 8 files changed, 438 insertions(+), 398 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step4.vue b/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step4.vue index 9fa6b4886..3431c448c 100644 --- a/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step4.vue @@ -359,14 +359,9 @@ export default { }, //驳回 beforeBack(){ - if (this.participantsData.length < 1) { - this.$message.warning("项目信息不能为空"); - } else { - this.participantsData.forEach(item => { - if (item.projectNumber === undefined) { - this.$message.warning("请完善项目信息"); - } - }); + if(!this.commentText){ + this.$message.warning('请填写审批意见') + }else{ this.wbbzform.commentText = this.commentText; let json = { participantsData: this.participantsData, diff --git a/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step5.vue b/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step5.vue index e3a5601a1..96cee0880 100644 --- a/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step5.vue @@ -359,19 +359,14 @@ export default { }, //驳回 beforeBack(){ - if (this.participantsData.length < 1) { - this.$message.warning("项目信息不能为空"); + if (!this.commentText) { + this.$message.warning("请填写审批意见"); } else { - this.participantsData.forEach(item => { - if (item.projectNumber === undefined) { - this.$message.warning("请完善项目信息"); - } - }); this.wbbzform.commentText = this.commentText; let json = { participantsData: this.participantsData, wbbzform: this.wbbzform, - signFlag: '2', + signFlag: "2" }; this.$refs["wbbzForm"].validate((valid) => { if (valid) { diff --git a/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step6.vue b/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step6.vue index e4889f526..29e5900d6 100644 --- a/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step6.vue +++ b/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step6.vue @@ -359,14 +359,9 @@ export default { }, //驳回 beforeBack(){ - if (this.participantsData.length < 1) { - this.$message.warning("项目信息不能为空"); - } else { - this.participantsData.forEach(item => { - if (item.projectNumber === undefined) { - this.$message.warning("请完善项目信息"); - } - }); + if(!this.commentText){ + this.$message.warning('请填写审批意见') + }else{ this.wbbzform.commentText = this.commentText; let json = { participantsData: this.participantsData, diff --git a/src/pages/processCenter/pages/phone/bzqdfb/step4.vue b/src/pages/processCenter/pages/phone/bzqdfb/step4.vue index 6680fdf58..43304b587 100644 --- a/src/pages/processCenter/pages/phone/bzqdfb/step4.vue +++ b/src/pages/processCenter/pages/phone/bzqdfb/step4.vue @@ -122,6 +122,9 @@ width="100px" align="center" label="文本状态"> + @@ -206,6 +209,7 @@ + @@ -232,7 +242,7 @@ import ProcessHeaderPhone from '../../components/ProcessHeaderPhone' import ProcessHeader from "../../components/ProcessHeader"; import ProcessFooter from "../../components/ProcessFooter"; import ProcessTitle from "../../components/ProcessTitle"; -import { inboundLiaisonDetail ,changeAssigneeNew} from "api/process"; +import {completeTask, inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew} from "@/api/process.js" export default { name: "phoneBzqdfbStep4", @@ -244,6 +254,9 @@ export default { }, data() { return { + modalshowflag: false, + phoneRoleList: [], + phoneDrawerTitle: '', nodeList:[], isTransfer: false, drawerTitle:'', @@ -304,26 +317,6 @@ export default { }; }, methods: { - //确认转办 - checkedRole (data) { - this.assigneeNewLoading = true - changeAssigneeNew({ - taskId: this.$route.query.taskIds, // 任务id - assignee: data[0].id, // 被委托人 - userId: this.$store.getters.userInfo.userId, // 委托人 - pId: this.$route.query.prcId // 流程实例 - }).then(res => { - this.isTransfer = false - if (res.success) { - this.drawerModal = false - this.$message.success('调整成功') - this.$router.push("/processCenter"); - this.processNum() - } else { - this.$message.warning(res.message) - } - }) - }, // 请求转换流程图 processNum (row) { axios.request({ @@ -341,9 +334,29 @@ export default { }, //转办事件 handleTransfer(){ - this.drawerModal = true - this.drawerTitle = '转办处理人' - this.selectPeople = row + this.modalshowflag = true + this.phoneRoleList = this.roleTransfer + this.phoneDrawerTitle = '转办处理人' + }, + drawerCheck (data) { + this.roleTransfer = data + this.phoneRoleList = this.roleTransfer + this.turnLoading = true + changeAssigneeNew({ + taskId: this.taskIds, // 任务id + assignee: data[0].id, // 被委托人 + userId: this.userId, // 委托人 + pId: this.pId // 流程实例 + }).then(res =>{ + if (res.success) { + this.turnLoading = false + this.$message.success('调整成功') + this.$router.push("/processCenter") + } else { + this.$message.warning(res.message) + } + }) + this.modalshowflag = false }, processTable() { this.$http.get("lawss/activiti/get_list_by_instance", { diff --git a/src/pages/processCenter/pages/phone/cywbbzzxd/step4.vue b/src/pages/processCenter/pages/phone/cywbbzzxd/step4.vue index 702cf9976..e2671b0ff 100644 --- a/src/pages/processCenter/pages/phone/cywbbzzxd/step4.vue +++ b/src/pages/processCenter/pages/phone/cywbbzzxd/step4.vue @@ -10,109 +10,112 @@
审批历史
-
- - - - +
+ + + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
{{ foldFormFlag ? '隐藏基础信息' : '展开基础信息' }} -
- +
+
@@ -258,7 +268,7 @@ import ProcessHeaderPhone from '../../components/ProcessHeaderPhone' import ProcessHeader from "../../components/ProcessHeader"; import ProcessTitle from "process/components/ProcessTitle"; import ProcessFooter from "process/components/ProcessFooter"; -import { changeAssigneeNew,inboundLiaisonDetail } from "api/process"; +import {completeTask, inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew} from "@/api/process.js" export default { name: "phoneCywbbzzxdStep4", @@ -270,6 +280,9 @@ export default { }, data() { return { + phoneshowflag: false, + phoneRoleList: [], + phoneDrawerTitle: '', //切换tab active: "1", foldFormFlag: true, @@ -371,14 +384,9 @@ export default { }, //驳回 beforeBack(){ - if (this.participantsData.length < 1) { - this.$message.warning("项目信息不能为空"); - } else { - this.participantsData.forEach(item => { - if (item.projectNumber === undefined) { - this.$message.warning("请完善项目信息"); - } - }); + if(!this.commentText){ + this.$message.warning('请填写审批意见') + }else{ this.wbbzform.commentText = this.commentText; let json = { participantsData: this.participantsData, @@ -445,29 +453,30 @@ export default { }, //转办按钮 handleTransfer(){ - this.drawerModal = true - this.drawerTitle = '转办处理人' - this.selectPeople = row + this.phoneshowflag = true + this.phoneRoleList = this.roleTransfer + this.phoneDrawerTitle = '转办处理人' }, //确认转办 - checkedTransferRole (data) { - this.assigneeNewLoading = true + drawerCheck (data) { + this.roleTransfer = data + this.phoneRoleList = this.roleTransfer + this.turnLoading = true changeAssigneeNew({ taskId: this.$route.query.taskIds, // 任务id assignee: data[0].id, // 被委托人 userId: this.$store.getters.userInfo.userId, // 委托人 pId: this.$route.query.prcId // 流程实例 - }).then(res => { - this.isTransfer = false + }).then(res =>{ if (res.success) { - this.drawerModal = false + this.turnLoading = false this.$message.success('调整成功') - this.$router.push("/processCenter"); - this.processNum() + this.$router.push("/processCenter") } else { this.$message.warning(res.message) } }) + this.modalshowflag = false }, }, computed: { diff --git a/src/pages/processCenter/pages/phone/cywbbzzxd/step5.vue b/src/pages/processCenter/pages/phone/cywbbzzxd/step5.vue index b595bafa5..788ae40bd 100644 --- a/src/pages/processCenter/pages/phone/cywbbzzxd/step5.vue +++ b/src/pages/processCenter/pages/phone/cywbbzzxd/step5.vue @@ -10,109 +10,112 @@
审批历史
-
- - - - +
+ + + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- {{ foldFormFlag ? '隐藏基础信息' : '展开基础信息' }} - +
+ {{ foldFormFlag ? '隐藏基础信息' : '展开基础信息' }}
- +
+
@@ -258,7 +268,7 @@ import ProcessHeaderPhone from '../../components/ProcessHeaderPhone' import ProcessHeader from "../../components/ProcessHeader"; import ProcessTitle from "process/components/ProcessTitle"; import ProcessFooter from "process/components/ProcessFooter"; -import { changeAssigneeNew,inboundLiaisonDetail } from "api/process"; +import {completeTask, inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew} from "@/api/process.js" export default { name: "phoneCywbbzzxdStep5", @@ -270,6 +280,9 @@ export default { }, data() { return { + phoneshowflag: false, + phoneRoleList: [], + phoneDrawerTitle: '', //切换tab active: "1", foldFormFlag: true, @@ -371,14 +384,9 @@ export default { }, //驳回 beforeBack(){ - if (this.participantsData.length < 1) { - this.$message.warning("项目信息不能为空"); - } else { - this.participantsData.forEach(item => { - if (item.projectNumber === undefined) { - this.$message.warning("请完善项目信息"); - } - }); + if(!this.commentText){ + this.$message.warning('请填写审批意见') + }else { this.wbbzform.commentText = this.commentText; let json = { participantsData: this.participantsData, @@ -445,29 +453,30 @@ export default { }, //转办按钮 handleTransfer(){ - this.drawerModal = true - this.drawerTitle = '转办处理人' - this.selectPeople = row + this.phoneshowflag = true + this.phoneRoleList = this.roleTransfer + this.phoneDrawerTitle = '转办处理人' }, //确认转办 - checkedTransferRole (data) { - this.assigneeNewLoading = true + drawerCheck (data) { + this.roleTransfer = data + this.phoneRoleList = this.roleTransfer + this.turnLoading = true changeAssigneeNew({ taskId: this.$route.query.taskIds, // 任务id assignee: data[0].id, // 被委托人 userId: this.$store.getters.userInfo.userId, // 委托人 pId: this.$route.query.prcId // 流程实例 - }).then(res => { - this.isTransfer = false + }).then(res =>{ if (res.success) { - this.drawerModal = false + this.turnLoading = false this.$message.success('调整成功') - this.$router.push("/processCenter"); - this.processNum() + this.$router.push("/processCenter") } else { this.$message.warning(res.message) } }) + this.modalshowflag = false }, }, computed: { diff --git a/src/pages/processCenter/pages/phone/cywbbzzxd/step6.vue b/src/pages/processCenter/pages/phone/cywbbzzxd/step6.vue index ad9f2a823..009955d7f 100644 --- a/src/pages/processCenter/pages/phone/cywbbzzxd/step6.vue +++ b/src/pages/processCenter/pages/phone/cywbbzzxd/step6.vue @@ -10,109 +10,112 @@
审批历史
-
- - - - +
+ + + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- {{ foldFormFlag ? '隐藏基础信息' : '展开基础信息' }} - +
+ {{ foldFormFlag ? '隐藏基础信息' : '展开基础信息' }}
- +
+
@@ -258,7 +268,7 @@ import ProcessHeaderPhone from '../../components/ProcessHeaderPhone' import ProcessHeader from "../../components/ProcessHeader"; import ProcessTitle from "process/components/ProcessTitle"; import ProcessFooter from "process/components/ProcessFooter"; -import { changeAssigneeNew,inboundLiaisonDetail } from "api/process"; +import {completeTask, inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew} from "@/api/process.js" export default { name: "phoneCywbbzzxdStep6", @@ -270,6 +280,9 @@ export default { }, data() { return { + phoneshowflag: false, + phoneRoleList: [], + phoneDrawerTitle: '', //切换tab active: "1", foldFormFlag: true, @@ -371,14 +384,9 @@ export default { }, //驳回 beforeBack(){ - if (this.participantsData.length < 1) { - this.$message.warning("项目信息不能为空"); - } else { - this.participantsData.forEach(item => { - if (item.projectNumber === undefined) { - this.$message.warning("请完善项目信息"); - } - }); + if(!this.commentText){ + this.$message.warning('请填写审批意见') + }else{ this.wbbzform.commentText = this.commentText; let json = { participantsData: this.participantsData, @@ -445,29 +453,30 @@ export default { }, //转办按钮 handleTransfer(){ - this.drawerModal = true - this.drawerTitle = '转办处理人' - this.selectPeople = row + this.phoneshowflag = true + this.phoneRoleList = this.roleTransfer + this.phoneDrawerTitle = '转办处理人' }, //确认转办 - checkedTransferRole (data) { - this.assigneeNewLoading = true + drawerCheck (data) { + this.roleTransfer = data + this.phoneRoleList = this.roleTransfer + this.turnLoading = true changeAssigneeNew({ taskId: this.$route.query.taskIds, // 任务id assignee: data[0].id, // 被委托人 userId: this.$store.getters.userInfo.userId, // 委托人 pId: this.$route.query.prcId // 流程实例 - }).then(res => { - this.isTransfer = false + }).then(res =>{ if (res.success) { - this.drawerModal = false + this.turnLoading = false this.$message.success('调整成功') - this.$router.push("/processCenter"); - this.processNum() + this.$router.push("/processCenter") } else { this.$message.warning(res.message) } }) + this.modalshowflag = false }, }, computed: { diff --git a/src/pages/processCenter/pages/phone/jrbzhxh/step3.vue b/src/pages/processCenter/pages/phone/jrbzhxh/step3.vue index e75d3001a..4730d0904 100644 --- a/src/pages/processCenter/pages/phone/jrbzhxh/step3.vue +++ b/src/pages/processCenter/pages/phone/jrbzhxh/step3.vue @@ -478,6 +478,21 @@ export default { console.log(item); this.$nextTick(() => { this.wbbzform = JSON.parse(JSON.stringify(item)); + this.wbbzform.comityOptionsOne.forEach(item =>{ + if(this.wbbzform.associationName === item.id){ + this.wbbzform.associationName = item.name + } + }) + this.wbbzform.comityOptionsTwo.forEach(item =>{ + if(this.wbbzform.committee === item.id){ + this.wbbzform.committee = item.name + } + }) + this.wbbzform.comityOptionsOneThree.forEach(item =>{ + if(this.wbbzform.workingGroup === item.id){ + this.wbbzform.workingGroup = item.name + } + }) this.associationData = item.associationData this.participantsData = item.participantsData item.fileName.forEach(itemId => { From 86a2d0fc49b6b9be578625a56c9304514d4d656f Mon Sep 17 00:00:00 2001 From: shenyanpei Date: Wed, 22 Dec 2021 16:45:41 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E6=97=A5=E5=8E=86=E8=AE=AE=E9=A2=98?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E3=80=81=E6=9C=AA=E7=AC=A6=E5=90=88=E9=A1=B9?= =?UTF-8?q?=E6=95=B4=E6=94=B9=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/phone.js | 1 + src/api/process.js | 19 +- src/pages/localTool/standCalendar/index.vue | 555 ++++++++++++++++-- .../pages/creatProcess/wfhxzg/step1.vue | 4 + .../pages/creatProcess/wfhxzg/step3.vue | 2 + .../pages/creatProcess/wfhxzg/step4.vue | 3 +- 6 files changed, 542 insertions(+), 42 deletions(-) diff --git a/src/api/phone.js b/src/api/phone.js index ae39051e5..f1dbbb271 100644 --- a/src/api/phone.js +++ b/src/api/phone.js @@ -1,5 +1,6 @@ import axios from "@/common/axiosV2"; +// 手机端查询人 export function phoneUser(params) { return axios({ url: "api/sys/user/getUserByPhone", diff --git a/src/api/process.js b/src/api/process.js index 1c260eefc..6bb77e017 100644 --- a/src/api/process.js +++ b/src/api/process.js @@ -713,7 +713,7 @@ export function workGroup(data) { params: data }) } -// +// 手机端查询token export function loginMobile(data) { return axios({ url: 'api/lawss/activiti/loginMobile', @@ -721,3 +721,20 @@ export function loginMobile(data) { params: data }) } + +// 日历信息编辑 +export function updateMeet(data) { + return axios({ + url: '/api/sapMeetInfo/updateMeeting', + method: 'post', + params: data + }) +} + +export function upFile(data) { + return axios({ + url: '/api/att/attFile/upload', + method: 'post', + data + }) +} diff --git a/src/pages/localTool/standCalendar/index.vue b/src/pages/localTool/standCalendar/index.vue index d180f3e1e..108d53c8d 100644 --- a/src/pages/localTool/standCalendar/index.vue +++ b/src/pages/localTool/standCalendar/index.vue @@ -17,8 +17,8 @@
-
- 今天 +
+ 今天
@@ -61,41 +61,228 @@ 会议 会议 + + 编辑会议内容 + {{ item.title }} -
- 会议时间 : {{ $moment(item.date).format('YYYY-MM-DD HH:mm') }} -
-
- 参与人 : {{ item.partPeople.join('、') }} -
-
- 会议内容 : {{ item.content }} -
-
- 会议地点 : {{ item.place }} -
-
+
+
+ 会议时间 : {{ $moment(item.date).format('YYYY-MM-DD HH:mm:ss') }} +
+
+ 参与人 : {{ item.partPeople.join('、') }} +
+
+ 会议内容 : {{ item.content }} +
+
+ 会议地点 : {{ item.place }} +
+
+ + + +
+ + + + + +
+ + 新增 + + + 批量删除 + +
+ + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+ 添加 + 批量删除 +
+ + + + + + + +
+ + + + + + + 上传文件 + + + +
+
+ +
+ + +
+ + + + + + + + + + + + + + + + + + +
+ +
+
@@ -343,7 +814,7 @@ export default { } /deep/ .el-card__body { - padding: 10px; + padding: 5px 0px 10px 10px; } .card_info_empty { @@ -354,27 +825,33 @@ export default { height: 190px; margin-top: 10px; - .content_text { - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - word-break: break-all; - line-height: normal; - margin-top: 10px; - font-size: 5px; - } + .content_style { + height: 150px; + overflow-y: auto; + width: 100%; - .content_text2 { - text-overflow: ellipsis; - overflow: hidden; - text-overflow: ellipsis; - display: -webkit-box; - -webkit-line-clamp: 4; - line-clamp: 4; - -webkit-box-orient: vertical; - line-height: normal; - margin-top: 10px; - font-size: 5px; + .content_text { + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + word-break: break-all; + line-height: normal; + margin-top: 10px; + font-size: 5px; + } + + .content_text2 { + text-overflow: ellipsis; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 4; + line-clamp: 4; + -webkit-box-orient: vertical; + line-height: normal; + margin-top: 10px; + font-size: 5px; + } } } } diff --git a/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue b/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue index 81bf27d9b..9d794af6a 100644 --- a/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue @@ -199,6 +199,7 @@ @import '~@/assets/styles/style'; .wfhxzgStep1 { + /deep/.el-table--scrollable-y .el-table__body-wrapper { + height: calc(100% - 80px) !important; + } /deep/.el-drawer__container { .prc-content-border { border: none; diff --git a/src/pages/processCenter/pages/creatProcess/wfhxzg/step3.vue b/src/pages/processCenter/pages/creatProcess/wfhxzg/step3.vue index 8edf17f52..5871570a6 100644 --- a/src/pages/processCenter/pages/creatProcess/wfhxzg/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/wfhxzg/step3.vue @@ -262,6 +262,8 @@ export default { this.$nextTick(() => { if (item.passInfo !== 0) { this.passInfo = JSON.parse(JSON.stringify(item)).passInfo + let fileData = JSON.parse(JSON.stringify(item)).dockUserList + this.dataList = fileData[0].standardInfoList } else { let fileData = JSON.parse(JSON.stringify(item)).dockUserList for (let i = 0; i
-
+
Date: Wed, 22 Dec 2021 16:48:46 +0800 Subject: [PATCH 4/8] feat: There is no way the,iphone config --- src/main.js | 53 ++++++++++++++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 25 deletions(-) diff --git a/src/main.js b/src/main.js index e05c9b850..de2afbb39 100644 --- a/src/main.js +++ b/src/main.js @@ -106,38 +106,41 @@ router.beforeEach(function (to, from, next) { } // 返回值为登录状态 /** 判断是不是在手机端操作 */ + debugger if (isMobile()) { if(toName === 'processCenter'){ - window.close(); - } - if ((token === null || token === '' ) && toName !== 'Login') { - if(toName !== 'phoneIndex'){ - sessionStorage.removeItem("param"); - sessionStorage.setItem('param',JSON.stringify(param4)) - next('/phoneIndex') - }else { - next() - } - } else { - if (toName.slice(0,5) !== 'phone') { + window.opener = null; + window.open("about:blank", "_self").close() + }else { + if ((token === null || token === '' ) && toName !== 'Login') { + if(toName !== 'phoneIndex'){ + sessionStorage.removeItem("param"); + sessionStorage.setItem('param',JSON.stringify(param4)) + next('/phoneIndex') + }else { + next() + } + } else { + if (toName.slice(0,5) !== 'phone') { if(toName === 'LoginVerify'){ - next('/blankPage') - }else { - if(toName === 'blankPage' || toName === 'processedPage') { - next() - }else { - extractedVerify() - } - } - }else { - if(toName !== 'blankPage'){ - if(to.matched.length === 0){ next('/blankPage') + }else { + if(toName === 'blankPage' || toName === 'processedPage') { + next() + }else { + extractedVerify() + } + } + }else { + if(toName !== 'blankPage'){ + if(to.matched.length === 0){ + next('/blankPage') + }else { + next() + } }else { next() } - }else { - next() } } } From ee41b01f3d590c4be2e2de6fd7d76d2b3d04a3ea Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Wed, 22 Dec 2021 17:25:29 +0800 Subject: [PATCH 5/8] feat: There is no way the,iphone config --- src/main.js | 10 ++++++++-- src/pages/blankPage/index.vue | 15 +++++++++++++-- src/pages/processedPage/index.vue | 15 +++++++++++++-- 3 files changed, 34 insertions(+), 6 deletions(-) diff --git a/src/main.js b/src/main.js index de2afbb39..5faa4726c 100644 --- a/src/main.js +++ b/src/main.js @@ -109,8 +109,14 @@ router.beforeEach(function (to, from, next) { debugger if (isMobile()) { if(toName === 'processCenter'){ - window.opener = null; - window.open("about:blank", "_self").close() + const userAgent = navigator.userAgent; + if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") !=-1) { + window.location.href = "about:blank" + }else { + window.opener = null; + window.open("about:blank", "_self"); + window.close(); + } }else { if ((token === null || token === '' ) && toName !== 'Login') { if(toName !== 'phoneIndex'){ diff --git a/src/pages/blankPage/index.vue b/src/pages/blankPage/index.vue index 4d0fc0db7..dc2576abd 100644 --- a/src/pages/blankPage/index.vue +++ b/src/pages/blankPage/index.vue @@ -2,7 +2,7 @@
当前任务不支持手机端处理
- 返回 + 返回
@@ -16,7 +16,18 @@ export default { data() { return {} }, - methods: {} + methods: { + closeWindow(){ + const userAgent = navigator.userAgent; + if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") !=-1) { + window.location.href = "about:blank" + }else { + window.opener = null; + window.open("about:blank", "_self"); + window.close(); + } + } + } } diff --git a/src/pages/processedPage/index.vue b/src/pages/processedPage/index.vue index efd7a6d63..5acb9331c 100644 --- a/src/pages/processedPage/index.vue +++ b/src/pages/processedPage/index.vue @@ -2,7 +2,7 @@
当前任务已处理
- 返回 + 返回
@@ -16,7 +16,18 @@ export default { data() { return {} }, - methods: {} + methods: { + closeWindow(){ + const userAgent = navigator.userAgent; + if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") !=-1) { + window.location.href = "about:blank" + }else { + window.opener = null; + window.open("about:blank", "_self"); + window.close(); + } + } + } } From 068b79f6b6f889b7cf20f0202b4c1959aae8f314 Mon Sep 17 00:00:00 2001 From: yanyizhou <2311759275@qq.com> Date: Wed, 22 Dec 2021 17:58:36 +0800 Subject: [PATCH 6/8] =?UTF-8?q?=E5=88=86=E8=A7=A3=E5=8D=95=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../details/otherStandardDetails/index.vue | 253 +++++++++++++++++- 1 file changed, 245 insertions(+), 8 deletions(-) diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue index ee6e15663..173972eba 100644 --- a/src/pages/details/otherStandardDetails/index.vue +++ b/src/pages/details/otherStandardDetails/index.vue @@ -656,6 +656,12 @@ v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'd5b28957b5105c805e90a16fd5056a45' : '824f3bf9edef83fc7488917136167232'" >关联条款 + 编辑
- - - - - - + + --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0){ + this.editResolveListShowflag = true + let editItem = JSON.parse(JSON.stringify(this.selectedItemList[0])) + this.resolveListForm = editItem + this.resolveListForm.termsConditions = this.resolveListForm.termsConditions?this.resolveListForm.termsConditions.replace(/<.*?>/ig, ' '):'' + // this.resolveListForm.readContent = this.readContent?this.readContent.replace(/<.*?>/ig, ' '):'' + }else { + this.$message.warning('请选择一条数据') } }, + saveEditInfo(){ + console.log('2530',this.resolveListForm) + this.resolveListForm.xccssrq = this.resolveListForm.xccssrq.join(',') + this.resolveListForm.zccssrq = this.resolveListForm.zccssrq.join(',') + this.$http.putData( + 'SarStandItems/sar-stand-items/updateSarItemAndInterpretation', + this.resolveListForm, + { + _this: this, + }, + (res) => { + console.log(res) + if (res.ok){ + this.$message.success('修改成功') + this.resetEditResolveListForm() + this.showItemsModel() + } + } + ) + }, + resetEditResolveListForm(){ + this.editResolveListShowflag = false + }, // 分页点击后方法 pageChange(page) { this.standItemSearch.page = page @@ -3298,6 +3525,16 @@ export default {