@zscreate/form-component 1.1.642 → 1.1.644

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.
@@ -4889,46 +4889,46 @@ div {
4889
4889
  align-items: center;
4890
4890
  }
4891
4891
 
4892
- .t-border[data-v-16ae2148] {
4892
+ .t-border[data-v-2ca700da] {
4893
4893
  border-right: 1px solid #333;
4894
4894
  border-bottom: 1px solid #333;
4895
4895
  }
4896
- [data-v-16ae2148] * {
4896
+ [data-v-2ca700da] * {
4897
4897
  font-size: var(--paperFontSize);
4898
4898
  }
4899
- [data-v-16ae2148] .custom_form_item {
4899
+ [data-v-2ca700da] .custom_form_item {
4900
4900
  height: -moz-fit-content;
4901
4901
  height: fit-content;
4902
4902
  }
4903
- .save-pdf[data-v-16ae2148] .ant-input {
4903
+ .save-pdf[data-v-2ca700da] .ant-input {
4904
4904
  border: none !important;
4905
4905
  }
4906
- .save-pdf[data-v-16ae2148] .ant-select-selection {
4906
+ .save-pdf[data-v-2ca700da] .ant-select-selection {
4907
4907
  border: none !important;
4908
4908
  }
4909
- .save-pdf[data-v-16ae2148] .ant-select-arrow svg {
4909
+ .save-pdf[data-v-2ca700da] .ant-select-arrow svg {
4910
4910
  display: none;
4911
4911
  }
4912
- .save-pdf[data-v-16ae2148] .ant-upload.ant-upload-select-picture-card {
4912
+ .save-pdf[data-v-2ca700da] .ant-upload.ant-upload-select-picture-card {
4913
4913
  display: none;
4914
4914
  }
4915
- .save-pdf[data-v-16ae2148] .anticon svg {
4915
+ .save-pdf[data-v-2ca700da] .anticon svg {
4916
4916
  display: none;
4917
4917
  }
4918
- .save-pdf[data-v-16ae2148] .ant-time-picker-input {
4918
+ .save-pdf[data-v-2ca700da] .ant-time-picker-input {
4919
4919
  border: none !important;
4920
4920
  }
4921
- .save-pdf[data-v-16ae2148] .ant-upload.ant-upload-select {
4921
+ .save-pdf[data-v-2ca700da] .ant-upload.ant-upload-select {
4922
4922
  display: none;
4923
4923
  }
4924
4924
  /**打印非固定高度标签 高度不确定bug**/
4925
- .computed-wrap[data-v-16ae2148] {
4925
+ .computed-wrap[data-v-2ca700da] {
4926
4926
  background: #f5f5f5;
4927
4927
  }
4928
- .computed-wrap .item[data-v-16ae2148] {
4928
+ .computed-wrap .item[data-v-2ca700da] {
4929
4929
  display: flex;
4930
4930
  }
4931
- .computed-wrap .item > div[data-v-16ae2148] {
4931
+ .computed-wrap .item > div[data-v-2ca700da] {
4932
4932
  height: 35px;
4933
4933
  line-height: 35px;
4934
4934
  flex: 1;
@@ -4936,130 +4936,130 @@ div {
4936
4936
  border-bottom: 1px solid #000;
4937
4937
  text-align: center;
4938
4938
  }
4939
- .computed-wrap .item > div + div[data-v-16ae2148] {
4939
+ .computed-wrap .item > div + div[data-v-2ca700da] {
4940
4940
  flex: 2;
4941
4941
  }
4942
- .layout .paper[data-v-16ae2148] {
4942
+ .layout .paper[data-v-2ca700da] {
4943
4943
  position: relative;
4944
4944
  }
4945
- .layout .paper .form-title[data-v-16ae2148] {
4945
+ .layout .paper .form-title[data-v-2ca700da] {
4946
4946
  text-align: center;
4947
4947
  font-weight: 600;
4948
4948
  font-size: 16px;
4949
4949
  min-height: 40px;
4950
4950
  line-height: 30px;
4951
4951
  }
4952
- .row-item[data-v-16ae2148] {
4952
+ .row-item[data-v-2ca700da] {
4953
4953
  height: -moz-fit-content;
4954
4954
  height: fit-content;
4955
4955
  /**打印非固定高度标签 高度不确定bug**/
4956
4956
  }
4957
- .no-row-item[data-v-16ae2148] {
4957
+ .no-row-item[data-v-2ca700da] {
4958
4958
  border-right: none;
4959
4959
  border-bottom: none;
4960
4960
  }
4961
4961
  /****page边框内的 ***/
4962
- .page-border[data-v-16ae2148] {
4962
+ .page-border[data-v-2ca700da] {
4963
4963
  background: #fff;
4964
4964
  box-sizing: border-box;
4965
4965
  }
4966
- .page-border .row-item[data-v-16ae2148]:first-child {
4966
+ .page-border .row-item[data-v-2ca700da]:first-child {
4967
4967
  border-top: 1px solid #000;
4968
4968
  }
4969
- .page-border .row-item[data-v-16ae2148] {
4969
+ .page-border .row-item[data-v-2ca700da] {
4970
4970
  border-left: 1px solid #000;
4971
4971
  }
4972
- .page-border .item-bottom[data-v-16ae2148] {
4972
+ .page-border .item-bottom[data-v-2ca700da] {
4973
4973
  border-bottom: 1px solid #000;
4974
4974
  }
4975
- .page-border .row-item[data-v-16ae2148]:not(:last-child) {
4975
+ .page-border .row-item[data-v-2ca700da]:not(:last-child) {
4976
4976
  position: relative;
4977
4977
  }
4978
- .page-border li.sortable-chosen[data-v-16ae2148] {
4978
+ .page-border li.sortable-chosen[data-v-2ca700da] {
4979
4979
  height: 2px !important;
4980
4980
  overflow: hidden !important;
4981
4981
  background: red !important;
4982
4982
  }
4983
- .page-border .ant-time-picker-panel[data-v-16ae2148] {
4983
+ .page-border .ant-time-picker-panel[data-v-2ca700da] {
4984
4984
  z-index: 200000 !important;
4985
4985
  }
4986
- .page-border .ant-calendar-picker-container[data-v-16ae2148] {
4986
+ .page-border .ant-calendar-picker-container[data-v-2ca700da] {
4987
4987
  z-index: 200000 !important;
4988
4988
  }
4989
- [data-v-16ae2148] .ant-time-picker-panel {
4989
+ [data-v-2ca700da] .ant-time-picker-panel {
4990
4990
  z-index: 9999 !important;
4991
4991
  }
4992
- .ant-calendar-picker-container[data-v-16ae2148] {
4992
+ .ant-calendar-picker-container[data-v-2ca700da] {
4993
4993
  z-index: 200000 !important;
4994
4994
  }
4995
- [data-v-16ae2148] .ant-form-item-children {
4995
+ [data-v-2ca700da] .ant-form-item-children {
4996
4996
  display: block;
4997
4997
  }
4998
- [data-v-16ae2148] .ant-form-item {
4998
+ [data-v-2ca700da] .ant-form-item {
4999
4999
  width: 100%;
5000
5000
  height: 100%;
5001
5001
  margin-bottom: 0;
5002
5002
  display: flex;
5003
5003
  }
5004
- [data-v-16ae2148] .ant-form-item .is_required::before {
5004
+ [data-v-2ca700da] .ant-form-item .is_required::before {
5005
5005
  content: "*";
5006
5006
  color: #f56c6c;
5007
5007
  margin-right: 4px;
5008
5008
  }
5009
- [data-v-16ae2148] .ant-form-item .ant-form-item-label {
5009
+ [data-v-2ca700da] .ant-form-item .ant-form-item-label {
5010
5010
  border-right: 1px solid #000;
5011
5011
  }
5012
- [data-v-16ae2148] .ant-form-item .ant-form-item-label label {
5012
+ [data-v-2ca700da] .ant-form-item .ant-form-item-label label {
5013
5013
  display: flex;
5014
5014
  justify-content: center;
5015
5015
  align-items: center;
5016
5016
  height: 100%;
5017
5017
  }
5018
- [data-v-16ae2148] .ant-form-item .ant-form-item-label > label.ant-form-item-no-colon::after {
5018
+ [data-v-2ca700da] .ant-form-item .ant-form-item-label > label.ant-form-item-no-colon::after {
5019
5019
  display: none;
5020
5020
  }
5021
- [data-v-16ae2148] .ant-form-item .ant-form-item-control-wrapper {
5021
+ [data-v-2ca700da] .ant-form-item .ant-form-item-control-wrapper {
5022
5022
  display: flex;
5023
5023
  align-items: center;
5024
5024
  text-align: left;
5025
5025
  }
5026
- [data-v-16ae2148] .ant-form-item .ant-form-item-control {
5026
+ [data-v-2ca700da] .ant-form-item .ant-form-item-control {
5027
5027
  width: 98%;
5028
5028
  margin: 0 auto;
5029
5029
  }
5030
- [data-v-16ae2148] .ant-form-item .is_required::before {
5030
+ [data-v-2ca700da] .ant-form-item .is_required::before {
5031
5031
  content: "*";
5032
5032
  color: #f56c6c;
5033
5033
  margin-right: 4px;
5034
5034
  }
5035
- .row-table[data-v-16ae2148] {
5035
+ .row-table[data-v-2ca700da] {
5036
5036
  display: flex;
5037
5037
  }
5038
- .row-table[data-v-16ae2148] .ant-spin-container,
5039
- .row-table[data-v-16ae2148] {
5038
+ .row-table[data-v-2ca700da] .ant-spin-container,
5039
+ .row-table[data-v-2ca700da] {
5040
5040
  display: flex;
5041
5041
  width: 100%;
5042
5042
  }
5043
- .row-table[data-v-16ae2148] .ant-spin-container .table-left,
5044
- .row-table .table-left[data-v-16ae2148] {
5043
+ .row-table[data-v-2ca700da] .ant-spin-container .table-left,
5044
+ .row-table .table-left[data-v-2ca700da] {
5045
5045
  width: 100px;
5046
5046
  text-align: center;
5047
5047
  border-right: 1px solid #333;
5048
5048
  border-bottom: 1px solid #333;
5049
5049
  position: relative;
5050
5050
  }
5051
- .row-table[data-v-16ae2148] .ant-spin-container .table-left p,
5052
- .row-table .table-left p[data-v-16ae2148] {
5051
+ .row-table[data-v-2ca700da] .ant-spin-container .table-left p,
5052
+ .row-table .table-left p[data-v-2ca700da] {
5053
5053
  position: absolute;
5054
5054
  top: 50%;
5055
5055
  left: 50%;
5056
5056
  transform: translate(-50%, -50%);
5057
5057
  }
5058
- .row-table[data-v-16ae2148] .ant-spin-container .table-right,
5059
- .row-table .table-right[data-v-16ae2148] {
5058
+ .row-table[data-v-2ca700da] .ant-spin-container .table-right,
5059
+ .row-table .table-right[data-v-2ca700da] {
5060
5060
  flex: 1;
5061
5061
  }
5062
- .table-content[data-v-16ae2148] {
5062
+ .table-content[data-v-2ca700da] {
5063
5063
  width: 100%;
5064
5064
  height: 40px;
5065
5065
  line-height: 40px;
@@ -5068,11 +5068,11 @@ div {
5068
5068
  border-bottom: 1px solid #333;
5069
5069
  border-right: 1px solid #333;
5070
5070
  }
5071
- .sub-table-col[data-v-16ae2148] {
5071
+ .sub-table-col[data-v-2ca700da] {
5072
5072
  display: flex;
5073
5073
  box-sizing: border-box;
5074
5074
  }
5075
- .sub-table-col > span[data-v-16ae2148] {
5075
+ .sub-table-col > span[data-v-2ca700da] {
5076
5076
  flex: 2;
5077
5077
  border-bottom: 1px solid #000;
5078
5078
  border-right: 1px solid #000;
@@ -5080,34 +5080,34 @@ div {
5080
5080
  line-height: 40px;
5081
5081
  text-align: center;
5082
5082
  }
5083
- .sub-table-col > .last-one[data-v-16ae2148] {
5083
+ .sub-table-col > .last-one[data-v-2ca700da] {
5084
5084
  width: 87px;
5085
5085
  flex: 0 0 87px;
5086
5086
  border-right: 1px solid #333;
5087
5087
  border-bottom: 1px solid #333;
5088
5088
  }
5089
- .sub-table-col-no-border > span[data-v-16ae2148] {
5089
+ .sub-table-col-no-border > span[data-v-2ca700da] {
5090
5090
  border: none;
5091
5091
  height: auto;
5092
5092
  width: 0;
5093
5093
  }
5094
- .sub-table-col-no-border > .sub-table-title[data-v-16ae2148]:last-child,
5095
- .sub-table-col-no-border > .sub-table-item[data-v-16ae2148]:last-child {
5094
+ .sub-table-col-no-border > .sub-table-title[data-v-2ca700da]:last-child,
5095
+ .sub-table-col-no-border > .sub-table-item[data-v-2ca700da]:last-child {
5096
5096
  border-right: none !important;
5097
5097
  }
5098
- .sub-table-col-no-border > .last-one[data-v-16ae2148] {
5098
+ .sub-table-col-no-border > .last-one[data-v-2ca700da] {
5099
5099
  width: 87px;
5100
5100
  flex: 0 0 87px;
5101
5101
  display: flex;
5102
5102
  justify-content: center;
5103
5103
  align-items: center;
5104
5104
  }
5105
- .pagiAfter + .row-item[data-v-16ae2148] {
5105
+ .pagiAfter + .row-item[data-v-2ca700da] {
5106
5106
  border-top-width: 1px;
5107
5107
  border-top-style: solid;
5108
5108
  }
5109
5109
  /* 选择所有后面还有其他非.hiddenWidget的.row-item元素的.hasWidgetAfter */
5110
- .row-item:not(:last-child) .hasWidgetAfter[data-v-16ae2148] {
5110
+ .row-item:not(:last-child) .hasWidgetAfter[data-v-2ca700da] {
5111
5111
  /* 为这些.hasWidgetAfter设置样式 */
5112
5112
  width: calc(100% + 1px);
5113
5113
  border-left-width: 1px;
@@ -5116,7 +5116,7 @@ div {
5116
5116
  border-right-style: solid;
5117
5117
  left: -1px;
5118
5118
  }
5119
- .row-item:not(:last-child):has(+ .row-item.hiddenWidget) .hasWidgetAfter[data-v-16ae2148] {
5119
+ .row-item:not(:last-child):has(+ .row-item.hiddenWidget) .hasWidgetAfter[data-v-2ca700da] {
5120
5120
  /* 为这些.hasWidgetAfter设置样式 */
5121
5121
  width: calc(100% + 1px);
5122
5122
  border-left: none;
@@ -5124,33 +5124,33 @@ div {
5124
5124
  left: -1px;
5125
5125
  }
5126
5126
  /*****无border *****/
5127
- .no-border .page-border[data-v-16ae2148] {
5127
+ .no-border .page-border[data-v-2ca700da] {
5128
5128
  border: none;
5129
5129
  }
5130
- .no-border .page-border .row-item[data-v-16ae2148]:not(:last-child) {
5130
+ .no-border .page-border .row-item[data-v-2ca700da]:not(:last-child) {
5131
5131
  border: none;
5132
5132
  }
5133
- .no-border .page-border[data-v-16ae2148] .ant-form-item .ant-form-item-label {
5133
+ .no-border .page-border[data-v-2ca700da] .ant-form-item .ant-form-item-label {
5134
5134
  border: none;
5135
5135
  }
5136
- .table_border[data-v-16ae2148] {
5136
+ .table_border[data-v-2ca700da] {
5137
5137
  border-bottom: 0;
5138
5138
  border-right: 0;
5139
5139
  }
5140
5140
  /*****无border *****/
5141
- [data-v-16ae2148] .ant-form-item-children > div > p,[data-v-16ae2148] .ant-form-item-children > div > h1,[data-v-16ae2148] .ant-form-item-children > div > h2,[data-v-16ae2148] .ant-form-item-children > div > h3,[data-v-16ae2148] .ant-form-item-children > div > h4,[data-v-16ae2148] .ant-form-item-children > div > h5,[data-v-16ae2148] .ant-form-item-children > div > table /deep/ .ant-form-item-children > div > pre {
5141
+ [data-v-2ca700da] .ant-form-item-children > div > p,[data-v-2ca700da] .ant-form-item-children > div > h1,[data-v-2ca700da] .ant-form-item-children > div > h2,[data-v-2ca700da] .ant-form-item-children > div > h3,[data-v-2ca700da] .ant-form-item-children > div > h4,[data-v-2ca700da] .ant-form-item-children > div > h5,[data-v-2ca700da] .ant-form-item-children > div > table /deep/ .ant-form-item-children > div > pre {
5142
5142
  margin: 10px 0;
5143
5143
  line-height: 1.5;
5144
5144
  }
5145
- [data-v-16ae2148] .ant-spin-dot {
5145
+ [data-v-2ca700da] .ant-spin-dot {
5146
5146
  font-size: 20px !important;
5147
5147
  }
5148
- .form_skeleton[data-v-16ae2148] {
5148
+ .form_skeleton[data-v-2ca700da] {
5149
5149
  display: block;
5150
5150
  width: 700px;
5151
5151
  margin: 55px auto;
5152
5152
  }
5153
- .form_skeleton[data-v-16ae2148] .ant-skeleton-title {
5153
+ .form_skeleton[data-v-2ca700da] .ant-skeleton-title {
5154
5154
  margin: 0 auto;
5155
5155
  }
5156
5156
 
@@ -13716,6 +13716,38 @@ const config = [{
13716
13716
  canView: true,
13717
13717
  disabled: false
13718
13718
  }
13719
+ }, {
13720
+ type: 'barcode',
13721
+ name: '条形码',
13722
+ icon: 'icon-input',
13723
+ dataColumns: [],
13724
+ model: 'barcode',
13725
+ options: {
13726
+ defaultValue: "",
13727
+ canEdit: true,
13728
+ width: '100%',
13729
+ height: 50,
13730
+ placeholder: '查询会议室占用',
13731
+ defaulcanView: true,
13732
+ canView: true,
13733
+ disabled: false
13734
+ }
13735
+ }, {
13736
+ type: 'carousel',
13737
+ name: '图片轮播',
13738
+ icon: 'icon-tupian',
13739
+ dataColumns: [],
13740
+ model: 'carousel',
13741
+ options: {
13742
+ defaultValue: "",
13743
+ canEdit: true,
13744
+ width: '100%',
13745
+ height: 50,
13746
+ placeholder: '查询会议室占用',
13747
+ defaulcanView: true,
13748
+ canView: true,
13749
+ disabled: false
13750
+ }
13719
13751
  }];
13720
13752
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (config);
13721
13753
  const HnKjTypes = Array.from(new Set(config.map(item => item.type)));
@@ -67688,6 +67720,7 @@ __webpack_require__.g.dictData = {};
67688
67720
  if (msgData.tableKey && msgData.tableKey === this.widget.tableKey && this.tableIndex != msgData.tableIndex) return;
67689
67721
  const tableArr = relyWidgets.filter(item => item.includes(".")).map(item => item.split("."));
67690
67722
  const models = this.models;
67723
+ debugger;
67691
67724
  const keys = Object.keys(models);
67692
67725
  const formulaModels = keys.reduce((prev, curr) => {
67693
67726
  const key = `_widget_${curr}`;
@@ -75352,7 +75385,7 @@ const getSignature = params => (0,_form_api_manage__WEBPACK_IMPORTED_MODULE_0__/
75352
75385
  /***/ ((module) => {
75353
75386
 
75354
75387
  "use strict";
75355
- module.exports = {"rE":"1.1.642"};
75388
+ module.exports = {"rE":"1.1.644"};
75356
75389
 
75357
75390
  /***/ }),
75358
75391
 
@@ -87431,102 +87464,6 @@ var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__
87431
87464
  module.exports = freeGlobal;
87432
87465
 
87433
87466
 
87434
- /***/ }),
87435
-
87436
- /***/ 9063:
87437
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
87438
-
87439
- "use strict";
87440
- // ESM COMPAT FLAG
87441
- __webpack_require__.r(__webpack_exports__);
87442
-
87443
- // EXPORTS
87444
- __webpack_require__.d(__webpack_exports__, {
87445
- "default": () => (/* binding */ layoutForPaper)
87446
- });
87447
-
87448
- ;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=template&id=16ae2148&scoped=true
87449
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-spin',{staticClass:"layout layout-input-all-setting",class:{ 'no-border': !_vm.data.config.border, 'save-pdf': _vm.showLine, 'ant-form-noBorder': _vm.data.config.componentsNoBorder },style:({ 'overflow-x': _vm.data.config.layout === 'horizontal' ? 'auto' : 'initial' }),attrs:{"spinning":_vm.formLoading,"tip":_vm.formLoadingTip}},[(_vm.pageLoading && _vm.showLayoutLoading)?_c('div',{class:{ form_skeleton: _vm.pageLoading }},[(_vm.pageLoading)?_c('a-skeleton',{attrs:{"active":"","loading":_vm.pageLoading,"paragraph":{ rows: 12 }}}):_vm._e()],1):_vm._e(),_c('a-form-model',{ref:"Form",attrs:{"hideRequiredMark":true,"model":_vm.models,"rules":_vm.rules,"wrapper-col":{}},on:{"update:rules":function($event){_vm.rules=$event},"validate":_vm.validate}},_vm._l((_vm.widgetList),function(list,listindex){return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.widgetList[0].length > 0),expression:"widgetList[0].length > 0"}],key:listindex,staticClass:"paper",style:(_vm.contentStyle)},[(listindex == 0)?_vm._t("default"):_vm._e(),(listindex == 0)?_c('div',{staticClass:"form-title",style:(Object.assign({}, _vm.formNameStyle))},[_c('span',{staticStyle:{"font-size":"inherit"},domProps:{"innerHTML":_vm._s(_vm.data.config.formNameLeftContent || '')}}),_vm._v(_vm._s(_vm.data.config.formName)),_c('span',{staticStyle:{"font-size":"inherit"},domProps:{"innerHTML":_vm._s(_vm.data.config.formNameRightContent || '')}})]):_vm._e(),(_vm.value && _vm.value.formIndex)?_c('div',{staticStyle:{"text-align":"right","font-weight":"bold"}},[_vm._v(_vm._s(_vm.value.formIndex))]):_vm._e(),(_vm.data.config.pageHeader && listindex === 0)?_c('div',{style:(_vm.data.config.headerHeight),domProps:{"innerHTML":_vm._s(_vm.data.config.pageHeader)}}):_vm._e(),_c('div',{staticClass:"page-border",style:({ borderColor: _vm.data.config.borderColor })},[_vm._l((list),function(widget,index){return [(widget.type == 'table')?[(
87450
- widget.options.layoutModel === 'auto' ||
87451
- widget.options.layoutModel === undefined
87452
- )?_c('a-spin',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView),expression:"widget.options.canView"}],key:index,staticClass:"row-item",class:[widget.options.supportPage?'pagiAfter':'',widget.options.inline == true ? 'row-table' : ''],style:({ borderColor: _vm.data.config.borderColor, marginBottom: (widget.options.supportPage && _vm.tablePageInfo[widget.model] && _vm.tablePageInfo[widget.model].total > 10) ? '50px' : '' }),attrs:{"spinning":_vm.tableLoading && !_vm.formLoading,"tip":"数据加载中"}},[(widget.options.inline)?_c('div',{staticClass:"table-left",style:({
87453
- width: widget.options.labelWidth + 'px',
87454
- borderColor: _vm.data.config.borderColor,
87455
- backgroundColor: _vm.data.config.bgc,
87456
- color: _vm.data.config.color,
87457
- })},[_c('p',{staticStyle:{"position":"relative","margin-bottom":"0","padding-bottom":"0"}},[(widget.options.enableImport && !widget.options.disabled)?_c('span',[_c('a-upload',{staticStyle:{"float":"left","margin":"0 5px"},attrs:{"action":_vm.actionUrl + "?formId=" + (_vm.data.formId) + "&tableKey=" + (widget.model),"headers":_vm.headers,"showUploadList":false},on:{"change":function (params) { return _vm.handleChange(widget, params); }}},[_c('a-button',[_c('a-icon',{attrs:{"type":"upload"}}),_vm._v("上传")],1)],1),_c('confirm-box',{staticStyle:{"float":"left","margin":"0 5px"},attrs:{"content":"注意:使用Excel模板导入仅支持文本、日期、下拉等内容,无法支持复杂的组件以及数据校验等,请确认!"},on:{"confirm":function($event){return _vm.downloadTableTemplate(widget)}}},[_c('a-button',[_vm._v("下载模板")])],1)],1):_vm._e(),(widget.options.auditorExport&&!_vm.isDesign&&_vm.isApply!=true)?_c('span',{staticStyle:{"float":"left","margin":"0 5px"}},[_c('a-button',{on:{"click":function($event){return _vm.auditorDownLoad(widget)}}},[_c('a-icon',{attrs:{"type":"download"}}),_vm._v("导出")],1)],1):_vm._e(),_c('span',[_vm._v(_vm._s(widget.name))])])]):_c('div',{staticClass:"table-content",style:({
87458
- background: _vm.data.config.bgc,
87459
- color: _vm.data.config.color,
87460
- borderColor: _vm.data.config.borderColor, })},[_c('span',{staticStyle:{"position":"relative","margin-bottom":"0","height":"40px","display":"block"},style:({})},[_c('span',{staticStyle:{"position":"absolute","display":"flex","height":"100%","align-items":"center"}},[(widget.options.enableImport && !widget.options.disabled)?_c('span',[_c('a-upload',{staticStyle:{"float":"left","margin":"0 5px"},attrs:{"action":_vm.actionUrl + "?formId=" + (_vm.data.formId) + "&tableKey=" + (widget.model),"headers":_vm.headers,"showUploadList":false},on:{"change":function (params) { return _vm.handleChange(widget, params); }}},[_c('a-button',[_c('a-icon',{attrs:{"type":"upload"}}),_vm._v("上传")],1)],1),_c('confirm-box',{staticStyle:{"float":"left","margin":"0 5px"},attrs:{"content":"注意:使用Excel模板导入仅支持文本、日期、下拉等内容,无法支持复杂的组件以及数据校验等,请确认!"},on:{"confirm":function($event){return _vm.downloadTableTemplate(widget)}}},[_c('a-button',[_vm._v("下载模板")])],1)],1):_vm._e(),(widget.options.auditorExport&&!_vm.isDesign&&_vm.isApply!=true)?_c('span',{staticStyle:{"float":"left","margin":"0 5px"}},[_c('a-button',{on:{"click":function($event){return _vm.auditorDownLoad(widget)}}},[_c('a-icon',{attrs:{"type":"download"}}),_vm._v("导出")],1)],1):_vm._e()]),_c('span',[_vm._v(_vm._s(widget.name))])])]),_c('div',{staticClass:"table-right"},[_c('div',{staticClass:"sub-table-col sub-table-col-no-border"},[_vm._l((_vm.tableWidgetColumns(widget)),function(children,index){return _c('span',{directives:[{name:"show",rawName:"v-show",value:(children.type !== 'hidden'),expression:"children.type !== 'hidden'"}],key:index,class:[
87461
- _vm.data.config.align,
87462
- _vm.data.config.validate === true && children.options.required === true
87463
- ? 'is_required'
87464
- : 'no_required' ],staticStyle:{"border-right":"1px solid #333","border-bottom":"1px solid #333"},style:(Object.assign({}, {borderColor: _vm.data.config.borderColor, background: _vm.data.config.bgc}, _vm.handleSubTableStyle(widget, children)))},[_vm._v(_vm._s(children.name))])}),(!widget.options.hiddenOperateBtn && _vm.tableWidgetColumns(widget).length > 0 && !widget.options.disabled)?_c('span',{staticClass:"last-one",style:({ borderColor: _vm.data.config.borderColor, background: _vm.data.config.bgc, color: _vm.data.config.color })},[_c('a-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.addToTableData(widget, widget.model, 'addModel', true)}}},[_vm._v("添加行")])],1):_vm._e()],2),(Array.isArray(_vm.tableData[widget.model]))?[(widget.options.supportPage)?[_vm._l((_vm.currTablePageData(widget.model)),function(source,idx){return _c('table-item',{key:(_vm.tablePageInfo[widget.model].current - 1) * _vm.tablePageInfo[widget.model].pageSize + idx,attrs:{"widget":widget,"index":(_vm.tablePageInfo[widget.model].current - 1) * _vm.tablePageInfo[widget.model].pageSize + idx,"data":_vm.data,"rules":_vm.rules,"models":_vm.models,"handleDeleteRow":_vm.handleDeleteRow,"source":source}})}),(_vm.tablePageInfo[widget.model] && _vm.tablePageInfo[widget.model].total > 10)?_c('div',{staticClass:"hasWidgetAfter",staticStyle:{"padding":"10px","position":"absolute","top":"100%"},style:({borderColor:_vm.data.config.borderColor})},[_c('a-pagination',{attrs:{"show-quick-jumper":"","show-size-changer":"","total":_vm.tablePageInfo[widget.model].total},on:{"change":function () {
87465
- var args = [], len = arguments.length;
87466
- while ( len-- ) args[ len ] = arguments[ len ];
87467
-
87468
- return _vm.tablePageChange.apply(void 0, [ widget ].concat( args ));
87469
- },"showSizeChange":function () {
87470
- var args = [], len = arguments.length;
87471
- while ( len-- ) args[ len ] = arguments[ len ];
87472
-
87473
- return _vm.tablePageChange.apply(void 0, [ widget ].concat( args ));
87474
- }},model:{value:(_vm.tablePageInfo[widget.model].current),callback:function ($$v) {_vm.$set(_vm.tablePageInfo[widget.model], "current", $$v)},expression:"tablePageInfo[widget.model].current"}})],1):_vm._e()]:_c('virtual-list',{staticClass:"virtual-list",attrs:{"keeps":50,"page-mode":"","data-key":function (ref) {
87475
- var model = ref.model;
87476
- var idx = ref.index;
87477
- var rand_id = ref.rand_id;
87478
- return rand_id || (model + idx) },"data-sources":_vm.tableData[widget.model],"data-component":_vm.tableItem,"extra-props":{ widget: widget, models: _vm.models, data: _vm.data, rules: _vm.rules, handleDeleteRow: _vm.handleDeleteRow}}})]:_vm._e(),(
87479
- widget.options.computingSub.length > 0 &&
87480
- widget.options.computingMethod.length > 0 &&
87481
- _vm.tableData &&
87482
- _vm.tableData[widget.model] &&
87483
- _vm.tableData[widget.model].length > 0
87484
- )?_c('div',{staticClass:"computed-wrap"},[_c('div',{staticClass:"item"},[_c('div',[_vm._v("需统计字段")]),_vm._l((widget.options.computingSub),function(_item,key){return _c('div',{key:key},[_vm._v(" "+_vm._s(_vm.getSubName(_item, _vm.tableWidgetColumns(widget)))+" ")])})],2),_vm._l((widget.options.computingMethod),function(_methodItem,key){return _c('div',{key:key,staticClass:"item"},[_c('div',[_vm._v(_vm._s(_vm.getMethodName(_methodItem)))]),_vm._l((widget.options.computingSub),function(_subItem,it_key){return _c('div',{key:it_key},[_vm._v(" "+_vm._s(_vm.getMathResult(_methodItem, _vm.models[widget.model], _subItem))+" ")])})],2)})],2):_vm._e()],2)]):(widget.options.layoutModel === 'design')?_c('a-spin',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView),expression:"widget.options.canView"}],key:index,staticClass:"table_border row-item",style:({ borderColor: _vm.data.config.borderColor }),attrs:{"spinning":_vm.tableLoading && !_vm.formLoading,"tip":"数据加载中"}},[_c('tableComponent',{attrs:{"isApply":_vm.isApply,"isDesign":_vm.isDesign,"widget":widget,"tableData":_vm.tableData,"rules":_vm.rules,"models":_vm.models,"formId":_vm.data.formId,"index":index,"listindex":listindex,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event},"addToTableData":_vm.addToTableData,"handleDeleteRow":_vm.handleDeleteRow}})],1):_vm._e()]:(widget.type === 'grid')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",style:({ borderColor: _vm.data.config.borderColor })},[_c('grid-component',{attrs:{"rules":_vm.rules,"models":_vm.models,"widget":widget,"index":index,"verifyNode":_vm.verifyNode,"suggest":_vm.suggest,"verifyLogs":_vm.verifyLogs,"config":_vm.data.config,"listindex":listindex,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'grid-lay-out')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView),expression:"widget.options.canView"}],key:index,staticClass:"row-item",class:widget.type == 'grid-lay-out' ? ' no-row-item ' : '',style:({ borderColor: _vm.data.config.borderColor })},[_c('grid-layout-component',{attrs:{"widget":widget,"rules":_vm.rules,"models":_vm.models,"index":index,"verifyNode":_vm.verifyNode,"suggest":_vm.suggest,"verifyLogs":_vm.verifyLogs,"listindex":listindex,"config":_vm.data.config,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'verify')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",style:({ borderColor: _vm.data.config.borderColor })},[_c('verify-component',{attrs:{"widget":widget,"rules":_vm.rules,"models":_vm.models,"verifyNode":_vm.verifyNode,"verifyLogs":_vm.verifyLogs,"suggest":_vm.suggest,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'all-lay-out')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView),expression:"widget.options.canView"}],key:index,staticClass:"row-item",style:({ borderColor: _vm.data.config.borderColor })},[_c('all-layout-component',{attrs:{"widget":widget,"rules":_vm.rules,"models":_vm.models,"index":index,"listindex":listindex,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'placeholder')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,class:{
87485
- 'item-bottom': !widget.options.border,
87486
- 'row-item': widget.options.border,
87487
- },style:({ borderColor: _vm.data.config.borderColor })},[_c('layout-item',{attrs:{"widget":widget,"models":_vm.models,"rules":_vm.rules,"verifyNode":_vm.verifyNode,"verifyLogs":_vm.verifyLogs,"applyId":_vm.applyId},on:{"update:models":function($event){_vm.models=$event},"update:rules":function($event){_vm.rules=$event}}})],1):_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",class:{hiddenWidget:widget.type == 'hidden'},style:({ borderColor: _vm.data.config.borderColor })},[_c('layout-item',{attrs:{"widget":widget,"models":_vm.models,"verifyNode":_vm.verifyNode,"verifyLogs":_vm.verifyLogs,"suggest":_vm.suggest,"dataObj":_vm.data,"rules":_vm.rules,"applyId":_vm.applyId},on:{"update:models":function($event){_vm.models=$event},"update:rules":function($event){_vm.rules=$event}}})],1)]})],2),(_vm.data.config.pageFooter && listindex === _vm.widgetList.length - 1)?_c('div',{style:(_vm.data.config.footerHeight),domProps:{"innerHTML":_vm._s(_vm.data.config.pageFooter)}}):_vm._e()],2)}),0)],1)}
87488
- var staticRenderFns = []
87489
-
87490
-
87491
- // EXTERNAL MODULE: ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.4.1@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=script&lang=js
87492
- var layoutForPapervue_type_script_lang_js = __webpack_require__(9218);
87493
- ;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=script&lang=js
87494
- /* harmony default export */ const layout_layoutForPapervue_type_script_lang_js = (layoutForPapervue_type_script_lang_js/* default */.A);
87495
- ;// ./node_modules/_mini-css-extract-plugin@2.9.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=16ae2148&prod&lang=less&scoped=true
87496
- // extracted by mini-css-extract-plugin
87497
-
87498
- ;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=16ae2148&prod&lang=less&scoped=true
87499
-
87500
- ;// ./node_modules/_mini-css-extract-plugin@2.9.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=16ae2148&prod&lang=css
87501
- // extracted by mini-css-extract-plugin
87502
-
87503
- ;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=16ae2148&prod&lang=css
87504
-
87505
- // EXTERNAL MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/runtime/componentNormalizer.js
87506
- var componentNormalizer = __webpack_require__(4008);
87507
- ;// ./src/form/modules/layout/layoutForPaper.vue
87508
-
87509
-
87510
-
87511
- ;
87512
-
87513
-
87514
-
87515
- /* normalize component */
87516
-
87517
- var component = (0,componentNormalizer/* default */.A)(
87518
- layout_layoutForPapervue_type_script_lang_js,
87519
- render,
87520
- staticRenderFns,
87521
- false,
87522
- null,
87523
- "16ae2148",
87524
- null
87525
-
87526
- )
87527
-
87528
- /* harmony default export */ const layoutForPaper = (component.exports);
87529
-
87530
87467
  /***/ }),
87531
87468
 
87532
87469
  /***/ 9075:
@@ -89343,7 +89280,8 @@ module.exports = function (it) {
89343
89280
  },
89344
89281
  // 设置models值 通过defaultValue
89345
89282
  setModelsbyDefaultValue(widget) {
89346
- const defaultValue = !this.data.config.status || this.data.config.status == 'XZ' ? widget.options.defaultValue : widget.type === 'select' && !widget.options.defaultValue ? void 0 : '';
89283
+ debugger;
89284
+ const defaultValue = !this.data.config.status || this.data.config.status == 'XZ' ? widget.type === 'table' && !widget.options.defaultValue ? [] : widget.options.defaultValue : widget.type === 'select' && !widget.options.defaultValue ? void 0 : '';
89347
89285
  switch (widget.type) {
89348
89286
  case "verify":
89349
89287
  this.models[widget.model] = widget.operationColumns;
@@ -89386,7 +89324,7 @@ module.exports = function (it) {
89386
89324
  });
89387
89325
  });
89388
89326
  }
89389
- this.models[widget.model] = value;
89327
+ this.models[widget.model] = value ? value : [];
89390
89328
  this.generateTableData(widget);
89391
89329
  return true;
89392
89330
  default:
@@ -105427,6 +105365,102 @@ var UA = __webpack_require__(8221);
105427
105365
  module.exports = /MSIE|Trident/.test(UA);
105428
105366
 
105429
105367
 
105368
+ /***/ }),
105369
+
105370
+ /***/ 9446:
105371
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
105372
+
105373
+ "use strict";
105374
+ // ESM COMPAT FLAG
105375
+ __webpack_require__.r(__webpack_exports__);
105376
+
105377
+ // EXPORTS
105378
+ __webpack_require__.d(__webpack_exports__, {
105379
+ "default": () => (/* binding */ layoutForPaper)
105380
+ });
105381
+
105382
+ ;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=template&id=2ca700da&scoped=true
105383
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-spin',{staticClass:"layout layout-input-all-setting",class:{ 'no-border': !_vm.data.config.border, 'save-pdf': _vm.showLine, 'ant-form-noBorder': _vm.data.config.componentsNoBorder },style:({ 'overflow-x': _vm.data.config.layout === 'horizontal' ? 'auto' : 'initial' }),attrs:{"spinning":_vm.formLoading,"tip":_vm.formLoadingTip}},[(_vm.pageLoading && _vm.showLayoutLoading)?_c('div',{class:{ form_skeleton: _vm.pageLoading }},[(_vm.pageLoading)?_c('a-skeleton',{attrs:{"active":"","loading":_vm.pageLoading,"paragraph":{ rows: 12 }}}):_vm._e()],1):_vm._e(),_c('a-form-model',{ref:"Form",attrs:{"hideRequiredMark":true,"model":_vm.models,"rules":_vm.rules,"wrapper-col":{}},on:{"update:rules":function($event){_vm.rules=$event},"validate":_vm.validate}},_vm._l((_vm.widgetList),function(list,listindex){return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.widgetList[0].length > 0),expression:"widgetList[0].length > 0"}],key:listindex,staticClass:"paper",style:(_vm.contentStyle)},[(listindex == 0)?_vm._t("default"):_vm._e(),(listindex == 0)?_c('div',{staticClass:"form-title",style:(Object.assign({}, _vm.formNameStyle))},[_c('span',{staticStyle:{"font-size":"inherit"},domProps:{"innerHTML":_vm._s(_vm.data.config.formNameLeftContent || '')}}),_vm._v(_vm._s(_vm.data.config.formName)),_c('span',{staticStyle:{"font-size":"inherit"},domProps:{"innerHTML":_vm._s(_vm.data.config.formNameRightContent || '')}})]):_vm._e(),(_vm.value && _vm.value.formIndex)?_c('div',{staticStyle:{"text-align":"right","font-weight":"bold"}},[_vm._v(_vm._s(_vm.value.formIndex))]):_vm._e(),(_vm.data.config.pageHeader && listindex === 0)?_c('div',{style:(_vm.data.config.headerHeight),domProps:{"innerHTML":_vm._s(_vm.data.config.pageHeader)}}):_vm._e(),_c('div',{staticClass:"page-border",style:({ borderColor: _vm.data.config.borderColor })},[_vm._l((list),function(widget,index){return [(widget.type == 'table')?[(
105384
+ widget.options.layoutModel === 'auto' ||
105385
+ widget.options.layoutModel === undefined
105386
+ )?_c('a-spin',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView),expression:"widget.options.canView"}],key:index,staticClass:"row-item",class:[widget.options.supportPage?'pagiAfter':'',widget.options.inline == true ? 'row-table' : ''],style:({ borderColor: _vm.data.config.borderColor, marginBottom: (widget.options.supportPage && _vm.tablePageInfo[widget.model] && _vm.tablePageInfo[widget.model].total > 10) ? '50px' : '' }),attrs:{"spinning":_vm.tableLoading && !_vm.formLoading,"tip":"数据加载中"}},[(widget.options.inline)?_c('div',{staticClass:"table-left",style:({
105387
+ width: widget.options.labelWidth + 'px',
105388
+ borderColor: _vm.data.config.borderColor,
105389
+ backgroundColor: _vm.data.config.bgc,
105390
+ color: _vm.data.config.color,
105391
+ })},[_c('p',{staticStyle:{"position":"relative","margin-bottom":"0","padding-bottom":"0"}},[(widget.options.enableImport && !widget.options.disabled)?_c('span',[_c('a-upload',{staticStyle:{"float":"left","margin":"0 5px"},attrs:{"action":_vm.actionUrl + "?formId=" + (_vm.data.formId) + "&tableKey=" + (widget.model),"headers":_vm.headers,"showUploadList":false},on:{"change":function (params) { return _vm.handleChange(widget, params); }}},[_c('a-button',[_c('a-icon',{attrs:{"type":"upload"}}),_vm._v("上传")],1)],1),_c('confirm-box',{staticStyle:{"float":"left","margin":"0 5px"},attrs:{"content":"注意:使用Excel模板导入仅支持文本、日期、下拉等内容,无法支持复杂的组件以及数据校验等,请确认!"},on:{"confirm":function($event){return _vm.downloadTableTemplate(widget)}}},[_c('a-button',[_vm._v("下载模板")])],1)],1):_vm._e(),(widget.options.auditorExport&&!_vm.isDesign&&_vm.isApply!=true)?_c('span',{staticStyle:{"float":"left","margin":"0 5px"}},[_c('a-button',{on:{"click":function($event){return _vm.auditorDownLoad(widget)}}},[_c('a-icon',{attrs:{"type":"download"}}),_vm._v("导出")],1)],1):_vm._e(),_c('span',[_vm._v(_vm._s(widget.name))])])]):_c('div',{staticClass:"table-content",style:({
105392
+ background: _vm.data.config.bgc,
105393
+ color: _vm.data.config.color,
105394
+ borderColor: _vm.data.config.borderColor, })},[_c('span',{staticStyle:{"position":"relative","margin-bottom":"0","height":"40px","display":"block"},style:({})},[_c('span',{staticStyle:{"position":"absolute","display":"flex","height":"100%","align-items":"center"}},[(widget.options.enableImport && !widget.options.disabled)?_c('span',[_c('a-upload',{staticStyle:{"float":"left","margin":"0 5px"},attrs:{"action":_vm.actionUrl + "?formId=" + (_vm.data.formId) + "&tableKey=" + (widget.model),"headers":_vm.headers,"showUploadList":false},on:{"change":function (params) { return _vm.handleChange(widget, params); }}},[_c('a-button',[_c('a-icon',{attrs:{"type":"upload"}}),_vm._v("上传")],1)],1),_c('confirm-box',{staticStyle:{"float":"left","margin":"0 5px"},attrs:{"content":"注意:使用Excel模板导入仅支持文本、日期、下拉等内容,无法支持复杂的组件以及数据校验等,请确认!"},on:{"confirm":function($event){return _vm.downloadTableTemplate(widget)}}},[_c('a-button',[_vm._v("下载模板")])],1)],1):_vm._e(),(widget.options.auditorExport&&!_vm.isDesign&&_vm.isApply!=true)?_c('span',{staticStyle:{"float":"left","margin":"0 5px"}},[_c('a-button',{on:{"click":function($event){return _vm.auditorDownLoad(widget)}}},[_c('a-icon',{attrs:{"type":"download"}}),_vm._v("导出")],1)],1):_vm._e()]),_c('span',[_vm._v(_vm._s(widget.name))])])]),_c('div',{staticClass:"table-right"},[_c('div',{staticClass:"sub-table-col sub-table-col-no-border"},[_vm._l((_vm.tableWidgetColumns(widget)),function(children,index){return _c('span',{directives:[{name:"show",rawName:"v-show",value:(children.type !== 'hidden'),expression:"children.type !== 'hidden'"}],key:index,class:[
105395
+ _vm.data.config.align,
105396
+ _vm.data.config.validate === true && children.options.required === true
105397
+ ? 'is_required'
105398
+ : 'no_required' ],staticStyle:{"border-right":"1px solid #333","border-bottom":"1px solid #333"},style:(Object.assign({}, {borderColor: _vm.data.config.borderColor, background: _vm.data.config.bgc}, _vm.handleSubTableStyle(widget, children)))},[_vm._v(_vm._s(children.name))])}),(!widget.options.hiddenOperateBtn && _vm.tableWidgetColumns(widget).length > 0 && !widget.options.disabled)?_c('span',{staticClass:"last-one",style:({ borderColor: _vm.data.config.borderColor, background: _vm.data.config.bgc, color: _vm.data.config.color })},[_c('a-button',{attrs:{"size":"small","type":"primary"},on:{"click":function($event){return _vm.addToTableData(widget, widget.model, 'addModel', true)}}},[_vm._v("添加行")])],1):_vm._e()],2),(Array.isArray(_vm.tableData[widget.model]))?[(widget.options.supportPage)?[_vm._l((_vm.currTablePageData(widget.model)),function(source,idx){return _c('table-item',{key:(_vm.tablePageInfo[widget.model].current - 1) * _vm.tablePageInfo[widget.model].pageSize + idx,attrs:{"widget":widget,"index":(_vm.tablePageInfo[widget.model].current - 1) * _vm.tablePageInfo[widget.model].pageSize + idx,"data":_vm.data,"rules":_vm.rules,"models":_vm.models,"handleDeleteRow":_vm.handleDeleteRow,"source":source}})}),(_vm.tablePageInfo[widget.model] && _vm.tablePageInfo[widget.model].total > 10)?_c('div',{staticClass:"hasWidgetAfter",staticStyle:{"padding":"10px","position":"absolute","top":"100%"},style:({borderColor:_vm.data.config.borderColor})},[_c('a-pagination',{attrs:{"show-quick-jumper":"","show-size-changer":"","total":_vm.tablePageInfo[widget.model].total},on:{"change":function () {
105399
+ var args = [], len = arguments.length;
105400
+ while ( len-- ) args[ len ] = arguments[ len ];
105401
+
105402
+ return _vm.tablePageChange.apply(void 0, [ widget ].concat( args ));
105403
+ },"showSizeChange":function () {
105404
+ var args = [], len = arguments.length;
105405
+ while ( len-- ) args[ len ] = arguments[ len ];
105406
+
105407
+ return _vm.tablePageChange.apply(void 0, [ widget ].concat( args ));
105408
+ }},model:{value:(_vm.tablePageInfo[widget.model].current),callback:function ($$v) {_vm.$set(_vm.tablePageInfo[widget.model], "current", $$v)},expression:"tablePageInfo[widget.model].current"}})],1):_vm._e()]:_c('virtual-list',{staticClass:"virtual-list",attrs:{"keeps":50,"page-mode":"","data-key":function (ref) {
105409
+ var model = ref.model;
105410
+ var idx = ref.index;
105411
+ var rand_id = ref.rand_id;
105412
+ return rand_id || (model + idx) },"data-sources":_vm.tableData[widget.model],"data-component":_vm.tableItem,"extra-props":{ widget: widget, models: _vm.models, data: _vm.data, rules: _vm.rules, handleDeleteRow: _vm.handleDeleteRow}}})]:_vm._e(),(
105413
+ widget.options.computingSub.length > 0 &&
105414
+ widget.options.computingMethod.length > 0 &&
105415
+ _vm.tableData &&
105416
+ _vm.tableData[widget.model] &&
105417
+ _vm.tableData[widget.model].length > 0
105418
+ )?_c('div',{staticClass:"computed-wrap"},[_c('div',{staticClass:"item"},[_c('div',[_vm._v("需统计字段")]),_vm._l((widget.options.computingSub),function(_item,key){return _c('div',{key:key},[_vm._v(" "+_vm._s(_vm.getSubName(_item, _vm.tableWidgetColumns(widget)))+" ")])})],2),_vm._l((widget.options.computingMethod),function(_methodItem,key){return _c('div',{key:key,staticClass:"item"},[_c('div',[_vm._v(_vm._s(_vm.getMethodName(_methodItem)))]),_vm._l((widget.options.computingSub),function(_subItem,it_key){return _c('div',{key:it_key},[_vm._v(" "+_vm._s(_vm.getMathResult(_methodItem, _vm.models[widget.model], _subItem))+" ")])})],2)})],2):_vm._e()],2)]):(widget.options.layoutModel === 'design')?_c('a-spin',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView),expression:"widget.options.canView"}],key:index,staticClass:"table_border row-item",style:({ borderColor: _vm.data.config.borderColor }),attrs:{"spinning":_vm.tableLoading && !_vm.formLoading,"tip":"数据加载中"}},[_c('tableComponent',{attrs:{"isApply":_vm.isApply,"isDesign":_vm.isDesign,"widget":widget,"tableData":_vm.tableData,"rules":_vm.rules,"models":_vm.models,"formId":_vm.data.formId,"index":index,"listindex":listindex,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event},"addToTableData":_vm.addToTableData,"handleDeleteRow":_vm.handleDeleteRow}})],1):_vm._e()]:(widget.type === 'grid')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",style:({ borderColor: _vm.data.config.borderColor })},[_c('grid-component',{attrs:{"rules":_vm.rules,"models":_vm.models,"widget":widget,"index":index,"verifyNode":_vm.verifyNode,"suggest":_vm.suggest,"verifyLogs":_vm.verifyLogs,"config":_vm.data.config,"listindex":listindex,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'grid-lay-out')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView),expression:"widget.options.canView"}],key:index,staticClass:"row-item",class:widget.type == 'grid-lay-out' ? ' no-row-item ' : '',style:({ borderColor: _vm.data.config.borderColor })},[_c('grid-layout-component',{attrs:{"widget":widget,"rules":_vm.rules,"models":_vm.models,"index":index,"verifyNode":_vm.verifyNode,"suggest":_vm.suggest,"verifyLogs":_vm.verifyLogs,"listindex":listindex,"config":_vm.data.config,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'verify')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",style:({ borderColor: _vm.data.config.borderColor })},[_c('verify-component',{attrs:{"widget":widget,"rules":_vm.rules,"models":_vm.models,"verifyNode":_vm.verifyNode,"verifyLogs":_vm.verifyLogs,"suggest":_vm.suggest,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'all-lay-out')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView),expression:"widget.options.canView"}],key:index,staticClass:"row-item",style:({ borderColor: _vm.data.config.borderColor })},[_c('all-layout-component',{attrs:{"widget":widget,"rules":_vm.rules,"models":_vm.models,"index":index,"listindex":listindex,"applyId":_vm.applyId},on:{"update:rules":function($event){_vm.rules=$event},"update:models":function($event){_vm.models=$event}}})],1):(widget.type == 'placeholder')?_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,class:{
105419
+ 'item-bottom': !widget.options.border,
105420
+ 'row-item': widget.options.border,
105421
+ },style:({ borderColor: _vm.data.config.borderColor })},[_c('layout-item',{attrs:{"widget":widget,"models":_vm.models,"rules":_vm.rules,"verifyNode":_vm.verifyNode,"verifyLogs":_vm.verifyLogs,"applyId":_vm.applyId},on:{"update:models":function($event){_vm.models=$event},"update:rules":function($event){_vm.rules=$event}}})],1):_c('div',{directives:[{name:"show",rawName:"v-show",value:(widget.options.canView && widget.type != 'hidden'),expression:"widget.options.canView && widget.type != 'hidden'"}],key:index,staticClass:"row-item",class:{hiddenWidget:widget.type == 'hidden'},style:({ borderColor: _vm.data.config.borderColor })},[_c('layout-item',{attrs:{"widget":widget,"models":_vm.models,"verifyNode":_vm.verifyNode,"verifyLogs":_vm.verifyLogs,"suggest":_vm.suggest,"dataObj":_vm.data,"rules":_vm.rules,"applyId":_vm.applyId},on:{"update:models":function($event){_vm.models=$event},"update:rules":function($event){_vm.rules=$event}}})],1)]})],2),(_vm.data.config.pageFooter && listindex === _vm.widgetList.length - 1)?_c('div',{style:(_vm.data.config.footerHeight),domProps:{"innerHTML":_vm._s(_vm.data.config.pageFooter)}}):_vm._e()],2)}),0)],1)}
105422
+ var staticRenderFns = []
105423
+
105424
+
105425
+ // EXTERNAL MODULE: ./node_modules/_thread-loader@3.0.4@thread-loader/dist/cjs.js!./node_modules/_babel-loader@8.4.1@babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=script&lang=js
105426
+ var layoutForPapervue_type_script_lang_js = __webpack_require__(9218);
105427
+ ;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=script&lang=js
105428
+ /* harmony default export */ const layout_layoutForPapervue_type_script_lang_js = (layoutForPapervue_type_script_lang_js/* default */.A);
105429
+ ;// ./node_modules/_mini-css-extract-plugin@2.9.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/_less-loader@5.0.0@less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=2ca700da&prod&lang=less&scoped=true
105430
+ // extracted by mini-css-extract-plugin
105431
+
105432
+ ;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=2ca700da&prod&lang=less&scoped=true
105433
+
105434
+ ;// ./node_modules/_mini-css-extract-plugin@2.9.2@mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/_css-loader@6.11.0@css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@6.2.1@postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=2ca700da&prod&lang=css
105435
+ // extracted by mini-css-extract-plugin
105436
+
105437
+ ;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=2ca700da&prod&lang=css
105438
+
105439
+ // EXTERNAL MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/runtime/componentNormalizer.js
105440
+ var componentNormalizer = __webpack_require__(4008);
105441
+ ;// ./src/form/modules/layout/layoutForPaper.vue
105442
+
105443
+
105444
+
105445
+ ;
105446
+
105447
+
105448
+
105449
+ /* normalize component */
105450
+
105451
+ var component = (0,componentNormalizer/* default */.A)(
105452
+ layout_layoutForPapervue_type_script_lang_js,
105453
+ render,
105454
+ staticRenderFns,
105455
+ false,
105456
+ null,
105457
+ "2ca700da",
105458
+ null
105459
+
105460
+ )
105461
+
105462
+ /* harmony default export */ const layoutForPaper = (component.exports);
105463
+
105430
105464
  /***/ }),
105431
105465
 
105432
105466
  /***/ 9461:
@@ -172313,7 +172347,7 @@ var SvgIcon_component = (0,componentNormalizer/* default */.A)(
172313
172347
 
172314
172348
  /* harmony default export */ const SvgIcon = (SvgIcon_component.exports);
172315
172349
  // EXTERNAL MODULE: ./src/form/modules/layout/layoutForPaper.vue + 6 modules
172316
- var layoutForPaper = __webpack_require__(9063);
172350
+ var layoutForPaper = __webpack_require__(9446);
172317
172351
  // EXTERNAL MODULE: ./src/form/modules/layout/layoutItem.vue + 10 modules
172318
172352
  var layoutItem = __webpack_require__(4279);
172319
172353
  ;// ./node_modules/_vue-loader@15.11.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.11.1@vue-loader/lib/index.js??vue-loader-options!./src/form/modules/Container.vue?vue&type=template&id=6b8b10c9
@@ -185406,7 +185440,7 @@ var formula_edit_component = (0,componentNormalizer/* default */.A)(
185406
185440
  }
185407
185441
  },
185408
185442
  components: {
185409
- layoutForPaper: () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 9063)),
185443
+ layoutForPaper: () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 9446)),
185410
185444
  FormulaEdit: formula_edit
185411
185445
  },
185412
185446
  data() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/form-component",
3
- "version": "1.1.642",
3
+ "version": "1.1.644",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "main": "dist/form-component.umd.js",