diff --git a/src/pages/manage/list/acceptanceDraft/invoice.vue b/src/pages/manage/list/acceptanceDraft/invoice.vue index f2d541d..9c869c7 100644 --- a/src/pages/manage/list/acceptanceDraft/invoice.vue +++ b/src/pages/manage/list/acceptanceDraft/invoice.vue @@ -293,7 +293,7 @@ export default { } }, mounted() { - const parentId = '0,5,30,374' + const parentId = '287,5,30,374' autoPlay2(parentId, this.form, this.myTable2, this.myTable) this.$refs.accountNumber.focus() }, @@ -302,7 +302,7 @@ export default { submitForm(){ this.$refs.form.validate(myValidate(() => { // 验证通过逻辑写在这 - const parentId = '0,5,30,374' + const parentId = '287,5,30,374' autoPlay(parentId, this.form, this.myTable2, this.myTable) }, this.$refs)); }, diff --git a/src/pages/manage/list/business/deposit.vue b/src/pages/manage/list/business/deposit.vue index 3163e23..600ca89 100644 --- a/src/pages/manage/list/business/deposit.vue +++ b/src/pages/manage/list/business/deposit.vue @@ -180,7 +180,7 @@ export default { }, methods: { getFormData(){ - const parentId = '0,5,27,225' + const parentId = '287,5,27,225' autoPlay2(parentId, this.form, this.myTable2, this.myTable) }, submitForm() { @@ -190,7 +190,7 @@ export default { // 验证通过逻辑写在这 this.visible = true; let formList = []; - const parentId = '0,5,27,225' + const parentId = '287,5,27,225' autoPlay(parentId, this.form, this.myTable2, this.myTable) }, this.$refs)); }, diff --git a/src/pages/manage/list/business/openAccount.vue b/src/pages/manage/list/business/openAccount.vue index b149b38..2670e95 100644 --- a/src/pages/manage/list/business/openAccount.vue +++ b/src/pages/manage/list/business/openAccount.vue @@ -297,7 +297,7 @@ export default { }, methods: { getFormData(){ - const parentId = '0,5,27,224' + const parentId = '287,5,27,224' autoPlay2(parentId, this.form, this.myTable2, this.myTable) }, submitForm(){ @@ -306,7 +306,7 @@ export default { this.$refs.form.validate(myValidate(() => { // 验证通过逻辑写在这 this.visible = true; - const parentId = '0,5,27,224' + const parentId = '287,5,27,224' autoPlay(parentId, this.form, this.myTable2, this.myTable) }, this.$refs)); }, diff --git a/src/pages/manage/list/business/transfer.vue b/src/pages/manage/list/business/transfer.vue index a35c955..9efc54d 100644 --- a/src/pages/manage/list/business/transfer.vue +++ b/src/pages/manage/list/business/transfer.vue @@ -232,7 +232,7 @@ export default { }, methods: { getFormData(){ - const parentId = '0,5,27,227' + const parentId = '287,5,27,227' autoPlay2(parentId, this.form, this.myTable2, this.myTable) }, submitForm() { @@ -241,7 +241,7 @@ export default { this.$refs.form.validate(myValidate(() => { // 验证通过逻辑写在这 this.visible = true; - const parentId = '0,5,27,227' + const parentId = '287,5,27,227' autoPlay(parentId, this.form, this.myTable2, this.myTable) }, this.$refs)); }, diff --git a/src/pages/manage/list/business/withdrawal.vue b/src/pages/manage/list/business/withdrawal.vue index 00c91bf..a20b126 100644 --- a/src/pages/manage/list/business/withdrawal.vue +++ b/src/pages/manage/list/business/withdrawal.vue @@ -206,14 +206,14 @@ export default { }, methods: { getFormData(){ - const parentId = '0,5,27,226' + const parentId = '287,5,27,226' autoPlay2(parentId, this.form, this.myTable2, this.myTable) }, submitForm() { this.$refs.form.validate(myValidate(() => { // 验证通过逻辑写在这 this.visible = true; - const parentId = '0,5,27,226' + const parentId = '287,5,27,226' autoPlay(parentId, this.form, this.myTable2, this.myTable) // let tmpIndex = 100; // for(const key in this.myTable2) { diff --git a/src/pages/manage/list/cityWide/cityWideIn.vue b/src/pages/manage/list/cityWide/cityWideIn.vue index fdd8077..2906a5a 100644 --- a/src/pages/manage/list/cityWide/cityWideIn.vue +++ b/src/pages/manage/list/cityWide/cityWideIn.vue @@ -262,7 +262,7 @@ export default { }, mounted() { - const parentId = '0,5,29,345,359' + const parentId = '287,5,29,345,359' autoPlay2(parentId, this.form, this.myTable2, this.myTable) this.$refs.shroffAccountNumber.focus() }, @@ -270,7 +270,7 @@ export default { submitForm() { this.$refs.form.validate(myValidate(() => { // 验证通过逻辑写在这 - const parentId = '0,5,29,345,359' + const parentId = '287,5,29,345,359' autoPlay(parentId, this.form, this.myTable2, this.myTable) }, this.$refs)); }, diff --git a/src/pages/manage/list/cityWide/cityWideOut.vue b/src/pages/manage/list/cityWide/cityWideOut.vue index 395cffe..2982ed1 100644 --- a/src/pages/manage/list/cityWide/cityWideOut.vue +++ b/src/pages/manage/list/cityWide/cityWideOut.vue @@ -246,7 +246,7 @@ export default { }, mounted() { - const parentId = '0,5,29,345,346' + const parentId = '287,5,29,345,346' autoPlay2(parentId, this.form, this.myTable2, this.myTable) this.$refs.shroffAccountNumber.focus() }, @@ -254,7 +254,7 @@ export default { submitForm() { this.$refs.form.validate(myValidate(() => { // 验证通过逻辑写在这 - const parentId = '0,5,29,345,346' + const parentId = '287,5,29,345,346' autoPlay(parentId, this.form, this.myTable2, this.myTable) }, this.$refs)); }, diff --git a/src/pages/manage/list/client/consumerClient.vue b/src/pages/manage/list/client/consumerClient.vue index 445a86d..d870ae0 100644 --- a/src/pages/manage/list/client/consumerClient.vue +++ b/src/pages/manage/list/client/consumerClient.vue @@ -229,7 +229,7 @@ export default { methods: { getFormData(){ let param= { - parentId: '0,5,25,33' + parentId: '287,5,25,33' } getOperation(param).then((data)=>{ console.log(data) @@ -268,13 +268,13 @@ export default { let nomClientIdentity = sessionStorage.getItem('nomClientIdentity') let nomClientIdentitys = JSON.parse(nomClientIdentity); if (nomClientIdentitys && nomClientIdentitys.length > 0){ - formList.push({"answerId":'41',"emptyOne": "", "emptyTwo": nomClientIdentity, "operationIds": "0,5,25,33,41","type": ""}) + formList.push({"answerId":'41',"emptyOne": "", "emptyTwo": nomClientIdentity, "operationIds": "287,5,25,33,41","type": ""}) if(this.form.sex){ formList.push({ "answerId":'43', "emptyOne": "1", "emptyTwo": this.form.sex, - "operationIds": "0,5,25,33,43",//性别 + "operationIds": "287,5,25,33,43",//性别 "type": "1" }) } @@ -283,7 +283,7 @@ export default { "answerId":'45', "emptyOne": "3", "emptyTwo": this.form.nationality, - "operationIds": "0,5,25,33,45",//民族 + "operationIds": "287,5,25,33,45",//民族 "type": "1" }) } @@ -292,18 +292,18 @@ export default { "answerId":'46', "emptyOne": "4", "emptyTwo": this.form.mailbox, - "operationIds": "0,5,25,33,46",//通讯地址 + "operationIds": "287,5,25,33,46",//通讯地址 "type": "3" }) } formList.push( - {"answerId":'40',"emptyOne": "19", "emptyTwo": this.form.idType, "operationIds": "0,5,25,33,40", "type": "1"},//证件类型 - {"answerId":'42',"emptyOne": "7", "emptyTwo": this.form.userName, "operationIds": "0,5,25,33,42", "type": "3"},//客户姓名 - {"answerId":'44',"emptyOne": "2", "emptyTwo": this.form.birthday, "operationIds": "0,5,25,33,44", "type": "3"},//出生日期 - {"answerId":'47',"emptyOne": "5", "emptyTwo": this.form.phone, "operationIds": "0,5,25,33,47", "type": "3"}//联系电话 + {"answerId":'40',"emptyOne": "19", "emptyTwo": this.form.idType, "operationIds": "287,5,25,33,40", "type": "1"},//证件类型 + {"answerId":'42',"emptyOne": "7", "emptyTwo": this.form.userName, "operationIds": "287,5,25,33,42", "type": "3"},//客户姓名 + {"answerId":'44',"emptyOne": "2", "emptyTwo": this.form.birthday, "operationIds": "287,5,25,33,44", "type": "3"},//出生日期 + {"answerId":'47',"emptyOne": "5", "emptyTwo": this.form.phone, "operationIds": "287,5,25,33,47", "type": "3"}//联系电话 ); let params= { - parentId:'0,5,25,33', + parentId:'287,5,25,33', lcJudgmentRuleReq:formList, projectId:+projectId, startTime:startTime, diff --git a/src/pages/manage/list/client/corporateClient.vue b/src/pages/manage/list/client/corporateClient.vue index cd84dc1..1300fc5 100644 --- a/src/pages/manage/list/client/corporateClient.vue +++ b/src/pages/manage/list/client/corporateClient.vue @@ -152,7 +152,7 @@ export default { methods: { getFormData(){ let param= { - parentId: '0,5,25,34' + parentId: '287,5,25,34' } getOperation(param).then((data)=>{ console.log(data) @@ -193,30 +193,30 @@ export default { let firmClientIdentitys = JSON.parse(firmClientIdentity); if (firmClientIdentitys && firmClientIdentitys.length > 0){ for (var i=0;i{ console.log(data) @@ -122,23 +122,23 @@ export default{ let nomBusinessDepositCard = sessionStorage.getItem('nomBusinessDepositCard') let nomBusinessDepositCards = nomBusinessDepositCard // JSON.parse(nomBusinessDepositCard); if (nomBusinessDepositCards && nomBusinessDepositCards.length > 0){ - formList.push({"answerId":78,"emptyOne": "", "emptyTwo": nomBusinessDepositCards, "operationIds": "0,5,26,57,63,78","type": ""})// 卡号 + formList.push({"answerId":78,"emptyOne": "", "emptyTwo": nomBusinessDepositCards, "operationIds": "287,5,26,57,63,78","type": ""})// 卡号 if(this.form.currency){ - formList.push({ "answerId":'80', "emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": "0,5,26,57,63,80", "type": "1" })//币种 + formList.push({ "answerId":'80', "emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": "287,5,26,57,63,80", "type": "1" })//币种 } if(this.form.money){ - formList.push({ "answerId":'82', "emptyOne": "14", "emptyTwo": this.form.money, "operationIds": "0,5,26,57,63,82", "type": "3" })//金额 + formList.push({ "answerId":'82', "emptyOne": "14", "emptyTwo": this.form.money, "operationIds": "287,5,26,57,63,82", "type": "3" })//金额 } if(this.form.remark){ - formList.push( {"answerId":'84',"emptyOne": "16", "emptyTwo": this.form.remark, "operationIds": "0,5,26,57,63,84", "type": "3"})//摘要 + formList.push( {"answerId":'84',"emptyOne": "16", "emptyTwo": this.form.remark, "operationIds": "287,5,26,57,63,84", "type": "3"})//摘要 } formList.push( - { "answerId":'79', "emptyOne": "7", "emptyTwo": this.form.userName, "operationIds": "0,5,26,57,63,79", "type": "3" },//客户姓名 - { "answerId":'81', "emptyOne": "9", "emptyTwo": this.form.goldLogo, "operationIds": "0,5,26,57,63,81", "type": "1" },//钞汇标识 - {"answerId":'83',"emptyOne": "15", "emptyTwo": this.form.annualInterest, "operationIds": "0,5,26,57,63,83", "type": "3"},//年利率 + { "answerId":'79', "emptyOne": "7", "emptyTwo": this.form.userName, "operationIds": "287,5,26,57,63,79", "type": "3" },//客户姓名 + { "answerId":'81', "emptyOne": "9", "emptyTwo": this.form.goldLogo, "operationIds": "287,5,26,57,63,81", "type": "1" },//钞汇标识 + {"answerId":'83',"emptyOne": "15", "emptyTwo": this.form.annualInterest, "operationIds": "287,5,26,57,63,83", "type": "3"},//年利率 ); let params= { - parentId:'0,5,26,57,63', + parentId:'287,5,26,57,63', lcJudgmentRuleReq:formList, projectId:+projectId, startTime:startTime, diff --git a/src/pages/manage/list/servicesAccount/passwordChange.vue b/src/pages/manage/list/servicesAccount/passwordChange.vue index d263a1b..9b8d069 100644 --- a/src/pages/manage/list/servicesAccount/passwordChange.vue +++ b/src/pages/manage/list/servicesAccount/passwordChange.vue @@ -130,7 +130,7 @@ export default{ } }, mounted() { - const parentId = '0,5,28,316' + const parentId = '287,5,28,316' const cards = { 320: 'servicesPasswordChange', 323: 'servicesPasswordChange2' @@ -152,7 +152,7 @@ export default{ this.$refs.form.validate(myValidate(() => { // 验证通过逻辑写在这 this.visible = true; - const parentId = '0,5,28,316' + const parentId = '287,5,28,316' const cards = [ { // // 证件号码 320: servicesPasswordChange diff --git a/src/pages/manage/list/servicesAccount/passwordLost.vue b/src/pages/manage/list/servicesAccount/passwordLost.vue index f222634..2a289b8 100644 --- a/src/pages/manage/list/servicesAccount/passwordLost.vue +++ b/src/pages/manage/list/servicesAccount/passwordLost.vue @@ -104,7 +104,7 @@ export default{ } }, mounted() { - const parentId = '0,5,28,328' + const parentId = '287,5,28,328' const cards = { 329: 'servicesPasswordLost', 333: 'servicesPasswordLost2' @@ -126,7 +126,7 @@ export default{ let servicesPasswordLost2 = sessionStorage.getItem('servicesPasswordLost2') this.visible = true; - const parentId = '0,5,28,328' + const parentId = '287,5,28,328' const cards = [ { // // 证件号码 329: servicesPasswordLost diff --git a/src/pages/manage/list/servicesAccount/relieveLost.vue b/src/pages/manage/list/servicesAccount/relieveLost.vue index 06db96a..6af3b80 100644 --- a/src/pages/manage/list/servicesAccount/relieveLost.vue +++ b/src/pages/manage/list/servicesAccount/relieveLost.vue @@ -124,7 +124,7 @@ export default{ let servicesPasswordRelievePassword = sessionStorage.getItem('servicesPasswordRelievePassword') this.visible = true; - const parentId = '0,5,28,336' + const parentId = '287,5,28,336' const cards = [ { // // 身份证 341: servicesPasswordRelieveLost @@ -144,7 +144,7 @@ export default{ checkName: checkName }, mounted() { - const parentId = '0,5,28,336' + const parentId = '287,5,28,336' const cards = { 341: 'servicesPasswordRelieveLost', 337: 'servicesPasswordRelieveLost2', diff --git a/test.txt b/test.txt new file mode 100644 index 0000000..e3fe3bc --- /dev/null +++ b/test.txt @@ -0,0 +1,14 @@ +作用域链是从当前作用域逐层查找的,一直查找到window,那么这样一个查找是要花费时间的,如果我们让他马上查到这个变量。 +我们是不是就节省了这个时间。所以我们可以把我们要使用的变量,作为参数传入方法,或者再方法里进行缓存,来提升速度。 +晚上我们会具体的和大家讲到这个点 + +Vue3的架构方案是函数式编程,这种编程方式再早期的时候,就是lodash和underscore这样工具的方案,而vue2的方案是一种建造者模式。 +好处在于 +1, 更有利于tree-shaking。这也是vue3为什么要改成函数式编程的最大原因。 +2, 函数式编程可扩张性更好。 + +设计模式分为 +1, 创建型设计模式,用来指导对象的创建,用在我们设计需求的架构时。 +2, 结构型,用来指导功能模块的结构,就像我们设计公司的组织结构一样。 +3, 行为型设计模式,用来解决模块间行为的问题,设计模块间如何沟通 +4, 技巧型设计模式,一些优化代码的技巧 \ No newline at end of file