@jeecg/online 3.4.3-beta → 3.4.4-beta
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/AuthFieldConfig.js +1 -1
- package/CgformCopyList.js +3 -1
- package/CgformModal.js +19 -2
- package/CgreportModal.js +1 -0
- package/CheckDictTable.js +1 -1
- package/DetailForm.js +14 -10
- package/EnhanceJsHistory.js +1 -1
- package/EnhanceJsModal.js +7 -0
- package/ExtendConfigModal.js +1 -1
- package/FieldExtendJsonModal.js +270 -0
- package/FormSchemaFactory.js +150 -10
- package/LinkTableConfigModal.js +1 -1
- package/OnlineAutoList.js +3 -2
- package/OnlineAutoModal.js +7 -3
- package/OnlineAutoTreeList.js +3 -2
- package/OnlineDetailModal.js +1 -1
- package/OnlineForm.js +64 -41
- package/OnlineFormDetail.js +1 -1
- package/OnlineQueryForm.js +8 -4
- package/OnlineSearchFormItem.js +3 -3
- package/OnlineSelectCascade.js +27 -30
- package/PageAttributeTable.js +68 -27
- package/README.md +1 -0
- package/{OnlineSuperQuery.js → SuperQuery.js} +215 -126
- package/{OnlineSuperQueryValComponent.js → SuperQueryValComponent.js} +2 -2
- package/{OnlineSuperQueryValComponent.vue_vue_type_script_lang.js → SuperQueryValComponent.vue_vue_type_script_lang.js} +8 -2
- package/cgform.data.js +8 -8
- package/clipboard.js +565 -0
- package/index.js +15 -5
- package/index2.js +3 -1
- package/index3.js +33 -571
- package/main.index.js +2 -2
- package/package.json +1 -1
- package/style.css +1 -1
- package/useAutoForm.js +84 -48
- package/useCgformList.js +97 -5
- package/useListButton.js +8 -4
- package/useSchemas.js +18 -4
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-eb3d4aa4] .online-config-page td:last-child.col--selected{box-shadow:none!important}.row-valid-type .left[data-v-074f2007]:hover,.row-valid-type .right[data-v-074f2007]:hover{z-index:3}.row-valid-type.full .right[data-v-074f2007]{display:none}.row-valid-type .left[data-v-074f2007]{flex:1;z-index:2;width:calc(100% - 33px)}.row-valid-type .left[data-v-074f2007] .ant-select .ant-select-selector{border-width:0!important;border-color:transparent!important;box-shadow:none!important}.row-valid-type .left[data-v-074f2007] .ant-select .ant-select-arrow{display:none}.row-valid-type .left[data-v-074f2007] .ant-select:not(.ant-select-open) .ant-select-selector{background-color:transparent!important}.row-valid-type .left[data-v-074f2007] .ant-select:not(.ant-select-open) .ant-select-arrow{display:none}.row-valid-type .right[data-v-074f2007]{width:33px;z-index:1}.row-valid-type .right[data-v-074f2007] .ant-btn{padding:4px 8px;border-top-left-radius:0;border-bottom-left-radius:0;border:none;background-color:transparent;box-shadow:none!important}.onl-cgform-ext-config-form.ant-form-inline[data-v-63fff65e] .ant-form-item{margin-bottom:8px}.table-link-select .opt-add[data-v-2f5e23a7]{cursor:pointer;font-size:14px;margin:3px 0;padding:0 8px;color:#1565c0}.table-link-select .online-select-item[data-v-2f5e23a7]{-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;position:relative;border-bottom:1px solid rgba(0,0,0,.06);line-height:22px;padding:6px 40px 6px 12px;min-height:56px;display:flex}.table-link-select .online-select-item .left-avatar[data-v-2f5e23a7]{-webkit-box-sizing:border-box;box-sizing:border-box;width:44px;height:44px;margin-right:8px}.table-link-select .online-select-item .left-avatar>img[data-v-2f5e23a7]{width:44px;height:44px;border:1px solid rgba(0,0,0,.06);border-radius:4px}.table-link-select .online-select-item .right-content[data-v-2f5e23a7]{overflow:hidden;-webkit-flex:1;flex:1 1 0%;-ms-flex:1;-webkit-box-sizing:border-box;box-sizing:border-box}.table-link-select .online-select-item .right-content .anticon-edit[data-v-2f5e23a7]:hover{color:#0c8fcf}.table-link-select .online-select-item .right-content .label[data-v-2f5e23a7]{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;color:#333;font-weight:700;line-height:1.5;margin-bottom:4px}.table-link-select .online-select-item .right-content .others[data-v-2f5e23a7]{margin-left:-7px;box-sizing:border-box}.table-link-select .online-select-item .right-content .others .ellipsis[data-v-2f5e23a7]{overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.table-link-select .online-select-item .right-content .others .other-item[data-v-2f5e23a7]{-webkit-line-clamp:3;-webkit-box-orient:vertical;border-right:1px solid #9e9e9e;color:#757575;display:inline-block;height:1.2em!important;line-height:1em;overflow:hidden;padding:0 7px;text-overflow:ellipsis;word-break:break-all}.table-link-card[data-v-0fb2a14b]{box-sizing:border-box;position:relative;width:100%}.table-link-card .card-button[data-v-0fb2a14b]{margin-bottom:10px!important}.table-link-card .card-item[data-v-0fb2a14b]{width:calc(100% - 10px);display:inline-flex;flex-direction:row;margin:0 10px 10px 0;position:relative;border-radius:3px;background-color:#fff;box-shadow:#0000001f 0 1px 4px,#0000001f 0 0 2px;cursor:pointer}.table-link-card .card-item:hover .card-item-left .card-delete[data-v-0fb2a14b]{display:inline-block}.table-link-card .card-item.disabled-chunk[data-v-0fb2a14b]{background:none;box-shadow:none}.table-link-card .card-item .card-item-image[data-v-0fb2a14b]{width:100px;display:flex;flex-direction:column;justify-content:center;overflow:hidden}.table-link-card .card-item .card-item-image img[data-v-0fb2a14b]{width:100%}.table-link-card .card-item .card-item-left[data-v-0fb2a14b]{width:100%;display:inline-block}.table-link-card .card-item .card-item-left.show-right-image[data-v-0fb2a14b]{width:calc(100% - 100px)}.table-link-card .card-item .card-item-left .card-delete[data-v-0fb2a14b]{position:absolute;top:-8px;right:-8px;font-size:16px;color:#757575;line-height:1em;overflow:hidden;display:none}.table-link-card .card-item .card-item-left .card-inner[data-v-0fb2a14b]{flex:1 1 0%;padding:12px 16px 10px;overflow:hidden}.table-link-card .card-item .card-item-left .card-inner .card-main-content[data-v-0fb2a14b]{overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:nowrap;margin-bottom:8px;font-weight:500;font-size:14px;line-height:20px;color:#333}.table-link-card .card-item .card-item-left .card-inner .other-content .text[data-v-0fb2a14b]{font-size:12px!important;display:inline-block;width:80%}.table-link-card .card-item .card-item-left .card-inner .other-content .label[data-v-0fb2a14b]{max-width:160px;color:#9e9e9e;padding-right:.7em;display:inline-block}.table-link-card .card-item .card-item-left .card-inner .other-content .ellipsis[data-v-0fb2a14b]{overflow:hidden;height:22px;line-height:22px;text-overflow:ellipsis;white-space:nowrap}.enhance-list[data-v-3e3ee46a] .ant-list-items .ant-list-item{position:relative;height:42px;line-height:42px;transition:background-color .3s}.enhance-list[data-v-3e3ee46a] .ant-list-items .bg-blue{background-color:"#2db7f5"}.enhance-list[data-v-3e3ee46a] .ant-list-items .bg-blue a{color:#fff}.enhance-list[data-v-3e3ee46a] .ant-list-items a{color:#000000d9;display:block;position:absolute;width:100%;height:100%}.enhance-list[data-v-3e3ee46a] .ant-list-header{color:#000;padding-top:5px;padding-bottom:5px}.auth-field-config[data-v-b6df4cb4] .ant-checkbox+span{padding-left:2px}.onl-auth-tree-btns[data-v-b03cefd8]{margin-left:10px}.onl-auth-tree-btns button[data-v-b03cefd8]{margin:0 5px 0 2px}.onl-auth-tree-btns[data-v-0c1d5eb9]{margin-left:10px}.onl-auth-tree-btns button[data-v-0c1d5eb9]{margin:0 5px 0 2px}.onl-auth-tree-btns[data-v-4ce74ac6]{margin-left:10px}.onl-auth-tree-btns button[data-v-4ce74ac6]{margin:0 5px 0 2px}.jeecg-update-tip-bar[data-v-c18755ca]{width:calc(100% - 100px);font-size:14px}.jeecg-update-tip-bar .container[data-v-c18755ca]{position:relative;margin:0 auto}.jeecg-update-tip-bar .container .outer[data-v-c18755ca]{position:absolute;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;width:100%;z-index:11;top:-30px}.jeecg-update-tip-bar .container .outer .inner[data-v-c18755ca]{height:42px;border-radius:42px;color:#fff;background-color:#2196f3;line-height:42px;padding:0 10px 0 24px;z-index:9;box-shadow:#0000001f 0 6px 24px,#00000014 0 2px 4px;display:flex;flex-direction:row;-webkit-box-align:center;align-items:center;min-width:380px}.jeecg-update-tip-bar .container .outer .inner .tip[data-v-c18755ca]{-webkit-flex:1;flex:1 1 0%;-ms-flex:1;font-weight:700}.jeecg-update-tip-bar .container .outer .inner .cancel[data-v-c18755ca]{cursor:pointer;display:inline-block;height:28px;line-height:28px;padding:0 18px;border-radius:28px;color:#fff;margin-left:30px!important;margin-right:10px!important}.jeecg-update-tip-bar .container .outer .inner .cancel[data-v-c18755ca]:hover{background-color:#ffffff29}.jeecg-update-tip-bar .container .outer .inner .save[data-v-c18755ca]{cursor:pointer;display:inline-block;height:28px;line-height:28px;padding:0 18px;border-radius:28px;color:#3ea4fc;background-color:#fff;font-weight:600}.jeecg-update-tip-bar .container .outer .inner .save[data-v-c18755ca]:hover{background-color:#e2f1fe}.link-table-piece[data-v-33745cde]{color:#333;display:inline-block;position:relative;cursor:pointer;background-color:#e8e8e8;border-radius:3px;line-height:21px;margin-right:3px;padding:0 7px;max-width:100px}.link-table-piece>span[data-v-33745cde]{display:inline-block!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.link-table-piece[data-v-33745cde]:hover{background-color:#dfebfa;color:#2196f3}.jeecg-detail-form[data-v-3491a563]{border:1px solid #f0f0f0;border-left:none;border-bottom:none}.jeecg-detail-form .detail-item[data-v-3491a563]{display:flex;flex-direction:row;align-items:stretch;line-height:24px;border-bottom:1px solid #f0f0f0;height:100%}.jeecg-detail-form .detail-item .item-title[data-v-3491a563]{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;flex-grow:0;min-width:100px;width:24%;max-width:220px;background-color:#fafafa;border-right:1px solid #f0f0f0;padding:10px 0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.jeecg-detail-form .detail-item .item-title.span24[data-v-3491a563]{width:24%}.jeecg-detail-form .detail-item .item-title.span12[data-v-3491a563]{width:12%}.jeecg-detail-form .detail-item .item-title.span8[data-v-3491a563]{width:8%}.jeecg-detail-form .detail-item .item-title.span6[data-v-3491a563]{width:6%}.jeecg-detail-form .detail-item .item-content[data-v-3491a563]{border-right:1px solid #f0f0f0;flex-grow:1;padding-left:10px;display:flex;align-items:center;justify-content:flex-start}.jeecg-detail-form .detail-item .item-content .anticon[data-v-3491a563]:hover{color:#40a9ff}.jeecg-detail-form .detail-item .item-content .detail-image-container[data-v-3491a563]{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;list-style:none;font-feature-settings:"tnum";line-height:1.5715}.jeecg-detail-form .detail-item .item-content .detail-image-container .image-item[data-v-3491a563]{display:inline-block;width:104px;height:104px;margin:5px;border:1px solid #f0f0f0;vertical-align:top}.group-query-string[data-v-01d37a80]{width:20px;display:inline-block;text-align:center}.jeecg-basic-table-form-container.p-0[data-v-01d37a80]{padding:0}.group-query-strig[data-v-31eb536e]{width:30px;text-align:center;display:inline-block}.jeecg-online-search[data-v-31eb536e] .ant-form-item-label{flex:0 0 auto!important;width:auto}.jeecg-online-search[data-v-31eb536e] .ant-form-item-control{max-width:100%;padding-right:16px}.jeecg-online-search[data-v-31eb536e] .label-text{max-width:var(--0c8831e5);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;overflow-wrap:break-word}.jee-super-query-form .ant-form-item[data-v-6b47b90c]{margin-bottom:9px}.j-super-query-history-tree[data-v-6b47b90c] .ant-tree-switcher{width:0px}.j-super-query-history-tree[data-v-6b47b90c] .ant-tree-node-content-wrapper{width:100%}.j-super-query-history-tree[data-v-6b47b90c] .ant-tree-node-content-wrapper:hover{background-color:#e6f7ff!important;border-radius:0}.j-super-query-history-tree[data-v-6b47b90c] .ant-tree-treenode-switcher-close .ant-tree-title{display:inline-block;width:calc(100% - 30px)}.j-super-query-history-tree[data-v-6b47b90c] .ant-tree-treenode-switcher-close .ant-tree-title>div{display:flex;justify-content:space-between}.j-super-query-history-tree[data-v-6b47b90c] .ant-tree-treenode-switcher-close .ant-tree-title>div .icon-cancle{display:none;color:#666}.j-super-query-history-tree[data-v-6b47b90c] .ant-tree-treenode-switcher-close .ant-tree-title>div .icon-cancle:hover{color:#000}.j-super-query-history-tree[data-v-6b47b90c] .ant-tree-treenode-switcher-close:hover .icon-cancle{display:inline-block!important}.j-super-query-history-tree[data-v-6b47b90c] .ant-card-body,.j-super-query-history-card[data-v-6b47b90c] .ant-card-body,.j-super-query-history-card[data-v-6b47b90c].ant-card-head-title{padding:0}@media only screen and (max-width: 1050px){[data-v-6b47b90c] .jee-super-query-form .ant-space{flex-direction:column;gap:0!important;margin-bottom:16px!important}[data-v-6b47b90c] .jee-super-query-form .ant-space-item{width:100%}[data-v-6b47b90c] .jee-super-query-form .ant-form-item{width:100%!important}}.cust-onl-form .ant-input-disabled[data-v-9b256bc4]{background-color:#fff;color:#000}.cust-onl-form .ant-select-disabled .ant-select-selection[data-v-9b256bc4]{background:#fff;color:#000}.cust-onl-form .ant-input-number-disabled[data-v-9b256bc4]{background-color:#fff;color:#000}.j-table-force-nowrap td,.j-table-force-nowrap th{white-space:nowrap}.j-table-force-nowrap .ant-table-selection-column{padding:12px 22px!important}.j-table-force-nowrap.ant-table-wrapper .ant-table-content{overflow-x:auto}.online-cell-image{height:25px!important;margin:0 auto;max-width:80px;font-size:12px;font-style:italic}
|
|
1
|
+
[data-v-58928976] .online-config-page td:last-child.col--selected{box-shadow:none!important}.row-valid-type .left[data-v-8470723a]:hover,.row-valid-type .right[data-v-8470723a]:hover{z-index:3}.row-valid-type.full .right[data-v-8470723a]{display:none}.row-valid-type .left[data-v-8470723a]{flex:1;z-index:2;width:calc(100% - 33px)}.row-valid-type .left[data-v-8470723a] .ant-select .ant-select-selector{border-width:0!important;border-color:transparent!important;box-shadow:none!important}.row-valid-type .left[data-v-8470723a] .ant-select .ant-select-arrow{display:none}.row-valid-type .left[data-v-8470723a] .ant-select:not(.ant-select-open) .ant-select-selector{background-color:transparent!important}.row-valid-type .left[data-v-8470723a] .ant-select:not(.ant-select-open) .ant-select-arrow{display:none}.row-valid-type .right[data-v-8470723a]{width:33px;z-index:1}.row-valid-type .right[data-v-8470723a] .ant-btn{padding:4px 8px;border-top-left-radius:0;border-bottom-left-radius:0;border:none;background-color:transparent;box-shadow:none!important}.onl-cgform-ext-config-form.ant-form-inline[data-v-1eeac864] .ant-form-item{margin-bottom:8px}.table-link-select .opt-add[data-v-2f5e23a7]{cursor:pointer;font-size:14px;margin:3px 0;padding:0 8px;color:#1565c0}.table-link-select .online-select-item[data-v-2f5e23a7]{-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;position:relative;border-bottom:1px solid rgba(0,0,0,.06);line-height:22px;padding:6px 40px 6px 12px;min-height:56px;display:flex}.table-link-select .online-select-item .left-avatar[data-v-2f5e23a7]{-webkit-box-sizing:border-box;box-sizing:border-box;width:44px;height:44px;margin-right:8px}.table-link-select .online-select-item .left-avatar>img[data-v-2f5e23a7]{width:44px;height:44px;border:1px solid rgba(0,0,0,.06);border-radius:4px}.table-link-select .online-select-item .right-content[data-v-2f5e23a7]{overflow:hidden;-webkit-flex:1;flex:1 1 0%;-ms-flex:1;-webkit-box-sizing:border-box;box-sizing:border-box}.table-link-select .online-select-item .right-content .anticon-edit[data-v-2f5e23a7]:hover{color:#0c8fcf}.table-link-select .online-select-item .right-content .label[data-v-2f5e23a7]{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all;color:#333;font-weight:700;line-height:1.5;margin-bottom:4px}.table-link-select .online-select-item .right-content .others[data-v-2f5e23a7]{margin-left:-7px;box-sizing:border-box}.table-link-select .online-select-item .right-content .others .ellipsis[data-v-2f5e23a7]{overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.table-link-select .online-select-item .right-content .others .other-item[data-v-2f5e23a7]{-webkit-line-clamp:3;-webkit-box-orient:vertical;border-right:1px solid #9e9e9e;color:#757575;display:inline-block;height:1.2em!important;line-height:1em;overflow:hidden;padding:0 7px;text-overflow:ellipsis;word-break:break-all}.table-link-card[data-v-f6bb6746]{box-sizing:border-box;position:relative;width:100%}.table-link-card .card-button[data-v-f6bb6746]{margin-bottom:10px!important}.table-link-card .card-item[data-v-f6bb6746]{width:calc(100% - 10px);display:inline-flex;flex-direction:row;margin:0 10px 10px 0;position:relative;border-radius:3px;background-color:#fff;box-shadow:#0000001f 0 1px 4px,#0000001f 0 0 2px;cursor:pointer}.table-link-card .card-item:hover .card-item-left .card-delete[data-v-f6bb6746]{display:inline-block}.table-link-card .card-item.disabled-chunk[data-v-f6bb6746]{background:none;box-shadow:none}.table-link-card .card-item .card-item-image[data-v-f6bb6746]{width:100px;display:flex;flex-direction:column;justify-content:center;overflow:hidden}.table-link-card .card-item .card-item-image img[data-v-f6bb6746]{width:100%}.table-link-card .card-item .card-item-left[data-v-f6bb6746]{width:100%;display:inline-block}.table-link-card .card-item .card-item-left.show-right-image[data-v-f6bb6746]{width:calc(100% - 100px)}.table-link-card .card-item .card-item-left .card-delete[data-v-f6bb6746]{position:absolute;top:-8px;right:-8px;font-size:16px;color:#757575;line-height:1em;overflow:hidden;display:none}.table-link-card .card-item .card-item-left .card-inner[data-v-f6bb6746]{flex:1 1 0%;padding:12px 16px 10px;overflow:hidden}.table-link-card .card-item .card-item-left .card-inner .card-main-content[data-v-f6bb6746]{overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:nowrap;margin-bottom:8px;font-weight:500;font-size:14px;line-height:20px;color:#333}.table-link-card .card-item .card-item-left .card-inner .other-content .text[data-v-f6bb6746]{font-size:12px!important;display:inline-block;width:80%}.table-link-card .card-item .card-item-left .card-inner .other-content .label[data-v-f6bb6746]{max-width:160px;color:#9e9e9e;padding-right:.7em;display:inline-block}.table-link-card .card-item .card-item-left .card-inner .other-content .ellipsis[data-v-f6bb6746]{overflow:hidden;height:22px;line-height:22px;text-overflow:ellipsis;white-space:nowrap}.enhance-list[data-v-0e8e9411] .ant-list-items .ant-list-item{position:relative;height:42px;line-height:42px;transition:background-color .3s}.enhance-list[data-v-0e8e9411] .ant-list-items .bg-blue{background-color:"#2db7f5"}.enhance-list[data-v-0e8e9411] .ant-list-items .bg-blue a{color:#fff}.enhance-list[data-v-0e8e9411] .ant-list-items a{color:#000000d9;display:block;position:absolute;width:100%;height:100%}.enhance-list[data-v-0e8e9411] .ant-list-header{color:#000;padding-top:5px;padding-bottom:5px}.auth-field-config[data-v-63e05357] .ant-checkbox+span{padding-left:2px}.onl-auth-tree-btns[data-v-b03cefd8]{margin-left:10px}.onl-auth-tree-btns button[data-v-b03cefd8]{margin:0 5px 0 2px}.onl-auth-tree-btns[data-v-0c1d5eb9]{margin-left:10px}.onl-auth-tree-btns button[data-v-0c1d5eb9]{margin:0 5px 0 2px}.onl-auth-tree-btns[data-v-4ce74ac6]{margin-left:10px}.onl-auth-tree-btns button[data-v-4ce74ac6]{margin:0 5px 0 2px}.jeecg-update-tip-bar[data-v-c18755ca]{width:calc(100% - 100px);font-size:14px}.jeecg-update-tip-bar .container[data-v-c18755ca]{position:relative;margin:0 auto}.jeecg-update-tip-bar .container .outer[data-v-c18755ca]{position:absolute;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;width:100%;z-index:11;top:-30px}.jeecg-update-tip-bar .container .outer .inner[data-v-c18755ca]{height:42px;border-radius:42px;color:#fff;background-color:#2196f3;line-height:42px;padding:0 10px 0 24px;z-index:9;box-shadow:#0000001f 0 6px 24px,#00000014 0 2px 4px;display:flex;flex-direction:row;-webkit-box-align:center;align-items:center;min-width:380px}.jeecg-update-tip-bar .container .outer .inner .tip[data-v-c18755ca]{-webkit-flex:1;flex:1 1 0%;-ms-flex:1;font-weight:700}.jeecg-update-tip-bar .container .outer .inner .cancel[data-v-c18755ca]{cursor:pointer;display:inline-block;height:28px;line-height:28px;padding:0 18px;border-radius:28px;color:#fff;margin-left:30px!important;margin-right:10px!important}.jeecg-update-tip-bar .container .outer .inner .cancel[data-v-c18755ca]:hover{background-color:#ffffff29}.jeecg-update-tip-bar .container .outer .inner .save[data-v-c18755ca]{cursor:pointer;display:inline-block;height:28px;line-height:28px;padding:0 18px;border-radius:28px;color:#3ea4fc;background-color:#fff;font-weight:600}.jeecg-update-tip-bar .container .outer .inner .save[data-v-c18755ca]:hover{background-color:#e2f1fe}.link-table-piece[data-v-33745cde]{color:#333;display:inline-block;position:relative;cursor:pointer;background-color:#e8e8e8;border-radius:3px;line-height:21px;margin-right:3px;padding:0 7px;max-width:100px}.link-table-piece>span[data-v-33745cde]{display:inline-block!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:top;white-space:nowrap}.link-table-piece[data-v-33745cde]:hover{background-color:#dfebfa;color:#2196f3}.jeecg-detail-form[data-v-47915cc7]{border:1px solid #f0f0f0;border-left:none;border-bottom:none}.jeecg-detail-form .detail-item[data-v-47915cc7]{display:flex;flex-direction:row;align-items:stretch;line-height:24px;border-bottom:1px solid #f0f0f0;height:100%}.jeecg-detail-form .detail-item .item-title[data-v-47915cc7]{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;flex-grow:0;min-width:100px;width:24%;max-width:220px;background-color:#fafafa;border-right:1px solid #f0f0f0;padding:10px 0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.jeecg-detail-form .detail-item .item-title.span24[data-v-47915cc7]{width:24%}.jeecg-detail-form .detail-item .item-title.span12[data-v-47915cc7]{width:12%}.jeecg-detail-form .detail-item .item-title.span8[data-v-47915cc7]{width:8%}.jeecg-detail-form .detail-item .item-title.span6[data-v-47915cc7]{width:6%}.jeecg-detail-form .detail-item .item-content[data-v-47915cc7]{border-right:1px solid #f0f0f0;flex-grow:1;padding-left:10px;display:flex;align-items:center;justify-content:flex-start}.jeecg-detail-form .detail-item .item-content .anticon[data-v-47915cc7]:hover{color:#40a9ff}.jeecg-detail-form .detail-item .item-content .detail-image-container[data-v-47915cc7]{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;list-style:none;font-feature-settings:"tnum";line-height:1.5715}.jeecg-detail-form .detail-item .item-content .detail-image-container .image-item[data-v-47915cc7]{display:inline-block;width:104px;height:104px;margin:5px;border:1px solid #f0f0f0;vertical-align:top}.group-query-string[data-v-716ddf4f]{width:20px;display:inline-block;text-align:center}.jeecg-basic-table-form-container.p-0[data-v-716ddf4f]{padding:0}.group-query-strig[data-v-76dfb908]{width:30px;text-align:center;display:inline-block}.jeecg-online-search[data-v-76dfb908] .ant-form-item-label{flex:0 0 auto!important;width:auto}.jeecg-online-search[data-v-76dfb908] .ant-form-item-control{max-width:100%;padding-right:16px}.jeecg-online-search[data-v-76dfb908] .label-text{max-width:var(--1e41a56d);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;overflow-wrap:break-word}.cust-onl-form .ant-input-disabled[data-v-9b256bc4]{background-color:#fff;color:#000}.cust-onl-form .ant-select-disabled .ant-select-selection[data-v-9b256bc4]{background:#fff;color:#000}.cust-onl-form .ant-input-number-disabled[data-v-9b256bc4]{background-color:#fff;color:#000}[data-v-050f6852] .jee-super-query-form{max-height:300px;overflow-y:auto}[data-v-050f6852] .jee-super-query-form .ant-form-item{margin-bottom:9px}[data-v-050f6852] .j-super-query-history-tree .ant-tree-switcher{width:0px}[data-v-050f6852] .j-super-query-history-tree .ant-tree-node-content-wrapper{width:100%}[data-v-050f6852] .j-super-query-history-tree .ant-tree-node-content-wrapper:hover{background-color:#e6f7ff!important;border-radius:0}[data-v-050f6852] .j-super-query-history-tree .ant-tree-treenode-switcher-close .ant-tree-title{display:inline-block;width:calc(100% - 30px)}[data-v-050f6852] .j-super-query-history-tree .ant-tree-treenode-switcher-close .ant-tree-title>div{display:flex;justify-content:space-between}[data-v-050f6852] .j-super-query-history-tree .ant-tree-treenode-switcher-close .ant-tree-title>div .icon-cancle{display:none;color:#666}[data-v-050f6852] .j-super-query-history-tree .ant-tree-treenode-switcher-close .ant-tree-title>div .icon-cancle:hover{color:#000}[data-v-050f6852] .j-super-query-history-tree .ant-tree-treenode-switcher-close:hover .icon-cancle{display:inline-block!important}[data-v-050f6852] .j-super-query-history-tree .ant-card-body{padding:0}.j-super-query-history-card[data-v-050f6852]{position:absolute;top:0;right:0;bottom:0;z-index:2;width:150px;min-height:200px;box-shadow:0 0 10px #0003}.j-super-query-history-card.collapsed[data-v-050f6852]{right:-150px}.j-super-query-history-card .collapse-box[data-v-050f6852]{position:absolute;top:calc(50% - 15px);left:-20px;width:20px;height:30px;background-color:#fff;border:1px solid #e8e8e8;border-left:none;border-right-color:#fff;border-radius:15px 0 0 15px;cursor:pointer;transition:all .3s;z-index:1;display:flex;justify-content:center;align-items:center;box-shadow:-4px 0 6px #0000001a}.j-super-query-history-card .collapse-box[data-v-050f6852]:hover{background-color:#f5f5f5}.j-super-query-history-card .collapse-box .app-iconify[data-v-050f6852]{font-size:16px;position:relative;right:-3px;color:#666}.j-super-query-history-card.collapsed .app-iconify[data-v-050f6852]{right:0}.j-super-query-history-card[data-v-050f6852] .ant-card-body,.j-super-query-history-card[data-v-050f6852] .ant-card-head{padding:8px;min-height:43px}.j-super-query-history-card[data-v-050f6852] .ant-card-body .ant-card-head-title,.j-super-query-history-card[data-v-050f6852] .ant-card-head .ant-card-head-title{padding:0}@media only screen and (max-width: 1050px){[data-v-050f6852] .jee-super-query-form .ant-space{flex-direction:column;gap:0!important;margin-bottom:16px!important}[data-v-050f6852] .jee-super-query-form .ant-space-item{width:100%}[data-v-050f6852] .jee-super-query-form .ant-form-item{width:100%!important}}.j-table-force-nowrap td,.j-table-force-nowrap th{white-space:nowrap}.j-table-force-nowrap .ant-table-selection-column{padding:12px 22px!important}.j-table-force-nowrap.ant-table-wrapper .ant-table-content{overflow-x:auto}.online-cell-image{height:25px!important;margin:0 auto;max-width:80px;font-size:12px;font-style:italic}
|
package/useAutoForm.js
CHANGED
|
@@ -45,7 +45,7 @@ import { useUserStore } from "/@/store/modules/user";
|
|
|
45
45
|
import { defHttp } from "/@/utils/http/axios";
|
|
46
46
|
import { replaceAll, goJmReportViewPage, importViewsFile } from "/@/utils";
|
|
47
47
|
import * as CustomExpression from "/@/utils/desform/customExpression";
|
|
48
|
-
import { add
|
|
48
|
+
import { add } from "/@/components/Form/src/componentMap";
|
|
49
49
|
import OnlineSelectCascade from "./OnlineSelectCascade.js";
|
|
50
50
|
import { usePermissionStore } from "/@/store/modules/permission";
|
|
51
51
|
import { propTypes } from "/@/utils/propTypes";
|
|
@@ -73,10 +73,13 @@ var dayjs_min = { exports: {} };
|
|
|
73
73
|
!function(t, e) {
|
|
74
74
|
module.exports = e();
|
|
75
75
|
}(commonjsGlobal, function() {
|
|
76
|
-
var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", f = "month", h2 = "quarter", c = "year", d = "date",
|
|
76
|
+
var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", f = "month", h2 = "quarter", c = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
|
|
77
|
+
var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
|
|
78
|
+
return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
|
|
79
|
+
} }, m = function(t2, e2, n2) {
|
|
77
80
|
var r2 = String(t2);
|
|
78
81
|
return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
|
|
79
|
-
},
|
|
82
|
+
}, v = { s: m, z: function(t2) {
|
|
80
83
|
var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
|
|
81
84
|
return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
|
|
82
85
|
}, m: function t2(e2, n2) {
|
|
@@ -90,14 +93,14 @@ var dayjs_min = { exports: {} };
|
|
|
90
93
|
return { M: f, y: c, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: h2 }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
|
|
91
94
|
}, u: function(t2) {
|
|
92
95
|
return void 0 === t2;
|
|
93
|
-
} },
|
|
94
|
-
D[
|
|
96
|
+
} }, g = "en", D = {};
|
|
97
|
+
D[g] = M;
|
|
95
98
|
var p = function(t2) {
|
|
96
99
|
return t2 instanceof _;
|
|
97
100
|
}, S = function t2(e2, n2, r2) {
|
|
98
101
|
var i2;
|
|
99
102
|
if (!e2)
|
|
100
|
-
return
|
|
103
|
+
return g;
|
|
101
104
|
if ("string" == typeof e2) {
|
|
102
105
|
var s2 = e2.toLowerCase();
|
|
103
106
|
D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
|
|
@@ -108,13 +111,13 @@ var dayjs_min = { exports: {} };
|
|
|
108
111
|
var a2 = e2.name;
|
|
109
112
|
D[a2] = e2, i2 = a2;
|
|
110
113
|
}
|
|
111
|
-
return !r2 && i2 && (
|
|
114
|
+
return !r2 && i2 && (g = i2), i2 || !r2 && g;
|
|
112
115
|
}, w = function(t2, e2) {
|
|
113
116
|
if (p(t2))
|
|
114
117
|
return t2.clone();
|
|
115
118
|
var n2 = "object" == typeof e2 ? e2 : {};
|
|
116
119
|
return n2.date = t2, n2.args = arguments, new _(n2);
|
|
117
|
-
}, O =
|
|
120
|
+
}, O = v;
|
|
118
121
|
O.l = S, O.i = p, O.w = function(t2, e2) {
|
|
119
122
|
return w(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
120
123
|
};
|
|
@@ -133,7 +136,7 @@ var dayjs_min = { exports: {} };
|
|
|
133
136
|
if (e2 instanceof Date)
|
|
134
137
|
return new Date(e2);
|
|
135
138
|
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
136
|
-
var r2 = e2.match(
|
|
139
|
+
var r2 = e2.match($);
|
|
137
140
|
if (r2) {
|
|
138
141
|
var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
|
|
139
142
|
return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
|
|
@@ -147,7 +150,7 @@ var dayjs_min = { exports: {} };
|
|
|
147
150
|
}, m2.$utils = function() {
|
|
148
151
|
return O;
|
|
149
152
|
}, m2.isValid = function() {
|
|
150
|
-
return !(this.$d.toString() ===
|
|
153
|
+
return !(this.$d.toString() === l);
|
|
151
154
|
}, m2.isSame = function(t2, e2) {
|
|
152
155
|
var n2 = w(t2);
|
|
153
156
|
return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
|
|
@@ -162,69 +165,69 @@ var dayjs_min = { exports: {} };
|
|
|
162
165
|
}, m2.valueOf = function() {
|
|
163
166
|
return this.$d.getTime();
|
|
164
167
|
}, m2.startOf = function(t2, e2) {
|
|
165
|
-
var n2 = this, r2 = !!O.u(e2) || e2, h3 = O.p(t2),
|
|
168
|
+
var n2 = this, r2 = !!O.u(e2) || e2, h3 = O.p(t2), l2 = function(t3, e3) {
|
|
166
169
|
var i2 = O.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
|
167
170
|
return r2 ? i2 : i2.endOf(a);
|
|
168
|
-
},
|
|
171
|
+
}, $2 = function(t3, e3) {
|
|
169
172
|
return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
|
170
|
-
}, y2 = this.$W, M3 = this.$M, m3 = this.$D,
|
|
173
|
+
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
|
171
174
|
switch (h3) {
|
|
172
175
|
case c:
|
|
173
|
-
return r2 ?
|
|
176
|
+
return r2 ? l2(1, 0) : l2(31, 11);
|
|
174
177
|
case f:
|
|
175
|
-
return r2 ?
|
|
178
|
+
return r2 ? l2(1, M3) : l2(0, M3 + 1);
|
|
176
179
|
case o:
|
|
177
|
-
var
|
|
178
|
-
return
|
|
180
|
+
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
|
181
|
+
return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
179
182
|
case a:
|
|
180
183
|
case d:
|
|
181
|
-
return
|
|
184
|
+
return $2(v2 + "Hours", 0);
|
|
182
185
|
case u:
|
|
183
|
-
return
|
|
186
|
+
return $2(v2 + "Minutes", 1);
|
|
184
187
|
case s:
|
|
185
|
-
return
|
|
188
|
+
return $2(v2 + "Seconds", 2);
|
|
186
189
|
case i:
|
|
187
|
-
return
|
|
190
|
+
return $2(v2 + "Milliseconds", 3);
|
|
188
191
|
default:
|
|
189
192
|
return this.clone();
|
|
190
193
|
}
|
|
191
194
|
}, m2.endOf = function(t2) {
|
|
192
195
|
return this.startOf(t2, false);
|
|
193
196
|
}, m2.$set = function(t2, e2) {
|
|
194
|
-
var n2, o2 = O.p(t2), h3 = "set" + (this.$u ? "UTC" : ""),
|
|
197
|
+
var n2, o2 = O.p(t2), h3 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = h3 + "Date", n2[d] = h3 + "Date", n2[f] = h3 + "Month", n2[c] = h3 + "FullYear", n2[u] = h3 + "Hours", n2[s] = h3 + "Minutes", n2[i] = h3 + "Seconds", n2[r] = h3 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
|
|
195
198
|
if (o2 === f || o2 === c) {
|
|
196
199
|
var y2 = this.clone().set(d, 1);
|
|
197
|
-
y2.$d[$2
|
|
200
|
+
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
198
201
|
} else
|
|
199
|
-
|
|
202
|
+
l2 && this.$d[l2]($2);
|
|
200
203
|
return this.init(), this;
|
|
201
204
|
}, m2.set = function(t2, e2) {
|
|
202
205
|
return this.clone().$set(t2, e2);
|
|
203
206
|
}, m2.get = function(t2) {
|
|
204
207
|
return this[O.p(t2)]();
|
|
205
208
|
}, m2.add = function(r2, h3) {
|
|
206
|
-
var d2,
|
|
209
|
+
var d2, l2 = this;
|
|
207
210
|
r2 = Number(r2);
|
|
208
|
-
var
|
|
209
|
-
var e2 = w(
|
|
210
|
-
return O.w(e2.date(e2.date() + Math.round(t2 * r2)),
|
|
211
|
+
var $2 = O.p(h3), y2 = function(t2) {
|
|
212
|
+
var e2 = w(l2);
|
|
213
|
+
return O.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
|
|
211
214
|
};
|
|
212
|
-
if (
|
|
215
|
+
if ($2 === f)
|
|
213
216
|
return this.set(f, this.$M + r2);
|
|
214
|
-
if (
|
|
217
|
+
if ($2 === c)
|
|
215
218
|
return this.set(c, this.$y + r2);
|
|
216
|
-
if (
|
|
219
|
+
if ($2 === a)
|
|
217
220
|
return y2(1);
|
|
218
|
-
if (
|
|
221
|
+
if ($2 === o)
|
|
219
222
|
return y2(7);
|
|
220
|
-
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[
|
|
223
|
+
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
|
|
221
224
|
return O.w(m3, this);
|
|
222
225
|
}, m2.subtract = function(t2, e2) {
|
|
223
226
|
return this.add(-1 * t2, e2);
|
|
224
227
|
}, m2.format = function(t2) {
|
|
225
228
|
var e2 = this, n2 = this.$locale();
|
|
226
229
|
if (!this.isValid())
|
|
227
|
-
return n2.invalidDate ||
|
|
230
|
+
return n2.invalidDate || l;
|
|
228
231
|
var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = O.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, f2 = n2.months, h3 = function(t3, n3, i3, s3) {
|
|
229
232
|
return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
|
|
230
233
|
}, c2 = function(t3) {
|
|
@@ -232,15 +235,15 @@ var dayjs_min = { exports: {} };
|
|
|
232
235
|
}, d2 = n2.meridiem || function(t3, e3, n3) {
|
|
233
236
|
var r3 = t3 < 12 ? "AM" : "PM";
|
|
234
237
|
return n3 ? r3.toLowerCase() : r3;
|
|
235
|
-
},
|
|
238
|
+
}, $2 = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: a2 + 1, MM: O.s(a2 + 1, 2, "0"), MMM: h3(n2.monthsShort, a2, f2, 3), MMMM: h3(f2, a2), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: h3(n2.weekdaysMin, this.$W, o2, 2), ddd: h3(n2.weekdaysShort, this.$W, o2, 3), dddd: o2[this.$W], H: String(s2), HH: O.s(s2, 2, "0"), h: c2(1), hh: c2(2), a: d2(s2, u2, true), A: d2(s2, u2, false), m: String(u2), mm: O.s(u2, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: i2 };
|
|
236
239
|
return r2.replace(y, function(t3, e3) {
|
|
237
|
-
return e3 ||
|
|
240
|
+
return e3 || $2[t3] || i2.replace(":", "");
|
|
238
241
|
});
|
|
239
242
|
}, m2.utcOffset = function() {
|
|
240
243
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
241
|
-
}, m2.diff = function(r2, d2,
|
|
242
|
-
var
|
|
243
|
-
return
|
|
244
|
+
}, m2.diff = function(r2, d2, l2) {
|
|
245
|
+
var $2, y2 = O.p(d2), M3 = w(r2), m3 = (M3.utcOffset() - this.utcOffset()) * e, v2 = this - M3, g2 = O.m(this, M3);
|
|
246
|
+
return g2 = ($2 = {}, $2[c] = g2 / 12, $2[f] = g2, $2[h2] = g2 / 3, $2[o] = (v2 - m3) / 6048e5, $2[a] = (v2 - m3) / 864e5, $2[u] = v2 / n, $2[s] = v2 / e, $2[i] = v2 / t, $2)[y2] || v2, l2 ? g2 : O.a(g2);
|
|
244
247
|
}, m2.daysInMonth = function() {
|
|
245
248
|
return this.endOf(f).$D;
|
|
246
249
|
}, m2.$locale = function() {
|
|
@@ -270,7 +273,7 @@ var dayjs_min = { exports: {} };
|
|
|
270
273
|
return t2.$i || (t2(e2, _, w), t2.$i = true), w;
|
|
271
274
|
}, w.locale = S, w.isDayjs = p, w.unix = function(t2) {
|
|
272
275
|
return w(1e3 * t2);
|
|
273
|
-
}, w.en = D[
|
|
276
|
+
}, w.en = D[g], w.Ls = D, w.p = {}, w;
|
|
274
277
|
});
|
|
275
278
|
})(dayjs_min);
|
|
276
279
|
var dayjs = dayjs_min.exports;
|
|
@@ -291,13 +294,13 @@ function initSubTableDefValueConfig(item, config) {
|
|
|
291
294
|
config.push({ field: item.key, type: item.type, value: item.fieldDefaultValue });
|
|
292
295
|
}
|
|
293
296
|
}
|
|
294
|
-
function loadFormFieldsDefVal(properties, callback) {
|
|
297
|
+
function loadFormFieldsDefVal(properties, callback, formData) {
|
|
295
298
|
return __async(this, null, function* () {
|
|
296
299
|
if (Array.isArray(properties) && properties.length > 0) {
|
|
297
300
|
let formValues = {};
|
|
298
301
|
for (let prop of properties) {
|
|
299
302
|
let { value, type, field: field2 } = prop;
|
|
300
|
-
value = yield handleDefaultValue(value, ACTION_TYPES.ADD, {});
|
|
303
|
+
value = yield handleDefaultValue(value, ACTION_TYPES.ADD, formData || {});
|
|
301
304
|
if ("number" === type && value) {
|
|
302
305
|
value = Number.parseFloat(value);
|
|
303
306
|
}
|
|
@@ -446,6 +449,8 @@ function executeFillRuleExpression(expression2, origin2, getFormData) {
|
|
|
446
449
|
let formData = {};
|
|
447
450
|
if (typeof getFormData === "function") {
|
|
448
451
|
formData = getFormData();
|
|
452
|
+
} else if (getFormData) {
|
|
453
|
+
formData = __spreadValues({}, getFormData);
|
|
449
454
|
}
|
|
450
455
|
let { success, message, result } = yield defHttp.put({ url, params: formData }, { isTransformResponse: false });
|
|
451
456
|
if (success) {
|
|
@@ -706,6 +711,13 @@ const _sfc_main$5 = {
|
|
|
706
711
|
function setValues(values) {
|
|
707
712
|
setFieldsValue(values);
|
|
708
713
|
}
|
|
714
|
+
function executeFillRule() {
|
|
715
|
+
let formData = getFieldsValue();
|
|
716
|
+
let fieldProperties = toRaw(defaultValueFields[tableName.value]);
|
|
717
|
+
loadFormFieldsDefVal(fieldProperties, (values) => {
|
|
718
|
+
setFieldsValue(values);
|
|
719
|
+
}, formData);
|
|
720
|
+
}
|
|
709
721
|
const context = {
|
|
710
722
|
onlineFormRef,
|
|
711
723
|
baseColProps,
|
|
@@ -716,6 +728,7 @@ const _sfc_main$5 = {
|
|
|
716
728
|
getFormEvent,
|
|
717
729
|
setValues,
|
|
718
730
|
getAll,
|
|
731
|
+
executeFillRule,
|
|
719
732
|
sh: fieldDisplayStatus
|
|
720
733
|
};
|
|
721
734
|
return context;
|
|
@@ -779,6 +792,10 @@ const _sfc_main$4 = {
|
|
|
779
792
|
request: {
|
|
780
793
|
type: Boolean,
|
|
781
794
|
default: true
|
|
795
|
+
},
|
|
796
|
+
isVxeTableData: {
|
|
797
|
+
type: Boolean,
|
|
798
|
+
default: false
|
|
782
799
|
}
|
|
783
800
|
},
|
|
784
801
|
emits: ["success", "rendered", "dataChange"],
|
|
@@ -865,6 +882,9 @@ const _sfc_main$4 = {
|
|
|
865
882
|
dbData.value = Object.assign({}, formData);
|
|
866
883
|
let arr = realFormFieldNames.value;
|
|
867
884
|
let values = pick(formData, ...arr);
|
|
885
|
+
if (props.isVxeTableData === true) {
|
|
886
|
+
values = Object.assign({}, values, record2);
|
|
887
|
+
}
|
|
868
888
|
yield setFieldsValue(values);
|
|
869
889
|
});
|
|
870
890
|
}
|
|
@@ -901,8 +921,11 @@ const _sfc_main$4 = {
|
|
|
901
921
|
EnhanceJS2 = initCgEnhanceJs2(data.enhanceJs);
|
|
902
922
|
emit("rendered", onlineExtConfigJson);
|
|
903
923
|
let formRefObject = yield getRefPromise(onlineFormRef);
|
|
904
|
-
formRefObject.$formValueChange = (field2, value) => {
|
|
924
|
+
formRefObject.$formValueChange = (field2, value, changeFormData) => {
|
|
905
925
|
onValuesChange(field2, value);
|
|
926
|
+
if (changeFormData) {
|
|
927
|
+
setFieldsValue(changeFormData);
|
|
928
|
+
}
|
|
906
929
|
};
|
|
907
930
|
});
|
|
908
931
|
}
|
|
@@ -1564,12 +1587,18 @@ function useAutoModal(isBpm, { emit } = {}, callback) {
|
|
|
1564
1587
|
topTipVisible.value = false;
|
|
1565
1588
|
successThenClose.value = true;
|
|
1566
1589
|
}
|
|
1590
|
+
function onCloseEvent() {
|
|
1591
|
+
if (onlineFormCompRef.value) {
|
|
1592
|
+
onlineFormCompRef.value.onCloseModal();
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1567
1595
|
return {
|
|
1568
1596
|
title,
|
|
1569
1597
|
modalWidth,
|
|
1570
1598
|
registerModal,
|
|
1571
1599
|
closeModal,
|
|
1572
1600
|
modalObject,
|
|
1601
|
+
onCloseEvent,
|
|
1573
1602
|
cgButtonList,
|
|
1574
1603
|
handleCgButtonClick,
|
|
1575
1604
|
disableSubmit,
|
|
@@ -1606,7 +1635,7 @@ function useFixedHeightModal() {
|
|
|
1606
1635
|
popModalFixedWidth.value = tempWidth;
|
|
1607
1636
|
const popBodyStyle = ref({});
|
|
1608
1637
|
function resetBodyStyle() {
|
|
1609
|
-
let height = window.innerHeight -
|
|
1638
|
+
let height = window.innerHeight - 210;
|
|
1610
1639
|
popBodyStyle.value = {
|
|
1611
1640
|
height: height + "px",
|
|
1612
1641
|
overflowY: "auto"
|
|
@@ -1644,6 +1673,10 @@ const _sfc_main$3 = defineComponent({
|
|
|
1644
1673
|
saveClose: {
|
|
1645
1674
|
type: Boolean,
|
|
1646
1675
|
default: false
|
|
1676
|
+
},
|
|
1677
|
+
isVxeTableData: {
|
|
1678
|
+
type: Boolean,
|
|
1679
|
+
default: false
|
|
1647
1680
|
}
|
|
1648
1681
|
},
|
|
1649
1682
|
components: {
|
|
@@ -1783,11 +1816,12 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1783
1816
|
isTree: _ctx.isTreeForm,
|
|
1784
1817
|
pidField: _ctx.pidFieldName,
|
|
1785
1818
|
request: _ctx.request,
|
|
1819
|
+
isVxeTableData: _ctx.isVxeTableData,
|
|
1786
1820
|
onRendered: _ctx.renderSuccess,
|
|
1787
1821
|
onSuccess: _ctx.handleSuccess,
|
|
1788
1822
|
onDataChange: _ctx.handleDataChange,
|
|
1789
1823
|
"modal-class": "jeecg-online-pop-modal"
|
|
1790
|
-
}, null, 8, ["id", "disabled", "form-template", "isTree", "pidField", "request", "onRendered", "onSuccess", "onDataChange"])
|
|
1824
|
+
}, null, 8, ["id", "disabled", "form-template", "isTree", "pidField", "request", "isVxeTableData", "onRendered", "onSuccess", "onDataChange"])
|
|
1791
1825
|
]),
|
|
1792
1826
|
_: 1
|
|
1793
1827
|
}, 16, ["width", "bodyStyle", "footer", "onRegister", "onOk"]);
|
|
@@ -3243,7 +3277,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3243
3277
|
createVNode(_component_a_button, { onClick: $setup.handleAddRecord }, {
|
|
3244
3278
|
default: withCtx(() => [
|
|
3245
3279
|
createVNode(_component_PlusOutlined),
|
|
3246
|
-
createTextVNode("\u8BB0 \
|
|
3280
|
+
createTextVNode("\u8BB0 \u5F55")
|
|
3247
3281
|
]),
|
|
3248
3282
|
_: 1
|
|
3249
3283
|
}, 8, ["onClick"])
|
|
@@ -3317,7 +3351,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3317
3351
|
}, null, 8, ["id", "onRegister", "onSuccess"])
|
|
3318
3352
|
]);
|
|
3319
3353
|
}
|
|
3320
|
-
var LinkTableCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
3354
|
+
var LinkTableCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-f6bb6746"]]);
|
|
3321
3355
|
var LinkTableCard$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3322
3356
|
__proto__: null,
|
|
3323
3357
|
"default": LinkTableCard
|
|
@@ -3329,7 +3363,6 @@ function useFormItems(props, onlineFormRef) {
|
|
|
3329
3363
|
add("OnlineSelectCascade", OnlineSelectCascade);
|
|
3330
3364
|
add("LinkTableSelect", LinkTableSelect);
|
|
3331
3365
|
add("LinkTableCard", LinkTableCard);
|
|
3332
|
-
console.log(" componentMap val =", componentMap);
|
|
3333
3366
|
const modalClass = props.modalClass;
|
|
3334
3367
|
const formSchemas = ref([]);
|
|
3335
3368
|
const tableName = ref("");
|
|
@@ -3581,6 +3614,9 @@ function useOnlineVxeTableColumns(subInfo, callback) {
|
|
|
3581
3614
|
if (column.type === "user-select") {
|
|
3582
3615
|
handleSubUserSelect(column);
|
|
3583
3616
|
}
|
|
3617
|
+
if (column.type === "pca") {
|
|
3618
|
+
column.width = "230px";
|
|
3619
|
+
}
|
|
3584
3620
|
if ((column.width == 120 || column.width == "120px") && (column.type == "image" || column.type == "file")) {
|
|
3585
3621
|
column.width = "130px";
|
|
3586
3622
|
}
|
package/useCgformList.js
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
var __async = (__this, __arguments, generator) => {
|
|
2
21
|
return new Promise((resolve, reject) => {
|
|
3
22
|
var fulfilled = (value) => {
|
|
@@ -18,20 +37,92 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18
37
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
19
38
|
});
|
|
20
39
|
};
|
|
21
|
-
import { ref, h } from "vue";
|
|
40
|
+
import { unref, isRef, watch, ref, h } from "vue";
|
|
22
41
|
import { useRouter } from "vue-router";
|
|
23
42
|
import { RadioGroup, Radio, Input } from "ant-design-vue";
|
|
24
43
|
import { useModal } from "/@/components/Modal";
|
|
25
44
|
import { useDrawer } from "/@/components/Drawer";
|
|
26
45
|
import { useListPage } from "/@/hooks/system/useListPage";
|
|
27
46
|
import { l as list, d as doCopyOnlineView, a as doBatchRemove, b as doBatchDelete, c as doDatabaseSync, e as doCopyTable } from "./CgformModal.js";
|
|
28
|
-
import {
|
|
47
|
+
import { C as Clipboard } from "./clipboard.js";
|
|
48
|
+
import { useMessage } from "/@/hooks/web/useMessage";
|
|
49
|
+
import { buildUUID } from "/@/utils/uuid";
|
|
29
50
|
import { isArray } from "/@/utils/is";
|
|
30
51
|
var CgformPageType = /* @__PURE__ */ ((CgformPageType2) => {
|
|
31
52
|
CgformPageType2[CgformPageType2["normal"] = 0] = "normal";
|
|
32
53
|
CgformPageType2[CgformPageType2["copy"] = 1] = "copy";
|
|
33
54
|
return CgformPageType2;
|
|
34
55
|
})(CgformPageType || {});
|
|
56
|
+
const COPY_CLASS = "copy-this-text";
|
|
57
|
+
const CLIPBOARD_TEXT = "data-clipboard-text";
|
|
58
|
+
function useCopyModal() {
|
|
59
|
+
return { createCopyModal };
|
|
60
|
+
}
|
|
61
|
+
const { createMessage, createConfirm } = useMessage();
|
|
62
|
+
function createCopyModal(options) {
|
|
63
|
+
var _a, _b, _c, _d, _e;
|
|
64
|
+
const url = unref(options.copyText);
|
|
65
|
+
const insertMenuSql = `INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
|
|
66
|
+
VALUES ('${buildUUID()}', NULL, '${options.copyTitle}', '${url}', '1', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 0, 1, 0, 0, 0, NULL, '1', 0, 0, 'admin', null, NULL, NULL, 0)`;
|
|
67
|
+
let modal = createConfirm(__spreadProps(__spreadValues({}, options), {
|
|
68
|
+
iconType: (_a = options.iconType) != null ? _a : "info",
|
|
69
|
+
width: (_b = options.width) != null ? _b : 500,
|
|
70
|
+
title: (_c = options.title) != null ? _c : "\u590D\u5236",
|
|
71
|
+
closable: true,
|
|
72
|
+
maskClosable: (_d = options.maskClosable) != null ? _d : true,
|
|
73
|
+
cancelText: "\u590D\u5236SQL",
|
|
74
|
+
okText: (_e = options.okText) != null ? _e : "\u590D\u5236URL",
|
|
75
|
+
cancelButtonProps: {
|
|
76
|
+
class: "copy-this-sql",
|
|
77
|
+
"data-clipboard-text": insertMenuSql
|
|
78
|
+
},
|
|
79
|
+
okButtonProps: __spreadProps(__spreadValues({}, options.okButtonProps), {
|
|
80
|
+
class: COPY_CLASS,
|
|
81
|
+
[CLIPBOARD_TEXT]: url
|
|
82
|
+
}),
|
|
83
|
+
onOk() {
|
|
84
|
+
return new Promise((resolve) => {
|
|
85
|
+
const clipboard = new Clipboard("." + COPY_CLASS);
|
|
86
|
+
clipboard.on("success", () => {
|
|
87
|
+
clipboard.destroy();
|
|
88
|
+
createMessage.success("\u590D\u5236URL\u6210\u529F");
|
|
89
|
+
resolve();
|
|
90
|
+
});
|
|
91
|
+
clipboard.on("error", () => {
|
|
92
|
+
createMessage.error("\u8BE5\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u81EA\u52A8\u590D\u5236");
|
|
93
|
+
clipboard.destroy();
|
|
94
|
+
resolve();
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
},
|
|
98
|
+
onCancel() {
|
|
99
|
+
return new Promise((resolve) => {
|
|
100
|
+
const clipboard = new Clipboard(".copy-this-sql");
|
|
101
|
+
clipboard.on("success", () => {
|
|
102
|
+
clipboard.destroy();
|
|
103
|
+
createMessage.success("\u590D\u5236\u63D2\u5165\u83DC\u5355SQL\u6210\u529F");
|
|
104
|
+
resolve();
|
|
105
|
+
});
|
|
106
|
+
clipboard.on("error", () => {
|
|
107
|
+
createMessage.error("\u8BE5\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u81EA\u52A8\u590D\u5236");
|
|
108
|
+
clipboard.destroy();
|
|
109
|
+
resolve();
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}));
|
|
114
|
+
if (isRef(options.copyText)) {
|
|
115
|
+
watch(options.copyText, (copyText) => {
|
|
116
|
+
modal.update({
|
|
117
|
+
okButtonProps: __spreadProps(__spreadValues({}, options.okButtonProps), {
|
|
118
|
+
class: COPY_CLASS,
|
|
119
|
+
[CLIPBOARD_TEXT]: copyText
|
|
120
|
+
})
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
return modal;
|
|
125
|
+
}
|
|
35
126
|
function useCgformList(options) {
|
|
36
127
|
const isNormalPage = options.pageType === CgformPageType.normal;
|
|
37
128
|
const router = useRouter();
|
|
@@ -205,7 +296,7 @@ function useCgformList(options) {
|
|
|
205
296
|
}
|
|
206
297
|
});
|
|
207
298
|
}
|
|
208
|
-
const { createCopyModal } = useCopyModal();
|
|
299
|
+
const { createCopyModal: createCopyModal2 } = useCopyModal();
|
|
209
300
|
function onShowOnlineUrl(record) {
|
|
210
301
|
let onlineUrl;
|
|
211
302
|
if (record.themeTemplate === "erp") {
|
|
@@ -219,10 +310,11 @@ function useCgformList(options) {
|
|
|
219
310
|
} else {
|
|
220
311
|
onlineUrl = `/online/cgformList/${record.id}`;
|
|
221
312
|
}
|
|
222
|
-
|
|
313
|
+
createCopyModal2({
|
|
223
314
|
title: `\u83DC\u5355\u94FE\u63A5\u3010${record.tableTxt}\u3011`,
|
|
224
315
|
content: onlineUrl,
|
|
225
|
-
copyText: onlineUrl
|
|
316
|
+
copyText: onlineUrl,
|
|
317
|
+
copyTitle: `${record.tableTxt}`
|
|
226
318
|
});
|
|
227
319
|
}
|
|
228
320
|
function onCopyTable(record) {
|
package/useListButton.js
CHANGED
|
@@ -653,7 +653,9 @@ function useListButton(onlineTableContext, extConfigJson) {
|
|
|
653
653
|
});
|
|
654
654
|
}
|
|
655
655
|
function getActions(record) {
|
|
656
|
-
|
|
656
|
+
let bpmStatusValue = getBpmStatusValue(record);
|
|
657
|
+
let canEdit = bpmStatusValue && bpmStatusValue == "1" || !bpmStatusValue;
|
|
658
|
+
if (toRaw(buttonSwitch.update) === true && canEdit) {
|
|
657
659
|
return [
|
|
658
660
|
{
|
|
659
661
|
label: "\u7F16\u8F91",
|
|
@@ -696,8 +698,8 @@ function useListButton(onlineTableContext, extConfigJson) {
|
|
|
696
698
|
});
|
|
697
699
|
}
|
|
698
700
|
if (onlineTableContext["hasBpmStatus"] === true && toRaw(buttonSwitch.bpm) === true) {
|
|
699
|
-
let
|
|
700
|
-
if (!
|
|
701
|
+
let bpmStatusValue2 = getBpmStatusValue(record);
|
|
702
|
+
if (!bpmStatusValue2 || bpmStatusValue2 == "1") {
|
|
701
703
|
arr.push(getSubmitFlowButton(record));
|
|
702
704
|
} else {
|
|
703
705
|
arr.push(getViewBpmGraphicButton(record));
|
|
@@ -717,7 +719,9 @@ function useListButton(onlineTableContext, extConfigJson) {
|
|
|
717
719
|
});
|
|
718
720
|
}
|
|
719
721
|
}
|
|
720
|
-
|
|
722
|
+
let bpmStatusValue = getBpmStatusValue(record);
|
|
723
|
+
let canDelete = bpmStatusValue && bpmStatusValue == "1" || !bpmStatusValue;
|
|
724
|
+
if (toRaw(buttonSwitch.delete) === true && canDelete) {
|
|
721
725
|
arr.push(getDeleteButton(record));
|
|
722
726
|
}
|
|
723
727
|
let buttonList = cgLinkButtonList;
|
package/useSchemas.js
CHANGED
|
@@ -152,10 +152,7 @@ function useFormSchemas(_props, handlers) {
|
|
|
152
152
|
defaultValue: "normal",
|
|
153
153
|
componentProps: {
|
|
154
154
|
options: [
|
|
155
|
-
{ label: "\u9ED8\u8BA4\u4E3B\u9898", value: "normal" }
|
|
156
|
-
{ label: "ERP\u4E3B\u9898(\u4E00\u5BF9\u591A)", value: "erp" },
|
|
157
|
-
{ label: "\u5185\u5D4C\u5B50\u8868\u4E3B\u9898(\u4E00\u5BF9\u591A)", value: "innerTable" },
|
|
158
|
-
{ label: "TAB\u4E3B\u9898(\u4E00\u5BF9\u591A)", value: "tab" }
|
|
155
|
+
{ label: "\u9ED8\u8BA4\u4E3B\u9898", value: "normal" }
|
|
159
156
|
]
|
|
160
157
|
},
|
|
161
158
|
dynamicDisabled: ({ model }) => model.tableType === 1
|
|
@@ -632,6 +629,23 @@ function useCodeGeneratorFormSchemas(_, handlers, single) {
|
|
|
632
629
|
},
|
|
633
630
|
getColSize.value
|
|
634
631
|
),
|
|
632
|
+
mapFormSchema(
|
|
633
|
+
{
|
|
634
|
+
label: "\u9875\u9762\u4EE3\u7801",
|
|
635
|
+
field: "vueStyle",
|
|
636
|
+
required: true,
|
|
637
|
+
component: "RadioGroup",
|
|
638
|
+
defaultValue: "vue3",
|
|
639
|
+
componentProps: {
|
|
640
|
+
options: [
|
|
641
|
+
{ label: "Vue3", value: "vue3" },
|
|
642
|
+
{ label: "Vue3 \u539F\u751F", value: "vue3Native" },
|
|
643
|
+
{ label: "Vue2", value: "vue" }
|
|
644
|
+
]
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
getColSize.value
|
|
648
|
+
),
|
|
635
649
|
{ label: "\u9700\u8981\u751F\u6210\u7684\u4EE3\u7801", field: "codeTypes", component: "Input", show: false }
|
|
636
650
|
]);
|
|
637
651
|
return { formSchemas };
|