super-page-runtime 2.0.19 → 2.0.22
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/es/components/runtime/utils/api/api-util.js +16 -14
- package/dist/es/components/runtime/utils/api/page-expose-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +202 -0
- package/dist/es/components/runtime/utils/common-util.d.ts +2 -2
- package/dist/es/components/runtime/utils/common-util.js +7 -11
- package/dist/es/components/runtime/utils/events/event-util.js +9 -14
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +124 -110
- package/dist/es/components/runtime/utils/events/validator-util.js +4 -3
- package/dist/es/components/runtime/utils/global-refs.js +12 -0
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +4 -4
- package/dist/es/components/runtime/utils/page-init-util.js +5 -3
- package/dist/es/components/runtime/utils/table-utils.js +4 -5
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +12 -13
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +2 -1
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +28 -28
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +12 -12
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +7 -5
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +14 -14
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +40 -37
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +13 -13
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +91 -39
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +13 -13
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +14 -14
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +5 -7
- package/dist/es/components/runtime/views/super-page.vue.js +2 -2
- package/package.json +3 -2
- package/dist/lib/_virtual/AttributeMap.js +0 -4
- package/dist/lib/_virtual/Delta.js +0 -4
- package/dist/lib/_virtual/Op.js +0 -4
- package/dist/lib/_virtual/OpIterator.js +0 -4
- package/dist/lib/_virtual/__vite-browser-external.js +0 -3
- package/dist/lib/_virtual/_commonjsHelpers.js +0 -8
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/lib/_virtual/dayjs.min.js +0 -4
- package/dist/lib/_virtual/index.js +0 -4
- package/dist/lib/_virtual/index2.js +0 -4
- package/dist/lib/_virtual/index3.js +0 -4
- package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme1.js +0 -7
- package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme2.js +0 -7
- package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/lib/assets/chart-themes/theme3.js +0 -7
- package/dist/lib/components/runtime/index.d.ts +0 -4
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -11
- package/dist/lib/components/runtime/utils/api/api-util.js +0 -128
- package/dist/lib/components/runtime/utils/assemblys-config.js +0 -258
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -11
- package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -28
- package/dist/lib/components/runtime/utils/common-util.d.ts +0 -16
- package/dist/lib/components/runtime/utils/common-util.js +0 -94
- package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
- package/dist/lib/components/runtime/utils/eventBus.js +0 -10
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -48
- package/dist/lib/components/runtime/utils/events/event-util.js +0 -526
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -61
- package/dist/lib/components/runtime/utils/events/standard-event.js +0 -1625
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -4
- package/dist/lib/components/runtime/utils/events/validator-util.js +0 -389
- package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
- package/dist/lib/components/runtime/utils/global-refs.js +0 -65
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -223
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +0 -9
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -106
- package/dist/lib/components/runtime/utils/page-helper-util.js +0 -622
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -38
- package/dist/lib/components/runtime/utils/page-init-util.js +0 -200
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
- package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
- package/dist/lib/components/runtime/utils/store-util.js +0 -17
- package/dist/lib/components/runtime/utils/store.d.ts +0 -2
- package/dist/lib/components/runtime/utils/store.js +0 -3
- package/dist/lib/components/runtime/utils/table-utils.js +0 -24
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -432
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -126
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -52
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -54
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -54
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -56
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -147
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -43
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -44
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -69
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -642
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -453
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -156
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -64
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -127
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -157
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -164
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -201
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +0 -142
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -61
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -36
- package/dist/lib/components/runtime/views/super-page-dialog.vue.js +0 -73
- package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +0 -3
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -91
- package/dist/lib/components/runtime/views/super-page.vue.js +0 -496
- package/dist/lib/components/runtime/views/super-page.vue2.js +0 -3
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/index.d.ts +0 -8
- package/dist/lib/index.js +0 -15
|
@@ -156,7 +156,7 @@ function updateChartDatasources(pageContext2, dataSourceConfs, appendParams) {
|
|
|
156
156
|
systemCode: pageContext2.systemCode,
|
|
157
157
|
pageCode: pageContext2.code
|
|
158
158
|
};
|
|
159
|
-
const url = window["$vueApp"].config.globalProperties.
|
|
159
|
+
const url = window["$vueApp"].config.globalProperties.baseURL + "/common/common-data/find-chart-datas";
|
|
160
160
|
http.post(url, param).then((result) => {
|
|
161
161
|
if (!pageContext2.chartDataSourceMap) {
|
|
162
162
|
pageContext2.chartDataSourceMap = {};
|
|
@@ -198,7 +198,7 @@ function updateOptionDatasources(pageContext2, dataSourceConfs, query) {
|
|
|
198
198
|
systemCode: pageContext2.systemCode,
|
|
199
199
|
query
|
|
200
200
|
};
|
|
201
|
-
const url = window["$vueApp"].config.globalProperties.
|
|
201
|
+
const url = window["$vueApp"].config.globalProperties.baseURL + "/common/common-data/find-datas";
|
|
202
202
|
http.post(url, param).then((result) => {
|
|
203
203
|
if (!pageContext2.optionSourceMap) {
|
|
204
204
|
pageContext2.optionSourceMap = {};
|
|
@@ -589,7 +589,7 @@ function monitorFieldChange(pageContext2, monitorFields, triggerFunc) {
|
|
|
589
589
|
const entity = pageContext2.entity;
|
|
590
590
|
let firstValue = getMonitorFieldValues(monitorFieldInfos, entity);
|
|
591
591
|
let monitorTimeout = false;
|
|
592
|
-
for (
|
|
592
|
+
for (const preField of preFields) {
|
|
593
593
|
watch(entity[preField], () => {
|
|
594
594
|
if (monitorTimeout) {
|
|
595
595
|
clearTimeout(monitorTimeout);
|
|
@@ -606,7 +606,7 @@ function monitorFieldChange(pageContext2, monitorFields, triggerFunc) {
|
|
|
606
606
|
}
|
|
607
607
|
function getMonitorFieldValues(monitorFieldInfos, entity) {
|
|
608
608
|
let values = "";
|
|
609
|
-
for (
|
|
609
|
+
for (const fieldInfo of monitorFieldInfos) {
|
|
610
610
|
values += "_" + getVariableValue(entity, fieldInfo);
|
|
611
611
|
}
|
|
612
612
|
return values;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import http from "agilebuilder-ui/src/utils/request";
|
|
2
2
|
import { useRoute } from "vue-router";
|
|
3
|
+
import { getAdditionalParamMap } from "./events/standard-event.js";
|
|
3
4
|
import { PageDimensions } from "./interfaces/page-design-types.js";
|
|
4
5
|
import { formatVariableValue, setVariableValue } from "./page-helper-util.js";
|
|
5
6
|
function queryPageDesignByCode(pageCode) {
|
|
@@ -44,7 +45,7 @@ function convertToPageContext(pageDesign, pageRequest) {
|
|
|
44
45
|
request: getRequestObject(pageRequest),
|
|
45
46
|
//初始化request对象
|
|
46
47
|
page: {},
|
|
47
|
-
context:
|
|
48
|
+
context: pageDesign.contextParam,
|
|
48
49
|
system: {}
|
|
49
50
|
}
|
|
50
51
|
};
|
|
@@ -127,6 +128,7 @@ function getFormModelFields(pageContext, formItemConfigure) {
|
|
|
127
128
|
fields = [formItemConfigure.uuid];
|
|
128
129
|
}
|
|
129
130
|
}
|
|
131
|
+
debugger;
|
|
130
132
|
if (entity.data.ID == void 0 && entity.data.ID == void 0) {
|
|
131
133
|
if (propsBase.defaultValue) {
|
|
132
134
|
let defaultValue = formatVariableValue(pageContext, propsBase.defaultValue);
|
|
@@ -148,7 +150,7 @@ function getFormModelFields(pageContext, formItemConfigure) {
|
|
|
148
150
|
}
|
|
149
151
|
function getPermissionCodes(configure, pageContext) {
|
|
150
152
|
if (!pageContext || pageContext.isTest || !configure) {
|
|
151
|
-
return "";
|
|
153
|
+
return "true";
|
|
152
154
|
}
|
|
153
155
|
const codes = [];
|
|
154
156
|
if (configure.autoPermissions) {
|
|
@@ -177,7 +179,7 @@ function getPermissionCodes(configure, pageContext) {
|
|
|
177
179
|
}
|
|
178
180
|
function queryPageSuperGrids(pageDesign, pageContext, publishVersion) {
|
|
179
181
|
const tableRuntimes = pageDesign.tableRuntimes;
|
|
180
|
-
const additionalParamMap =
|
|
182
|
+
const additionalParamMap = getAdditionalParamMap(pageContext);
|
|
181
183
|
let additionalParamMapJson;
|
|
182
184
|
const pageCode = pageContext.code;
|
|
183
185
|
if (additionalParamMap) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { getBaseUrl } from "./common-util.js";
|
|
2
2
|
import http from "agilebuilder-ui/src/utils/request";
|
|
3
3
|
import eventBus from "./eventBus.js";
|
|
4
|
-
function getDataTypeMap(
|
|
4
|
+
function getDataTypeMap(backendUrl, tableName) {
|
|
5
5
|
return new Promise((resolve, reject) => {
|
|
6
|
-
getDataTypeMapRequest(
|
|
6
|
+
getDataTypeMapRequest(backendUrl, tableName).then((dataTypeMap) => {
|
|
7
7
|
resolve(dataTypeMap);
|
|
8
8
|
}).catch(() => {
|
|
9
9
|
reject(new Error("获得数据表:" + tableName + "的字段类型集合失败"));
|
|
10
10
|
});
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
|
-
function getDataTypeMapRequest(
|
|
14
|
-
const baseUrl = getBaseUrl(
|
|
13
|
+
function getDataTypeMapRequest(backendUrl, tableName) {
|
|
14
|
+
const baseUrl = getBaseUrl(backendUrl);
|
|
15
15
|
return http.get(baseUrl + "/dsc/commons/tables/" + tableName + "/data-types");
|
|
16
16
|
}
|
|
17
17
|
function popupToPage(params) {
|
|
@@ -19,6 +19,5 @@ function popupToPage(params) {
|
|
|
19
19
|
}
|
|
20
20
|
export {
|
|
21
21
|
getDataTypeMap,
|
|
22
|
-
getDataTypeMapRequest,
|
|
23
22
|
popupToPage
|
|
24
23
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock,
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
2
|
import { SuperIcon } from "agilebuilder-ui";
|
|
3
3
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -10,39 +10,39 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
10
|
setup(__props) {
|
|
11
11
|
const props = __props;
|
|
12
12
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
13
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
13
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
14
14
|
const runtimeStyle = runtimeInfo.style;
|
|
15
15
|
const runtimeClass = runtimeInfo.class;
|
|
16
16
|
return (_ctx, _cache) => {
|
|
17
17
|
const _component_el_button = resolveComponent("el-button");
|
|
18
18
|
return openBlock(), createBlock(_component_el_button, {
|
|
19
|
-
disabled:
|
|
19
|
+
disabled: designProperty.value.state === "disabled",
|
|
20
20
|
class: normalizeClass(unref(runtimeClass)),
|
|
21
21
|
style: normalizeStyle(unref(runtimeStyle)),
|
|
22
|
-
type:
|
|
23
|
-
size:
|
|
24
|
-
text:
|
|
25
|
-
round:
|
|
26
|
-
plain:
|
|
22
|
+
type: designProperty.value.type,
|
|
23
|
+
size: designProperty.value.size,
|
|
24
|
+
text: designProperty.value.text,
|
|
25
|
+
round: designProperty.value.round,
|
|
26
|
+
plain: designProperty.value.plain,
|
|
27
27
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
|
|
28
28
|
}, {
|
|
29
29
|
default: withCtx(() => [
|
|
30
|
-
|
|
31
|
-
createTextVNode(toDisplayString(
|
|
32
|
-
|
|
30
|
+
designProperty.value.title && designProperty.value.iconPosition == "right" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
31
|
+
createTextVNode(toDisplayString(designProperty.value.title) + " ", 1),
|
|
32
|
+
designProperty.value.iconValue ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
33
33
|
createTextVNode(" ")
|
|
34
34
|
], 64)) : createCommentVNode("", true)
|
|
35
35
|
], 64)) : createCommentVNode("", true),
|
|
36
|
-
|
|
36
|
+
designProperty.value.iconType && designProperty.value.iconValue ? (openBlock(), createBlock(unref(SuperIcon), {
|
|
37
37
|
key: 1,
|
|
38
|
-
iconType:
|
|
39
|
-
iconValue:
|
|
38
|
+
iconType: designProperty.value.iconType,
|
|
39
|
+
iconValue: designProperty.value.iconValue
|
|
40
40
|
}, null, 8, ["iconType", "iconValue"])) : createCommentVNode("", true),
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
designProperty.value.title && designProperty.value.iconPosition != "right" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
42
|
+
designProperty.value.iconValue ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
43
43
|
createTextVNode(" ")
|
|
44
44
|
], 64)) : createCommentVNode("", true),
|
|
45
|
-
createTextVNode(" " + toDisplayString(
|
|
45
|
+
createTextVNode(" " + toDisplayString(designProperty.value.title), 1)
|
|
46
46
|
], 64)) : createCommentVNode("", true)
|
|
47
47
|
]),
|
|
48
48
|
_: 1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { ArrowDown } from "@element-plus/icons-vue";
|
|
3
3
|
import { formatVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
@@ -14,14 +14,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
15
15
|
const runtimeStyle = runtimeInfo.style;
|
|
16
16
|
const runtimeClass = runtimeInfo.class;
|
|
17
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
17
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
18
18
|
let listOptions = null;
|
|
19
19
|
const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
|
|
20
20
|
const valueType = dataOrigin.optionValueSetType;
|
|
21
21
|
if (valueType == "variable") {
|
|
22
22
|
listOptions = computed(() => {
|
|
23
23
|
let options;
|
|
24
|
-
const menuValues = formatVariableValue(props.pageContext, designProperty.menuField);
|
|
24
|
+
const menuValues = formatVariableValue(props.pageContext, designProperty.value.menuField);
|
|
25
25
|
if (menuValues && Array.isArray(menuValues)) {
|
|
26
26
|
options = menuValues;
|
|
27
27
|
for (let i = 0; i < options.length; i++) {
|
|
@@ -43,7 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43
43
|
return options;
|
|
44
44
|
});
|
|
45
45
|
} else {
|
|
46
|
-
listOptions = ref(designProperty.options ? designProperty.options : []);
|
|
46
|
+
listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
|
|
47
47
|
}
|
|
48
48
|
return (_ctx, _cache) => {
|
|
49
49
|
const _component_el_button = resolveComponent("el-button");
|
|
@@ -55,12 +55,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
55
55
|
return openBlock(), createBlock(_component_el_dropdown, {
|
|
56
56
|
class: normalizeClass(unref(runtimeClass)),
|
|
57
57
|
style: normalizeStyle(unref(runtimeStyle)),
|
|
58
|
-
placement:
|
|
59
|
-
"split-button":
|
|
60
|
-
disabled:
|
|
61
|
-
type:
|
|
62
|
-
size:
|
|
63
|
-
trigger:
|
|
58
|
+
placement: designProperty.value.placement,
|
|
59
|
+
"split-button": designProperty.value.splitButton,
|
|
60
|
+
disabled: designProperty.value.state === "disabled",
|
|
61
|
+
type: designProperty.value.buttonType,
|
|
62
|
+
size: designProperty.value.size,
|
|
63
|
+
trigger: designProperty.value.trigger
|
|
64
64
|
}, {
|
|
65
65
|
dropdown: withCtx(() => [
|
|
66
66
|
createVNode(_component_el_dropdown_menu, null, {
|
|
@@ -81,21 +81,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
81
|
})
|
|
82
82
|
]),
|
|
83
83
|
default: withCtx(() => [
|
|
84
|
-
|
|
85
|
-
!
|
|
84
|
+
designProperty.value.triggerElement === "button" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
85
|
+
!designProperty.value.splitButton ? (openBlock(), createBlock(_component_el_button, {
|
|
86
86
|
key: 0,
|
|
87
|
-
size:
|
|
88
|
-
type:
|
|
87
|
+
size: designProperty.value.size,
|
|
88
|
+
type: designProperty.value.buttonType,
|
|
89
89
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "menuClick"))
|
|
90
90
|
}, {
|
|
91
91
|
default: withCtx(() => [
|
|
92
|
-
createTextVNode(toDisplayString(
|
|
92
|
+
createTextVNode(toDisplayString(designProperty.value.title), 1)
|
|
93
93
|
]),
|
|
94
94
|
_: 1
|
|
95
|
-
}, 8, ["size", "type"])) : (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(
|
|
95
|
+
}, 8, ["size", "type"])) : (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(designProperty.value.title), 1))
|
|
96
96
|
], 64)) : (openBlock(), createBlock(_component_el_text, { key: 1 }, {
|
|
97
97
|
default: withCtx(() => [
|
|
98
|
-
createTextVNode(toDisplayString(
|
|
98
|
+
createTextVNode(toDisplayString(designProperty.value.title) + " ", 1),
|
|
99
99
|
createVNode(_component_el_icon, null, {
|
|
100
100
|
default: withCtx(() => [
|
|
101
101
|
createVNode(unref(ArrowDown))
|
|
@@ -8,8 +8,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
8
8
|
default: any;
|
|
9
9
|
};
|
|
10
10
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
-
close: (...args: any[]) => void;
|
|
12
11
|
result: (...args: any[]) => void;
|
|
12
|
+
close: (...args: any[]) => void;
|
|
13
13
|
open: (...args: any[]) => void;
|
|
14
14
|
opend: (...args: any[]) => void;
|
|
15
15
|
closed: (...args: any[]) => void;
|
|
@@ -4,8 +4,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
4
4
|
default: any;
|
|
5
5
|
};
|
|
6
6
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
-
close: (...args: any[]) => void;
|
|
8
7
|
result: (...args: any[]) => void;
|
|
8
|
+
close: (...args: any[]) => void;
|
|
9
9
|
open: (...args: any[]) => void;
|
|
10
10
|
opend: (...args: any[]) => void;
|
|
11
11
|
closed: (...args: any[]) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, resolveComponent, openBlock, createBlock,
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, normalizeStyle, unref, normalizeClass, withCtx, createElementBlock, Fragment, renderList } from "vue";
|
|
2
2
|
import _sfc_main$1 from "../../object-render.vue.js";
|
|
3
3
|
import "../../../../utils/global-refs.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -13,15 +13,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
14
14
|
const runtimeStyle = runtimeInfo.style;
|
|
15
15
|
const runtimeClass = runtimeInfo.class;
|
|
16
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
16
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
17
17
|
return (_ctx, _cache) => {
|
|
18
18
|
const _component_el_row = resolveComponent("el-row");
|
|
19
19
|
return openBlock(), createBlock(_component_el_row, {
|
|
20
20
|
ref_key: "thisRef",
|
|
21
21
|
ref: thisRef,
|
|
22
|
-
justify:
|
|
23
|
-
gutter:
|
|
24
|
-
align:
|
|
22
|
+
justify: designProperty.value.flexJustify,
|
|
23
|
+
gutter: designProperty.value.flexGutter,
|
|
24
|
+
align: designProperty.value.alignItems,
|
|
25
25
|
style: normalizeStyle(unref(runtimeStyle)),
|
|
26
26
|
class: normalizeClass(unref(runtimeClass))
|
|
27
27
|
}, {
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, onMounted, watch, onUnmounted, resolveComponent,
|
|
|
2
2
|
import "agilebuilder-ui";
|
|
3
3
|
import { setTableEvents, getEventFuncByType, canExecuteButton, doAfterClickEvent, doBeforeClickEvent, getHandleEvent, gridSelectRecord, gridSelectAllRecords, gridSelectionChange, cellClick, cellDblClick, rowClick, rowDblClick, headerClick } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import { getListCode, getRealRestApiPath } from "../../../../utils/common-util.js";
|
|
5
|
-
import { getSaveFormRequest, standardEvents } from "../../../../utils/events/standard-event.js";
|
|
5
|
+
import { getAdditionalParamMap, getSaveFormRequest, standardEvents } from "../../../../utils/events/standard-event.js";
|
|
6
6
|
import { isPromise } from "agilebuilder-ui/src/utils/common-util";
|
|
7
7
|
import { getDataTypeMap, popupToPage } from "../../../../utils/table-utils.js";
|
|
8
8
|
import eventBus from "../../../../utils/eventBus.js";
|
|
@@ -19,7 +19,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
19
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
20
20
|
const runtimeStyle = runtimeInfo.style;
|
|
21
21
|
const runtimeClass = runtimeInfo.class;
|
|
22
|
-
const
|
|
22
|
+
const systemCode = pageContext.systemCode;
|
|
23
|
+
const backendUrl = pageContext.backendUrl;
|
|
23
24
|
const tableName = pageContext.tableName;
|
|
24
25
|
const baseURL = window["$vueApp"].config.globalProperties.baseURL;
|
|
25
26
|
const operationButtonObj = ref(null);
|
|
@@ -27,7 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
28
|
const listOptions = ref({});
|
|
28
29
|
listOptions.value = getOptions();
|
|
29
30
|
const gridRef = ref(null);
|
|
30
|
-
const urlToListData = getUrlToListData(
|
|
31
|
+
const urlToListData = getUrlToListData();
|
|
31
32
|
const listCode = getListCode(pageContext.code, pageContext.version, configure.uuid);
|
|
32
33
|
const myPageCode = pageContext.code;
|
|
33
34
|
const eventPageInfo = myPageCode + "_" + listCode;
|
|
@@ -75,19 +76,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
75
76
|
eventBus.$off(eventPageInfo + "-close-component-page-dialog");
|
|
76
77
|
eventBus.$off(eventPageInfo + "_close-dialog-get-entity");
|
|
77
78
|
});
|
|
78
|
-
function getUrlToListData(
|
|
79
|
+
function getUrlToListData() {
|
|
79
80
|
let urlToListData2;
|
|
80
81
|
if (!pageContext.isTest) {
|
|
81
82
|
urlToListData2 = baseURL + "/dsc/commons/list";
|
|
82
83
|
if (urlToListData2) {
|
|
83
|
-
urlToListData2 = getRealRestApiPath(urlToListData2,
|
|
84
|
+
urlToListData2 = getRealRestApiPath(urlToListData2, systemCode, backendUrl);
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
return urlToListData2;
|
|
87
88
|
}
|
|
88
89
|
function getOptions() {
|
|
89
|
-
const
|
|
90
|
-
const permissionPrefix =
|
|
90
|
+
const systemCode2 = pageContext.systemCode;
|
|
91
|
+
const permissionPrefix = systemCode2 + "." + pageContext.code;
|
|
91
92
|
let initSearchForm = configure.props && configure.props.dataOrigin ? configure.props.dataOrigin.sqlFilterCondition : null;
|
|
92
93
|
if (typeof initSearchForm === "undefined" || initSearchForm === null) {
|
|
93
94
|
initSearchForm = [];
|
|
@@ -98,7 +99,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
98
99
|
beanName: pageContext.beanName,
|
|
99
100
|
functionCode: permissionPrefix + ".list",
|
|
100
101
|
tableName,
|
|
101
|
-
systemCode:
|
|
102
|
+
systemCode: systemCode2
|
|
102
103
|
// 系统编码传给列表数据后台请求
|
|
103
104
|
},
|
|
104
105
|
initSearchForm,
|
|
@@ -115,14 +116,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
115
116
|
pageCode: pageContext.code,
|
|
116
117
|
pageVersion: pageContext.version,
|
|
117
118
|
// pageHeight: pageHeight, // 页面的高度 //TODO: pageHeight如何获得,页面高度,计算列表高度应该会用
|
|
118
|
-
additionalParamMap: pageContext
|
|
119
|
+
additionalParamMap: getAdditionalParamMap(pageContext),
|
|
119
120
|
// 将路由参数传给列表组件
|
|
120
121
|
showOverflowTooltip: !!(configure.props && configure.props.otherSettings && (configure.props.otherSettings.isBreakLine === void 0 || configure.props.otherSettings.isBreakLine === false)),
|
|
121
122
|
// 单元格内容是否换行显示
|
|
122
123
|
isEnableEnterEvent: configure.props && configure.props.otherSettings && configure.props.otherSettings.isEnableEnterEvent,
|
|
123
124
|
// 是否启用回车事件
|
|
124
|
-
// 当前系统,表示是当前的自定义系统信息
|
|
125
|
-
system: system2,
|
|
126
125
|
isWithDataPermission: configure.props && configure.props.otherSettings && configure.props.otherSettings.isWithDataPermission ? configure.props.otherSettings.isWithDataPermission : false,
|
|
127
126
|
pageDevMode: false,
|
|
128
127
|
isWorkflowEntity: pageContext.workflowCode ? true : false,
|
|
@@ -150,10 +149,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
150
149
|
}
|
|
151
150
|
}
|
|
152
151
|
function myGetDataTypeMap(options) {
|
|
153
|
-
if (!
|
|
152
|
+
if (!backendUrl && !tableName) {
|
|
154
153
|
return;
|
|
155
154
|
}
|
|
156
|
-
getDataTypeMap(
|
|
155
|
+
getDataTypeMap(backendUrl, tableName).then((result) => {
|
|
157
156
|
pageContext["dataTypeMaps"][tableName] = result["dataTypeMap"];
|
|
158
157
|
setOperationButtons(options);
|
|
159
158
|
});
|
|
@@ -5,6 +5,7 @@ import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
|
5
5
|
import eventBus from "../../../../utils/eventBus.js";
|
|
6
6
|
import { popupToPage } from "../../../../utils/table-utils.js";
|
|
7
7
|
import { getListCode } from "../../../../utils/common-util.js";
|
|
8
|
+
import { getAdditionalParamMap } from "../../../../utils/events/standard-event.js";
|
|
8
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
10
|
__name: "sub-table-runtime",
|
|
10
11
|
props: {
|
|
@@ -17,7 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
18
|
const configure = props.configure;
|
|
18
19
|
const dataModel = pageContext.entity.data;
|
|
19
20
|
const prop = configure.props && configure.props.base ? configure.props.base.prop : null;
|
|
20
|
-
const additionalParamMap = pageContext
|
|
21
|
+
const additionalParamMap = getAdditionalParamMap(pageContext);
|
|
21
22
|
const tableEvents = configure.runtime && configure.runtime.events ? configure.runtime.events : [];
|
|
22
23
|
const selections = ref([]);
|
|
23
24
|
const superGridItems = pageContext.superGridItems;
|
|
@@ -24,8 +24,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
const runtimeStyle = runtimeInfo.style;
|
|
25
25
|
const runtimeClass = runtimeInfo.class;
|
|
26
26
|
const headerStyle = runtimeInfo.headerStyle;
|
|
27
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
28
|
-
const listOptions = ref(designProperty.options ? designProperty.options : []);
|
|
27
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
28
|
+
const listOptions = ref(designProperty.value.options ? designProperty.value.options : []);
|
|
29
29
|
const cacheOptions = getOptionDatasFromPage(props.pageContext, props.configure);
|
|
30
30
|
if (cacheOptions.length > 0) {
|
|
31
31
|
listOptions.value = cacheOptions;
|
|
@@ -48,14 +48,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
48
|
target: props.configure.props.base.optionProp
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
designProperty.changeMethod = optionChange;
|
|
52
|
-
const optionconfigInfo = designProperty.optionconfigInfo ? designProperty.optionconfigInfo : {};
|
|
51
|
+
designProperty.value.changeMethod = optionChange;
|
|
52
|
+
const optionconfigInfo = designProperty.value.optionconfigInfo ? designProperty.value.optionconfigInfo : {};
|
|
53
53
|
function refreshOptions() {
|
|
54
54
|
queryOptionDatasources(props.pageContext, optionconfigInfo, void 0).then((result) => {
|
|
55
55
|
console.log("动态查询结果", result);
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
const monitorFields = designProperty.monitorFields;
|
|
58
|
+
const monitorFields = designProperty.value.monitorFields;
|
|
59
59
|
monitorFieldChange(props.pageContext, monitorFields, refreshOptions);
|
|
60
60
|
function optionChange(value) {
|
|
61
61
|
if (autoSets.length > -1) {
|
|
@@ -81,20 +81,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
81
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
82
82
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
83
83
|
class: normalizeClass(unref(runtimeClass)),
|
|
84
|
-
"label-width":
|
|
84
|
+
"label-width": designProperty.value.labelWidth,
|
|
85
85
|
style: normalizeStyle(unref(runtimeStyle))
|
|
86
86
|
}, {
|
|
87
87
|
label: withCtx(() => [
|
|
88
|
-
|
|
88
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
89
89
|
key: 0,
|
|
90
90
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
91
|
-
}, toDisplayString(
|
|
91
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
92
92
|
]),
|
|
93
93
|
default: withCtx(() => [
|
|
94
94
|
createVNode(_component_el_checkbox_group, {
|
|
95
|
-
disabled:
|
|
96
|
-
size:
|
|
97
|
-
onChange:
|
|
95
|
+
disabled: designProperty.value.state === "disabled",
|
|
96
|
+
size: designProperty.value.size,
|
|
97
|
+
onChange: designProperty.value.changeMethod,
|
|
98
98
|
modelValue: dynamicModelMethod.value,
|
|
99
99
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event)
|
|
100
100
|
}, {
|
package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock,
|
|
1
|
+
import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleEvent } from "../../../../utils/events/event-util.js";
|
|
@@ -24,40 +24,40 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
const runtimeStyle = runtimeInfo.style;
|
|
25
25
|
const runtimeClass = runtimeInfo.class;
|
|
26
26
|
const headerStyle = runtimeInfo.headerStyle;
|
|
27
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
27
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
28
28
|
return (_ctx, _cache) => {
|
|
29
29
|
const _component_el_time_picker = resolveComponent("el-time-picker");
|
|
30
30
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
31
31
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
32
32
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
33
|
-
required:
|
|
33
|
+
required: designProperty.value.required,
|
|
34
34
|
class: normalizeClass(unref(runtimeClass)),
|
|
35
|
-
"label-width":
|
|
35
|
+
"label-width": designProperty.value.labelWidth,
|
|
36
36
|
style: normalizeStyle(unref(runtimeStyle))
|
|
37
37
|
}, {
|
|
38
38
|
label: withCtx(() => [
|
|
39
|
-
|
|
39
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
40
40
|
key: 0,
|
|
41
41
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
42
|
-
}, toDisplayString(
|
|
42
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
43
43
|
]),
|
|
44
44
|
default: withCtx(() => [
|
|
45
|
-
|
|
45
|
+
designProperty.value.dateType == "time" || designProperty.value.dateType == "timerange" ? (openBlock(), createBlock(_component_el_time_picker, {
|
|
46
46
|
key: 0,
|
|
47
|
-
"is-range":
|
|
47
|
+
"is-range": designProperty.value.dateType == "timerange",
|
|
48
48
|
"range-separator": "-",
|
|
49
|
-
clearable:
|
|
50
|
-
disabled:
|
|
51
|
-
readonly:
|
|
52
|
-
size:
|
|
53
|
-
placeholder:
|
|
54
|
-
"start-placeholder":
|
|
55
|
-
"end-placeholder":
|
|
56
|
-
format:
|
|
49
|
+
clearable: designProperty.value.clearable,
|
|
50
|
+
disabled: designProperty.value.state === "disabled",
|
|
51
|
+
readonly: designProperty.value.state === "readonly",
|
|
52
|
+
size: designProperty.value.size,
|
|
53
|
+
placeholder: designProperty.value.placeholder,
|
|
54
|
+
"start-placeholder": designProperty.value.placeholder,
|
|
55
|
+
"end-placeholder": designProperty.value.endPlaceholder,
|
|
56
|
+
format: designProperty.value.format,
|
|
57
57
|
modelValue: dynamicModelMethod.value,
|
|
58
58
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => dynamicModelMethod.value = $event),
|
|
59
|
-
shortcuts:
|
|
60
|
-
type:
|
|
59
|
+
shortcuts: designProperty.value.shortcuts,
|
|
60
|
+
type: designProperty.value.dateType,
|
|
61
61
|
onChange: _cache[1] || (_cache[1] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
62
62
|
onBlur: _cache[2] || (_cache[2] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
63
63
|
onFocus: _cache[3] || (_cache[3] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
@@ -66,18 +66,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66
66
|
onPanelChange: _cache[6] || (_cache[6] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "panel-change"))
|
|
67
67
|
}, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "modelValue", "shortcuts", "type"])) : (openBlock(), createBlock(_component_el_date_picker, {
|
|
68
68
|
key: 1,
|
|
69
|
-
clearable:
|
|
70
|
-
disabled:
|
|
71
|
-
readonly:
|
|
72
|
-
size:
|
|
73
|
-
placeholder:
|
|
74
|
-
"start-placeholder":
|
|
75
|
-
"end-placeholder":
|
|
76
|
-
format:
|
|
69
|
+
clearable: designProperty.value.clearable,
|
|
70
|
+
disabled: designProperty.value.state === "disabled",
|
|
71
|
+
readonly: designProperty.value.state === "readonly",
|
|
72
|
+
size: designProperty.value.size,
|
|
73
|
+
placeholder: designProperty.value.placeholder,
|
|
74
|
+
"start-placeholder": designProperty.value.placeholder,
|
|
75
|
+
"end-placeholder": designProperty.value.endPlaceholder,
|
|
76
|
+
format: designProperty.value.format,
|
|
77
77
|
modelValue: dynamicModelMethod.value,
|
|
78
78
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => dynamicModelMethod.value = $event),
|
|
79
|
-
shortcuts:
|
|
80
|
-
type:
|
|
79
|
+
shortcuts: designProperty.value.shortcuts,
|
|
80
|
+
type: designProperty.value.dateType,
|
|
81
81
|
onChange: _cache[8] || (_cache[8] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "change")),
|
|
82
82
|
onBlur: _cache[9] || (_cache[9] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "blur")),
|
|
83
83
|
onFocus: _cache[10] || (_cache[10] = ($event) => unref(handleEvent)($event, _ctx.pageContext, _ctx.configure, "focus")),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createBlock,
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
2
2
|
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import "agilebuilder-ui/src/utils/request";
|
|
4
4
|
import "dayjs";
|
|
@@ -21,11 +21,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
let dynamicFields = getFormModelFields(props.pageContext, props.configure);
|
|
22
22
|
const fieldName = dynamicFields.length > 0 ? dynamicFields[dynamicFields.length - 1] : props.configure.uuid;
|
|
23
23
|
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
24
|
-
const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
|
|
24
|
+
const designProperty = ref(runtimeInfo.props ? runtimeInfo.props : {});
|
|
25
25
|
const runtimeStyle = runtimeInfo.style;
|
|
26
26
|
const runtimeClass = runtimeInfo.class;
|
|
27
27
|
const headerStyle = runtimeInfo.headerStyle;
|
|
28
|
-
const autoSetFields = designProperty.autoSetFields ? designProperty.autoSetFields : [];
|
|
28
|
+
const autoSetFields = designProperty.value.autoSetFields ? designProperty.value.autoSetFields : [];
|
|
29
29
|
function changeValue(value) {
|
|
30
30
|
handleEvent(value, props.pageContext, props.configure, "change");
|
|
31
31
|
}
|
|
@@ -36,29 +36,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
const _component_OrganizationInput = resolveComponent("OrganizationInput");
|
|
37
37
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
38
38
|
return openBlock(), createBlock(_component_el_form_item, {
|
|
39
|
-
required:
|
|
39
|
+
required: designProperty.value.required,
|
|
40
40
|
class: normalizeClass(unref(runtimeClass)),
|
|
41
|
-
"label-width":
|
|
41
|
+
"label-width": designProperty.value.labelWidth,
|
|
42
42
|
style: normalizeStyle(unref(runtimeStyle))
|
|
43
43
|
}, {
|
|
44
44
|
label: withCtx(() => [
|
|
45
|
-
|
|
45
|
+
designProperty.value.tittleShow ? (openBlock(), createElementBlock("div", {
|
|
46
46
|
key: 0,
|
|
47
47
|
style: normalizeStyle({ ...unref(headerStyle) })
|
|
48
|
-
}, toDisplayString(
|
|
48
|
+
}, toDisplayString(designProperty.value.title), 5)) : createCommentVNode("", true)
|
|
49
49
|
]),
|
|
50
50
|
default: withCtx(() => [
|
|
51
51
|
createVNode(_component_OrganizationInput, {
|
|
52
|
-
disabled:
|
|
53
|
-
multiple:
|
|
54
|
-
treeType:
|
|
52
|
+
disabled: designProperty.value.state == "disabled",
|
|
53
|
+
multiple: designProperty.value.multiple,
|
|
54
|
+
treeType: designProperty.value.treeType,
|
|
55
55
|
modelValue: unref(dataModel)[unref(fieldName)],
|
|
56
56
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(dataModel)[unref(fieldName)] = $event),
|
|
57
57
|
models: unref(dataModel),
|
|
58
58
|
fields: unref(autoSetFields),
|
|
59
|
-
size:
|
|
59
|
+
size: designProperty.value.size,
|
|
60
60
|
placeholder: "请选择",
|
|
61
|
-
separator:
|
|
61
|
+
separator: designProperty.value.separator,
|
|
62
62
|
onChange: changeValue,
|
|
63
63
|
onShowTree: showTree
|
|
64
64
|
}, null, 8, ["disabled", "multiple", "treeType", "modelValue", "models", "fields", "size", "separator"])
|