diff --git a/src/main.js b/src/main.js index 4e0d44b..584953f 100644 --- a/src/main.js +++ b/src/main.js @@ -42,6 +42,7 @@ Vue.directive('throttle', {/* 节流 */ Vue.use(plugins); + Vue.use(VueLazyload, { preLoad: 1.3, loading: require('@/assets/img/loading.gif'), diff --git a/src/pages/counter/list/index.vue b/src/pages/counter/list/index.vue index 3b4781d..bedf35e 100644 --- a/src/pages/counter/list/index.vue +++ b/src/pages/counter/list/index.vue @@ -323,6 +323,7 @@ export default { commonChecked:[],// 普通凭证选中 passwordForm:{ password:'', + passwordAgain: '' }, passwordRules:{ password:[ @@ -454,7 +455,6 @@ export default { parentId: '0,5,26,57,65,94' } getOperation(param).then((data)=> { - console.log(data) if (data.data.status == 200) { var list = data.data.judgmentRuleReqs for(var j=0;j { - console.log(data) if (data.data.status == 200) { var list = data.data.judgmentRuleReqs for(var j=0;j { - console.log(data) if (data.data.status == 200) { var list = data.data.judgmentRuleReqs for(var j=0;j { - console.log(data) - if (data.data.status == 200) { let tmpName = sessionStorage.getItem(name) - console.log(tmpName) if(tmpName) { this.receptionList = JSON.parse(tmpName); }else { @@ -595,7 +587,7 @@ export default { this.passwordForm.password = nomCurrentSettlePassword this.passwordForm.passwordAgain = nomCurrentSettlePassword } - }else if (myConfig[this.$store.state.system.id]){ + }else if(myConfig[this.$store.state.system.id]){ const { name } = myConfig[this.$store.state.system.id] let nomCurrentSettlePassword = sessionStorage.getItem(name); if(nomCurrentSettlePassword){ @@ -687,18 +679,13 @@ export default { }) }else if (myConfig[this.$store.state.system.id]){ const { nbm, parentId, name } = myConfig[this.$store.state.system.id] - console.log(nbm) - console.log(sessionStorage.getItem(name)) this.nbm = nbm let param= { parentId } getOperation(param).then((data)=> { - console.log(data) - if (data.data.status == 200) { let tmpName = sessionStorage.getItem(name) - console.log(tmpName) if(tmpName) { this.receptionList = JSON.parse(tmpName); }else { @@ -1097,15 +1084,22 @@ export default { }else if (myConfig[this.$store.state.system.id]){ // myConfig[this.$store.state.system.id] - const { nbm, name } = myConfig[this.$store.state.system.id] - console.log(nbm) + const { nbm, name, isPassword } = myConfig[this.$store.state.system.id] this.nbm = nbm - this.goodsShelfTotalData = this.auditGoodsShelf - if (this.receptionList.length >0){ - sessionStorage.setItem(name, JSON.stringify(this.receptionList)) - console.log(sessionStorage.getItem(name)) + if(!isPassword) { + this.goodsShelfTotalData = this.auditGoodsShelf + if (this.receptionList.length >0){ + sessionStorage.setItem(name, JSON.stringify(this.receptionList)) + } + }else { + if (this.passwordForm.passwordAgain){ + let accountPassword = ''; + accountPassword = this.passwordForm.passwordAgain + sessionStorage.setItem(name, accountPassword) + } } + }else if (this.$store.state.system.id == '67,3'){ this.nbm = 67 if (this.passwordForm.passwordAgain){ @@ -1113,8 +1107,7 @@ export default { accountPassword = this.passwordForm.passwordAgain sessionStorage.setItem('nomCurrentCancellPassword', accountPassword) } - } - if (this.$store.state.system.id == '62,1'){ + }else if (this.$store.state.system.id == '62,1'){ this.nbm = 62 this.goodsShelfTotalData = this.auditGoodsShelf if (this.receptionList.length >0){ @@ -1125,8 +1118,7 @@ export default { accountPassword = this.passwordForm.passwordAgain sessionStorage.setItem('accountPassword', accountPassword) } - } - if (this.$store.state.system.id == '62,2'){ + }else if (this.$store.state.system.id == '62,2'){ this.nbm = 62 this.goodsShelfTotalData = this.auditGoodsShelf if (this.receptionList.length >0){ @@ -1137,8 +1129,7 @@ export default { accountPasswordTwo = this.passwordForm.passwordAgain sessionStorage.setItem('accountPasswordTwo', accountPasswordTwo) } - } - if (this.$store.state.system.id == '62,3'){ + }else if (this.$store.state.system.id == '62,3'){ this.nbm = 62 this.goodsShelfTotalData = this.auditGoodsShelf if (this.receptionList.length >0){ @@ -1149,7 +1140,7 @@ export default { accountPasswordThree = this.passwordForm.passwordAgain sessionStorage.setItem('accountPasswordThree', accountPasswordThree) } - } + } } // this.toggleGoods() if(this.popText == '密码器'){ @@ -1161,12 +1152,12 @@ export default { sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) } if(this.passwordForm.password && this.passwordForm.passwordAgain){ - if(this.passwordForm.password.length >=6 && this.passwordForm.passwordAgain.length >=6){ - if(this.passwordForm.password == this.passwordForm.passwordAgain) { - this.$store.commit('system/changePop', {show: false, text: ''}) - this.$message.success(`${this.popText}操作成功!`) + if(this.passwordForm.password.length >=6 && this.passwordForm.passwordAgain.length >=6){ + if(this.passwordForm.password == this.passwordForm.passwordAgain) { + this.$store.commit('system/changePop', {show: false, text: ''}) + this.$message.success(`${this.popText}操作成功!`) + } } - } }else{ this.$message.error('请输入密码和确认密码'); } diff --git a/src/pages/counter/list/myConfig.js b/src/pages/counter/list/myConfig.js index 5fa5f7c..a1cc420 100644 --- a/src/pages/counter/list/myConfig.js +++ b/src/pages/counter/list/myConfig.js @@ -1,38 +1,117 @@ const myConfig = { + '99': { + nbm: 118, + name: 'nomCurrentTransferPassword', + parentId: '0,5,26,57,65', + isPassword: true + }, + '117': { + nbm: 118, + name: 'nomCurrentCancellPassword', + parentId: '0,5,26,57,67', + isPassword: true + }, '118,1': { nbm: 118, name: 'nomtimeOpenAccount1', - parentId: '0,5,26,58,118' + parentId: '0,5,26,58,118', + isPassword: false }, '118,2': { nbm: 118, name: 'nomtimeOpenAccount2', - parentId: '0,5,26,58,118' + parentId: '0,5,26,58,118', + isPassword: false + }, + '129': { + nbm: 129, + name: 'nomtimeOpenAccountPassword', + parentId: '0,5,26,58,118', + isPassword: true }, '131': { nbm: 131, name: 'nomtimeDeposit1', - parentId: '0,5,26,58,119' + parentId: '0,5,26,58,119', + isPassword: false + }, + '140': { + nbm: 140, + name: 'nomtimeDepositlPassword', + parentId: '0,5,26,58,119', + isPassword: true + }, + '154': { + nbm: 154, + name: 'nomtimeDepositWithdrawalPassword', + parentId: '0,5,26,58,120', + isPassword: true }, '144,1': { nbm: 144, name: 'nomtimeDepositWithdrawal1', - parentId: '0,5,26,58,120' + parentId: '0,5,26,58,120', + isPassword: false }, '156': { nbm: 156, name: 'nomtimeDepositContinue', - parentId: '0,5,26,59,156' + parentId: '0,5,26,59,156', + isPassword: false }, '157,2': { nbm: 157, name: 'nomtimeDepositContinue2', - parentId: '0,5,26,59,157' + parentId: '0,5,26,59,157', + isPassword: false + }, + '166': { + nbm: 166, + name: 'nomUsefulPhrasesOpenCard', + parentId: '0,5,26,59,155', + isPassword: false + }, + '167': { + nbm: 167, + name: 'nomUsefulPhrasesOpenPassword', + parentId: '0,5,26,59,155', + isPassword: true + }, + '171': { + nbm: 171, + name: 'nomUsefulPhrasesContinueCard', + parentId: '0,5,26,59,156', + isPassword: false + }, + '178': { + nbm: 178, + name: 'nomUsefulPhrasesContinueCard', + parentId: '0,5,26,59,156', + isPassword: true + }, + '181': { + nbm: 181, + name: 'nomUsefulPhrasesClosed2', + parentId: '0,5,26,59,157', + isPassword: false + }, + '192': { + nbm: 192, + name: 'nomUsefulPhrasesClosedPassword', + parentId: '0,5,26,59,157', + isPassword: true }, '193,1': { nbm: 193, name: 'nomCallDepositOpen2', - parentId: '0,5,26,60,193' + parentId: '0,5,26,60,193', + isPassword: false + }, + '220': { + nbm: 220, + name: 'nomCallDepositClosedPassword', + parentId: '0,5,26,60,194', + isPassword: true } } diff --git a/src/pages/lobbyManager/list/index.vue b/src/pages/lobbyManager/list/index.vue index f21fbfa..21c716d 100644 --- a/src/pages/lobbyManager/list/index.vue +++ b/src/pages/lobbyManager/list/index.vue @@ -1,6 +1,7 @@