gds-plus-design-vue 1.0.28 → 1.1.0

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.
@@ -1,5 +1,5 @@
1
1
  import o from "vue";
2
- import { n, m as l, c as u, g as h, a as f, u as g, r as w, b as v, l as A, d as b, e as y, f as R } from "./index.99cc02d4.mjs";
2
+ import { n, m as l, c as u, g as h, a as f, u as g, r as w, b as v, l as A, d as b, e as y, f as R } from "./index.1461b9ac.mjs";
3
3
  const C = {
4
4
  name: "GdVerificationCode",
5
5
  props: {
@@ -62,7 +62,7 @@ var I = function() {
62
62
  P,
63
63
  !1,
64
64
  null,
65
- "971b60bc",
65
+ "49ede38e",
66
66
  null,
67
67
  null
68
68
  );
@@ -145,7 +145,7 @@ var x = function() {
145
145
  F,
146
146
  !1,
147
147
  null,
148
- "3cfce932",
148
+ "e2affca3",
149
149
  null,
150
150
  null
151
151
  );
@@ -204,9 +204,7 @@ const D = {
204
204
  return this.isShow == !0 ? this.$i18nt("gd.account.changePassword") : this.$i18nt("gd.account.resetPasswords");
205
205
  },
206
206
  loginTitle() {
207
- return this.isShow == !0 ? this.$i18nt("gd.account.passAuthentication") : this.$i18nt(
208
- "gd.account.userAuthentication"
209
- );
207
+ return this.isShow == !0 ? this.$i18nt("gd.account.passAuthentication") : this.$i18nt("gd.account.userAuthentication");
210
208
  },
211
209
  styleTitle() {
212
210
  return this.isShow == !0 ? "color:#ff6446;display:block;margin-bottom:10px;margin-top:10px" : "color:#534d53;font-size:16px;display:block;text-align:center;margin-bottom:5px";
@@ -220,13 +218,13 @@ const D = {
220
218
  },
221
219
  methods: {
222
220
  open(i, e, t, s) {
223
- console.log(e), this.isNext = !1, this.isPrev = !1, this.isVerify = !1, this.isAccomplish = !1, this.type = i, this.visible = !0, this.userVerify = e, this.userPRCId = s, e != null && t == 1 && s == null ? (this.getConfigInfo(), console.log(111111), this.isPrev = i != 1, this.isNext = this.isPrev != !0, this.isAccomplish = this.isNext != !0, this.ruleForm = {
221
+ this.isNext = !1, this.isPrev = !1, this.isVerify = !1, this.isAccomplish = !1, this.type = i, this.visible = !0, this.userVerify = e, this.userPRCId = s, e != null && t == 1 && s == null ? (this.getConfigInfo(), this.isPrev = i != 1, this.isNext = this.isPrev != !0, this.isAccomplish = this.isNext != !0, this.ruleForm = {
224
222
  account: e
225
- }) : e != null && t == 2 && s == null ? (console.log(222), this.$nextTick(() => {
223
+ }) : e != null && t == 2 && s == null ? (this.$nextTick(() => {
226
224
  this.ruleForm = {
227
225
  account: e
228
226
  }, this.$refs.verifi.refreshCode();
229
- }), this.isVerify = i == 1, this.isNext = this.isVerify != !0) : (console.log(2222333), this.getConfigInfo(), this.isDisabled = !1, this.isNext = i == 2);
227
+ }), this.isVerify = i == 1, this.isNext = this.isVerify != !0) : (this.getConfigInfo(), this.isDisabled = !1, this.isNext = i == 2);
230
228
  },
231
229
  getCheck(i) {
232
230
  this.confirmLoading = !0, u({
@@ -241,16 +239,14 @@ const D = {
241
239
  h({
242
240
  code: "GDS_PASSWORD_LENGTH"
243
241
  }).then((e) => {
244
- this.min = parseInt(e.data.lengthRule.value), this.lenMin = parseInt(e.data.lengthRule.value), this.messageTip = e.data.lengthRule.remark;
242
+ this.min = parseInt(e.data.lengthrule.value), this.lenMin = parseInt(e.data.lengthrule.value), this.messageTip = e.data.lengthrule.remark;
245
243
  });
246
244
  },
247
245
  getConfigInfo(i) {
248
246
  f().then((e) => {
249
- this.min = parseInt(e.data.lengthRule.value), this.lenMin = parseInt(e.data.lengthRule.value), this.messageTip = e.data.lengthRule.remark, this.maskValue = e.data.combinationRule.value, this.lenMax = 16, this.maskValue.includes("AL") && this.maskValue.includes("NU") && this.maskValue.includes(
250
- "SC"
251
- ) ? this.pattern = new RegExp(
247
+ this.min = parseInt(e.data.lengthrule.value), this.lenMin = parseInt(e.data.lengthrule.value), this.messageTip = e.data.lengthrule.remark, this.maskValue = e.data.combinationrule.value, this.lenMax = 16, this.maskValue.includes("AL") && this.maskValue.includes("NU") && this.maskValue.includes("SC") ? this.pattern = new RegExp(
252
248
  `^(?=.*\\d)(?=.*?[el-z])(?=.*?[el-Z])(?=.*[~!@#$%^&*])[\\del-zel-Z~!@#$%^&*]{${this.lenMin},${this.lenMax}}$`
253
- ) : this.maskValue.includes("AL") && this.maskValue.includes("NU") ? this.pattern = new RegExp("(?=.*\\d)(?=.*?[el-z])(?=.*?[el-Z])") : this.maskValue.includes("AL") && this.maskValue.includes("SC") ? this.pattern = new RegExp("(?=.*[~!@#$%^&*])(?=.*?[el-z])(?=.*?[el-Z]))") : this.maskValue.includes("NU") && this.maskValue.includes("SC") ? this.pattern = new RegExp("(?=.*\\d)(?=.*[~!@#$%^&*])") : this.maskValue.includes("AL") ? this.pattern = new RegExp("^(?=.*?[el-z])(?=.*?[el-Z])") : this.maskValue.includes("NU") ? this.pattern = new RegExp("\\d") : this.maskValue.includes("SC") && (this.pattern = new RegExp("[^el-zel-Z0-9]")), this.messageTipErr = e.data.combinationRule.remark;
249
+ ) : this.maskValue.includes("AL") && this.maskValue.includes("NU") ? this.pattern = new RegExp("(?=.*\\d)(?=.*?[el-z])(?=.*?[el-Z])") : this.maskValue.includes("AL") && this.maskValue.includes("SC") ? this.pattern = new RegExp("(?=.*[~!@#$%^&*])(?=.*?[el-z])(?=.*?[el-Z]))") : this.maskValue.includes("NU") && this.maskValue.includes("SC") ? this.pattern = new RegExp("(?=.*\\d)(?=.*[~!@#$%^&*])") : this.maskValue.includes("AL") ? this.pattern = new RegExp("^(?=.*?[el-z])(?=.*?[el-Z])") : this.maskValue.includes("NU") ? this.pattern = new RegExp("\\d") : this.maskValue.includes("SC") && (this.pattern = new RegExp("[^el-zel-Z0-9]")), this.messageTipErr = e.data.combinationrule.remark;
254
250
  });
255
251
  },
256
252
  handleCancel() {
@@ -266,7 +262,7 @@ const D = {
266
262
  callback: () => {
267
263
  },
268
264
  beforeClose: (i, e, t) => {
269
- if (console.log(i), i !== "confirm") {
265
+ if (i !== "confirm") {
270
266
  this.visible = !0, t();
271
267
  return;
272
268
  }
@@ -283,9 +279,7 @@ const D = {
283
279
  e && e === this.ruleForm.password ? t(this.$i18nt("gd.account.repeatPawTipodl")) : t();
284
280
  },
285
281
  handleUsernameOrEmail(i, e, t) {
286
- const {
287
- state: s
288
- } = this;
282
+ const { state: s } = this;
289
283
  /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/.test(e) ? s.loginType = 0 : s.loginType = 1, t();
290
284
  },
291
285
  prev(i) {
@@ -359,7 +353,11 @@ const D = {
359
353
  message: e("div", {}, [
360
354
  e("i", { class: "el-icon-circle-check", style: "color:" + this.primaryColor + ";font-size: 20px;margin:0 10px;" }),
361
355
  e("span", this.$i18nt("gd.https.verification")),
362
- e("p", { style: "margin:10px 10px 0 40px;" }, this.$i18nt("gd.account.promptInfo") + i + this.$i18nt("gd.account.promptMes")),
356
+ e(
357
+ "p",
358
+ { style: "margin:10px 10px 0 40px;" },
359
+ this.$i18nt("gd.account.promptInfo") + i + this.$i18nt("gd.account.promptMes")
360
+ ),
363
361
  e("p", { style: "margin:10px 10px 0 40px;" }, this.$i18nt("gd.account.promptMessage")),
364
362
  e("p", { style: "margin:10px 10px 0 40px;" }, this.$i18nt("gd.account.promptMess"))
365
363
  ]),
@@ -393,16 +391,29 @@ var L = function() {
393
391
  e.$set(e.ruleForm, "account", s);
394
392
  }, expression: "ruleForm.account" } })], 1)], e.isShow ? [t("el-form-item", { directives: [{ name: "show", rawName: "v-show", value: e.type == 2, expression: "type == 2" }], attrs: { label: e.$i18nt("gd.account.originalPaw", "\u539F\u5BC6\u7801"), prop: "password", rules: [{ required: !0, message: e.$i18nt("gd.placeholder.input") }] } }, [t("el-input", { attrs: { maxLength: 16, placeholder: e.$i18nt("gd.placeholder.input"), type: "password" }, model: { value: e.ruleForm.password, callback: function(s) {
395
393
  e.$set(e.ruleForm, "password", s);
396
- }, expression: "ruleForm.password" } })], 1), t("el-form-item", { directives: [{ name: "show", rawName: "v-show", value: e.type == 2, expression: "type == 2" }], attrs: { label: e.$i18nt("gd.account.newPaw"), prop: "newPassword", rules: [{ required: !0, min: e.min, message: e.messageTip }, { pattern: e.pattern, message: e.messageTipErr }, { validator: e.oldtPassword }] } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input"), type: "password", maxLength: 16 }, model: { value: e.ruleForm.newPassword, callback: function(s) {
394
+ }, expression: "ruleForm.password" } })], 1), t("el-form-item", { directives: [{ name: "show", rawName: "v-show", value: e.type == 2, expression: "type == 2" }], attrs: { label: e.$i18nt("gd.account.newPaw"), prop: "newPassword", rules: [
395
+ { required: !0, min: e.min, message: e.messageTip },
396
+ { pattern: e.pattern, message: e.messageTipErr },
397
+ { validator: e.oldtPassword }
398
+ ] } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input"), type: "password", maxLength: 16 }, model: { value: e.ruleForm.newPassword, callback: function(s) {
397
399
  e.$set(e.ruleForm, "newPassword", s);
398
- }, expression: "ruleForm.newPassword" } })], 1), t("el-form-item", { directives: [{ name: "show", rawName: "v-show", value: e.type == 2, expression: "type == 2" }], attrs: { label: e.$i18nt("gd.account.repeatPaw"), prop: "confirm", rules: [{ required: !0, message: e.$i18nt("gd.account.repeatPawTip", "\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801") }, { validator: e.compareToFirstPassword }] } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.account.repeatPawTip", "\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801"), type: "password", maxLength: 16 }, model: { value: e.ruleForm.confirm, callback: function(s) {
400
+ }, expression: "ruleForm.newPassword" } })], 1), t("el-form-item", { directives: [{ name: "show", rawName: "v-show", value: e.type == 2, expression: "type == 2" }], attrs: { label: e.$i18nt("gd.account.repeatPaw"), prop: "confirm", rules: [
401
+ { required: !0, message: e.$i18nt("gd.account.repeatPawTip", "\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801") },
402
+ { validator: e.compareToFirstPassword }
403
+ ] } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.account.repeatPawTip", "\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801"), type: "password", maxLength: 16 }, model: { value: e.ruleForm.confirm, callback: function(s) {
399
404
  e.$set(e.ruleForm, "confirm", s);
400
- }, expression: "ruleForm.confirm" } })], 1)] : !e.isShow && e.type == 2 ? [t("el-form-item", { attrs: { label: e.$i18nt("gd.account.newPaw", "\u65B0\u5BC6\u7801"), prop: "newPassword", rules: [{ required: !0, min: e.min, message: e.messageTip }, { pattern: e.pattern, message: e.messageTipErr }] } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input"), type: "password", maxLength: 16 }, model: { value: e.ruleForm.newPassword, callback: function(s) {
405
+ }, expression: "ruleForm.confirm" } })], 1)] : !e.isShow && e.type == 2 ? [t("el-form-item", { attrs: { label: e.$i18nt("gd.account.newPaw", "\u65B0\u5BC6\u7801"), prop: "newPassword", rules: [
406
+ { required: !0, min: e.min, message: e.messageTip },
407
+ { pattern: e.pattern, message: e.messageTipErr }
408
+ ] } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input"), type: "password", maxLength: 16 }, model: { value: e.ruleForm.newPassword, callback: function(s) {
401
409
  e.$set(e.ruleForm, "newPassword", s);
402
- }, expression: "ruleForm.newPassword" } })], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.account.repeatPaw"), prop: "confirm", rules: [{
403
- required: !0,
404
- message: e.$i18nt("gd.account.repeatPawTip")
405
- }, { validator: e.compareToFirstPassword }] } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.account.repeatPawTip"), type: "password", maxLength: 16 }, model: { value: e.ruleForm.confirm, callback: function(s) {
410
+ }, expression: "ruleForm.newPassword" } })], 1), t("el-form-item", { attrs: { label: e.$i18nt("gd.account.repeatPaw"), prop: "confirm", rules: [
411
+ {
412
+ required: !0,
413
+ message: e.$i18nt("gd.account.repeatPawTip")
414
+ },
415
+ { validator: e.compareToFirstPassword }
416
+ ] } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.account.repeatPawTip"), type: "password", maxLength: 16 }, model: { value: e.ruleForm.confirm, callback: function(s) {
406
417
  e.$set(e.ruleForm, "confirm", s);
407
418
  }, expression: "ruleForm.confirm" } })], 1)] : [t("el-form-item", { attrs: { label: e.$i18nt("gd.account.eamil"), prop: "email", rules: [{ required: !0, message: e.$i18nt("gd.account.eamilTip") }] } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.account.eamilTip"), size: "medium" }, model: { value: e.ruleForm.email, callback: function(s) {
408
419
  e.$set(e.ruleForm, "email", s);
@@ -425,7 +436,7 @@ var L = function() {
425
436
  k,
426
437
  !1,
427
438
  null,
428
- "036a57bd",
439
+ "356a2cad",
429
440
  null,
430
441
  null
431
442
  );
@@ -482,7 +493,7 @@ const G = {
482
493
  getWeChat(i) {
483
494
  let e = this;
484
495
  i.data.forEach((t, s) => {
485
- t.code == "GDS_ENTERPRISE_WECHAT_CropID" && (console.log(1111), e.appId = t.value), t.code == "GDS_ENTERPRISE_WECHAT_AgentId" && (e.agentId = t.value), t.code == "GDS_ENTERPRISE_WECHAT_Redirect_URL" && (e.redirectURL = t.value);
496
+ t.code == "GDS_ENTERPRISE_WECHAT_CropID" && (e.appId = t.value), t.code == "GDS_ENTERPRISE_WECHAT_AgentId" && (e.agentId = t.value), t.code == "GDS_ENTERPRISE_WECHAT_Redirect_URL" && (e.redirectURL = t.value);
486
497
  }), setTimeout(() => {
487
498
  e.wwLogin = ww.createWWLoginPanel({
488
499
  el: "#wx_qrcode",
@@ -500,7 +511,7 @@ const G = {
500
511
  console.log(t);
501
512
  },
502
513
  onLoginSuccess({ code: t }) {
503
- e.code = t, e.confirmLoading = !0, e.getloginByWeChatWork(t, e.confirmLoading), console.log(t);
514
+ e.code = t, e.confirmLoading = !0, e.getloginByWeChatWork(t, e.confirmLoading);
504
515
  },
505
516
  onLoginFail(t) {
506
517
  console.log(t);
@@ -511,7 +522,7 @@ const G = {
511
522
  getloginByWeChatWork(i) {
512
523
  A({ code: i }).then((e) => {
513
524
  if (e.success) {
514
- o.ls.set(ACCESS_TOKEN, e.data.accessToken), this.$store.commit("SET_TOKEN", e.data.accessToken), this.isInitialize = e.data.isInitialize, this.pwdExpiration = e.data.pwdExpiration, this.wxUserId = e.data.wxUserId, this.setDate = new Date(this.pwdExpiration), this.currentTime = new Date(e.timestamp);
525
+ o.ls.set(ACCESS_TOKEN, e.data.accesstoken), this.$store.commit("SET_TOKEN", e.data.accesstoken), this.isInitialize = e.data.isinitialize, this.pwdExpiration = e.data.pwdexpiration, this.wxUserId = e.data.wxuserid, this.setDate = new Date(this.pwdExpiration), this.currentTime = new Date(e.timestamp);
515
526
  let t = 24 * 60 * 60 * 1e3, s = this.setDate - this.currentTime + t, r = parseInt(s / (1e3 * 60 * 60 * 24));
516
527
  if (this.isInitialize == 1 && e.data.account != "") {
517
528
  let a = {
@@ -554,9 +565,7 @@ const G = {
554
565
  this.confirmLoading = !1, this.visible = !1, this.num == 1 ? this.$refs.wx_qrcode.innerHTML = "" : this.formUpdPwd.resetFields();
555
566
  },
556
567
  handleUsernameOrEmail(i, e, t) {
557
- const {
558
- state: s
559
- } = this;
568
+ const { state: s } = this;
560
569
  /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/.test(e) ? s.loginType = 0 : s.loginType = 1, t();
561
570
  },
562
571
  accomplish() {
@@ -593,7 +602,7 @@ var V = function() {
593
602
  Z,
594
603
  !1,
595
604
  null,
596
- "8400fc32",
605
+ "9f8c9de7",
597
606
  null,
598
607
  null
599
608
  );
@@ -712,7 +721,7 @@ const M = {
712
721
  account: this.ruleForm.account.trim(),
713
722
  password: this.ruleForm.password.trim()
714
723
  }).then((t) => {
715
- this.isInitialize = t.data.isInitialize, this.pwdExpiration = t.data.pwdExpiration, this.setDate = new Date(this.pwdExpiration), this.currentTime = new Date(t.timestamp);
724
+ this.isInitialize = t.data.isinitialize, this.pwdExpiration = t.data.pwdexpiration, this.setDate = new Date(this.pwdExpiration), this.currentTime = new Date(t.timestamp);
716
725
  let s = 24 * 60 * 60 * 1e3, r = this.setDate - this.currentTime + s, a = parseInt(r / (1e3 * 60 * 60 * 24));
717
726
  if (this.isInitialize == 1) {
718
727
  this.isShow = !0;
@@ -779,7 +788,7 @@ const M = {
779
788
  },
780
789
  loginSuccess(i) {
781
790
  this.setLocalStorageData();
782
- let e = i.data.configTheme ? i.data.configTheme.replace(/\\/g, "/").split(",") : null, t = "/";
791
+ let e = i.data.configtheme ? i.data.configtheme.replace(/\\/g, "/").split(",") : null, t = "/";
783
792
  if (e) {
784
793
  let s = e[e.length - 1];
785
794
  String(s).split("").forEach((r, a) => {
@@ -851,7 +860,7 @@ const M = {
851
860
  },
852
861
  beforeClose: (t, s, r) => {
853
862
  if (t !== "confirm") {
854
- e.$refs.weChat.open(i.data.wxUserId, 2, this.obj), r();
863
+ e.$refs.weChat.open(i.data.wxuserid, 2, this.obj), r();
855
864
  return;
856
865
  }
857
866
  i.data.account != "" ? e.loginSuccess(i) : e.$message.warning(e.$i18nt("gd.https.bindTip", "\u7ED1\u5B9A"));
@@ -900,11 +909,11 @@ var B = function() {
900
909
  O,
901
910
  !1,
902
911
  null,
903
- "43600593",
912
+ "2a38b7e6",
904
913
  null,
905
914
  null
906
915
  );
907
- const H = Y.exports;
916
+ const U = Y.exports;
908
917
  export {
909
- H as default
918
+ U as default
910
919
  };