jufubao-base 1.0.388 → 1.0.389
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jufubao-base",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.389",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "聚福宝业务组件基础插件包",
|
|
6
6
|
"main": "index.js",
|
|
@@ -90,7 +90,6 @@
|
|
|
90
90
|
"mini-css-extract-plugin": "^1.1.1",
|
|
91
91
|
"mini-types": "*",
|
|
92
92
|
"miniprogram-api-typings": "*",
|
|
93
|
-
"node-sass": "^4.0.0",
|
|
94
93
|
"postcss-comment": "^2.0.0",
|
|
95
94
|
"require-context": "^1.1.0",
|
|
96
95
|
"sass": "^1.29.0",
|
|
@@ -22,6 +22,10 @@ module.exports = [
|
|
|
22
22
|
auth_code: ['临时授权码', 'String', '否'], //临时授权码,如果是快捷第一次登录,需要传
|
|
23
23
|
raw_data: ['小程序手机号加密前的数据', 'String', null], //小程序手机号加密前的数据,如果传了手机号可以不传
|
|
24
24
|
provider_id: ['登录方式id', 'Number', '必选'],
|
|
25
|
+
is_check_saas_company: ['是否验证SaaS公司', 'String', null],
|
|
26
|
+
saas_company_id: ['SaaS公司ID', 'String', null],
|
|
27
|
+
saas_user_name: ['用户姓名', 'String', null],
|
|
28
|
+
saas_job_number: ['工号', 'String', null],
|
|
25
29
|
},
|
|
26
30
|
isConsole: true,
|
|
27
31
|
disable: true,
|
|
@@ -475,6 +475,40 @@ export default {
|
|
|
475
475
|
placeholder: "请输入验证码自定义提示语",
|
|
476
476
|
className: 'input80',
|
|
477
477
|
},
|
|
478
|
+
{
|
|
479
|
+
label: "是否开启公司验证",
|
|
480
|
+
ele: "xd-radio",
|
|
481
|
+
valueKey: "is_check_saas_company",
|
|
482
|
+
value: data['is_check_saas_company'] || "N",
|
|
483
|
+
groupKey: "content",
|
|
484
|
+
list: [
|
|
485
|
+
{ label: '开启', value: 'Y' },
|
|
486
|
+
{ label: '关闭', value: 'N' },
|
|
487
|
+
]
|
|
488
|
+
},
|
|
489
|
+
data['is_check_saas_company'] && data['is_check_saas_company'] === 'Y' && {
|
|
490
|
+
label: "",
|
|
491
|
+
ele: "el-input",
|
|
492
|
+
valueKey: "saas_company_id",
|
|
493
|
+
value: data['saas_company_id'] || "",
|
|
494
|
+
groupKey: "content",
|
|
495
|
+
placeholder: "请输入公司ID",
|
|
496
|
+
className: 'input80',
|
|
497
|
+
},
|
|
498
|
+
data['is_check_saas_company'] && data['is_check_saas_company'] === 'Y' && {
|
|
499
|
+
label: '验证内容:',
|
|
500
|
+
ele: 'xd-select-list',
|
|
501
|
+
valueKey: 'verify_content',
|
|
502
|
+
groupKey: 'content',
|
|
503
|
+
className: 'input80',
|
|
504
|
+
value: data['verify_content'] || '',
|
|
505
|
+
multiple: true,
|
|
506
|
+
placeholder: "请选择验证内容",
|
|
507
|
+
list: [
|
|
508
|
+
{ "label": "姓名", "value": 'name' },
|
|
509
|
+
{ "label": "工号", "value": 'code_id' },
|
|
510
|
+
]
|
|
511
|
+
},
|
|
478
512
|
{
|
|
479
513
|
ele: "title",
|
|
480
514
|
label: "表单样式配置",
|
|
@@ -927,6 +961,6 @@ export default {
|
|
|
927
961
|
inline: false,
|
|
928
962
|
notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
929
963
|
},
|
|
930
|
-
]
|
|
964
|
+
].filter(i => i)
|
|
931
965
|
}
|
|
932
966
|
}
|
|
@@ -57,6 +57,32 @@
|
|
|
57
57
|
placeholder="请输入姓名"
|
|
58
58
|
/>
|
|
59
59
|
</xd-form-item>
|
|
60
|
+
<xd-form-item
|
|
61
|
+
v-if="verify_content && verify_content.includes('name')"
|
|
62
|
+
class="form-item"
|
|
63
|
+
:class="[inputStyle]"
|
|
64
|
+
:labelWidth="labelWidth"
|
|
65
|
+
label="姓名"
|
|
66
|
+
content-align="left"
|
|
67
|
+
>
|
|
68
|
+
<xd-form-input
|
|
69
|
+
v-model="accountForm.saas_user_name"
|
|
70
|
+
placeholder="请输入姓名"
|
|
71
|
+
/>
|
|
72
|
+
</xd-form-item>
|
|
73
|
+
<xd-form-item
|
|
74
|
+
v-if="verify_content && verify_content.includes('code_id')"
|
|
75
|
+
class="form-item"
|
|
76
|
+
:class="[inputStyle]"
|
|
77
|
+
:labelWidth="labelWidth"
|
|
78
|
+
label="工号"
|
|
79
|
+
content-align="left"
|
|
80
|
+
>
|
|
81
|
+
<xd-form-input
|
|
82
|
+
v-model="accountForm.saas_job_number"
|
|
83
|
+
placeholder="请输入工号"
|
|
84
|
+
/>
|
|
85
|
+
</xd-form-item>
|
|
60
86
|
<xd-form-item
|
|
61
87
|
class="form-item"
|
|
62
88
|
:class="[inputStyle]"
|
|
@@ -187,6 +213,9 @@ export default {
|
|
|
187
213
|
accountForm: {
|
|
188
214
|
phone_number: "",
|
|
189
215
|
verification_code: "",
|
|
216
|
+
saas_user_name: "",
|
|
217
|
+
saas_job_number: "",
|
|
218
|
+
user_name: "",
|
|
190
219
|
},
|
|
191
220
|
jfbTimeer: 0,
|
|
192
221
|
interval: null,
|
|
@@ -198,6 +227,9 @@ export default {
|
|
|
198
227
|
share_code: "",
|
|
199
228
|
phonePlaceholder:'', //
|
|
200
229
|
codePlaceholder:'', //
|
|
230
|
+
verify_content: '',
|
|
231
|
+
is_check_saas_company: 'N',
|
|
232
|
+
saas_company_id: '',
|
|
201
233
|
|
|
202
234
|
inputStyle: "linear", //输入框样式 linear:线性 face: 面性
|
|
203
235
|
formBorderColor: "#F9F9F9", //
|
|
@@ -497,6 +529,9 @@ export default {
|
|
|
497
529
|
this.labelPosition = "top";
|
|
498
530
|
this.labelAlign = "left";
|
|
499
531
|
}
|
|
532
|
+
this.verify_content = getContainerPropsValue(value, "content.verify_content", "");
|
|
533
|
+
this.is_check_saas_company = getContainerPropsValue(value, "content.is_check_saas_company", "N");
|
|
534
|
+
this.saas_company_id = getContainerPropsValue(value, "content.saas_company_id", "");
|
|
500
535
|
if (this.$configProject.isPreview) {
|
|
501
536
|
this.formRenderKey = Date.now();
|
|
502
537
|
}
|
|
@@ -584,8 +619,8 @@ export default {
|
|
|
584
619
|
});
|
|
585
620
|
},
|
|
586
621
|
doLoginForm() {
|
|
587
|
-
const { auth_code, provider_id } = this;
|
|
588
|
-
const { phone_number, verification_code, user_name } = this.accountForm;
|
|
622
|
+
const { auth_code, provider_id, is_check_saas_company, saas_company_id } = this;
|
|
623
|
+
const { phone_number, verification_code, saas_user_name, saas_job_number,user_name } = this.accountForm;
|
|
589
624
|
if (!phone_number || !verification_code){
|
|
590
625
|
return this.$xdAlert({
|
|
591
626
|
content: '手机号跟验证码不能为空',
|
|
@@ -602,6 +637,22 @@ export default {
|
|
|
602
637
|
zIndex: 5000
|
|
603
638
|
});
|
|
604
639
|
}
|
|
640
|
+
if(is_check_saas_company === 'Y' && !saas_job_number && this.verify_content.includes('saas_job_number')){
|
|
641
|
+
return this.$xdAlert({
|
|
642
|
+
content: '工号不能为空',
|
|
643
|
+
time: 2500,
|
|
644
|
+
isClose: false,
|
|
645
|
+
zIndex: 5000
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
if(is_check_saas_company === 'Y' && !saas_user_name && this.verify_content.includes('namesaas_user_name')){
|
|
649
|
+
return this.$xdAlert({
|
|
650
|
+
content: '用户姓名不能为空',
|
|
651
|
+
time: 2500,
|
|
652
|
+
isClose: false,
|
|
653
|
+
zIndex: 5000
|
|
654
|
+
});
|
|
655
|
+
}
|
|
605
656
|
this.$xdShowLoading({});
|
|
606
657
|
jfbRootExec("phoneLogin", {
|
|
607
658
|
vm: this,
|
|
@@ -611,6 +662,10 @@ export default {
|
|
|
611
662
|
phone_number,
|
|
612
663
|
verification_code,
|
|
613
664
|
user_name,
|
|
665
|
+
is_check_saas_company,
|
|
666
|
+
saas_company_id,
|
|
667
|
+
saas_user_name,
|
|
668
|
+
saas_job_number,
|
|
614
669
|
share_code: this.share_code
|
|
615
670
|
},
|
|
616
671
|
})
|