@zscreate/form-component 1.1.616-test.1 → 1.1.616-test.2

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.
@@ -1957,7 +1957,7 @@ dd[data-v-f7c20cf8] {
1957
1957
  }
1958
1958
 
1959
1959
 
1960
- [data-v-d38be826] .ant-radio-wrapper {
1960
+ [data-v-6fa3404e] .ant-radio-wrapper {
1961
1961
  white-space: initial !important;
1962
1962
  }
1963
1963
 
@@ -530,7 +530,7 @@ var staticRenderFns = []
530
530
 
531
531
 
532
532
  // EXTERNAL MODULE: ./src/form/modules/components/index.js + 1010 modules
533
- var components = __webpack_require__(4991);
533
+ var components = __webpack_require__(4497);
534
534
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_vue-loader@15.11.1@vue-loader\lib\index.js??vue-loader-options!./src/form/modules/common/Modals/CorrectionItem.vue?vue&type=script&lang=js
535
535
  //
536
536
  //
@@ -2772,7 +2772,7 @@ var component = (0,C_Users_nao_nao_a_AppData_Roaming_nvm_v14_18_0_node_modules_v
2772
2772
 
2773
2773
  /* harmony default export */ const CorrectionModal = (component.exports);
2774
2774
  // EXTERNAL MODULE: ./src/form/modules/components/index.js + 1010 modules
2775
- var components = __webpack_require__(4991);
2775
+ var components = __webpack_require__(4497);
2776
2776
  // EXTERNAL MODULE: ./node_modules/pubsub-js/src/pubsub.js
2777
2777
  var pubsub = __webpack_require__(3224);
2778
2778
  var pubsub_default = /*#__PURE__*/__webpack_require__.n(pubsub);
@@ -3955,7 +3955,7 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
3955
3955
  // EXTERNAL MODULE: ./src/api/manage.js
3956
3956
  var manage = __webpack_require__(1137);
3957
3957
  // EXTERNAL MODULE: ./src/form/modules/components/index.js + 1010 modules
3958
- var components = __webpack_require__(4991);
3958
+ var components = __webpack_require__(4497);
3959
3959
  // EXTERNAL MODULE: ./src/form/util/Bus.js
3960
3960
  var Bus = __webpack_require__(361);
3961
3961
  // EXTERNAL MODULE: ./src/form/modules/config/hnkj.js
@@ -71532,7 +71532,7 @@ let getFileExt = filename => {
71532
71532
  /* harmony import */ var _util_mathUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(8032);
71533
71533
  /* harmony import */ var _util_util__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(8187);
71534
71534
  /* harmony import */ var _layoutItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8632);
71535
- /* harmony import */ var _components_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4991);
71535
+ /* harmony import */ var _components_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4497);
71536
71536
  /* harmony import */ var pubsub_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(3224);
71537
71537
  /* harmony import */ var pubsub_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(pubsub_js__WEBPACK_IMPORTED_MODULE_9__);
71538
71538
  /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(9274);
@@ -74785,7 +74785,7 @@ module.exports = {
74785
74785
 
74786
74786
  /***/ }),
74787
74787
 
74788
- /***/ 4991:
74788
+ /***/ 4497:
74789
74789
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
74790
74790
 
74791
74791
  "use strict";
@@ -81904,8 +81904,8 @@ var Radio_widgetSetup_component = (0,C_Users_nao_nao_a_AppData_Roaming_nvm_v14_1
81904
81904
  )
81905
81905
 
81906
81906
  /* harmony default export */ const Radio_widgetSetup = (Radio_widgetSetup_component.exports);
