@zscreate/form-component 1.1.647 → 1.1.648

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-0167146a] {
4892
+ .t-border[data-v-6be0a318] {
4893
4893
  border-right: 1px solid #333;
4894
4894
  border-bottom: 1px solid #333;
4895
4895
  }
4896
- [data-v-0167146a] * {
4896
+ [data-v-6be0a318] * {
4897
4897
  font-size: var(--paperFontSize);
4898
4898
  }
4899
- [data-v-0167146a] .custom_form_item {
4899
+ [data-v-6be0a318] .custom_form_item {
4900
4900
  height: -moz-fit-content;
4901
4901
  height: fit-content;
4902
4902
  }
4903
- .save-pdf[data-v-0167146a] .ant-input {
4903
+ .save-pdf[data-v-6be0a318] .ant-input {
4904
4904
  border: none !important;
4905
4905
  }
4906
- .save-pdf[data-v-0167146a] .ant-select-selection {
4906
+ .save-pdf[data-v-6be0a318] .ant-select-selection {
4907
4907
  border: none !important;
4908
4908
  }
4909
- .save-pdf[data-v-0167146a] .ant-select-arrow svg {
4909
+ .save-pdf[data-v-6be0a318] .ant-select-arrow svg {
4910
4910
  display: none;
4911
4911
  }
4912
- .save-pdf[data-v-0167146a] .ant-upload.ant-upload-select-picture-card {
4912
+ .save-pdf[data-v-6be0a318] .ant-upload.ant-upload-select-picture-card {
4913
4913
  display: none;
4914
4914
  }
4915
- .save-pdf[data-v-0167146a] .anticon svg {
4915
+ .save-pdf[data-v-6be0a318] .anticon svg {
4916
4916
  display: none;
4917
4917
  }
4918
- .save-pdf[data-v-0167146a] .ant-time-picker-input {
4918
+ .save-pdf[data-v-6be0a318] .ant-time-picker-input {
4919
4919
  border: none !important;
4920
4920
  }
4921
- .save-pdf[data-v-0167146a] .ant-upload.ant-upload-select {
4921
+ .save-pdf[data-v-6be0a318] .ant-upload.ant-upload-select {
4922
4922
  display: none;
4923
4923
  }
4924
4924
  /**打印非固定高度标签 高度不确定bug**/
4925
- .computed-wrap[data-v-0167146a] {
4925
+ .computed-wrap[data-v-6be0a318] {
4926
4926
  background: #f5f5f5;
4927
4927
  }
4928
- .computed-wrap .item[data-v-0167146a] {
4928
+ .computed-wrap .item[data-v-6be0a318] {
4929
4929
  display: flex;
4930
4930
  }
4931
- .computed-wrap .item > div[data-v-0167146a] {
4931
+ .computed-wrap .item > div[data-v-6be0a318] {
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-0167146a] {
4939
+ .computed-wrap .item > div + div[data-v-6be0a318] {
4940
4940
  flex: 2;
4941
4941
  }
4942
- .layout .paper[data-v-0167146a] {
4942
+ .layout .paper[data-v-6be0a318] {
4943
4943
  position: relative;
4944
4944
  }
4945
- .layout .paper .form-title[data-v-0167146a] {
4945
+ .layout .paper .form-title[data-v-6be0a318] {
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-0167146a] {
4952
+ .row-item[data-v-6be0a318] {
4953
4953
  height: -moz-fit-content;
4954
4954
  height: fit-content;
4955
4955
  /**打印非固定高度标签 高度不确定bug**/
4956
4956
  }
4957
- .no-row-item[data-v-0167146a] {
4957
+ .no-row-item[data-v-6be0a318] {
4958
4958
  border-right: none;
4959
4959
  border-bottom: none;
4960
4960
  }
4961
4961
  /****page边框内的 ***/
4962
- .page-border[data-v-0167146a] {
4962
+ .page-border[data-v-6be0a318] {
4963
4963
  background: #fff;
4964
4964
  box-sizing: border-box;
4965
4965
  }
4966
- .page-border .row-item[data-v-0167146a]:first-child {
4966
+ .page-border .row-item[data-v-6be0a318]:first-child {
4967
4967
  border-top: 1px solid #000;
4968
4968
  }
4969
- .page-border .row-item[data-v-0167146a] {
4969
+ .page-border .row-item[data-v-6be0a318] {
4970
4970
  border-left: 1px solid #000;
4971
4971
  }
4972
- .page-border .item-bottom[data-v-0167146a] {
4972
+ .page-border .item-bottom[data-v-6be0a318] {
4973
4973
  border-bottom: 1px solid #000;
4974
4974
  }
4975
- .page-border .row-item[data-v-0167146a]:not(:last-child) {
4975
+ .page-border .row-item[data-v-6be0a318]:not(:last-child) {
4976
4976
  position: relative;
4977
4977
  }
4978
- .page-border li.sortable-chosen[data-v-0167146a] {
4978
+ .page-border li.sortable-chosen[data-v-6be0a318] {
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-0167146a] {
4983
+ .page-border .ant-time-picker-panel[data-v-6be0a318] {
4984
4984
  z-index: 200000 !important;
4985
4985
  }
4986
- .page-border .ant-calendar-picker-container[data-v-0167146a] {
4986
+ .page-border .ant-calendar-picker-container[data-v-6be0a318] {
4987
4987
  z-index: 200000 !important;
4988
4988
  }
4989
- [data-v-0167146a] .ant-time-picker-panel {
4989
+ [data-v-6be0a318] .ant-time-picker-panel {
4990
4990
  z-index: 9999 !important;
4991
4991
  }
4992
- .ant-calendar-picker-container[data-v-0167146a] {
4992
+ .ant-calendar-picker-container[data-v-6be0a318] {
4993
4993
  z-index: 200000 !important;
4994
4994
  }
4995
- [data-v-0167146a] .ant-form-item-children {
4995
+ [data-v-6be0a318] .ant-form-item-children {
4996
4996
  display: block;
4997
4997
  }
4998
- [data-v-0167146a] .ant-form-item {
4998
+ [data-v-6be0a318] .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-0167146a] .ant-form-item .is_required::before {
5004
+ [data-v-6be0a318] .ant-form-item .is_required::before {
5005
5005
  content: "*";
5006
5006
  color: #f56c6c;
5007
5007
  margin-right: 4px;
5008
5008
  }
5009
- [data-v-0167146a] .ant-form-item .ant-form-item-label {
5009
+ [data-v-6be0a318] .ant-form-item .ant-form-item-label {
5010
5010
  border-right: 1px solid #000;
5011
5011
  }
5012
- [data-v-0167146a] .ant-form-item .ant-form-item-label label {
5012
+ [data-v-6be0a318] .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-0167146a] .ant-form-item .ant-form-item-label > label.ant-form-item-no-colon::after {
5018
+ [data-v-6be0a318] .ant-form-item .ant-form-item-label > label.ant-form-item-no-colon::after {
5019
5019
  display: none;
5020
5020
  }
5021
- [data-v-0167146a] .ant-form-item .ant-form-item-control-wrapper {
5021
+ [data-v-6be0a318] .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-0167146a] .ant-form-item .ant-form-item-control {
5026
+ [data-v-6be0a318] .ant-form-item .ant-form-item-control {
5027
5027
  width: 98%;
5028
5028
  margin: 0 auto;
5029
5029
  }
5030
- [data-v-0167146a] .ant-form-item .is_required::before {
5030
+ [data-v-6be0a318] .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-0167146a] {
5035
+ .row-table[data-v-6be0a318] {
5036
5036
  display: flex;
5037
5037
  }
5038
- .row-table[data-v-0167146a] .ant-spin-container,
5039
- .row-table[data-v-0167146a] {
5038
+ .row-table[data-v-6be0a318] .ant-spin-container,
5039
+ .row-table[data-v-6be0a318] {
5040
5040
  display: flex;
5041
5041
  width: 100%;
5042
5042
  }
5043
- .row-table[data-v-0167146a] .ant-spin-container .table-left,
5044
- .row-table .table-left[data-v-0167146a] {
5043
+ .row-table[data-v-6be0a318] .ant-spin-container .table-left,
5044
+ .row-table .table-left[data-v-6be0a318] {
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-0167146a] .ant-spin-container .table-left p,
5052
- .row-table .table-left p[data-v-0167146a] {
5051
+ .row-table[data-v-6be0a318] .ant-spin-container .table-left p,
5052
+ .row-table .table-left p[data-v-6be0a318] {
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-0167146a] .ant-spin-container .table-right,
5059
- .row-table .table-right[data-v-0167146a] {
5058
+ .row-table[data-v-6be0a318] .ant-spin-container .table-right,
5059
+ .row-table .table-right[data-v-6be0a318] {
5060
5060
  flex: 1;
5061
5061
  }
5062
- .table-content[data-v-0167146a] {
5062
+ .table-content[data-v-6be0a318] {
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-0167146a] {
5071
+ .sub-table-col[data-v-6be0a318] {
5072
5072
  display: flex;
5073
5073
  box-sizing: border-box;
5074
5074
  }
5075
- .sub-table-col > span[data-v-0167146a] {
5075
+ .sub-table-col > span[data-v-6be0a318] {
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-0167146a] {
5083
+ .sub-table-col > .last-one[data-v-6be0a318] {
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-0167146a] {
5089
+ .sub-table-col-no-border > span[data-v-6be0a318] {
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-0167146a]:last-child,
5095
- .sub-table-col-no-border > .sub-table-item[data-v-0167146a]:last-child {
5094
+ .sub-table-col-no-border > .sub-table-title[data-v-6be0a318]:last-child,
5095
+ .sub-table-col-no-border > .sub-table-item[data-v-6be0a318]:last-child {
5096
5096
  border-right: none !important;
5097
5097
  }
5098
- .sub-table-col-no-border > .last-one[data-v-0167146a] {
5098
+ .sub-table-col-no-border > .last-one[data-v-6be0a318] {
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-0167146a] {
5105
+ .pagiAfter + .row-item[data-v-6be0a318] {
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-0167146a] {
5110
+ .row-item:not(:last-child) .hasWidgetAfter[data-v-6be0a318] {
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-0167146a] {
5119
+ .row-item:not(:last-child):has(+ .row-item.hiddenWidget) .hasWidgetAfter[data-v-6be0a318] {
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-0167146a] {
5127
+ .no-border .page-border[data-v-6be0a318] {
5128
5128
  border: none;
5129
5129
  }
5130
- .no-border .page-border .row-item[data-v-0167146a]:not(:last-child) {
5130
+ .no-border .page-border .row-item[data-v-6be0a318]:not(:last-child) {
5131
5131
  border: none;
5132
5132
  }
5133
- .no-border .page-border[data-v-0167146a] .ant-form-item .ant-form-item-label {
5133
+ .no-border .page-border[data-v-6be0a318] .ant-form-item .ant-form-item-label {
5134
5134
  border: none;
5135
5135
  }
5136
- .table_border[data-v-0167146a] {
5136
+ .table_border[data-v-6be0a318] {
5137
5137
  border-bottom: 0;
5138
5138
  border-right: 0;
5139
5139
  }
5140
5140
  /*****无border *****/
5141
- [data-v-0167146a] .ant-form-item-children > div > p,[data-v-0167146a] .ant-form-item-children > div > h1,[data-v-0167146a] .ant-form-item-children > div > h2,[data-v-0167146a] .ant-form-item-children > div > h3,[data-v-0167146a] .ant-form-item-children > div > h4,[data-v-0167146a] .ant-form-item-children > div > h5,[data-v-0167146a] .ant-form-item-children > div > table /deep/ .ant-form-item-children > div > pre {
5141
+ [data-v-6be0a318] .ant-form-item-children > div > p,[data-v-6be0a318] .ant-form-item-children > div > h1,[data-v-6be0a318] .ant-form-item-children > div > h2,[data-v-6be0a318] .ant-form-item-children > div > h3,[data-v-6be0a318] .ant-form-item-children > div > h4,[data-v-6be0a318] .ant-form-item-children > div > h5,[data-v-6be0a318] .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-0167146a] .ant-spin-dot {
5145
+ [data-v-6be0a318] .ant-spin-dot {
5146
5146
  font-size: 20px !important;
5147
5147
  }
5148
- .form_skeleton[data-v-0167146a] {
5148
+ .form_skeleton[data-v-6be0a318] {
5149
5149
  display: block;
5150
5150
  width: 700px;
5151
5151
  margin: 55px auto;
5152
5152
  }
5153
- .form_skeleton[data-v-0167146a] .ant-skeleton-title {
5153
+ .form_skeleton[data-v-6be0a318] .ant-skeleton-title {
5154
5154
  margin: 0 auto;
5155
5155
  }
5156
5156
 
@@ -109379,102 +109379,6 @@ var baseEach = _createBaseEach(_baseForOwn);
109379
109379
  /* harmony default export */ const _baseEach = (baseEach);
109380
109380
 
109381
109381
 
109382
- /***/ }),
109383
-
109384
- /***/ 5703:
109385
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
109386
-
109387
- "use strict";
109388
- // ESM COMPAT FLAG
109389
- __webpack_require__.r(__webpack_exports__);
109390
-
109391
- // EXPORTS
109392
- __webpack_require__.d(__webpack_exports__, {
109393
- "default": () => (/* binding */ layoutForPaper)
109394
- });
109395
-
109396
- ;// ./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=0167146a&scoped=true
109397
- 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')?[(
109398
- widget.options.layoutModel === 'auto' ||
109399
- widget.options.layoutModel === undefined
109400
- )?_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:({
109401
- width: widget.options.labelWidth + 'px',
109402
- borderColor: _vm.data.config.borderColor,
109403
- backgroundColor: _vm.data.config.bgc,
109404
- color: _vm.data.config.color,
109405
- })},[_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:({
109406
- background: _vm.data.config.bgc,
109407
- color: _vm.data.config.color,
109408
- 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:[
109409
- _vm.data.config.align,
109410
- _vm.data.config.validate === true && children.options.required === true
109411
- ? 'is_required'
109412
- : '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 () {
109413
- var args = [], len = arguments.length;
109414
- while ( len-- ) args[ len ] = arguments[ len ];
109415
-
109416
- return _vm.tablePageChange.apply(void 0, [ widget ].concat( args ));
109417
- },"showSizeChange":function () {
109418
- var args = [], len = arguments.length;
109419
- while ( len-- ) args[ len ] = arguments[ len ];
109420
-
109421
- return _vm.tablePageChange.apply(void 0, [ widget ].concat( args ));
109422
- }},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) {
109423
- var model = ref.model;
109424
- var idx = ref.index;
109425
- var rand_id = ref.rand_id;
109426
- 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(),(
109427
- widget.options.computingSub.length > 0 &&
109428
- widget.options.computingMethod.length > 0 &&
109429
- _vm.tableData &&
109430
- _vm.tableData[widget.model] &&
109431
- _vm.tableData[widget.model].length > 0
109432
- )?_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:{
109433
- 'item-bottom': !widget.options.border,
109434
- 'row-item': widget.options.border,
109435
- },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)}
109436
- var staticRenderFns = []
109437
-
109438
-
109439
- // 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
109440
- var layoutForPapervue_type_script_lang_js = __webpack_require__(9218);
109441
- ;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=script&lang=js
109442
- /* harmony default export */ const layout_layoutForPapervue_type_script_lang_js = (layoutForPapervue_type_script_lang_js/* default */.A);
109443
- ;// ./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=0167146a&prod&lang=less&scoped=true
109444
- // extracted by mini-css-extract-plugin
109445
-
109446
- ;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=0167146a&prod&lang=less&scoped=true
109447
-
109448
- ;// ./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=0167146a&prod&lang=css
109449
- // extracted by mini-css-extract-plugin
109450
-
109451
- ;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=0167146a&prod&lang=css
109452
-
109453
- // EXTERNAL MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/runtime/componentNormalizer.js
109454
- var componentNormalizer = __webpack_require__(4008);
109455
- ;// ./src/form/modules/layout/layoutForPaper.vue
109456
-
109457
-
109458
-
109459
- ;
109460
-
109461
-
109462
-
109463
- /* normalize component */
109464
-
109465
- var component = (0,componentNormalizer/* default */.A)(
109466
- layout_layoutForPapervue_type_script_lang_js,
109467
- render,
109468
- staticRenderFns,
109469
- false,
109470
- null,
109471
- "0167146a",
109472
- null
109473
-
109474
- )
109475
-
109476
- /* harmony default export */ const layoutForPaper = (component.exports);
109477
-
109478
109382
  /***/ }),
109479
109383
 
109480
109384
  /***/ 5705:
@@ -120547,7 +120451,7 @@ const getSignature = params => (0,_form_api_manage__WEBPACK_IMPORTED_MODULE_0__/
120547
120451
  /***/ ((module) => {
120548
120452
 
120549
120453
  "use strict";
120550
- module.exports = {"rE":"1.1.647"};
120454
+ module.exports = {"rE":"1.1.648"};
120551
120455
 
120552
120456
  /***/ }),
120553
120457
 
@@ -133353,6 +133257,10 @@ module.exports = function (it) {
133353
133257
  //
133354
133258
  //
133355
133259
  //
133260
+ //
133261
+ //
133262
+ //
133263
+ //
133356
133264
 
133357
133265
 
133358
133266
 
@@ -133665,6 +133573,14 @@ module.exports = function (it) {
133665
133573
  }
133666
133574
  },
133667
133575
  methods: {
133576
+ beforeUpload: function (file) {
133577
+ var fileType = file.type;
133578
+ if (fileType.indexOf("excel") < 0) {
133579
+ this.$message.error("请上传Excel文件");
133580
+ return false;
133581
+ }
133582
+ //TODO 验证文件大小
133583
+ },
133668
133584
  async getSysConfig() {
133669
133585
  (0,_form_api_manage__WEBPACK_IMPORTED_MODULE_21__/* .getAction */ .Th)('sys/dict/system/config').then(res => {
133670
133586
  this.sysConfig = res === null || res === void 0 ? void 0 : res.result.reduce((prev, curr) => {
@@ -133747,6 +133663,10 @@ module.exports = function (it) {
133747
133663
  handleChange(widget, {
133748
133664
  file
133749
133665
  }) {
133666
+ var fileType = file.type;
133667
+ if (fileType.indexOf("excel") < 0) {
133668
+ return false;
133669
+ }
133750
133670
  this.formLoading = true;
133751
133671
  this.$set(this.tableData, widget.model, []);
133752
133672
  if (file.size > 100 * 1024 * 1024) {
@@ -150663,6 +150583,102 @@ function baseTrim(string) {
150663
150583
  module.exports = baseTrim;
150664
150584
 
150665
150585
 
150586
+ /***/ }),
150587
+
150588
+ /***/ 9554:
150589
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
150590
+
150591
+ "use strict";
150592
+ // ESM COMPAT FLAG
150593
+ __webpack_require__.r(__webpack_exports__);
150594
+
150595
+ // EXPORTS
150596
+ __webpack_require__.d(__webpack_exports__, {
150597
+ "default": () => (/* binding */ layoutForPaper)
150598
+ });
150599
+
150600
+ ;// ./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=6be0a318&scoped=true
150601
+ 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')?[(
150602
+ widget.options.layoutModel === 'auto' ||
150603
+ widget.options.layoutModel === undefined
150604
+ )?_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:({
150605
+ width: widget.options.labelWidth + 'px',
150606
+ borderColor: _vm.data.config.borderColor,
150607
+ backgroundColor: _vm.data.config.bgc,
150608
+ color: _vm.data.config.color,
150609
+ })},[_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,"accept":".xls,.xlsx","beforeUpload":_vm.beforeUpload},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:({
150610
+ background: _vm.data.config.bgc,
150611
+ color: _vm.data.config.color,
150612
+ 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,"accept":".xls,.xlsx","showUploadList":false,"beforeUpload":_vm.beforeUpload},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:[
150613
+ _vm.data.config.align,
150614
+ _vm.data.config.validate === true && children.options.required === true
150615
+ ? 'is_required'
150616
+ : '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 () {
150617
+ var args = [], len = arguments.length;
150618
+ while ( len-- ) args[ len ] = arguments[ len ];
150619
+
150620
+ return _vm.tablePageChange.apply(void 0, [ widget ].concat( args ));
150621
+ },"showSizeChange":function () {
150622
+ var args = [], len = arguments.length;
150623
+ while ( len-- ) args[ len ] = arguments[ len ];
150624
+
150625
+ return _vm.tablePageChange.apply(void 0, [ widget ].concat( args ));
150626
+ }},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) {
150627
+ var model = ref.model;
150628
+ var idx = ref.index;
150629
+ var rand_id = ref.rand_id;
150630
+ 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(),(
150631
+ widget.options.computingSub.length > 0 &&
150632
+ widget.options.computingMethod.length > 0 &&
150633
+ _vm.tableData &&
150634
+ _vm.tableData[widget.model] &&
150635
+ _vm.tableData[widget.model].length > 0
150636
+ )?_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:{
150637
+ 'item-bottom': !widget.options.border,
150638
+ 'row-item': widget.options.border,
150639
+ },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)}
150640
+ var staticRenderFns = []
150641
+
150642
+
150643
+ // 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
150644
+ var layoutForPapervue_type_script_lang_js = __webpack_require__(9218);
150645
+ ;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=script&lang=js
150646
+ /* harmony default export */ const layout_layoutForPapervue_type_script_lang_js = (layoutForPapervue_type_script_lang_js/* default */.A);
150647
+ ;// ./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=6be0a318&prod&lang=less&scoped=true
150648
+ // extracted by mini-css-extract-plugin
150649
+
150650
+ ;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=6be0a318&prod&lang=less&scoped=true
150651
+
150652
+ ;// ./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=6be0a318&prod&lang=css
150653
+ // extracted by mini-css-extract-plugin
150654
+
150655
+ ;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=6be0a318&prod&lang=css
150656
+
150657
+ // EXTERNAL MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/runtime/componentNormalizer.js
150658
+ var componentNormalizer = __webpack_require__(4008);
150659
+ ;// ./src/form/modules/layout/layoutForPaper.vue
150660
+
150661
+
150662
+
150663
+ ;
150664
+
150665
+
150666
+
150667
+ /* normalize component */
150668
+
150669
+ var component = (0,componentNormalizer/* default */.A)(
150670
+ layout_layoutForPapervue_type_script_lang_js,
150671
+ render,
150672
+ staticRenderFns,
150673
+ false,
150674
+ null,
150675
+ "6be0a318",
150676
+ null
150677
+
150678
+ )
150679
+
150680
+ /* harmony default export */ const layoutForPaper = (component.exports);
150681
+
150666
150682
  /***/ }),
150667
150683
 
150668
150684
  /***/ 9594:
@@ -172392,7 +172408,7 @@ var SvgIcon_component = (0,componentNormalizer/* default */.A)(
172392
172408
 
172393
172409
  /* harmony default export */ const SvgIcon = (SvgIcon_component.exports);
172394
172410
  // EXTERNAL MODULE: ./src/form/modules/layout/layoutForPaper.vue + 6 modules
172395
- var layoutForPaper = __webpack_require__(5703);
172411
+ var layoutForPaper = __webpack_require__(9554);
172396
172412
  // EXTERNAL MODULE: ./src/form/modules/layout/layoutItem.vue + 10 modules
172397
172413
  var layoutItem = __webpack_require__(4279);
172398
172414
  ;// ./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
@@ -185512,7 +185528,7 @@ var formula_edit_component = (0,componentNormalizer/* default */.A)(
185512
185528
  }
185513
185529
  },
185514
185530
  components: {
185515
- layoutForPaper: () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 5703)),
185531
+ layoutForPaper: () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 9554)),
185516
185532
  FormulaEdit: formula_edit
185517
185533
  },
185518
185534
  data() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/form-component",
3
- "version": "1.1.647",
3
+ "version": "1.1.648",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "main": "dist/form-component.umd.js",