@zscreate/form-component 1.1.627 → 1.1.629
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 +110 -107
- package/package.json +1 -1
package/dist/form-component.css
CHANGED
|
@@ -4886,46 +4886,46 @@ div {
|
|
|
4886
4886
|
align-items: center;
|
|
4887
4887
|
}
|
|
4888
4888
|
|
|
4889
|
-
.t-border[data-v-
|
|
4889
|
+
.t-border[data-v-e66ad144] {
|
|
4890
4890
|
border-right: 1px solid #333;
|
|
4891
4891
|
border-bottom: 1px solid #333;
|
|
4892
4892
|
}
|
|
4893
|
-
[data-v-
|
|
4893
|
+
[data-v-e66ad144] * {
|
|
4894
4894
|
font-size: var(--paperFontSize);
|
|
4895
4895
|
}
|
|
4896
|
-
[data-v-
|
|
4896
|
+
[data-v-e66ad144] .custom_form_item {
|
|
4897
4897
|
height: -moz-fit-content;
|
|
4898
4898
|
height: fit-content;
|
|
4899
4899
|
}
|
|
4900
|
-
.save-pdf[data-v-
|
|
4900
|
+
.save-pdf[data-v-e66ad144] .ant-input {
|
|
4901
4901
|
border: none !important;
|
|
4902
4902
|
}
|
|
4903
|
-
.save-pdf[data-v-
|
|
4903
|
+
.save-pdf[data-v-e66ad144] .ant-select-selection {
|
|
4904
4904
|
border: none !important;
|
|
4905
4905
|
}
|
|
4906
|
-
.save-pdf[data-v-
|
|
4906
|
+
.save-pdf[data-v-e66ad144] .ant-select-arrow svg {
|
|
4907
4907
|
display: none;
|
|
4908
4908
|
}
|
|
4909
|
-
.save-pdf[data-v-
|
|
4909
|
+
.save-pdf[data-v-e66ad144] .ant-upload.ant-upload-select-picture-card {
|
|
4910
4910
|
display: none;
|
|
4911
4911
|
}
|
|
4912
|
-
.save-pdf[data-v-
|
|
4912
|
+
.save-pdf[data-v-e66ad144] .anticon svg {
|
|
4913
4913
|
display: none;
|
|
4914
4914
|
}
|
|
4915
|
-
.save-pdf[data-v-
|
|
4915
|
+
.save-pdf[data-v-e66ad144] .ant-time-picker-input {
|
|
4916
4916
|
border: none !important;
|
|
4917
4917
|
}
|
|
4918
|
-
.save-pdf[data-v-
|
|
4918
|
+
.save-pdf[data-v-e66ad144] .ant-upload.ant-upload-select {
|
|
4919
4919
|
display: none;
|
|
4920
4920
|
}
|
|
4921
4921
|
/**打印非固定高度标签 高度不确定bug**/
|
|
4922
|
-
.computed-wrap[data-v-
|
|
4922
|
+
.computed-wrap[data-v-e66ad144] {
|
|
4923
4923
|
background: #f5f5f5;
|
|
4924
4924
|
}
|
|
4925
|
-
.computed-wrap .item[data-v-
|
|
4925
|
+
.computed-wrap .item[data-v-e66ad144] {
|
|
4926
4926
|
display: flex;
|
|
4927
4927
|
}
|
|
4928
|
-
.computed-wrap .item > div[data-v-
|
|
4928
|
+
.computed-wrap .item > div[data-v-e66ad144] {
|
|
4929
4929
|
height: 35px;
|
|
4930
4930
|
line-height: 35px;
|
|
4931
4931
|
flex: 1;
|
|
@@ -4933,130 +4933,130 @@ div {
|
|
|
4933
4933
|
border-bottom: 1px solid #000;
|
|
4934
4934
|
text-align: center;
|
|
4935
4935
|
}
|
|
4936
|
-
.computed-wrap .item > div + div[data-v-
|
|
4936
|
+
.computed-wrap .item > div + div[data-v-e66ad144] {
|
|
4937
4937
|
flex: 2;
|
|
4938
4938
|
}
|
|
4939
|
-
.layout .paper[data-v-
|
|
4939
|
+
.layout .paper[data-v-e66ad144] {
|
|
4940
4940
|
position: relative;
|
|
4941
4941
|
}
|
|
4942
|
-
.layout .paper .form-title[data-v-
|
|
4942
|
+
.layout .paper .form-title[data-v-e66ad144] {
|
|
4943
4943
|
text-align: center;
|
|
4944
4944
|
font-weight: 600;
|
|
4945
4945
|
font-size: 16px;
|
|
4946
4946
|
min-height: 40px;
|
|
4947
4947
|
line-height: 30px;
|
|
4948
4948
|
}
|
|
4949
|
-
.row-item[data-v-
|
|
4949
|
+
.row-item[data-v-e66ad144] {
|
|
4950
4950
|
height: -moz-fit-content;
|
|
4951
4951
|
height: fit-content;
|
|
4952
4952
|
/**打印非固定高度标签 高度不确定bug**/
|
|
4953
4953
|
}
|
|
4954
|
-
.no-row-item[data-v-
|
|
4954
|
+
.no-row-item[data-v-e66ad144] {
|
|
4955
4955
|
border-right: none;
|
|
4956
4956
|
border-bottom: none;
|
|
4957
4957
|
}
|
|
4958
4958
|
/****page边框内的 ***/
|
|
4959
|
-
.page-border[data-v-
|
|
4959
|
+
.page-border[data-v-e66ad144] {
|
|
4960
4960
|
background: #fff;
|
|
4961
4961
|
box-sizing: border-box;
|
|
4962
4962
|
}
|
|
4963
|
-
.page-border .row-item[data-v-
|
|
4963
|
+
.page-border .row-item[data-v-e66ad144]:first-child {
|
|
4964
4964
|
border-top: 1px solid #000;
|
|
4965
4965
|
}
|
|
4966
|
-
.page-border .row-item[data-v-
|
|
4966
|
+
.page-border .row-item[data-v-e66ad144] {
|
|
4967
4967
|
border-left: 1px solid #000;
|
|
4968
4968
|
}
|
|
4969
|
-
.page-border .item-bottom[data-v-
|
|
4969
|
+
.page-border .item-bottom[data-v-e66ad144] {
|
|
4970
4970
|
border-bottom: 1px solid #000;
|
|
4971
4971
|
}
|
|
4972
|
-
.page-border .row-item[data-v-
|
|
4972
|
+
.page-border .row-item[data-v-e66ad144]:not(:last-child) {
|
|
4973
4973
|
position: relative;
|
|
4974
4974
|
}
|
|
4975
|
-
.page-border li.sortable-chosen[data-v-
|
|
4975
|
+
.page-border li.sortable-chosen[data-v-e66ad144] {
|
|
4976
4976
|
height: 2px !important;
|
|
4977
4977
|
overflow: hidden !important;
|
|
4978
4978
|
background: red !important;
|
|
4979
4979
|
}
|
|
4980
|
-
.page-border .ant-time-picker-panel[data-v-
|
|
4980
|
+
.page-border .ant-time-picker-panel[data-v-e66ad144] {
|
|
4981
4981
|
z-index: 200000 !important;
|
|
4982
4982
|
}
|
|
4983
|
-
.page-border .ant-calendar-picker-container[data-v-
|
|
4983
|
+
.page-border .ant-calendar-picker-container[data-v-e66ad144] {
|
|
4984
4984
|
z-index: 200000 !important;
|
|
4985
4985
|
}
|
|
4986
|
-
[data-v-
|
|
4986
|
+
[data-v-e66ad144] .ant-time-picker-panel {
|
|
4987
4987
|
z-index: 9999 !important;
|
|
4988
4988
|
}
|
|
4989
|
-
.ant-calendar-picker-container[data-v-
|
|
4989
|
+
.ant-calendar-picker-container[data-v-e66ad144] {
|
|
4990
4990
|
z-index: 200000 !important;
|
|
4991
4991
|
}
|
|
4992
|
-
[data-v-
|
|
4992
|
+
[data-v-e66ad144] .ant-form-item-children {
|
|
4993
4993
|
display: block;
|
|
4994
4994
|
}
|
|
4995
|
-
[data-v-
|
|
4995
|
+
[data-v-e66ad144] .ant-form-item {
|
|
4996
4996
|
width: 100%;
|
|
4997
4997
|
height: 100%;
|
|
4998
4998
|
margin-bottom: 0;
|
|
4999
4999
|
display: flex;
|
|
5000
5000
|
}
|
|
5001
|
-
[data-v-
|
|
5001
|
+
[data-v-e66ad144] .ant-form-item .is_required::before {
|
|
5002
5002
|
content: "*";
|
|
5003
5003
|
color: #f56c6c;
|
|
5004
5004
|
margin-right: 4px;
|
|
5005
5005
|
}
|
|
5006
|
-
[data-v-
|
|
5006
|
+
[data-v-e66ad144] .ant-form-item .ant-form-item-label {
|
|
5007
5007
|
border-right: 1px solid #000;
|
|
5008
5008
|
}
|
|
5009
|
-
[data-v-
|
|
5009
|
+
[data-v-e66ad144] .ant-form-item .ant-form-item-label label {
|
|
5010
5010
|
display: flex;
|
|
5011
5011
|
justify-content: center;
|
|
5012
5012
|
align-items: center;
|
|
5013
5013
|
height: 100%;
|
|
5014
5014
|
}
|
|
5015
|
-
[data-v-
|
|
5015
|
+
[data-v-e66ad144] .ant-form-item .ant-form-item-label > label.ant-form-item-no-colon::after {
|
|
5016
5016
|
display: none;
|
|
5017
5017
|
}
|
|
5018
|
-
[data-v-
|
|
5018
|
+
[data-v-e66ad144] .ant-form-item .ant-form-item-control-wrapper {
|
|
5019
5019
|
display: flex;
|
|
5020
5020
|
align-items: center;
|
|
5021
5021
|
text-align: left;
|
|
5022
5022
|
}
|
|
5023
|
-
[data-v-
|
|
5023
|
+
[data-v-e66ad144] .ant-form-item .ant-form-item-control {
|
|
5024
5024
|
width: 98%;
|
|
5025
5025
|
margin: 0 auto;
|
|
5026
5026
|
}
|
|
5027
|
-
[data-v-
|
|
5027
|
+
[data-v-e66ad144] .ant-form-item .is_required::before {
|
|
5028
5028
|
content: "*";
|
|
5029
5029
|
color: #f56c6c;
|
|
5030
5030
|
margin-right: 4px;
|
|
5031
5031
|
}
|
|
5032
|
-
.row-table[data-v-
|
|
5032
|
+
.row-table[data-v-e66ad144] {
|
|
5033
5033
|
display: flex;
|
|
5034
5034
|
}
|
|
5035
|
-
.row-table[data-v-
|
|
5036
|
-
.row-table[data-v-
|
|
5035
|
+
.row-table[data-v-e66ad144] .ant-spin-container,
|
|
5036
|
+
.row-table[data-v-e66ad144] {
|
|
5037
5037
|
display: flex;
|
|
5038
5038
|
width: 100%;
|
|
5039
5039
|
}
|
|
5040
|
-
.row-table[data-v-
|
|
5041
|
-
.row-table .table-left[data-v-
|
|
5040
|
+
.row-table[data-v-e66ad144] .ant-spin-container .table-left,
|
|
5041
|
+
.row-table .table-left[data-v-e66ad144] {
|
|
5042
5042
|
width: 100px;
|
|
5043
5043
|
text-align: center;
|
|
5044
5044
|
border-right: 1px solid #333;
|
|
5045
5045
|
border-bottom: 1px solid #333;
|
|
5046
5046
|
position: relative;
|
|
5047
5047
|
}
|
|
5048
|
-
.row-table[data-v-
|
|
5049
|
-
.row-table .table-left p[data-v-
|
|
5048
|
+
.row-table[data-v-e66ad144] .ant-spin-container .table-left p,
|
|
5049
|
+
.row-table .table-left p[data-v-e66ad144] {
|
|
5050
5050
|
position: absolute;
|
|
5051
5051
|
top: 50%;
|
|
5052
5052
|
left: 50%;
|
|
5053
5053
|
transform: translate(-50%, -50%);
|
|
5054
5054
|
}
|
|
5055
|
-
.row-table[data-v-
|
|
5056
|
-
.row-table .table-right[data-v-
|
|
5055
|
+
.row-table[data-v-e66ad144] .ant-spin-container .table-right,
|
|
5056
|
+
.row-table .table-right[data-v-e66ad144] {
|
|
5057
5057
|
flex: 1;
|
|
5058
5058
|
}
|
|
5059
|
-
.table-content[data-v-
|
|
5059
|
+
.table-content[data-v-e66ad144] {
|
|
5060
5060
|
width: 100%;
|
|
5061
5061
|
height: 40px;
|
|
5062
5062
|
line-height: 40px;
|
|
@@ -5065,11 +5065,11 @@ div {
|
|
|
5065
5065
|
border-bottom: 1px solid #333;
|
|
5066
5066
|
border-right: 1px solid #333;
|
|
5067
5067
|
}
|
|
5068
|
-
.sub-table-col[data-v-
|
|
5068
|
+
.sub-table-col[data-v-e66ad144] {
|
|
5069
5069
|
display: flex;
|
|
5070
5070
|
box-sizing: border-box;
|
|
5071
5071
|
}
|
|
5072
|
-
.sub-table-col > span[data-v-
|
|
5072
|
+
.sub-table-col > span[data-v-e66ad144] {
|
|
5073
5073
|
flex: 2;
|
|
5074
5074
|
border-bottom: 1px solid #000;
|
|
5075
5075
|
border-right: 1px solid #000;
|
|
@@ -5077,34 +5077,34 @@ div {
|
|
|
5077
5077
|
line-height: 40px;
|
|
5078
5078
|
text-align: center;
|
|
5079
5079
|
}
|
|
5080
|
-
.sub-table-col > .last-one[data-v-
|
|
5080
|
+
.sub-table-col > .last-one[data-v-e66ad144] {
|
|
5081
5081
|
width: 87px;
|
|
5082
5082
|
flex: 0 0 87px;
|
|
5083
5083
|
border-right: 1px solid #333;
|
|
5084
5084
|
border-bottom: 1px solid #333;
|
|
5085
5085
|
}
|
|
5086
|
-
.sub-table-col-no-border > span[data-v-
|
|
5086
|
+
.sub-table-col-no-border > span[data-v-e66ad144] {
|
|
5087
5087
|
border: none;
|
|
5088
5088
|
height: auto;
|
|
5089
5089
|
width: 0;
|
|
5090
5090
|
}
|
|
5091
|
-
.sub-table-col-no-border > .sub-table-title[data-v-
|
|
5092
|
-
.sub-table-col-no-border > .sub-table-item[data-v-
|
|
5091
|
+
.sub-table-col-no-border > .sub-table-title[data-v-e66ad144]:last-child,
|
|
5092
|
+
.sub-table-col-no-border > .sub-table-item[data-v-e66ad144]:last-child {
|
|
5093
5093
|
border-right: none !important;
|
|
5094
5094
|
}
|
|
5095
|
-
.sub-table-col-no-border > .last-one[data-v-
|
|
5095
|
+
.sub-table-col-no-border > .last-one[data-v-e66ad144] {
|
|
5096
5096
|
width: 87px;
|
|
5097
5097
|
flex: 0 0 87px;
|
|
5098
5098
|
display: flex;
|
|
5099
5099
|
justify-content: center;
|
|
5100
5100
|
align-items: center;
|
|
5101
5101
|
}
|
|
5102
|
-
.pagiAfter + .row-item[data-v-
|
|
5102
|
+
.pagiAfter + .row-item[data-v-e66ad144] {
|
|
5103
5103
|
border-top-width: 1px;
|
|
5104
5104
|
border-top-style: solid;
|
|
5105
5105
|
}
|
|
5106
5106
|
/* 选择所有后面还有其他非.hiddenWidget的.row-item元素的.hasWidgetAfter */
|
|
5107
|
-
.row-item:not(:last-child) .hasWidgetAfter[data-v-
|
|
5107
|
+
.row-item:not(:last-child) .hasWidgetAfter[data-v-e66ad144] {
|
|
5108
5108
|
/* 为这些.hasWidgetAfter设置样式 */
|
|
5109
5109
|
width: calc(100% + 1px);
|
|
5110
5110
|
border-left-width: 1px;
|
|
@@ -5113,7 +5113,7 @@ div {
|
|
|
5113
5113
|
border-right-style: solid;
|
|
5114
5114
|
left: -1px;
|
|
5115
5115
|
}
|
|
5116
|
-
.row-item:not(:last-child):has(+ .row-item.hiddenWidget) .hasWidgetAfter[data-v-
|
|
5116
|
+
.row-item:not(:last-child):has(+ .row-item.hiddenWidget) .hasWidgetAfter[data-v-e66ad144] {
|
|
5117
5117
|
/* 为这些.hasWidgetAfter设置样式 */
|
|
5118
5118
|
width: calc(100% + 1px);
|
|
5119
5119
|
border-left: none;
|
|
@@ -5121,33 +5121,33 @@ div {
|
|
|
5121
5121
|
left: -1px;
|
|
5122
5122
|
}
|
|
5123
5123
|
/*****无border *****/
|
|
5124
|
-
.no-border .page-border[data-v-
|
|
5124
|
+
.no-border .page-border[data-v-e66ad144] {
|
|
5125
5125
|
border: none;
|
|
5126
5126
|
}
|
|
5127
|
-
.no-border .page-border .row-item[data-v-
|
|
5127
|
+
.no-border .page-border .row-item[data-v-e66ad144]:not(:last-child) {
|
|
5128
5128
|
border: none;
|
|
5129
5129
|
}
|
|
5130
|
-
.no-border .page-border[data-v-
|
|
5130
|
+
.no-border .page-border[data-v-e66ad144] .ant-form-item .ant-form-item-label {
|
|
5131
5131
|
border: none;
|
|
5132
5132
|
}
|
|
5133
|
-
.table_border[data-v-
|
|
5133
|
+
.table_border[data-v-e66ad144] {
|
|
5134
5134
|
border-bottom: 0;
|
|
5135
5135
|
border-right: 0;
|
|
5136
5136
|
}
|
|
5137
5137
|
/*****无border *****/
|
|
5138
|
-
[data-v-
|
|
5138
|
+
[data-v-e66ad144] .ant-form-item-children > div > p,[data-v-e66ad144] .ant-form-item-children > div > h1,[data-v-e66ad144] .ant-form-item-children > div > h2,[data-v-e66ad144] .ant-form-item-children > div > h3,[data-v-e66ad144] .ant-form-item-children > div > h4,[data-v-e66ad144] .ant-form-item-children > div > h5,[data-v-e66ad144] .ant-form-item-children > div > table /deep/ .ant-form-item-children > div > pre {
|
|
5139
5139
|
margin: 10px 0;
|
|
5140
5140
|
line-height: 1.5;
|
|
5141
5141
|
}
|
|
5142
|
-
[data-v-
|
|
5142
|
+
[data-v-e66ad144] .ant-spin-dot {
|
|
5143
5143
|
font-size: 20px !important;
|
|
5144
5144
|
}
|
|
5145
|
-
.form_skeleton[data-v-
|
|
5145
|
+
.form_skeleton[data-v-e66ad144] {
|
|
5146
5146
|
display: block;
|
|
5147
5147
|
width: 700px;
|
|
5148
5148
|
margin: 55px auto;
|
|
5149
5149
|
}
|
|
5150
|
-
.form_skeleton[data-v-
|
|
5150
|
+
.form_skeleton[data-v-e66ad144] .ant-skeleton-title {
|
|
5151
5151
|
margin: 0 auto;
|
|
5152
5152
|
}
|
|
5153
5153
|
|
|
@@ -110379,102 +110379,6 @@ var Symbol = root.Symbol;
|
|
|
110379
110379
|
module.exports = Symbol;
|
|
110380
110380
|
|
|
110381
110381
|
|
|
110382
|
-
/***/ }),
|
|
110383
|
-
|
|
110384
|
-
/***/ 6191:
|
|
110385
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
110386
|
-
|
|
110387
|
-
"use strict";
|
|
110388
|
-
// ESM COMPAT FLAG
|
|
110389
|
-
__webpack_require__.r(__webpack_exports__);
|
|
110390
|
-
|
|
110391
|
-
// EXPORTS
|
|
110392
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
110393
|
-
"default": () => (/* binding */ layoutForPaper)
|
|
110394
|
-
});
|
|
110395
|
-
|
|
110396
|
-
;// ./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=9bf0cd10&scoped=true
|
|
110397
|
-
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')?[(
|
|
110398
|
-
widget.options.layoutModel === 'auto' ||
|
|
110399
|
-
widget.options.layoutModel === undefined
|
|
110400
|
-
)?_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:({
|
|
110401
|
-
width: widget.options.labelWidth + 'px',
|
|
110402
|
-
borderColor: _vm.data.config.borderColor,
|
|
110403
|
-
backgroundColor: _vm.data.config.bgc,
|
|
110404
|
-
color: _vm.data.config.color,
|
|
110405
|
-
})},[_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:({
|
|
110406
|
-
background: _vm.data.config.bgc,
|
|
110407
|
-
color: _vm.data.config.color,
|
|
110408
|
-
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:[
|
|
110409
|
-
_vm.data.config.align,
|
|
110410
|
-
_vm.data.config.validate === true && children.options.required === true
|
|
110411
|
-
? 'is_required'
|
|
110412
|
-
: '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 () {
|
|
110413
|
-
var args = [], len = arguments.length;
|
|
110414
|
-
while ( len-- ) args[ len ] = arguments[ len ];
|
|
110415
|
-
|
|
110416
|
-
return _vm.tablePageChange.apply(void 0, [ widget ].concat( args ));
|
|
110417
|
-
},"showSizeChange":function () {
|
|
110418
|
-
var args = [], len = arguments.length;
|
|
110419
|
-
while ( len-- ) args[ len ] = arguments[ len ];
|
|
110420
|
-
|
|
110421
|
-
return _vm.tablePageChange.apply(void 0, [ widget ].concat( args ));
|
|
110422
|
-
}},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) {
|
|
110423
|
-
var model = ref.model;
|
|
110424
|
-
var idx = ref.index;
|
|
110425
|
-
var rand_id = ref.rand_id;
|
|
110426
|
-
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(),(
|
|
110427
|
-
widget.options.computingSub.length > 0 &&
|
|
110428
|
-
widget.options.computingMethod.length > 0 &&
|
|
110429
|
-
_vm.tableData &&
|
|
110430
|
-
_vm.tableData[widget.model] &&
|
|
110431
|
-
_vm.tableData[widget.model].length > 0
|
|
110432
|
-
)?_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:{
|
|
110433
|
-
'item-bottom': !widget.options.border,
|
|
110434
|
-
'row-item': widget.options.border,
|
|
110435
|
-
},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)}
|
|
110436
|
-
var staticRenderFns = []
|
|
110437
|
-
|
|
110438
|
-
|
|
110439
|
-
// 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
|
|
110440
|
-
var layoutForPapervue_type_script_lang_js = __webpack_require__(9218);
|
|
110441
|
-
;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=script&lang=js
|
|
110442
|
-
/* harmony default export */ const layout_layoutForPapervue_type_script_lang_js = (layoutForPapervue_type_script_lang_js/* default */.A);
|
|
110443
|
-
;// ./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=9bf0cd10&prod&lang=less&scoped=true
|
|
110444
|
-
// extracted by mini-css-extract-plugin
|
|
110445
|
-
|
|
110446
|
-
;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=9bf0cd10&prod&lang=less&scoped=true
|
|
110447
|
-
|
|
110448
|
-
;// ./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=9bf0cd10&prod&lang=css
|
|
110449
|
-
// extracted by mini-css-extract-plugin
|
|
110450
|
-
|
|
110451
|
-
;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=9bf0cd10&prod&lang=css
|
|
110452
|
-
|
|
110453
|
-
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
110454
|
-
var componentNormalizer = __webpack_require__(4008);
|
|
110455
|
-
;// ./src/form/modules/layout/layoutForPaper.vue
|
|
110456
|
-
|
|
110457
|
-
|
|
110458
|
-
|
|
110459
|
-
;
|
|
110460
|
-
|
|
110461
|
-
|
|
110462
|
-
|
|
110463
|
-
/* normalize component */
|
|
110464
|
-
|
|
110465
|
-
var component = (0,componentNormalizer/* default */.A)(
|
|
110466
|
-
layout_layoutForPapervue_type_script_lang_js,
|
|
110467
|
-
render,
|
|
110468
|
-
staticRenderFns,
|
|
110469
|
-
false,
|
|
110470
|
-
null,
|
|
110471
|
-
"9bf0cd10",
|
|
110472
|
-
null
|
|
110473
|
-
|
|
110474
|
-
)
|
|
110475
|
-
|
|
110476
|
-
/* harmony default export */ const layoutForPaper = (component.exports);
|
|
110477
|
-
|
|
110478
110382
|
/***/ }),
|
|
110479
110383
|
|
|
110480
110384
|
/***/ 6220:
|
|
@@ -120431,7 +120335,7 @@ const getSignature = params => (0,_form_api_manage__WEBPACK_IMPORTED_MODULE_0__/
|
|
|
120431
120335
|
/***/ ((module) => {
|
|
120432
120336
|
|
|
120433
120337
|
"use strict";
|
|
120434
|
-
module.exports = {"rE":"1.1.
|
|
120338
|
+
module.exports = {"rE":"1.1.629"};
|
|
120435
120339
|
|
|
120436
120340
|
/***/ }),
|
|
120437
120341
|
|
|
@@ -133334,7 +133238,8 @@ module.exports = function (it) {
|
|
|
133334
133238
|
tableColumnEditObj: {},
|
|
133335
133239
|
rulesOver: false,
|
|
133336
133240
|
userSignature: undefined,
|
|
133337
|
-
tableNum: 0
|
|
133241
|
+
tableNum: 0,
|
|
133242
|
+
timerObj: {}
|
|
133338
133243
|
// formList: [],
|
|
133339
133244
|
// allLoading: false,
|
|
133340
133245
|
// allLoadingTips: '正在加载表单数据0%...',
|
|
@@ -133604,7 +133509,6 @@ module.exports = function (it) {
|
|
|
133604
133509
|
return {};
|
|
133605
133510
|
},
|
|
133606
133511
|
async validate(model, flag, message, p) {
|
|
133607
|
-
console.log(flag, model, message, p, 'ppp');
|
|
133608
133512
|
if (flag) return;
|
|
133609
133513
|
await this.$nextTick();
|
|
133610
133514
|
// let ruleIndex = Object.keys(this.$refs.Form.rules).findIndex(item => item === model)
|
|
@@ -133614,10 +133518,12 @@ module.exports = function (it) {
|
|
|
133614
133518
|
// if(index === ruleIndex) {
|
|
133615
133519
|
if (item.nextSibling.style) {
|
|
133616
133520
|
if (item.nextSibling.style.display === 'none') item.nextSibling.style.display = 'block';
|
|
133617
|
-
|
|
133618
|
-
|
|
133619
|
-
|
|
133620
|
-
|
|
133521
|
+
clearTimeout(this.timerObj[index]);
|
|
133522
|
+
this.timerObj[index] = null;
|
|
133523
|
+
this.timerObj[index] = setTimeout(() => {
|
|
133524
|
+
if (item.nextSibling.style) item.nextSibling.style.display = 'none';
|
|
133525
|
+
clearTimeout(this.timerObj[index]);
|
|
133526
|
+
this.timerObj[index] = null;
|
|
133621
133527
|
}, 3000);
|
|
133622
133528
|
}
|
|
133623
133529
|
// }
|
|
@@ -133782,9 +133688,11 @@ module.exports = function (it) {
|
|
|
133782
133688
|
this.addToTableData(table, table.model, 'addModel', true);
|
|
133783
133689
|
}
|
|
133784
133690
|
});
|
|
133691
|
+
debugger;
|
|
133785
133692
|
return new Promise((resolve, reject) => {
|
|
133786
133693
|
this.$nextTick(() => {
|
|
133787
133694
|
this.$refs.Form.validate(valid => {
|
|
133695
|
+
debugger;
|
|
133788
133696
|
if (valid) {
|
|
133789
133697
|
resolve(this.models);
|
|
133790
133698
|
} else {
|
|
@@ -134296,7 +134204,6 @@ module.exports = function (it) {
|
|
|
134296
134204
|
},
|
|
134297
134205
|
// 设置models值 通过defaultValue
|
|
134298
134206
|
setModelsbyDefaultValue(widget) {
|
|
134299
|
-
debugger;
|
|
134300
134207
|
const defaultValue = !this.data.config.status || this.data.config.status == 'XZ' ? widget.options.defaultValue : '';
|
|
134301
134208
|
switch (widget.type) {
|
|
134302
134209
|
case "verify":
|
|
@@ -134359,7 +134266,7 @@ module.exports = function (it) {
|
|
|
134359
134266
|
...i,
|
|
134360
134267
|
validator: (rule, val, callback) => {
|
|
134361
134268
|
let index = rule.field.split('.')[1];
|
|
134362
|
-
let value = val ? val : this.models[item.
|
|
134269
|
+
let value = val ? val : this.models[item.tableKey][index][item.model];
|
|
134363
134270
|
// 子表单组件不可见的时候, 内部组件都不校验
|
|
134364
134271
|
if (!widget.options.canView) {
|
|
134365
134272
|
return callback();
|
|
@@ -158031,6 +157938,102 @@ var grey = presetPalettes.grey;
|
|
|
158031
157938
|
exports.grey = grey;
|
|
158032
157939
|
|
|
158033
157940
|
|
|
157941
|
+
/***/ }),
|
|
157942
|
+
|
|
157943
|
+
/***/ 9961:
|
|
157944
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
157945
|
+
|
|
157946
|
+
"use strict";
|
|
157947
|
+
// ESM COMPAT FLAG
|
|
157948
|
+
__webpack_require__.r(__webpack_exports__);
|
|
157949
|
+
|
|
157950
|
+
// EXPORTS
|
|
157951
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
157952
|
+
"default": () => (/* binding */ layoutForPaper)
|
|
157953
|
+
});
|
|
157954
|
+
|
|
157955
|
+
;// ./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=e66ad144&scoped=true
|
|
157956
|
+
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')?[(
|
|
157957
|
+
widget.options.layoutModel === 'auto' ||
|
|
157958
|
+
widget.options.layoutModel === undefined
|
|
157959
|
+
)?_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:({
|
|
157960
|
+
width: widget.options.labelWidth + 'px',
|
|
157961
|
+
borderColor: _vm.data.config.borderColor,
|
|
157962
|
+
backgroundColor: _vm.data.config.bgc,
|
|
157963
|
+
color: _vm.data.config.color,
|
|
157964
|
+
})},[_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:({
|
|
157965
|
+
background: _vm.data.config.bgc,
|
|
157966
|
+
color: _vm.data.config.color,
|
|
157967
|
+
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:[
|
|
157968
|
+
_vm.data.config.align,
|
|
157969
|
+
_vm.data.config.validate === true && children.options.required === true
|
|
157970
|
+
? 'is_required'
|
|
157971
|
+
: '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 () {
|
|
157972
|
+
var args = [], len = arguments.length;
|
|
157973
|
+
while ( len-- ) args[ len ] = arguments[ len ];
|
|
157974
|
+
|
|
157975
|
+
return _vm.tablePageChange.apply(void 0, [ widget ].concat( args ));
|
|
157976
|
+
},"showSizeChange":function () {
|
|
157977
|
+
var args = [], len = arguments.length;
|
|
157978
|
+
while ( len-- ) args[ len ] = arguments[ len ];
|
|
157979
|
+
|
|
157980
|
+
return _vm.tablePageChange.apply(void 0, [ widget ].concat( args ));
|
|
157981
|
+
}},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) {
|
|
157982
|
+
var model = ref.model;
|
|
157983
|
+
var idx = ref.index;
|
|
157984
|
+
var rand_id = ref.rand_id;
|
|
157985
|
+
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(),(
|
|
157986
|
+
widget.options.computingSub.length > 0 &&
|
|
157987
|
+
widget.options.computingMethod.length > 0 &&
|
|
157988
|
+
_vm.tableData &&
|
|
157989
|
+
_vm.tableData[widget.model] &&
|
|
157990
|
+
_vm.tableData[widget.model].length > 0
|
|
157991
|
+
)?_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:{
|
|
157992
|
+
'item-bottom': !widget.options.border,
|
|
157993
|
+
'row-item': widget.options.border,
|
|
157994
|
+
},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)}
|
|
157995
|
+
var staticRenderFns = []
|
|
157996
|
+
|
|
157997
|
+
|
|
157998
|
+
// 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
|
|
157999
|
+
var layoutForPapervue_type_script_lang_js = __webpack_require__(9218);
|
|
158000
|
+
;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=script&lang=js
|
|
158001
|
+
/* harmony default export */ const layout_layoutForPapervue_type_script_lang_js = (layoutForPapervue_type_script_lang_js/* default */.A);
|
|
158002
|
+
;// ./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=e66ad144&prod&lang=less&scoped=true
|
|
158003
|
+
// extracted by mini-css-extract-plugin
|
|
158004
|
+
|
|
158005
|
+
;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=1&id=e66ad144&prod&lang=less&scoped=true
|
|
158006
|
+
|
|
158007
|
+
;// ./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=e66ad144&prod&lang=css
|
|
158008
|
+
// extracted by mini-css-extract-plugin
|
|
158009
|
+
|
|
158010
|
+
;// ./src/form/modules/layout/layoutForPaper.vue?vue&type=style&index=2&id=e66ad144&prod&lang=css
|
|
158011
|
+
|
|
158012
|
+
// EXTERNAL MODULE: ./node_modules/_vue-loader@15.11.1@vue-loader/lib/runtime/componentNormalizer.js
|
|
158013
|
+
var componentNormalizer = __webpack_require__(4008);
|
|
158014
|
+
;// ./src/form/modules/layout/layoutForPaper.vue
|
|
158015
|
+
|
|
158016
|
+
|
|
158017
|
+
|
|
158018
|
+
;
|
|
158019
|
+
|
|
158020
|
+
|
|
158021
|
+
|
|
158022
|
+
/* normalize component */
|
|
158023
|
+
|
|
158024
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
158025
|
+
layout_layoutForPapervue_type_script_lang_js,
|
|
158026
|
+
render,
|
|
158027
|
+
staticRenderFns,
|
|
158028
|
+
false,
|
|
158029
|
+
null,
|
|
158030
|
+
"e66ad144",
|
|
158031
|
+
null
|
|
158032
|
+
|
|
158033
|
+
)
|
|
158034
|
+
|
|
158035
|
+
/* harmony default export */ const layoutForPaper = (component.exports);
|
|
158036
|
+
|
|
158034
158037
|
/***/ }),
|
|
158035
158038
|
|
|
158036
158039
|
/***/ 9970:
|
|
@@ -172169,7 +172172,7 @@ var SvgIcon_component = (0,componentNormalizer/* default */.A)(
|
|
|
172169
172172
|
|
|
172170
172173
|
/* harmony default export */ const SvgIcon = (SvgIcon_component.exports);
|
|
172171
172174
|
// EXTERNAL MODULE: ./src/form/modules/layout/layoutForPaper.vue + 6 modules
|
|
172172
|
-
var layoutForPaper = __webpack_require__(
|
|
172175
|
+
var layoutForPaper = __webpack_require__(9961);
|
|
172173
172176
|
// EXTERNAL MODULE: ./src/form/modules/layout/layoutItem.vue + 10 modules
|
|
172174
172177
|
var layoutItem = __webpack_require__(4279);
|
|
172175
172178
|
;// ./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
|
|
@@ -185227,7 +185230,7 @@ var formula_edit_component = (0,componentNormalizer/* default */.A)(
|
|
|
185227
185230
|
}
|
|
185228
185231
|
},
|
|
185229
185232
|
components: {
|
|
185230
|
-
layoutForPaper: () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__,
|
|
185233
|
+
layoutForPaper: () => Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 9961)),
|
|
185231
185234
|
FormulaEdit: formula_edit
|
|
185232
185235
|
},
|
|
185233
185236
|
data() {
|