wangding-pickerAddress.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. (global.webpackJsonp = global.webpackJsonp || []).push([ [ "components/wangding-pickerAddress/wangding-pickerAddress" ], {
  2. 528: function(e, n, t) {
  3. t.r(n);
  4. var r = t(529), a = t(531);
  5. for (var i in a) "default" !== i && function(e) {
  6. t.d(n, e, function() {
  7. return a[e];
  8. });
  9. }(i);
  10. var d = t(13), u = Object(d.default)(a.default, r.render, r.staticRenderFns, !1, null, null, null, !1, r.components, void 0);
  11. u.options.__file = "components/wangding-pickerAddress/wangding-pickerAddress.vue",
  12. n.default = u.exports;
  13. },
  14. 529: function(e, n, t) {
  15. t.r(n);
  16. var r = t(530);
  17. t.d(n, "render", function() {
  18. return r.render;
  19. }), t.d(n, "staticRenderFns", function() {
  20. return r.staticRenderFns;
  21. }), t.d(n, "recyclableRender", function() {
  22. return r.recyclableRender;
  23. }), t.d(n, "components", function() {
  24. return r.components;
  25. });
  26. },
  27. 530: function(e, n, t) {
  28. t.r(n), t.d(n, "render", function() {
  29. return r;
  30. }), t.d(n, "staticRenderFns", function() {
  31. return i;
  32. }), t.d(n, "recyclableRender", function() {
  33. return a;
  34. }), t.d(n, "components", function() {});
  35. var r = function() {
  36. var e = this;
  37. e.$createElement;
  38. e._self._c;
  39. }, a = !1, i = [];
  40. r._withStripped = !0;
  41. },
  42. 531: function(e, n, t) {
  43. t.r(n);
  44. var r = t(532), a = t.n(r);
  45. for (var i in r) "default" !== i && function(e) {
  46. t.d(n, e, function() {
  47. return r[e];
  48. });
  49. }(i);
  50. n.default = a.a;
  51. },
  52. 532: function(e, n, t) {
  53. Object.defineProperty(n, "__esModule", {
  54. value: !0
  55. }), n.default = void 0;
  56. var r = function(e) {
  57. return e && e.__esModule ? e : {
  58. default: e
  59. };
  60. }(t(533)), a = [ "", "", "" ], i = {
  61. data: function() {
  62. return {
  63. value: [ 0, 0, 0 ],
  64. array: [],
  65. index: 0
  66. };
  67. },
  68. created: function() {
  69. this.initSelect();
  70. },
  71. methods: {
  72. initSelect: function() {
  73. this.updateSourceDate().updateAddressDate().$forceUpdate();
  74. },
  75. columnchange: function(e) {
  76. this.updateSelectIndex(e.detail.column, e.detail.value).updateSourceDate().updateAddressDate().$forceUpdate();
  77. },
  78. updateSourceDate: function() {
  79. return this.array = [], this.array[0] = r.default.map(function(e) {
  80. return {
  81. name: e.name
  82. };
  83. }), this.array[1] = r.default[this.value[0]].city.map(function(e) {
  84. return {
  85. name: e.name
  86. };
  87. }), this.array[2] = r.default[this.value[0]].city[this.value[1]].area.map(function(e) {
  88. return {
  89. name: e
  90. };
  91. }), this;
  92. },
  93. updateSelectIndex: function(e, n) {
  94. var t = JSON.parse(JSON.stringify(this.value));
  95. return t[e] = n, 0 === e && (t[1] = 0, t[2] = 0), 1 === e && (t[2] = 0), this.value = t,
  96. this;
  97. },
  98. updateAddressDate: function() {
  99. return a[0] = this.array[0][this.value[0]].name, a[1] = this.array[1][this.value[1]].name,
  100. a[2] = this.array[2][this.value[2]].name, this;
  101. },
  102. bindPickerChange: function(e) {
  103. return this.$emit("change", {
  104. index: this.value,
  105. data: a
  106. }), this;
  107. }
  108. }
  109. };
  110. n.default = i;
  111. }
  112. } ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "components/wangding-pickerAddress/wangding-pickerAddress-create-component", {
  113. "components/wangding-pickerAddress/wangding-pickerAddress-create-component": function(e, n, t) {
  114. t("1").createComponent(t(528));
  115. }
  116. }, [ [ "components/wangding-pickerAddress/wangding-pickerAddress-create-component" ] ] ]);