@zscreate/form-component 1.1.641 → 1.1.643
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.
- package/dist/form-component.css +65 -65
- package/dist/form-component.umd.js +106 -101
- package/package.json +1 -1
package/dist/form-component.css
CHANGED
|
@@ -4889,46 +4889,46 @@ div {
|
|
|
4889
4889
|
align-items: center;
|
|
4890
4890
|
}
|
|
4891
4891
|
|
|
4892
|
-
.t-border[data-v-
|
|
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-
|
|
4896
|
+
[data-v-2ca700da] * {
|
|
4897
4897
|
font-size: var(--paperFontSize);
|
|
4898
4898
|
}
|
|
4899
|
-
[data-v-
|
|
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-
|
|
4903
|
+
.save-pdf[data-v-2ca700da] .ant-input {
|
|
4904
4904
|
border: none !important;
|
|
4905
4905
|
}
|
|
4906
|
-
.save-pdf[data-v-
|
|
4906
|
+
.save-pdf[data-v-2ca700da] .ant-select-selection {
|
|
4907
4907
|
border: none !important;
|
|
4908
4908
|
}
|
|
4909
|
-
.save-pdf[data-v-
|
|
4909
|
+
.save-pdf[data-v-2ca700da] .ant-select-arrow svg {
|
|
4910
4910
|
display: none;
|
|
4911
4911
|
}
|
|
4912
|
-
.save-pdf[data-v-
|
|
4912
|
+
.save-pdf[data-v-2ca700da] .ant-upload.ant-upload-select-picture-card {
|
|
4913
4913
|
display: none;
|
|
4914
4914
|
}
|
|
4915
|
-
.save-pdf[data-v-
|
|
4915
|
+
.save-pdf[data-v-2ca700da] .anticon svg {
|
|
4916
4916
|
display: none;
|
|
4917
4917
|
}
|
|
4918
|
-
.save-pdf[data-v-
|
|
4918
|
+
.save-pdf[data-v-2ca700da] .ant-time-picker-input {
|
|
4919
4919
|
border: none !important;
|
|
4920
4920
|
}
|
|
4921
|
-
.save-pdf[data-v-
|
|
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-
|
|
4925
|
+
.computed-wrap[data-v-2ca700da] {
|
|
4926
4926
|
background: #f5f5f5;
|
|
4927
4927
|
}
|
|
4928
|
-
.computed-wrap .item[data-v-
|
|
4928
|
+
.computed-wrap .item[data-v-2ca700da] {
|
|
4929
4929
|
display: flex;
|
|
4930
4930
|
}
|
|
4931
|
-
.computed-wrap .item > div[data-v-
|
|
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-
|
|
4939
|
+
.computed-wrap .item > div + div[data-v-2ca700da] {
|
|
4940
4940
|
flex: 2;
|
|
4941
4941
|
}
|
|
4942
|
-
.layout .paper[data-v-
|
|
4942
|
+
.layout .paper[data-v-2ca700da] {
|
|
4943
4943
|
position: relative;
|
|
4944
4944
|
}
|
|
4945
|
-
.layout .paper .form-title[data-v-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
4969
|
+
.page-border .row-item[data-v-2ca700da] {
|
|
4970
4970
|
border-left: 1px solid #000;
|
|
4971
4971
|
}
|
|
4972
|
-
.page-border .item-bottom[data-v-
|
|
4972
|
+
.page-border .item-bottom[data-v-2ca700da] {
|
|
4973
4973
|
border-bottom: 1px solid #000;
|
|
4974
4974
|
}
|
|
4975
|
-
.page-border .row-item[data-v-
|
|
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-
|
|
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-
|
|
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-
|
|
4986
|
+
.page-border .ant-calendar-picker-container[data-v-2ca700da] {
|
|
4987
4987
|
z-index: 200000 !important;
|
|
4988
4988
|
}
|
|
4989
|
-
[data-v-
|
|
4989
|
+
[data-v-2ca700da] .ant-time-picker-panel {
|
|
4990
4990
|
z-index: 9999 !important;
|
|
4991
4991
|
}
|
|
4992
|
-
.ant-calendar-picker-container[data-v-
|
|
4992
|
+
.ant-calendar-picker-container[data-v-2ca700da] {
|
|
4993
4993
|
z-index: 200000 !important;
|
|
4994
4994
|
}
|
|
4995
|
-
[data-v-
|
|
4995
|
+
[data-v-2ca700da] .ant-form-item-children {
|
|
4996
4996
|
display: block;
|
|
4997
4997
|
}
|
|
4998
|
-
[data-v-
|
|
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-
|
|
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-
|
|
5009
|
+
[data-v-2ca700da] .ant-form-item .ant-form-item-label {
|
|
5010
5010
|
border-right: 1px solid #000;
|
|
5011
5011
|
}
|
|
5012
|
-
[data-v-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
5035
|
+
.row-table[data-v-2ca700da] {
|
|
5036
5036
|
display: flex;
|
|
5037
5037
|
}
|
|
5038
|
-
.row-table[data-v-
|
|
5039
|
-
.row-table[data-v-
|
|
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-
|
|
5044
|
-
.row-table .table-left[data-v-
|
|
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-
|
|
5052
|
-
.row-table .table-left p[data-v-
|
|
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-
|
|
5059
|
-
.row-table .table-right[data-v-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
5095
|
-
.sub-table-col-no-border > .sub-table-item[data-v-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
5127
|
+
.no-border .page-border[data-v-2ca700da] {
|
|
5128
5128
|
border: none;
|
|
5129
5129
|
}
|
|
5130
|
-
.no-border .page-border .row-item[data-v-
|
|
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-
|
|
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-
|
|
5136
|
+
.table_border[data-v-2ca700da] {
|
|
5137
5137
|
border-bottom: 0;
|
|
5138
5138
|
border-right: 0;
|
|
5139
5139
|
}
|
|
5140
5140
|
/*****无border *****/
|
|
5141
|
-
[data-v-
|
|
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-
|
|
5145
|
+
[data-v-2ca700da] .ant-spin-dot {
|
|
5146
5146
|
font-size: 20px !important;
|
|
5147
5147
|
}
|
|
5148
|
-
.form_skeleton[data-v-
|
|
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-
|
|
5153
|
+
.form_skeleton[data-v-2ca700da] .ant-skeleton-title {
|
|
5154
5154
|
margin: 0 auto;
|
|
5155
5155
|
}
|
|
5156
5156
|
|
|
@@ -67688,6 +67688,7 @@ __webpack_require__.g.dictData = {};
|
|
|
67688
67688
|
if (msgData.tableKey && msgData.tableKey === this.widget.tableKey && this.tableIndex != msgData.tableIndex) return;
|
|
67689
67689
|
const tableArr = relyWidgets.filter(item => item.includes(".")).map(item => item.split("."));
|
|
67690
67690
|
const models = this.models;
|
|
67691
|
+
debugger;
|
|
67691
67692
|
const keys = Object.keys(models);
|
|
67692
67693
|
const formulaModels = keys.reduce((prev, curr) => {
|
|
67693
67694
|
const key = `_widget_${curr}`;
|
|
@@ -75352,7 +75353,7 @@ const getSignature = params => (0,_form_api_manage__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
75352
75353
|
/***/ ((module) => {
|
|
75353
75354
|
|
|
75354
75355
|
"use strict";
|
|
75355
|
-
module.exports = {"rE":"1.1.
|
|
75356
|
+
module.exports = {"rE":"1.1.643"};
|
|
75356
75357
|
|
|
75357
75358
|
/***/ }),
|
|
75358
75359
|
|
|
@@ -88876,6 +88877,9 @@ module.exports = function (it) {
|
|
|
88876
88877
|
if (this.tableNum === 0) this.formLoading = false;
|
|
88877
88878
|
console.log("tableLoading false");
|
|
88878
88879
|
this.$emit("tableLoading", false);
|
|
88880
|
+
setTimeout(() => {
|
|
88881
|
+
this.publishCalc(model);
|
|
88882
|
+
}, 10);
|
|
88879
88883
|
}, 0);
|
|
88880
88884
|
}
|
|
88881
88885
|
},
|
|
@@ -89244,7 +89248,8 @@ module.exports = function (it) {
|
|
|
89244
89248
|
},
|
|
89245
89249
|
// 设置models值 通过defaultValue
|
|
89246
89250
|
setModelsbyDefaultValue(widget) {
|
|
89247
|
-
|
|
89251
|
+
debugger;
|
|
89252
|
+
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 : '';
|
|
89248
89253
|
switch (widget.type) {
|
|
89249
89254
|
case "verify":
|
|
89250
89255
|
this.models[widget.model] = widget.operationColumns;
|
|
@@ -89287,7 +89292,7 @@ module.exports = function (it) {
|
|
|
89287
89292
|
});
|
|
89288
89293
|
});
|
|
89289
89294
|
}
|
|
89290
|
-
this.models[widget.model] = value;
|
|
89295
|
+
this.models[widget.model] = value ? value : [];
|
|
89291
89296
|
this.generateTableData(widget);
|
|
89292
89297
|
return true;
|
|
89293
89298
|
default:
|
|
@@ -105328,6 +105333,102 @@ var UA = __webpack_require__(8221);
|
|
|
105328
105333
|
module.exports = /MSIE|Trident/.test(UA);
|
|
105329
105334
|
|
|
105330
105335
|
|
|
105336
|
+
/***/ }),
|
|
105337
|
+
|
|
105338
|
+
/***/ 9446:
|
|
105339
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
105340
|
+
|
|
105341
|
+
"use strict";
|
|
105342
|
+
// ESM COMPAT FLAG
|
|
105343
|
+
__webpack_require__.r(__webpack_exports__);
|
|
105344
|
+
|
|
105345
|
+
// EXPORTS
|
|
105346
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
105347
|
+
"default": () => (/* binding */ layoutForPaper)
|
|
105348
|
+
});
|
|
105349
|
+
|
|
105350
|
+
;// ./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
|
|
105351
|
+
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')?[(
|
|
105352
|
+
widget.options.layoutModel === 'auto' ||
|
|
105353
|
+
widget.options.layoutModel === undefined
|
|
105354
|
+
)?_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:({
|
|
105355
|
+
width: widget.options.labelWidth + 'px',
|
|
105356
|
+
borderColor: _vm.data.config.borderColor,
|
|
105357
|
+
backgroundColor: _vm.data.config.bgc,
|
|
105358
|
+
color: _vm.data.config.color,
|
|
105359
|
+
})},[_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:({
|
|
105360
|
+
background: _vm.data.config.bgc,
|
|
105361
|
+
color: _vm.data.config.color,
|
|
105362
|
+
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:[
|
|
105363
|
+
_vm.data.config.align,
|
|
105364
|
+
_vm.data.config.validate === true && children.options.required === true
|
|
105365
|
+
? 'is_required'
|
|
105366
|
+
: '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 () {
|
|
105367
|
+
var args = [], len = arguments.length;
|
|
105368
|
+
while ( len-- ) args[ len ] = arguments[ len ];
|
|
105369
|
+
|
|
105370
|
+
return _vm.tablePageChange.apply(void 0, [ widget ].concat( args ));
|
|
105371
|
+
},"showSizeChange":function () {
|
|
105372
|
+
var args = [], len = arguments.length;
|
|
105373
|
+
while ( len-- ) args[ len ] = arguments[ len ];
|
|
105374
|
+
|
|
105375
|
+
return _vm.tablePageChange.apply(void 0, [ widget ].concat( args ));
|
|
105376
|
+
}},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) {
|
|
105377
|
+
var model = ref.model;
|
|
105378
|
+
var idx = ref.index;
|
|
105379
|
+
var rand_id = ref.rand_id;
|
|
105380
|
+
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(),(
|
|
105381
|
+
widget.options.computingSub.length > 0 &&
|
|
105382
|
+
widget.options.computingMethod.length > 0 &&
|
|
105383
|
+
_vm.tableData &&
|
|
105384
|
+
_vm.tableData[widget.model] &&
|
|
105385
|
+
_vm.tableData[widget.model].length > 0
|
|
105386
|
+
)?_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:{
|
|
105387
|
+
'item-bottom': !widget.options.border,
|
|
105388
|
+
'row-item': widget.options.border,
|
|
105389
|
+
},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)}
|
|
105390
|
+
var staticRenderFns = []
|
|
105391
|
+
|
|
105392
|
+
|
|
105393
|
+
// 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
|
|
105394
|
+
var layoutForPapervue_type_script_lang_js = __webpack_require__(9218);
|
|
105395
|
+
;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=script&lang=js
|
|
105396
|
+
/* harmony default export */ const layout_layoutForPapervue_type_script_lang_js = (layoutForPapervue_type_script_lang_js/* default */.A);
|
|
105397
|
+
;// ./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
|
|
105398
|
+
// extracted by mini-css-extract-plugin
|
|
105399
|
+
|
|
105400
|
+
;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=2ca700da&prod&lang=less&scoped=true
|
|
105401
|
+
|
|
105402
|
+
;// ./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
|
|
105403
|
+
// extracted by mini-css-extract-plugin
|
|
105404
|
+
|
|
105405
|
+
;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=2ca700da&prod&lang=css
|
|
105406
|
+
|
|
105407
|
+
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
105408
|
+
var componentNormalizer = __webpack_require__(4008);
|
|
105409
|
+
;// ./src/form/modules/layout/layoutForPaper.vue
|
|
105410
|
+
|
|
105411
|
+
|
|
105412
|
+
|
|
105413
|
+
;
|
|
105414
|
+
|
|
105415
|
+
|
|
105416
|
+
|
|
105417
|
+
/* normalize component */
|
|
105418
|
+
|
|
105419
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
105420
|
+
layout_layoutForPapervue_type_script_lang_js,
|
|
105421
|
+
render,
|
|
105422
|
+
staticRenderFns,
|
|
105423
|
+
false,
|
|
105424
|
+
null,
|
|
105425
|
+
"2ca700da",
|
|
105426
|
+
null
|
|
105427
|
+
|
|
105428
|
+
)
|
|
105429
|
+
|
|
105430
|
+
/* harmony default export */ const layoutForPaper = (component.exports);
|
|
105431
|
+
|
|
105331
105432
|
/***/ }),
|
|
105332
105433
|
|
|
105333
105434
|
/***/ 9461:
|
|
@@ -157997,102 +158098,6 @@ var grey = presetPalettes.grey;
|
|
|
157997
158098
|
exports.grey = grey;
|
|
157998
158099
|
|
|
157999
158100
|
|
|
158000
|
-
/***/ }),
|
|
158001
|
-
|
|
158002
|
-
/***/ 9964:
|
|
158003
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
158004
|
-
|
|
158005
|
-
"use strict";
|
|
158006
|
-
// ESM COMPAT FLAG
|
|
158007
|
-
__webpack_require__.r(__webpack_exports__);
|
|
158008
|
-
|
|
158009
|
-
// EXPORTS
|
|
158010
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
158011
|
-
"default": () => (/* binding */ layoutForPaper)
|
|
158012
|
-
});
|
|
158013
|
-
|
|
158014
|
-
;// ./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=0cea3b00&scoped=true
|
|
158015
|
-
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')?[(
|
|
158016
|
-
widget.options.layoutModel === 'auto' ||
|
|
158017
|
-
widget.options.layoutModel === undefined
|
|
158018
|
-
)?_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:({
|
|
158019
|
-
width: widget.options.labelWidth + 'px',
|
|
158020
|
-
borderColor: _vm.data.config.borderColor,
|
|
158021
|
-
backgroundColor: _vm.data.config.bgc,
|
|
158022
|
-
color: _vm.data.config.color,
|
|
158023
|
-
})},[_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:({
|
|
158024
|
-
background: _vm.data.config.bgc,
|
|
158025
|
-
color: _vm.data.config.color,
|
|
158026
|
-
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:[
|
|
158027
|
-
_vm.data.config.align,
|
|
158028
|
-
_vm.data.config.validate === true && children.options.required === true
|
|
158029
|
-
? 'is_required'
|
|
158030
|
-
: '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 () {
|
|
158031
|
-
var args = [], len = arguments.length;
|
|
158032
|
-
while ( len-- ) args[ len ] = arguments[ len ];
|
|
158033
|
-
|
|
158034
|
-
return _vm.tablePageChange.apply(void 0, [ widget ].concat( args ));
|
|
158035
|
-
},"showSizeChange":function () {
|
|
158036
|
-
var args = [], len = arguments.length;
|
|
158037
|
-
while ( len-- ) args[ len ] = arguments[ len ];
|
|
158038
|
-
|
|
158039
|
-
return _vm.tablePageChange.apply(void 0, [ widget ].concat( args ));
|
|
158040
|
-
}},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) {
|
|
158041
|
-
var model = ref.model;
|
|
158042
|
-
var idx = ref.index;
|
|
158043
|
-
var rand_id = ref.rand_id;
|
|
158044
|
-
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(),(
|
|
158045
|
-
widget.options.computingSub.length > 0 &&
|
|
158046
|
-
widget.options.computingMethod.length > 0 &&
|
|
158047
|
-
_vm.tableData &&
|
|
158048
|
-
_vm.tableData[widget.model] &&
|
|
158049
|
-
_vm.tableData[widget.model].length > 0
|
|
158050
|
-
)?_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:{
|
|
158051
|
-
'item-bottom': !widget.options.border,
|
|
158052
|
-
'row-item': widget.options.border,
|
|
158053
|
-
},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)}
|
|
158054
|
-
var staticRenderFns = []
|
|
158055
|
-
|
|
158056
|
-
|
|
158057
|
-
// 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
|
|
158058
|
-
var layoutForPapervue_type_script_lang_js = __webpack_require__(9218);
|
|
158059
|
-
;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=script&lang=js
|
|
158060
|
-
/* harmony default export */ const layout_layoutForPapervue_type_script_lang_js = (layoutForPapervue_type_script_lang_js/* default */.A);
|
|
158061
|
-
;// ./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=0cea3b00&prod&lang=less&scoped=true
|
|
158062
|
-
// extracted by mini-css-extract-plugin
|
|
158063
|
-
|
|
158064
|
-
;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=0cea3b00&prod&lang=less&scoped=true
|
|
158065
|
-
|
|
158066
|
-
;// ./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=0cea3b00&prod&lang=css
|
|
158067
|
-
// extracted by mini-css-extract-plugin
|
|
158068
|
-
|
|
158069
|
-
;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=0cea3b00&prod&lang=css
|
|
158070
|
-
|
|
158071
|
-
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
158072
|
-
var componentNormalizer = __webpack_require__(4008);
|
|
158073
|
-
;// ./src/form/modules/layout/layoutForPaper.vue
|
|
158074
|
-
|
|
158075
|
-
|
|
158076
|
-
|
|
158077
|
-
;
|
|
158078
|
-
|
|
158079
|
-
|
|
158080
|
-
|
|
158081
|
-
/* normalize component */
|
|
158082
|
-
|
|
158083
|
-
var component = (0,componentNormalizer/* default */.A)(
|
|
158084
|
-
layout_layoutForPapervue_type_script_lang_js,
|
|
158085
|
-
render,
|
|
158086
|
-
staticRenderFns,
|
|
158087
|
-
false,
|
|
158088
|
-
null,
|
|
158089
|
-
"0cea3b00",
|
|
158090
|
-
null
|
|
158091
|
-
|
|
158092
|
-
)
|
|
158093
|
-
|
|
158094
|
-
/* harmony default export */ const layoutForPaper = (component.exports);
|
|
158095
|
-
|
|
158096
158101
|
/***/ }),
|
|
158097
158102
|
|
|
158098
158103
|
/***/ 9970:
|
|
@@ -172310,7 +172315,7 @@ var SvgIcon_component = (0,componentNormalizer/* default */.A)(
|
|
|
172310
172315
|
|
|
172311
172316
|
/* harmony default export */ const SvgIcon = (SvgIcon_component.exports);
|
|
172312
172317
|
// EXTERNAL MODULE: ./src/form/modules/layout/layoutForPaper.vue + 6 modules
|
|
172313
|
-
var layoutForPaper = __webpack_require__(
|
|
172318
|
+
var layoutForPaper = __webpack_require__(9446);
|
|
172314
172319
|
// EXTERNAL MODULE: ./src/form/modules/layout/layoutItem.vue + 10 modules
|
|
172315
172320
|
var layoutItem = __webpack_require__(4279);
|
|
172316
172321
|
;// ./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
|
|
@@ -185403,7 +185408,7 @@ var formula_edit_component = (0,componentNormalizer/* default */.A)(
|
|
|
185403
185408
|
}
|
|
185404
185409
|
},
|
|
185405
185410
|
components: {
|
|
185406
|
-
layoutForPaper: () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__,
|
|
185411
|
+
layoutForPaper: () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 9446)),
|
|
185407
185412
|
FormulaEdit: formula_edit
|
|
185408
185413
|
},
|
|
185409
185414
|
data() {
|