81907
- ;// C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_vue-loader@15.11.1@vue-loader\lib\loaders\templateLoader.js??vue-loader-options!C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_vue-loader@15.11.1@vue-loader\lib\index.js??vue-loader-options!./src/form/modules/components/Radio/widgetDesign.vue?vue&type=template&id=d38be826&scoped=true
81908
- var widgetDesignvue_type_template_id_d38be826_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.widget)?_c('div',{staticClass:"custom_form_item",style:({ height: _vm.widget.options.height + 'px' })},[_c('a-form-model-item',{attrs:{"colon":false,"label-col":_vm.labelCol,"wrapperCol":_vm.wrapperCol}},[(!_vm.widget.options.disabled)?_c('a-radio-group',{attrs:{"placeholder":_vm.widget.options.placeholder},model:{value:(_vm.val),callback:function ($$v) {_vm.val=$$v},expression:"val"}},[(_vm.widget.options.inline == true)?_vm._l((_vm.dictOptions),function(item,index){return _c('a-radio',{key:index,style:({
81907
+ ;// C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_vue-loader@15.11.1@vue-loader\lib\loaders\templateLoader.js??vue-loader-options!C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_vue-loader@15.11.1@vue-loader\lib\index.js??vue-loader-options!./src/form/modules/components/Radio/widgetDesign.vue?vue&type=template&id=6fa3404e&scoped=true
81908
+ var widgetDesignvue_type_template_id_6fa3404e_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.widget)?_c('div',{staticClass:"custom_form_item",style:({ height: _vm.widget.options.height + 'px' })},[_c('a-form-model-item',{attrs:{"colon":false,"label-col":_vm.labelCol,"wrapperCol":_vm.wrapperCol}},[(!_vm.widget.options.disabled)?_c('a-radio-group',{attrs:{"placeholder":_vm.widget.options.placeholder},model:{value:(_vm.val),callback:function ($$v) {_vm.val=$$v},expression:"val"}},[(_vm.widget.options.inline == true)?_vm._l((_vm.dictOptions),function(item,index){return _c('a-radio',{key:index,style:({
81909
81909
  display: 'inline-block'
81910
81910
  }),attrs:{"value":item.value}},[_vm._v(" "+_vm._s(item.text)+" ")])}):_vm._e(),(_vm.widget.options.inline == false)?_vm._l((_vm.dictOptions),function(item,index){return _c('a-radio',{key:index,style:({
81911
81911
  display: 'block'
@@ -81917,7 +81917,7 @@ var widgetDesignvue_type_template_id_d38be826_scoped_true_render = function () {
81917
81917
  ],style:({
81918
81918
  color: _vm.config.color
81919
81919
  }),attrs:{"slot":"label"},slot:"label"},[_vm._v(" "+_vm._s(_vm.widget.name)+" ")])],1)],1):_vm._e()}
81920
- var widgetDesignvue_type_template_id_d38be826_scoped_true_staticRenderFns = []
81920
+ var widgetDesignvue_type_template_id_6fa3404e_scoped_true_staticRenderFns = []
81921
81921
 
81922
81922
 
81923
81923
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_vue-loader@15.11.1@vue-loader\lib\index.js??vue-loader-options!./src/form/modules/components/Radio/widgetDesign.vue?vue&type=script&lang=js
@@ -82045,6 +82045,12 @@ var widgetDesignvue_type_template_id_d38be826_scoped_true_staticRenderFns = []
82045
82045
  handler(val) {
82046
82046
  this.initDictData();
82047
82047
  }
82048
+ },
82049
+ 'widget.options.designDataList': {
82050
+ handler(val) {
82051
+ this.initDictData();
82052
+ },
82053
+ deep: true
82048
82054
  }
82049
82055
  },
82050
82056
  methods: {
@@ -82052,69 +82058,78 @@ var widgetDesignvue_type_template_id_d38be826_scoped_true_staticRenderFns = []
82052
82058
  this.dictOptions = dictOptions;
82053
82059
  },
82054
82060
  initDictData() {
82055
- if (this.widget.options.dictName) {
82056
- this.$http.get(`/sys/dict/getDictItems/${this.widget.options.dictName}`).then(res => {
82057
- if (res.success) {
82058
- this.dictOptions = res.result;
82059
- }
82060
- });
82061
- } else if (this.widget.options.dictTable) {
82062
- let params = {
82063
- tableName: this.widget.options.dictTable
82064
- };
82065
- this.$http.get("form/formdesiger/getDataCenterDict", {
82066
- params: params
82067
- }).then(res => {
82068
- console.log(res);
82069
- this.dictOptions = res.result.map(item => {
82070
- return {
82071
- value: item.dictValue,
82072
- text: item.dictLabel
82073
- };
82074
- });
82075
- console.log(this.dictOptions);
82061
+ if (this.widget.options.remoteNumber == '4') {
82062
+ this.dictOptions = this.widget.options.designDataList.map(item => {
82063
+ return {
82064
+ value: item.value,
82065
+ text: item.label
82066
+ };
82076
82067
  });
82077
- } else if (this.widget.options.dictUrl) {
82078
- if (this.widget.options.dictUrl.indexOf("?") != -1) {
82079
- let list = this.widget.options.dictUrl.split("?");
82080
- let url = list[0];
82081
- let params = this.getparams(list[1]);
82082
- console.log(url, "1111", params);
82083
- this.$http.get(url, params).then(res => {
82084
- console.log(res);
82068
+ } else {
82069
+ if (this.widget.options.dictName) {
82070
+ this.$http.get(`/sys/dict/getDictItems/${this.widget.options.dictName}`).then(res => {
82085
82071
  if (res.success) {
82086
- this.dictOptions = res.result.map(item => {
82087
- return {
82088
- value: item.dataKey,
82089
- text: item.dataValue
82090
- };
82091
- });
82072
+ this.dictOptions = res.result;
82092
82073
  }
82093
82074
  });
82094
- } else {
82095
- this.$http.get(this.widget.options.dictUrl).then(res => {
82075
+ } else if (this.widget.options.dictTable) {
82076
+ let params = {
82077
+ tableName: this.widget.options.dictTable
82078
+ };
82079
+ this.$http.get("form/formdesiger/getDataCenterDict", {
82080
+ params: params
82081
+ }).then(res => {
82096
82082
  console.log(res);
82097
- if (res.success) {
82098
- this.dictOptions = res.result.map(item => {
82099
- return {
82100
- value: item.dataKey,
82101
- text: item.dataValue
82102
- };
82103
- });
82104
- }
82083
+ this.dictOptions = res.result.map(item => {
82084
+ return {
82085
+ value: item.dictValue,
82086
+ text: item.dictLabel
82087
+ };
82088
+ });
82089
+ console.log(this.dictOptions);
82105
82090
  });
82091
+ } else if (this.widget.options.dictUrl) {
82092
+ if (this.widget.options.dictUrl.indexOf("?") != -1) {
82093
+ let list = this.widget.options.dictUrl.split("?");
82094
+ let url = list[0];
82095
+ let params = this.getparams(list[1]);
82096
+ console.log(url, "1111", params);
82097
+ this.$http.get(url, params).then(res => {
82098
+ console.log(res);
82099
+ if (res.success) {
82100
+ this.dictOptions = res.result.map(item => {
82101
+ return {
82102
+ value: item.dataKey,
82103
+ text: item.dataValue
82104
+ };
82105
+ });
82106
+ }
82107
+ });
82108
+ } else {
82109
+ this.$http.get(this.widget.options.dictUrl).then(res => {
82110
+ console.log(res);
82111
+ if (res.success) {
82112
+ this.dictOptions = res.result.map(item => {
82113
+ return {
82114
+ value: item.dataKey,
82115
+ text: item.dataValue
82116
+ };
82117
+ });
82118
+ }
82119
+ });
82120
+ }
82106
82121
  }
82122
+ this.dictOptions = "";
82107
82123
  }
82108
- this.dictOptions = "";
82109
82124
  }
82110
82125
  }
82111
82126
  });
82112
82127
  ;// ./src/form/modules/components/Radio/widgetDesign.vue?vue&type=script&lang=js
82113
82128
  /* harmony default export */ const components_Radio_widgetDesignvue_type_script_lang_js = (Radio_widgetDesignvue_type_script_lang_js);
82114
- ;// C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_mini-css-extract-plugin@2.9.2@mini-css-extract-plugin\dist\loader.js??clonedRuleSet-32.use[0]!C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_css-loader@6.11.0@css-loader\dist\cjs.js??clonedRuleSet-32.use[1]!C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_vue-loader@15.11.1@vue-loader\lib\loaders\stylePostLoader.js!C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_postcss-loader@6.2.1@postcss-loader\dist\cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_vue-loader@15.11.1@vue-loader\lib\index.js??vue-loader-options!./src/form/modules/components/Radio/widgetDesign.vue?vue&type=style&index=0&id=d38be826&prod&lang=less&scoped=true
82129
+ ;// C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_mini-css-extract-plugin@2.9.2@mini-css-extract-plugin\dist\loader.js??clonedRuleSet-32.use[0]!C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_css-loader@6.11.0@css-loader\dist\cjs.js??clonedRuleSet-32.use[1]!C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_vue-loader@15.11.1@vue-loader\lib\loaders\stylePostLoader.js!C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_postcss-loader@6.2.1@postcss-loader\dist\cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_vue-loader@15.11.1@vue-loader\lib\index.js??vue-loader-options!./src/form/modules/components/Radio/widgetDesign.vue?vue&type=style&index=0&id=6fa3404e&prod&lang=less&scoped=true
82115
82130
  // extracted by mini-css-extract-plugin
82116
82131
 
82117
- ;// ./src/form/modules/components/Radio/widgetDesign.vue?vue&type=style&index=0&id=d38be826&prod&lang=less&scoped=true
82132
+ ;// ./src/form/modules/components/Radio/widgetDesign.vue?vue&type=style&index=0&id=6fa3404e&prod&lang=less&scoped=true
82118
82133
 
82119
82134
  ;// ./src/form/modules/components/Radio/widgetDesign.vue
82120
82135
 
@@ -82127,11 +82142,11 @@ var widgetDesignvue_type_template_id_d38be826_scoped_true_staticRenderFns = []
82127
82142
 
82128
82143
  var Radio_widgetDesign_component = (0,C_Users_nao_nao_a_AppData_Roaming_nvm_v14_18_0_node_modules_vue_cli_service_node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer/* default */.A)(
82129
82144
  components_Radio_widgetDesignvue_type_script_lang_js,
82130
- widgetDesignvue_type_template_id_d38be826_scoped_true_render,
82131
- widgetDesignvue_type_template_id_d38be826_scoped_true_staticRenderFns,
82145
+ widgetDesignvue_type_template_id_6fa3404e_scoped_true_render,
82146
+ widgetDesignvue_type_template_id_6fa3404e_scoped_true_staticRenderFns,
82132
82147
  false,
82133
82148
  null,
82134
- "d38be826",
82149
+ "6fa3404e",
82135
82150
  null
82136
82151
 
82137
82152
  )
@@ -82867,8 +82882,8 @@ var Checkbox_widgetSetup_component = (0,C_Users_nao_nao_a_AppData_Roaming_nvm_v1
82867
82882
  )
82868
82883
 
82869
82884
  /* harmony default export */ const Checkbox_widgetSetup = (Checkbox_widgetSetup_component.exports);
82870
- ;// C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_vue-loader@15.11.1@vue-loader\lib\loaders\templateLoader.js??vue-loader-options!C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_vue-loader@15.11.1@vue-loader\lib\index.js??vue-loader-options!./src/form/modules/components/Checkbox/widgetDesign.vue?vue&type=template&id=7bea8c66
82871
- var widgetDesignvue_type_template_id_7bea8c66_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.widget)?_c('div',{staticClass:"custom_form_item",style:({ height: _vm.widget.options.height + 'px' })},[_c('a-form-model-item',{attrs:{"colon":false,"label-col":_vm.labelCol,"wrapperCol":_vm.wrapperCol}},[(!_vm.widget.options.disabled)?_c('a-checkbox-group',{staticStyle:{"width":"100%"},attrs:{"placeholder":_vm.widget.options.placeholder},on:{"change":_vm.onChange},model:{value:(_vm.dataModel),callback:function ($$v) {_vm.dataModel=$$v},expression:"dataModel"}},[(_vm.widget.options.inline == true)?_vm._l((_vm.dictOptions),function(item,index){return _c('a-checkbox',{key:index,style:({
82885
+ ;// C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_vue-loader@15.11.1@vue-loader\lib\loaders\templateLoader.js??vue-loader-options!C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_vue-loader@15.11.1@vue-loader\lib\index.js??vue-loader-options!./src/form/modules/components/Checkbox/widgetDesign.vue?vue&type=template&id=20598570
82886
+ var widgetDesignvue_type_template_id_20598570_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.widget)?_c('div',{staticClass:"custom_form_item",style:({ height: _vm.widget.options.height + 'px' })},[_c('a-form-model-item',{attrs:{"colon":false,"label-col":_vm.labelCol,"wrapperCol":_vm.wrapperCol}},[(!_vm.widget.options.disabled)?_c('a-checkbox-group',{staticStyle:{"width":"100%"},attrs:{"placeholder":_vm.widget.options.placeholder},on:{"change":_vm.onChange},model:{value:(_vm.dataModel),callback:function ($$v) {_vm.dataModel=$$v},expression:"dataModel"}},[(_vm.widget.options.inline == true)?_vm._l((_vm.dictOptions),function(item,index){return _c('a-checkbox',{key:index,style:({
82872
82887
  display: 'inline-block'
82873
82888
  }),attrs:{"value":item.value}},[_vm._v(_vm._s(item.text))])}):_vm._e(),(_vm.widget.options.inline == false)?_vm._l((_vm.dictOptions),function(item,index){return _c('a-checkbox',{key:index,style:({
82874
82889
  display: 'block'
@@ -82879,7 +82894,7 @@ var widgetDesignvue_type_template_id_7bea8c66_render = function () {var _vm=this
82879
82894
  : 'no_required' ],style:({
82880
82895
  color: _vm.config.color,
82881
82896
  }),attrs:{"slot":"label"},slot:"label"},[_vm._v(" "+_vm._s(_vm.widget.name)+" ")])],1)],1):_vm._e()}
82882
- var widgetDesignvue_type_template_id_7bea8c66_staticRenderFns = []
82897
+ var widgetDesignvue_type_template_id_20598570_staticRenderFns = []
82883
82898
 
82884
82899
 
82885
82900
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!C:\Users\nao'nao'a\AppData\Roaming\nvm\v14.18.0\node_modules\@vue\cli-service\node_modules\_vue-loader@15.11.1@vue-loader\lib\index.js??vue-loader-options!./src/form/modules/components/Checkbox/widgetDesign.vue?vue&type=script&lang=js
@@ -83016,6 +83031,12 @@ var widgetDesignvue_type_template_id_7bea8c66_staticRenderFns = []
83016
83031
  handler(val) {
83017
83032
  this.initDictData();
83018
83033
  }
83034
+ },
83035
+ 'widget.options.designDataList': {
83036
+ handler(val) {
83037
+ this.initDictData();
83038
+ },
83039
+ deep: true
83019
83040
  }
83020
83041
  },
83021
83042
  methods: {
@@ -83023,60 +83044,69 @@ var widgetDesignvue_type_template_id_7bea8c66_staticRenderFns = []
83023
83044
  console.log("checked = ", checkedValues);
83024
83045
  },
83025
83046
  initDictData() {
83026
- if (this.widget.options.dictName) {
83027
- this.$http.get(`/sys/dict/getDictItems/${this.widget.options.dictName}`).then(res => {
83028
- if (res.success) {
83029
- this.dictOptions = res.result;
83030
- }
83031
- });
83032
- } else if (this.widget.options.dictTable) {
83033
- let params = {
83034
- tableName: this.widget.options.dictTable
83035
- };
83036
- this.$http.get("form/formdesiger/getDataCenterDict", {
83037
- params: params
83038
- }).then(res => {
83039
- console.log(res);
83040
- this.dictOptions = res.result.map(item => {
83041
- return {
83042
- value: item.dictValue,
83043
- text: item.dictLabel
83044
- };
83045
- });
83046
- console.log(this.dictOptions);
83047
+ if (this.widget.options.remoteNumber == '4') {
83048
+ this.dictOptions = this.widget.options.designDataList.map(item => {
83049
+ return {
83050
+ value: item.value,
83051
+ text: item.label
83052
+ };
83047
83053
  });
83048
- } else if (this.widget.options.dictUrl) {
83049
- if (this.widget.options.dictUrl.indexOf("?") != -1) {
83050
- let list = this.widget.options.dictUrl.split("?");
83051
- let url = list[0];
83052
- let params = this.getparams(list[1]);
83053
- console.log(url, "1111", params);
83054
- this.$http.get(url, params).then(res => {
83055
- console.log(res);
83054
+ } else {
83055
+ if (this.widget.options.dictName) {
83056
+ this.$http.get(`/sys/dict/getDictItems/${this.widget.options.dictName}`).then(res => {
83056
83057
  if (res.success) {
83057
- this.dictOptions = res.result.map(item => {
83058
- return {
83059
- value: item.dataKey,
83060
- text: item.dataValue
83061
- };
83062
- });
83058
+ this.dictOptions = res.result;
83063
83059
  }
83064
83060
  });
83065
- } else {
83066
- this.$http.get(this.widget.options.dictUrl).then(res => {
83061
+ } else if (this.widget.options.dictTable) {
83062
+ let params = {
83063
+ tableName: this.widget.options.dictTable
83064
+ };
83065
+ this.$http.get("form/formdesiger/getDataCenterDict", {
83066
+ params: params
83067
+ }).then(res => {
83067
83068
  console.log(res);
83068
- if (res.success) {
83069
- this.dictOptions = res.result.map(item => {
83070
- return {
83071
- value: item.id,
83072
- text: item.departName
83073
- };
83074
- });
83075
- }
83069
+ this.dictOptions = res.result.map(item => {
83070
+ return {
83071
+ value: item.dictValue,
83072
+ text: item.dictLabel
83073
+ };
83074
+ });
83075
+ console.log(this.dictOptions);
83076
83076
  });
83077
+ } else if (this.widget.options.dictUrl) {
83078
+ if (this.widget.options.dictUrl.indexOf("?") != -1) {
83079
+ let list = this.widget.options.dictUrl.split("?");
83080
+ let url = list[0];
83081
+ let params = this.getparams(list[1]);
83082
+ console.log(url, "1111", params);
83083
+ this.$http.get(url, params).then(res => {
83084
+ console.log(res);
83085
+ if (res.success) {
83086
+ this.dictOptions = res.result.map(item => {
83087
+ return {
83088
+ value: item.dataKey,
83089
+ text: item.dataValue
83090
+ };
83091
+ });
83092
+ }
83093
+ });
83094
+ } else {
83095
+ this.$http.get(this.widget.options.dictUrl).then(res => {
83096
+ console.log(res);
83097
+ if (res.success) {
83098
+ this.dictOptions = res.result.map(item => {
83099
+ return {
83100
+ value: item.id,
83101
+ text: item.departName
83102
+ };
83103
+ });
83104
+ }
83105
+ });
83106
+ }
83077
83107
  }
83108
+ this.dictOptions = "";
83078
83109
  }
83079
- this.dictOptions = "";
83080
83110
  }
83081
83111
  }
83082
83112
  });
@@ -83092,8 +83122,8 @@ var widgetDesignvue_type_template_id_7bea8c66_staticRenderFns = []
83092
83122
  ;
83093
83123
  var Checkbox_widgetDesign_component = (0,C_Users_nao_nao_a_AppData_Roaming_nvm_v14_18_0_node_modules_vue_cli_service_node_modules_vue_loader_15_11_1_vue_loader_lib_runtime_componentNormalizer/* default */.A)(
83094
83124
  components_Checkbox_widgetDesignvue_type_script_lang_js,
83095
- widgetDesignvue_type_template_id_7bea8c66_render,
83096
- widgetDesignvue_type_template_id_7bea8c66_staticRenderFns,
83125
+ widgetDesignvue_type_template_id_20598570_render,
83126
+ widgetDesignvue_type_template_id_20598570_staticRenderFns,
83097
83127
  false,
83098
83128
  null,
83099
83129
  null,
@@ -156954,7 +156984,7 @@ function toString(value) {
156954
156984
  /***/ ((module) => {
156955
156985
 
156956
156986
  "use strict";
156957
- module.exports = /*#__PURE__*/JSON.parse('{"rE":"1.1.616-test.1"}');
156987
+ module.exports = /*#__PURE__*/JSON.parse('{"rE":"1.1.616-test.2"}');
156958
156988
 
156959
156989
  /***/ })
156960
156990
 
@@ -172250,7 +172280,7 @@ var C_Users_nao_nao_a_AppData_Roaming_nvm_v14_18_0_node_modules_vue_cli_service_
172250
172280
  // EXTERNAL MODULE: ./src/form/util/util.js
172251
172281
  var C_Users_nao_nao_a_AppData_Roaming_nvm_v14_18_0_node_modules_vue_cli_service_lib_commands_build_entry_lib_util_util = __webpack_require__(8187);
172252
172282
  // EXTERNAL MODULE: ./src/form/modules/components/index.js + 1010 modules
172253
- var C_Users_nao_nao_a_AppData_Roaming_nvm_v14_18_0_node_modules_vue_cli_service_lib_commands_build_entry_lib_components = __webpack_require__(4991);
172283
+ var C_Users_nao_nao_a_AppData_Roaming_nvm_v14_18_0_node_modules_vue_cli_service_lib_commands_build_entry_lib_components = __webpack_require__(4497);
172254
172284
  // EXTERNAL MODULE: ./src/form/modules/widgetFormItem.vue + 6 modules
172255
172285
  var C_Users_nao_nao_a_AppData_Roaming_nvm_v14_18_0_node_modules_vue_cli_service_lib_commands_build_entry_lib_widgetFormItem = __webpack_require__(4019);
172256
172286
  // EXTERNAL MODULE: ./src/form/modules/WidgetIdeaSignItem.vue + 5 modules
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/form-component",
3
- "version": "1.1.616-test.1",
3
+ "version": "1.1.616-test.2",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "main": "dist/form-component.umd.js",