From 0d0b613c4d0c18d30c444eec2b6ec6d003d307c7 Mon Sep 17 00:00:00 2001 From: Xia Zekun Date: Sun, 7 Apr 2024 15:10:39 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E5=BA=9F=E6=AD=A2=E6=A0=87=E5=87=86?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/search/GeneralSearch.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/search/GeneralSearch.vue b/src/views/dashboard/search/GeneralSearch.vue index bce978c4..6b2a34ec 100644 --- a/src/views/dashboard/search/GeneralSearch.vue +++ b/src/views/dashboard/search/GeneralSearch.vue @@ -85,7 +85,7 @@

{{ resourceTypeOptions.find(i => i.key === item.resourceType).label }}

-
+

{{ StandardStatus.ABOLISH.text }}

{{ $t('dashboard.generalSearch.releaseDate') }} {{ item.releaseDate || global.emptyLine }}

@@ -134,7 +134,7 @@ import { } from '@/api/dashboard' import { isHasPermission } from '@/utils/hasPermission' import { mapGetters } from 'vuex' -import { StandardStatus } from '@/enums/commonEnums' +import { StandardStatus, EnterpriseStandardStatus } from '@/enums/commonEnums' import { getDomesticStandardFormModal, getDomesticStandardDetail, @@ -244,6 +244,18 @@ export default { }, methods: { isHasPermission, + + // 判断是否是废止标准 + judgeAbolish (item) { + // console.log('judgeAbolish') + // console.log('item', item) + if (item.resourceType === '3') { // 企业标准 判断 废止 + return item.standardState === EnterpriseStandardStatus.ABOLISH.value + } else { // 国内标准 海外标准 判断 废止 + return item.standardState === StandardStatus.ABOLISH.value + } + }, + // 获取要显示数量的筛选条件的数据 initFilterData (callback) { const param = {} From 25be1e5f702ca307f9dfa2cdb9b5175efd753204 Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Mon, 8 Apr 2024 10:27:40 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E3=80=90update=E3=80=91=E5=8D=95=E7=82=B9?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=B2=A1=E6=9C=89=E8=B4=A6=E6=88=B7=E7=AD=89?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8F=90=E7=A4=BA=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 57 ++++++++++++++++++++++++++++++----------------- 1 file changed, 36 insertions(+), 21 deletions(-) diff --git a/src/permission.js b/src/permission.js index e8598cf9..c4ed6a6b 100644 --- a/src/permission.js +++ b/src/permission.js @@ -15,29 +15,44 @@ const whiteList = ['/user/login', '/user/register', '/user/register-result', '/u whiteList.push(OAUTH2_LOGIN_PAGE_PATH) router.beforeEach(async (to, from, next) => { - // 单点登录 + // 单点登录-OA单点登录 if (to.query.ticket) { - const { result } = await getTodoSSOUserInfo({ ticket: to.query.ticket }) - const userInfo = result.userInfo - Vue.ls.set(ACCESS_TOKEN, result.token, 7 * 24 * 60 * 60 * 1000) - Vue.ls.set(USER_NAME, userInfo.username, 7 * 24 * 60 * 60 * 1000) - Vue.ls.set(USER_INFO, userInfo, 7 * 24 * 60 * 60 * 1000) - Vue.ls.set(UI_CACHE_DB_DICT_DATA, result.sysAllDictItems, 7 * 24 * 60 * 60 * 1000) - store.commit('SET_TOKEN', result.token) - store.commit('SET_INFO', userInfo) - store.commit('SET_NAME', { username: userInfo.username, realname: userInfo.realname, welcome: welcome() }) - store.commit('SET_AVATAR', userInfo.avatar) + const { result, success, message } = await getTodoSSOUserInfo({ ticket: to.query.ticket }) + if (!success) { + Vue.prototype.$message.warning(message) + setTimeout(() => { + next('/') + }, 2000) + } else { + const userInfo = result.userInfo + Vue.ls.set(ACCESS_TOKEN, result.token, 7 * 24 * 60 * 60 * 1000) + Vue.ls.set(USER_NAME, userInfo.username, 7 * 24 * 60 * 60 * 1000) + Vue.ls.set(USER_INFO, userInfo, 7 * 24 * 60 * 60 * 1000) + Vue.ls.set(UI_CACHE_DB_DICT_DATA, result.sysAllDictItems, 7 * 24 * 60 * 60 * 1000) + store.commit('SET_TOKEN', result.token) + store.commit('SET_INFO', userInfo) + store.commit('SET_NAME', { username: userInfo.username, realname: userInfo.realname, welcome: welcome() }) + store.commit('SET_AVATAR', userInfo.avatar) + } } else if (to.query.code) { - const { result } = await getSSOUserInfo({ code: to.query.code }) - const userInfo = result.userInfo - Vue.ls.set(ACCESS_TOKEN, result.token, 7 * 24 * 60 * 60 * 1000) - Vue.ls.set(USER_NAME, userInfo.username, 7 * 24 * 60 * 60 * 1000) - Vue.ls.set(USER_INFO, userInfo, 7 * 24 * 60 * 60 * 1000) - Vue.ls.set(UI_CACHE_DB_DICT_DATA, result.sysAllDictItems, 7 * 24 * 60 * 60 * 1000) - store.commit('SET_TOKEN', result.token) - store.commit('SET_INFO', userInfo) - store.commit('SET_NAME', { username: userInfo.username, realname: userInfo.realname, welcome: welcome() }) - store.commit('SET_AVATAR', userInfo.avatar) + // 研发大前台单点登录 + const { result, success, message } = await getSSOUserInfo({ code: to.query.code }) + if (!success) { + Vue.prototype.$message.warning(message) + setTimeout(() => { + next('/') + }, 2000) + } else { + const userInfo = result.userInfo + Vue.ls.set(ACCESS_TOKEN, result.token, 7 * 24 * 60 * 60 * 1000) + Vue.ls.set(USER_NAME, userInfo.username, 7 * 24 * 60 * 60 * 1000) + Vue.ls.set(USER_INFO, userInfo, 7 * 24 * 60 * 60 * 1000) + Vue.ls.set(UI_CACHE_DB_DICT_DATA, result.sysAllDictItems, 7 * 24 * 60 * 60 * 1000) + store.commit('SET_TOKEN', result.token) + store.commit('SET_INFO', userInfo) + store.commit('SET_NAME', { username: userInfo.username, realname: userInfo.realname, welcome: welcome() }) + store.commit('SET_AVATAR', userInfo.avatar) + } } // 处理是否是嵌入其他系统,是需要隐藏左侧和上面,如果当前值是true,就不需要修改了 const isEmbedded = store.getters.isEmbedded From eb203248a3b99aea2ac80cef7bad47adff6dde42 Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Mon, 8 Apr 2024 11:52:38 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E3=80=90update=E3=80=91=20=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=8E=AF=E5=A2=83=20iam=E8=B7=AF=E5=BE=84=E7=9A=84?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.srms | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.srms b/.env.srms index fcc0a865..210993f1 100644 --- a/.env.srms +++ b/.env.srms @@ -1,5 +1,5 @@ NODE_ENV=production VUE_APP_TAG_FLAG=1 -VUE_APP_LOGIN_PAGE='https://iam-uat.sinotruk.com:7011/idp/oauth2/authorize?redirect_uri=http://srms-test.sinotruk.com/dashboard/analysis&state=123&client_id=SRMS&response_type=code' +VUE_APP_LOGIN_PAGE='https://iam-uat-new.sinotruk.com/idp/oauth2/authorize?redirect_uri=http://srms-test.sinotruk.com/dashboard/analysis&state=123&client_id=SRMS&response_type=code' VUE_APP_CURRENT_SYSTEM='IAM' -VUE_APP_LOGOUT_PAGE='https://iam-uat.sinotruk.com:7011/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=http://srms-test.sinotruk.com/dashboard/analysis&redirectToLogin=true&entityId=SRMS' \ No newline at end of file +VUE_APP_LOGOUT_PAGE='https://iam-uat-new.sinotruk.com/idp/profile/OAUTH2/Redirect/GLO?redirctToUrl=http://srms-test.sinotruk.com/dashboard/analysis&redirectToLogin=true&entityId=SRMS' \ No newline at end of file From 45317a946f9fd65e5624ce113959581ffc92354d Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Mon, 8 Apr 2024 12:03:21 +0800 Subject: [PATCH 4/9] =?UTF-8?q?[update]=20=E5=8F=8B=E6=83=85=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E6=95=B0=E6=8D=AE=E4=B8=8D=E8=B6=85=E8=BF=876?= =?UTF-8?q?=E6=9D=A1=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/firendshipLinkManage/FriendshipLinkList.vue | 5 +++++ .../firendshipLinkManage/modules/FriendshipLinkModal.vue | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/views/system/firendshipLinkManage/FriendshipLinkList.vue b/src/views/system/firendshipLinkManage/FriendshipLinkList.vue index 5c6373f6..8b27a36f 100644 --- a/src/views/system/firendshipLinkManage/FriendshipLinkList.vue +++ b/src/views/system/firendshipLinkManage/FriendshipLinkList.vue @@ -32,6 +32,11 @@
+
+ + {{ $t('newlyAdded') }} +
+
Date: Mon, 8 Apr 2024 14:28:43 +0800 Subject: [PATCH 5/9] =?UTF-8?q?=E3=80=90update=E3=80=91=20=E8=B7=AF?= =?UTF-8?q?=E7=94=B1document=20=E6=8D=A2doc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../documentTool/documentComparison/ComparisonResults.vue | 2 +- .../documentTool/documentComparison/DocumentComparison.vue | 6 +++--- .../documentComparison/DocumentDataComparison.vue | 4 ++-- .../documentTool/documentComparison/InitiateComparison.vue | 4 ++-- src/views/documentTool/documentSplit/DocumentSplit.vue | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/documentTool/documentComparison/ComparisonResults.vue b/src/views/documentTool/documentComparison/ComparisonResults.vue index 4de8714b..c4c34524 100644 --- a/src/views/documentTool/documentComparison/ComparisonResults.vue +++ b/src/views/documentTool/documentComparison/ComparisonResults.vue @@ -186,7 +186,7 @@ export default { ...mapGetters(['userInfo']), goBack () { this.$router.push({ - path: '/documentTool/documentComparison' + path: '/docTool/docComparison' }) }, // 评论按钮点击 diff --git a/src/views/documentTool/documentComparison/DocumentComparison.vue b/src/views/documentTool/documentComparison/DocumentComparison.vue index 4f748056..0d7cf216 100644 --- a/src/views/documentTool/documentComparison/DocumentComparison.vue +++ b/src/views/documentTool/documentComparison/DocumentComparison.vue @@ -286,7 +286,7 @@ export default { item.isDisplay = 1 } this.$router.push({ - path: '/documentTool/ComparisonResults', + path: '/docTool/ComparisonResults', query: { id: item.id, isDisplay: item.isDisplay @@ -325,7 +325,7 @@ export default { */ edit (row) { this.$router.push({ - path: '/documentTool/DocumentDataComparison', + path: '/docTool/DocDataComparison', query: { id: row.id } @@ -336,7 +336,7 @@ export default { */ initiatingProcessClick () { this.$router.push({ - path: '/documentTool/InitiateComparison' + path: '/docTool/InitiateComparison' }) }, /** diff --git a/src/views/documentTool/documentComparison/DocumentDataComparison.vue b/src/views/documentTool/documentComparison/DocumentDataComparison.vue index 0961226a..b69ebc60 100644 --- a/src/views/documentTool/documentComparison/DocumentDataComparison.vue +++ b/src/views/documentTool/documentComparison/DocumentDataComparison.vue @@ -293,7 +293,7 @@ export default { // 查看对比结果按钮点击 viewTheComparisonResultsClick () { this.$router.push({ - path: '/documentTool/ComparisonResults', + path: '/docTool/ComparisonResults', query: { id: this.$route.query.id, isDisplay: 2 @@ -475,7 +475,7 @@ export default { }, handleBack () { this.$router.push({ - path: '/documentTool/documentComparison' + path: '/docTool/docComparison' }) }, changeLeftCatalogueShow () { diff --git a/src/views/documentTool/documentComparison/InitiateComparison.vue b/src/views/documentTool/documentComparison/InitiateComparison.vue index b394ec6d..b63042e7 100644 --- a/src/views/documentTool/documentComparison/InitiateComparison.vue +++ b/src/views/documentTool/documentComparison/InitiateComparison.vue @@ -284,7 +284,7 @@ export default { ...mapGetters(['userInfo']), goBack () { this.$router.push({ - path: '/documentTool/documentComparison' + path: '/docTool/docComparison' }) }, searchQueryLeft () { @@ -354,7 +354,7 @@ export default { this.loading = false this.$message.success(this.$t('operationSuccessful')) this.$router.push({ - path: '/documentTool/DocumentDataComparison', + path: '/docTool/DocDataComparison', query: { id: res.result } diff --git a/src/views/documentTool/documentSplit/DocumentSplit.vue b/src/views/documentTool/documentSplit/DocumentSplit.vue index 6d27cc09..9f2d571f 100644 --- a/src/views/documentTool/documentSplit/DocumentSplit.vue +++ b/src/views/documentTool/documentSplit/DocumentSplit.vue @@ -288,7 +288,7 @@ export default { // 编辑 handleEdit (record) { this.$router.push({ - path: '/documentTool/DocumentSplitDetail', + path: '/docTool/DocSplitDetail', query: { infoId: record.id, infoNumber: record.serialNumber, @@ -303,7 +303,7 @@ export default { */ handleDetail ({ id }) { this.$openPageNewSheet({ - path: '/documentTool/StandardSplitSheet', + path: '/docTool/StandardSplitSheet', query: { id } From d0fd7f1798b6e417d78b72efaa95f912c35e6069 Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Mon, 8 Apr 2024 15:31:47 +0800 Subject: [PATCH 6/9] =?UTF-8?q?=E3=80=90update=E3=80=91=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E5=90=8E=E9=87=8D=E5=AE=9A=E5=90=91=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E7=9A=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/permission.js b/src/permission.js index c4ed6a6b..facad05d 100644 --- a/src/permission.js +++ b/src/permission.js @@ -19,10 +19,9 @@ router.beforeEach(async (to, from, next) => { if (to.query.ticket) { const { result, success, message } = await getTodoSSOUserInfo({ ticket: to.query.ticket }) if (!success) { - Vue.prototype.$message.warning(message) - setTimeout(() => { - next('/') - }, 2000) + Vue.prototype.$message.warning(message, 3, () => { + window.location.replace(process.env.VUE_APP_LOGOUT_PAGE) + }) } else { const userInfo = result.userInfo Vue.ls.set(ACCESS_TOKEN, result.token, 7 * 24 * 60 * 60 * 1000) @@ -38,10 +37,9 @@ router.beforeEach(async (to, from, next) => { // 研发大前台单点登录 const { result, success, message } = await getSSOUserInfo({ code: to.query.code }) if (!success) { - Vue.prototype.$message.warning(message) - setTimeout(() => { - next('/') - }, 2000) + Vue.prototype.$message.warning(message, 3, () => { + window.location.replace(process.env.VUE_APP_LOGOUT_PAGE) + }) } else { const userInfo = result.userInfo Vue.ls.set(ACCESS_TOKEN, result.token, 7 * 24 * 60 * 60 * 1000) From 124d119249e847093c891cdccee53dc2b63d69f6 Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Mon, 8 Apr 2024 16:21:37 +0800 Subject: [PATCH 7/9] =?UTF-8?q?=E3=80=90update=E3=80=91=E4=BF=AE=E6=94=B9b?= =?UTF-8?q?ug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/permission.js b/src/permission.js index facad05d..fb0166ec 100644 --- a/src/permission.js +++ b/src/permission.js @@ -22,6 +22,8 @@ router.beforeEach(async (to, from, next) => { Vue.prototype.$message.warning(message, 3, () => { window.location.replace(process.env.VUE_APP_LOGOUT_PAGE) }) + // 必须切断执行 + return } else { const userInfo = result.userInfo Vue.ls.set(ACCESS_TOKEN, result.token, 7 * 24 * 60 * 60 * 1000) @@ -40,6 +42,8 @@ router.beforeEach(async (to, from, next) => { Vue.prototype.$message.warning(message, 3, () => { window.location.replace(process.env.VUE_APP_LOGOUT_PAGE) }) + // 必须切断执行 + return } else { const userInfo = result.userInfo Vue.ls.set(ACCESS_TOKEN, result.token, 7 * 24 * 60 * 60 * 1000) From cac20439f5b649c7693690a40d164551ec0dfd8a Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Tue, 9 Apr 2024 09:04:49 +0800 Subject: [PATCH 8/9] =?UTF-8?q?[update]=20=E4=BC=81=E6=A0=87=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E6=B5=81=E7=A8=8B=E4=B8=AD=E9=85=8D=E5=90=88=E5=8D=95?= =?UTF-8?q?=E4=BD=8D=E5=92=8C=E9=9A=B6=E5=B1=9E=E5=B7=A5=E4=BD=9C=E7=BB=84?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=94=B9=E4=B8=BA=E9=9D=9E=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/ContactEnterSendTaskModal.vue | 9 --------- .../modules/BaseInfoTableModal.vue | 9 --------- .../modules/ApprovalBaseInfo.vue | 18 ------------------ 3 files changed, 36 deletions(-) diff --git a/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue b/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue index 4bb18f95..f88014dc 100644 --- a/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue +++ b/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue @@ -500,7 +500,6 @@
- * {{ $t('workCenter.enterpriseInitChangePlan.suitUnit') }} @@ -714,14 +713,6 @@ export default { message: this.$t('workCenter.enterpriseInitChangePlan.standardPusher') + this.$t('cannotEmpty'), trigger: 'change' } - ], - // 配合单位 - cooperationUnit: [ - { - required: true, - message: this.$t('workCenter.enterpriseInitChangePlan.suitUnit') + this.$t('cannotEmpty'), - trigger: 'change' - } ] }, isLook: false, // 是否是查看 diff --git a/src/views/workCenter/annualRevisionPlanStandardizationInit/modules/BaseInfoTableModal.vue b/src/views/workCenter/annualRevisionPlanStandardizationInit/modules/BaseInfoTableModal.vue index 2207f09f..bb2b9b92 100644 --- a/src/views/workCenter/annualRevisionPlanStandardizationInit/modules/BaseInfoTableModal.vue +++ b/src/views/workCenter/annualRevisionPlanStandardizationInit/modules/BaseInfoTableModal.vue @@ -478,7 +478,6 @@
- * {{ $t('workCenter.enterpriseInitChangePlan.suitUnit') }} @@ -721,14 +720,6 @@ export default { message: this.$t('workCenter.enterpriseInitChangePlan.standardPusher') + this.$t('cannotEmpty'), trigger: 'change' } - ], - // 配合单位 - cooperationUnit: [ - { - required: true, - message: this.$t('workCenter.enterpriseInitChangePlan.suitUnit') + this.$t('cannotEmpty'), - trigger: 'change' - } ] }, isLook: false, // 是否是查看 diff --git a/src/views/workCenter/enterpriseStandardInitChange/modules/ApprovalBaseInfo.vue b/src/views/workCenter/enterpriseStandardInitChange/modules/ApprovalBaseInfo.vue index 453cf1f2..11f510ca 100644 --- a/src/views/workCenter/enterpriseStandardInitChange/modules/ApprovalBaseInfo.vue +++ b/src/views/workCenter/enterpriseStandardInitChange/modules/ApprovalBaseInfo.vue @@ -446,7 +446,6 @@
- * {{ $t('workCenter.enterpriseInitChangePlan.suitUnit') }} @@ -461,7 +460,6 @@
- * {{ $t('workCenter.revisionPlanActivelyReport.affiliatedWorkingGroup') }} @@ -948,22 +946,6 @@ export default { message: this.$t('workCenter.enterpriseInitChangePlan.standardPusher') + this.$t('cannotEmpty'), trigger: 'change' } - ], - // 配合单位 - cooperationUnit: [ - { - required: true, - message: this.$t('workCenter.enterpriseInitChangePlan.suitUnit') + this.$t('cannotEmpty'), - trigger: 'change' - } - ], - // 隶属工作组 - workGroup: [ - { - required: true, - message: this.$t('workCenter.revisionPlanActivelyReport.affiliatedWorkingGroup') + this.$t('cannotEmpty'), - trigger: 'change' - } ] }, // 各模块的收齐和展开状态 From 4c4e81384670270f4478225b79c9b91d59083078 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Thu, 11 Apr 2024 16:10:27 +0800 Subject: [PATCH 9/9] =?UTF-8?q?[update]=20=E4=BC=81=E6=A0=87=E5=88=B6?= =?UTF-8?q?=E4=BF=AE=E8=AE=A2=E6=B5=81=E7=A8=8B=E5=9F=BA=E6=9C=AC=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=B2=A1=E6=9C=89=E5=8A=A0=E8=BD=BD=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E4=B8=8D=E5=8F=AF=E6=8F=90=E4=BA=A4=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../enterpriseStandardRevision/modules/BaseInfoForm.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/workCenter/enterpriseStandardRevision/modules/BaseInfoForm.vue b/src/views/workCenter/enterpriseStandardRevision/modules/BaseInfoForm.vue index 201320ad..6355f338 100644 --- a/src/views/workCenter/enterpriseStandardRevision/modules/BaseInfoForm.vue +++ b/src/views/workCenter/enterpriseStandardRevision/modules/BaseInfoForm.vue @@ -459,6 +459,9 @@ export default { } }, getData () { + if (this.isEditSetData) { + return + } const formInline = Object.assign({}, this.formInline) Object.keys(formInline).forEach(res => { if (formInline[res] instanceof Array) { @@ -475,6 +478,9 @@ export default { }, // 外层获取数据要过校验,返回false表示没有通过校验 async getDataValidate () { + if (this.isEditSetData) { + return + } let data = {} await this.$refs.ruleForm.validate(valid => { console.log(valid)