From 6a83bed67a558c2badd739431092a68835bee564 Mon Sep 17 00:00:00 2001
From: fengachen <373943794@qq.com>
Date: Tue, 26 Oct 2021 18:34:10 +0800
Subject: [PATCH 01/14] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BC=9A=E8=AE=AE?=
=?UTF-8?q?=E6=8A=A5=E5=90=8D=E7=9A=84=E8=B7=AF=E5=BE=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/development_address_config.js | 2 +-
public/production_address_config.js | 2 +-
src/views/modules/message/SysMessageTemplateList.vue | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/public/development_address_config.js b/public/development_address_config.js
index 6425b04..7ab924c 100644
--- a/public/development_address_config.js
+++ b/public/development_address_config.js
@@ -13,7 +13,7 @@ window._CONFIG["casPrefixUrl"] = "http://cas.example.org:8443/cas";
window._CONFIG["onlinePreviewDomainURL"] = "http://localhost:8012/onlinePreview";
// 会议管理报名二维码地址
-window._CONFIG['singUpQRCodeURL'] = 'http://localhost:3000/signUpEntrance'
+window._CONFIG['singUpQRCodeURL'] = 'http://localhost:3000/signupentrance'
// 签到二维码url
window._CONFIG['signInUrl'] = '/meeting/payMeetingSituation/getSignInPage'
diff --git a/public/production_address_config.js b/public/production_address_config.js
index 297de6b..8749c66 100644
--- a/public/production_address_config.js
+++ b/public/production_address_config.js
@@ -12,5 +12,5 @@ window._CONFIG["casPrefixUrl"] = "http://cas.example.org:8443/cas";
window._CONFIG["onlinePreviewDomainURL"] = "http://10.10.10.46:8012/onlinePreview";
// 会议管理报名二维码地址
-window._CONFIG['singUpQRCodeURL'] = 'http://10.10.10.46:8055/signUpEntrance'
+window._CONFIG['singUpQRCodeURL'] = 'http://10.10.10.46:8055/signupentrance'
diff --git a/src/views/modules/message/SysMessageTemplateList.vue b/src/views/modules/message/SysMessageTemplateList.vue
index d4866ac..ce5738d 100644
--- a/src/views/modules/message/SysMessageTemplateList.vue
+++ b/src/views/modules/message/SysMessageTemplateList.vue
@@ -36,7 +36,7 @@
From 51e6a733890006b05813c1227d7da5a4769af91c Mon Sep 17 00:00:00 2001
From: fengchenchen
Date: Tue, 26 Oct 2021 18:37:15 +0800
Subject: [PATCH 02/14] =?UTF-8?q?[update]=20-=E4=BC=9A=E5=91=98=E7=B3=BB?=
=?UTF-8?q?=E7=BB=9F=E5=8D=95=E7=82=B9=E7=99=BB=E5=BD=95=20=E5=81=9A?=
=?UTF-8?q?=E8=8F=9C=E5=8D=95=E3=80=81=E5=A4=B4=E9=83=A8=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E7=9A=84=E9=9A=90=E8=97=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/layouts/TabLayout.vue | 9 +++++++++
src/components/page/GlobalLayout.vue | 14 ++++++++++----
src/permission.js | 4 ++++
src/store/modules/user.js | 7 ++++++-
src/utils/hasPermission.js | 2 +-
5 files changed, 30 insertions(+), 6 deletions(-)
diff --git a/src/components/layouts/TabLayout.vue b/src/components/layouts/TabLayout.vue
index 7be1037..e9c3b2e 100644
--- a/src/components/layouts/TabLayout.vue
+++ b/src/components/layouts/TabLayout.vue
@@ -4,6 +4,7 @@
onContextmenu(e)"
v-if="multipage"
:active-key="activePage"
@@ -39,6 +40,7 @@
const indexKey = '/dashboard/analysis'
import Vue from 'vue'
import { CACHE_INCLUDED_ROUTES } from '@/store/mutation-types'
+ import {mapState} from 'vuex'
export default {
name: 'TabLayout',
@@ -77,6 +79,13 @@
} else {
return this.$store.state.app.multipage
}
+ },
+ ...mapState({
+ // 系统名称 目的是监听是否是会员系统,会员系统隐藏菜单
+ system: state => state.user.system
+ }),
+ showMenu() {
+ return this.system !== 'member'
}
},
created() {
diff --git a/src/components/page/GlobalLayout.vue b/src/components/page/GlobalLayout.vue
index 7be2bc2..dfec8f8 100644
--- a/src/components/page/GlobalLayout.vue
+++ b/src/components/page/GlobalLayout.vue
@@ -1,6 +1,5 @@
-
@@ -119,8 +120,13 @@ export default {
// 主路由
mainRouters: state => state.permission.addRouters,
// 后台菜单
- permissionMenuList: state => state.user.permissionList
- })
+ permissionMenuList: state => state.user.permissionList,
+ // 系统名称 目的是监听是否是会员系统,会员系统隐藏菜单
+ system: state => state.user.system
+ }),
+ showMenu() {
+ return this.system !== 'member'
+ }
},
watch: {
sidebarOpened(val) {
diff --git a/src/permission.js b/src/permission.js
index c4798f9..f556a66 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -15,6 +15,10 @@ router.beforeEach((to, from, next) => {
if (to.query.token) {
Vue.ls.set(ACCESS_TOKEN, to.query.token, 7 * 24 * 60 * 60 * 1000)
store.commit('SET_TOKEN', to.query.token)
+ // 判断是否是会员系统iframe嵌入的,如果是 不先做左侧菜单和 头部标签
+ if(to.query.system === 'member') {
+ store.commit('SET_SYSTEM', to.query.system)
+ }
}
NProgress.start() // start progress bar
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index e7522bf..421ef53 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -7,6 +7,8 @@ import { getAction } from '@/api/manage'
const user = {
state: {
+ // 使用系统的名称,只有在会员系统嵌入来款系统的时候使用 传值为 member
+ system: '',
token: '',
username: '',
realname: '',
@@ -18,6 +20,9 @@ const user = {
},
mutations: {
+ SET_SYSTEM: (state, system) => {
+ state.system = system
+ },
SET_TOKEN: (state, token) => {
state.token = token
},
@@ -205,4 +210,4 @@ const user = {
}
}
-export default user
\ No newline at end of file
+export default user
diff --git a/src/utils/hasPermission.js b/src/utils/hasPermission.js
index 81df262..4f4691b 100644
--- a/src/utils/hasPermission.js
+++ b/src/utils/hasPermission.js
@@ -4,7 +4,7 @@ const hasPermission = {
install (Vue, options) {
Vue.directive('has', {
inserted: (el, binding, vnode)=>{
- // console.log('binding=====',binding.value)
+ // console.log('binding=====',binding)
if(binding.arg){
binding.value = binding.arg
// console.log( binding.value ,' binding.value =================')
From c75e127df0837fd6fd26ebaa5dd0439f067d3190 Mon Sep 17 00:00:00 2001
From: fengachen <373943794@qq.com>
Date: Tue, 26 Oct 2021 21:03:51 +0800
Subject: [PATCH 03/14] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BC=9A=E8=AE=AE?=
=?UTF-8?q?=E6=8A=A5=E5=90=8D=E7=99=BD=E5=90=8D=E5=8D=95=E7=9A=84=E8=B7=AF?=
=?UTF-8?q?=E5=BE=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/permission.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/permission.js b/src/permission.js
index f556a66..95e9355 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -9,7 +9,7 @@ import { generateIndexRouter } from '@/utils/util'
NProgress.configure({ showSpinner: false }) // NProgress Configuration
-const whiteList = ['/user/login', '/user/register', '/user/register-result', '/user/alteration','/signUpEntrance','/signUpPage'] // no redirect whitelist
+const whiteList = ['/user/login', '/user/register', '/user/register-result', '/user/alteration','/signupentrance','/signUpPage'] // no redirect whitelist
router.beforeEach((to, from, next) => {
if (to.query.token) {
From e5ef08fcbc3ea408440f40e82e3ed21399c73371 Mon Sep 17 00:00:00 2001
From: zhaoxiao
Date: Wed, 27 Oct 2021 11:26:37 +0800
Subject: [PATCH 04/14] =?UTF-8?q?[bug]=20=E5=AE=A1=E6=A0=B8=E5=B8=A6?=
=?UTF-8?q?=E5=87=BA=E4=BA=86=E4=B8=8A=E4=B8=AA=E5=AE=A1=E6=A0=B8=E5=90=88?=
=?UTF-8?q?=E5=90=8C=E7=9A=84=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../revenueContract/modules/RevenueContractAduitModule.vue | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/views/contractManagement/revenueContract/modules/RevenueContractAduitModule.vue b/src/views/contractManagement/revenueContract/modules/RevenueContractAduitModule.vue
index fca0949..a5d2488 100644
--- a/src/views/contractManagement/revenueContract/modules/RevenueContractAduitModule.vue
+++ b/src/views/contractManagement/revenueContract/modules/RevenueContractAduitModule.vue
@@ -114,6 +114,8 @@ export default {
this.close()
},
open() {
+ this.showExplainRemarks = false
+ this.form.resetFields()
let userInfo = Vue.ls.get(USER_INFO)
console.log(userInfo)
this.model.userName = userInfo.realname
@@ -123,6 +125,8 @@ export default {
})
},
close() {
+ this.showExplainRemarks = false
+ this.form.resetFields()
this.visible = false
},
/**
From 237690c38e796a07efc32140924ff5989971a21a Mon Sep 17 00:00:00 2001
From: zhaoxiao
Date: Wed, 27 Oct 2021 11:53:54 +0800
Subject: [PATCH 05/14] =?UTF-8?q?[bug]=20=E5=88=A0=E9=99=A4=E6=97=B6?=
=?UTF-8?q?=E7=9A=84=E6=8F=90=E7=A4=BA=E8=AF=AD=E6=9C=89=E5=A4=9A=E4=BD=99?=
=?UTF-8?q?=E7=9A=84
?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/mixins/JeroListMixin.js | 46 +++++++++++++------
.../businessManagement/BusinessManagement.vue | 12 ++++-
2 files changed, 41 insertions(+), 17 deletions(-)
diff --git a/src/mixins/JeroListMixin.js b/src/mixins/JeroListMixin.js
index 64a76bb..a458fec 100644
--- a/src/mixins/JeroListMixin.js
+++ b/src/mixins/JeroListMixin.js
@@ -197,7 +197,11 @@ export const JeroListMixin = {
that.loadData()
that.onClearSelected()
} else {
- that.$message.warning(res.message)
+ if (res.message.indexOf('
') > -1) {
+ that.messageLineFeed('删除失败', res.message)
+ } else {
+ that.$message.warning(res.message)
+ }
}
}).finally(() => {
that.loading = false
@@ -225,7 +229,11 @@ export const JeroListMixin = {
}
that.loadData()
} else {
- that.$message.warning(res.message)
+ if (res.message.indexOf('
') > -1) {
+ that.messageLineFeed('删除失败', res.message)
+ } else {
+ that.$message.warning(res.message)
+ }
}
})
}
@@ -322,19 +330,7 @@ export const JeroListMixin = {
}
this.loadData()
} else {
- const messageArr = info.file.response.message.split('
')
- let htmlDom = []
- messageArr.map(tt => {
- if (tt) {
- htmlDom.push(({tt}
))
- }
- })
- this.$warning({
- title: '文件导入错误',
- content: (h) =>
- {htmlDom}
-
- })
+ this.messageLineFeed('文件导入错误', info.file.response.message)
// this.$message.error(`${info.file.name} ${info.file.response.message}.`);
}
} else if (info.file.status === 'error') {
@@ -386,6 +382,26 @@ export const JeroListMixin = {
let url = getFileAccessHttpUrl(text)
window.open(url)
},
+ /**
+ * 对包含
的后端错误信息进行处理
+ * @param title
+ * @param content
+ */
+ messageLineFeed(title, content) {
+ const messageArr = content.split('
')
+ let htmlDom = []
+ messageArr.map(tt => {
+ if (tt) {
+ htmlDom.push(({tt}
))
+ }
+ })
+ this.$warning({
+ title: title,
+ content: (h) =>
+ {htmlDom}
+
+ })
+ }
}
}
diff --git a/src/views/businessManagement/BusinessManagement.vue b/src/views/businessManagement/BusinessManagement.vue
index 62cd0c7..2710066 100644
--- a/src/views/businessManagement/BusinessManagement.vue
+++ b/src/views/businessManagement/BusinessManagement.vue
@@ -220,7 +220,11 @@ export default {
}
that.loadData()
} else {
- that.$message.warning(res.message)
+ if (res.message.indexOf('
') > -1) {
+ that.messageLineFeed('删除失败', res.message)
+ } else {
+ that.$message.warning(res.message)
+ }
}
})
}
@@ -267,7 +271,11 @@ export default {
that.loadData()
that.onClearSelected()
} else {
- that.$message.warning(res.message)
+ if (res.message.indexOf('
') > -1) {
+ that.messageLineFeed('删除失败', res.message)
+ } else {
+ that.$message.warning(res.message)
+ }
}
}).finally(() => {
that.loading = false
From 8cb7b6ebdb39c10ca7ce3ddd5a6c2eb62c2cfd57 Mon Sep 17 00:00:00 2001
From: fengachen <373943794@qq.com>
Date: Wed, 27 Oct 2021 15:25:29 +0800
Subject: [PATCH 06/14] =?UTF-8?q?=E3=80=90bug=E3=80=91=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=E4=BC=9A=E8=AE=AE=E7=9A=84=E7=AD=BE=E5=88=B0=E4=BA=8C=E7=BB=B4?=
=?UTF-8?q?=E7=A0=81=20=E8=BF=94=E5=9B=9E=E8=B7=AF=E5=BE=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/incomePayments/meetManage/Attendance.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/incomePayments/meetManage/Attendance.vue b/src/views/incomePayments/meetManage/Attendance.vue
index e3de30b..adeba89 100644
--- a/src/views/incomePayments/meetManage/Attendance.vue
+++ b/src/views/incomePayments/meetManage/Attendance.vue
@@ -618,9 +618,9 @@ export default {
signUpHerfUrl() {
return `${ window._CONFIG['singUpQRCodeURL'] }?id=${ this.$route.query.id }`
},
- // 签到地址 只给一个会议id
+ // 签到地址 只给一个会议id 加前缀是为了区分 小程序的扫码签到是否扫描的是签到二维码
signInUrl() {
- return this.$route.query.id
+ return `scanSign=${this.$route.query.id}`
}
},
methods: {
From db698541a789bf38163dfdb416f480cedb8faa88 Mon Sep 17 00:00:00 2001
From: fengachen <373943794@qq.com>
Date: Wed, 27 Oct 2021 15:58:41 +0800
Subject: [PATCH 07/14] =?UTF-8?q?=E3=80=90bug=E3=80=91=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?=E4=BC=9A=E8=AE=AE=E6=8A=A5=E5=90=8D=E5=85=A5=E5=8F=A3=E7=9A=84?=
=?UTF-8?q?=E7=AD=BE=E5=88=B0=E4=BA=8C=E7=BB=B4=E7=A0=81=E8=B7=AF=E5=BE=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/signUp/SignUpEntrance.vue | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/views/signUp/SignUpEntrance.vue b/src/views/signUp/SignUpEntrance.vue
index c8dde4a..096c386 100644
--- a/src/views/signUp/SignUpEntrance.vue
+++ b/src/views/signUp/SignUpEntrance.vue
@@ -121,7 +121,13 @@ export default {
}
},
async mounted() {
- this.singUpQRCode = await this.generateQRCode('123')
+ this.singUpQRCode = await this.generateQRCode(this.signUpHerfUrl)
+ },
+ computed:{
+ // 报名链接
+ signUpHerfUrl() {
+ return `${ window._CONFIG['singUpQRCodeURL'] }?id=${this.meetingId}`
+ },
},
methods: {
/*
From 24c08084f9a428d2da8cbc7c6acd6f2ef44eafc8 Mon Sep 17 00:00:00 2001
From: zhaoxiao
Date: Wed, 27 Oct 2021 16:19:36 +0800
Subject: [PATCH 08/14] =?UTF-8?q?[bug]=20=E8=AF=A6=E6=83=85=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA=E5=88=A4=E6=96=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/ProjectDetailModal.vue | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/components/ProjectDetailModal.vue b/src/components/ProjectDetailModal.vue
index f94e6ac..6fc16fc 100644
--- a/src/components/ProjectDetailModal.vue
+++ b/src/components/ProjectDetailModal.vue
@@ -26,7 +26,7 @@
-
+
{{ basicInfo.chargeWay_dictText }}
@@ -356,8 +356,6 @@ export default {
} else {
return '缴费方式'
}
-
-
}
}
}
From 63e477fc6471531dcb1d28ca28c93cfa99dc5010 Mon Sep 17 00:00:00 2001
From: fengachen <373943794@qq.com>
Date: Wed, 27 Oct 2021 16:43:32 +0800
Subject: [PATCH 09/14] =?UTF-8?q?=E3=80=90bug=E3=80=91=E6=B7=BB=E5=8A=A0?=
=?UTF-8?q?=E5=8F=82=E4=BC=9A=E4=BA=BA=E6=9D=83=E9=99=90=E7=9A=84bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../meetManage/SignUpInfoEdit.vue | 48 +++++++++++++++++--
1 file changed, 45 insertions(+), 3 deletions(-)
diff --git a/src/views/incomePayments/meetManage/SignUpInfoEdit.vue b/src/views/incomePayments/meetManage/SignUpInfoEdit.vue
index a4aa967..9e4c2c9 100644
--- a/src/views/incomePayments/meetManage/SignUpInfoEdit.vue
+++ b/src/views/incomePayments/meetManage/SignUpInfoEdit.vue
@@ -204,9 +204,34 @@ export default {
meetingType: '',
// 会议费用是否为0
meetingCostBool:false,
- url:{
- add:'/meeting/payMeetingSituation/add',
- edit:'/meeting/payMeetingSituation/edit'
+ // url:{
+ // add:'/meeting/payMeetingSituation/add',
+ // edit:'/meeting/payMeetingSituation/edit'
+ // },
+ // 其他会议的url
+ otherMeetingUrl: {
+ add: '/meeting/ohterMeetingSituation/add',
+ edit:'/meeting/ohterMeetingSituation/edit'
+ },
+ // 分标委会议的url
+ committeeMeetingUrl: {
+ add: '/meeting/committeeMeetingSituation/add',
+ edit:'/meeting/committeeMeetingSituation/edit'
+ },
+ // 国际研讨会的url
+ internalMeetingUrl: {
+ add: '/meeting/internalMeetingSituation/add',
+ edit:'/meeting/internalMeetingSituation/edit'
+ },
+ // 标协会议的url
+ standardsMeetingUrl: {
+ add: '/meeting/standardsMeetingSituation/add',
+ edit:'/meeting/standardsMeetingSituation/edit'
+ },
+ // 工作组会议的url
+ workGroupMeetingUrl: {
+ add: '/meeting/workGroupMeetingSituation/add',
+ edit:'/meeting/workGroupMeetingSituation/edit'
},
title:'添加参会人',
}
@@ -229,6 +254,23 @@ export default {
}
},
+ computed:{
+ // eslint-disable-next-line
+ url() {
+ switch (this.$route.query.meetingType) {
+ case '1':
+ return this.workGroupMeetingUrl
+ case '2':
+ return this.standardsMeetingUrl
+ case '3':
+ return this.internalMeetingUrl
+ case '4':
+ return this.otherMeetingUrl
+ case '5':
+ return this.committeeMeetingUrl
+ }
+ },
+ },
methods: {
addContactsOk() {
this.$refs.selectContacts.getContactsList()
From 12b72221dd665969b842514535927f71a1661896 Mon Sep 17 00:00:00 2001
From: zhaoxiao
Date: Wed, 27 Oct 2021 17:22:31 +0800
Subject: [PATCH 10/14] =?UTF-8?q?[bug]=20=E9=80=9A=E8=BF=87=E8=81=94?=
=?UTF-8?q?=E7=B3=BB=E4=BA=BAid=E8=8E=B7=E5=8F=96=E8=81=94=E7=B3=BB?=
=?UTF-8?q?=E4=BA=BA=E4=BF=A1=E6=81=AF=E6=8E=A5=E5=8F=A3=E6=9B=BF=E6=8D=A2?=
=?UTF-8?q?=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/api.js | 2 +-
.../projectManagement/modules/GeneralProjectModule.vue | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/api/api.js b/src/api/api.js
index 052a94a..e7e640a 100644
--- a/src/api/api.js
+++ b/src/api/api.js
@@ -113,7 +113,7 @@ const getContactsByCompany = (params) => getAction('/company/payContactsManageme
// 通过企业名称获取该企业下的联系人无权限接口
const getContactsByCompanyNoLimit = (params) => getAction('/company/payContactsManagement/queryByCompanyMeeting', params)
// 通过联系人id获取联系人信息
-const getContactsById = (param) => getAction('/company/payContactsManagement/queryByIdMeeting', param)
+const getContactsById = (param) => getAction('/company/payContactsManagement/queryByIdGetContract', param)
// 加密获取key 与 iv
const getKeyIv = (param) => getAction('/sys/getEncryptedString',param)
diff --git a/src/views/projectManagement/modules/GeneralProjectModule.vue b/src/views/projectManagement/modules/GeneralProjectModule.vue
index 114f5d8..919f91e 100644
--- a/src/views/projectManagement/modules/GeneralProjectModule.vue
+++ b/src/views/projectManagement/modules/GeneralProjectModule.vue
@@ -110,8 +110,10 @@
合同
-
+
无
合同
收费通知
From 51e8ee5d7cf620025e621fb38c3e5fc2017e287a Mon Sep 17 00:00:00 2001
From: zhaoxiao
Date: Wed, 27 Oct 2021 18:08:18 +0800
Subject: [PATCH 11/14] =?UTF-8?q?[bug]=20=E6=94=B6=E5=85=A5=E5=90=88?=
=?UTF-8?q?=E5=90=8C=E5=85=B3=E8=81=94=E9=A1=B9=E7=9B=AE--=E6=99=AE?=
=?UTF-8?q?=E9=80=9A=E9=A1=B9=E7=9B=AE=E7=A7=91=E5=AE=A4=E9=97=AE=E9=A2=98?=
=?UTF-8?q?=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/RevenueContractModule.vue | 40 ++++++++-----------
.../modules/SelectProjectModule.vue | 4 +-
2 files changed, 19 insertions(+), 25 deletions(-)
diff --git a/src/views/contractManagement/revenueContract/modules/RevenueContractModule.vue b/src/views/contractManagement/revenueContract/modules/RevenueContractModule.vue
index d2ddc59..1cc827f 100644
--- a/src/views/contractManagement/revenueContract/modules/RevenueContractModule.vue
+++ b/src/views/contractManagement/revenueContract/modules/RevenueContractModule.vue
@@ -502,6 +502,7 @@ export default {
this.accountsReceivableNum = record.accountsReceivableAmount
this.amountReceivedNum = record.amountReceived
this.model = Object.assign({}, record)
+ this.getUserDetailByUserId()
this.$nextTick(() => {
this.form.setFieldsValue(pick(this.model, 'contractNum', 'contractName', 'signedCompany', 'signedContactsId', 'opening', 'principalId', 'departmentName', 'contractAmount', 'rate', 'noTaxAmount', 'contractDate', 'terminationDate', 'contractTimePoints', 'accountsReceivableAmount', 'amountReceived', 'outstandingAmount', 'accountStatus', 'contractPaymentTimes', 'pack', 'packYear'))
this.confirmLoading = false
@@ -806,21 +807,16 @@ export default {
switch (type) {
// 普通项目
case 1:
- this.getUserDetailByUserId().then(res => {
- this.departId = res
- // 混入筛选条件
- this.$refs.selectProjectModule.filters = {
- chargeCompanyId: this.selectedCompany.id,
- contractId: this.contractId,
- departId: this.departId // 一个用户多部门情况下传给后端第一个部门id
- }
- // 获取负责人列表
- this.$refs.selectProjectModule.departChange(this.departId)
- // 打开弹窗
- this.$refs.selectProjectModule.open()
- }).catch((err) => {
- this.$message.warn(err)
- })
+ // 混入筛选条件
+ this.$refs.selectProjectModule.filters = {
+ chargeCompanyId: this.selectedCompany.id,
+ contractId: this.contractId
+ // departId: this.departId // 一个用户多部门情况下传给后端第一个部门id
+ }
+ // 获取负责人列表
+ this.$refs.selectProjectModule.departChange(this.departId)
+ // 打开弹窗
+ this.$refs.selectProjectModule.open()
break
// 工作组项目
case 2:
@@ -855,14 +851,12 @@ export default {
let param = {
id: this.model.principalId
}
- return new Promise((resolve, reject) => {
- queryUserByDepartId(param).then(res => {
- if (res.success) {
- resolve(res.result[0].departIds)
- } else {
- reject(res.message)
- }
- })
+ queryUserByDepartId(param).then(res => {
+ if (res.success) {
+ this.departId = res.result[0].departIds
+ } else {
+ console.log(res.message)
+ }
})
},
/**
diff --git a/src/views/contractManagement/revenueContract/modules/SelectProjectModule.vue b/src/views/contractManagement/revenueContract/modules/SelectProjectModule.vue
index 3313212..b9b86fc 100644
--- a/src/views/contractManagement/revenueContract/modules/SelectProjectModule.vue
+++ b/src/views/contractManagement/revenueContract/modules/SelectProjectModule.vue
@@ -150,6 +150,7 @@ export default {
requird: false,
default: null
},
+ // 负责人id
principal: {
type: String,
requird: false,
@@ -261,7 +262,6 @@ export default {
}
},
methods: {
-
/**
* 运行年份变化
*/
@@ -278,7 +278,7 @@ export default {
// 运行年份默认为当年
this.queryParam.year = new Date().getFullYear().toString()
this.lastQueryParam.year = new Date().getFullYear().toString()
- //
+ // 默认科室、负责人
this.queryParam.principalId = this.principal
this.lastQueryParam.principalId = this.principal
this.queryParam.departId = this.departId
From 0511f6186e2df37cc053163d28f280f91c7884d8 Mon Sep 17 00:00:00 2001
From: zhaoxiao
Date: Wed, 27 Oct 2021 18:19:40 +0800
Subject: [PATCH 12/14] =?UTF-8?q?[bug]=20backspace=E5=9B=9E=E9=80=80?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/src/App.vue b/src/App.vue
index 03a4ae8..bb0a332 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -18,8 +18,27 @@ window.addEventListener('message', function (event) {
document.getElementsByClassName('tab-layout-tabs ant-tabs ant-tabs-top')[0].style.display = 'none'
}, 1000)
}
-
})
+
+document.onkeydown = keyDown
+
+function keyDown(e) {
+ console.log(navigator.userAgent)
+ // 拦截backspace按钮,谷歌浏览器不需要拦截
+ // 拦截仍然存在的问题:当input、textarea失去焦点后,仍然会后退页面
+ if (e.keyCode === 8 && navigator.userAgent.indexOf('AppleWebKit') === -1 ) {
+ // 判断是不是在input或textarea触发backspace按钮事件
+ if (window.event.srcElement.tagName.toUpperCase() === 'INPUT' || window.event.srcElement.tagName.toUpperCase() === 'TEXTAREA') {
+ // 判断输入框中是否还有值可删除
+ if (window.event.srcElement.value.length === 1) {
+ // 拦截事件
+ e.keyCode=0
+ e.returnValue=false
+ }
+ }
+ }
+}
+
export default {
data() {
return {
From c07cf98a8305ae47e10feab856020eb1a2de6baf Mon Sep 17 00:00:00 2001
From: zhaoxiao
Date: Wed, 27 Oct 2021 18:28:25 +0800
Subject: [PATCH 13/14] =?UTF-8?q?[bug]=20=E7=94=A8=E6=88=B7=E8=8F=9C?=
=?UTF-8?q?=E5=8D=95=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/tools/UserMenu.vue | 369 +++++++++++++++---------------
1 file changed, 188 insertions(+), 181 deletions(-)
diff --git a/src/components/tools/UserMenu.vue b/src/components/tools/UserMenu.vue
index 3bef1c6..acf1ab9 100644
--- a/src/components/tools/UserMenu.vue
+++ b/src/components/tools/UserMenu.vue
@@ -4,7 +4,7 @@
@@ -61,194 +61,201 @@
From 09ad243c8f238d462d1069657060e19b6461e428 Mon Sep 17 00:00:00 2001
From: zhaoxiao
Date: Wed, 27 Oct 2021 18:34:27 +0800
Subject: [PATCH 14/14] =?UTF-8?q?[bug]=20=E6=97=A5=E5=BF=97=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/system/LogList.vue | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/src/views/system/LogList.vue b/src/views/system/LogList.vue
index e6edce4..92fbf5b 100644
--- a/src/views/system/LogList.vue
+++ b/src/views/system/LogList.vue
@@ -13,13 +13,13 @@
-
-
+
+
-
+
-
-
+
+
-
-
- 查询
+
+
+
+ 查询
重置
-
+ style="margin-left: 8px;">重置
+
-
-