super-page-runtime 1.0.16 → 1.0.17
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/package.json +5 -1
- package/.eslintrc.cjs +0 -26
- package/.prettierrc.json +0 -8
- package/App.vue +0 -9
- package/components/index.ts +0 -17
- package/components/runtime/index.ts +0 -2
- package/components/runtime/utils/assemblys-config.js +0 -294
- package/components/runtime/views/assemblys/button/button/button-runtime.vue +0 -49
- package/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue +0 -26
- package/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue +0 -93
- package/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue +0 -59
- package/components/runtime/views/assemblys/chart/common/common-attr-assistant.vue +0 -32
- package/components/runtime/views/assemblys/chart/common/common-attr-base.vue +0 -60
- package/components/runtime/views/assemblys/chart/common/common-attr-drill.vue +0 -39
- package/components/runtime/views/assemblys/chart/common/common-attr-groupby.vue +0 -104
- package/components/runtime/views/assemblys/chart/common/common-attr-serieslist.vue +0 -145
- package/components/runtime/views/assemblys/chart/common/common-attr-sortby.vue +0 -119
- package/components/runtime/views/assemblys/chart/common/common-style-custom.vue +0 -28
- package/components/runtime/views/assemblys/chart/common/common-style-datazoom.vue +0 -45
- package/components/runtime/views/assemblys/chart/common/common-style-font-subtitle.vue +0 -78
- package/components/runtime/views/assemblys/chart/common/common-style-font-title.vue +0 -56
- package/components/runtime/views/assemblys/chart/common/common-style-grid.vue +0 -70
- package/components/runtime/views/assemblys/chart/common/common-style-legend.vue +0 -70
- package/components/runtime/views/assemblys/chart/common/common-style-tooltip.vue +0 -140
- package/components/runtime/views/assemblys/chart/common/common-style-xaxis.vue +0 -58
- package/components/runtime/views/assemblys/chart/common/common-style-yaxis.vue +0 -125
- package/components/runtime/views/assemblys/chart/common-series/common-attr-dataset.vue +0 -67
- package/components/runtime/views/assemblys/chart/common-series/common-attr-dynamic.vue +0 -57
- package/components/runtime/views/assemblys/chart/common-series/common-attr-testdatas.vue +0 -23
- package/components/runtime/views/assemblys/chart/common-series/common-style-label.vue +0 -209
- package/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue +0 -46
- package/components/runtime/views/assemblys/chart/pie/pie-runtime.vue +0 -56
- package/components/runtime/views/assemblys/chart/radar/radar-runtime.vue +0 -55
- package/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue +0 -57
- package/components/runtime/views/assemblys/common/common-attr-cursor.vue +0 -23
- package/components/runtime/views/assemblys/common/common-attr-size.vue +0 -54
- package/components/runtime/views/assemblys/common/common-select-table.vue +0 -287
- package/components/runtime/views/assemblys/common/common-style-background.vue +0 -46
- package/components/runtime/views/assemblys/common/common-style-border.vue +0 -37
- package/components/runtime/views/assemblys/common/common-style-custom.vue +0 -35
- package/components/runtime/views/assemblys/common/common-style-font-head.vue +0 -53
- package/components/runtime/views/assemblys/common/common-style-font.vue +0 -53
- package/components/runtime/views/assemblys/common/common-style-margin.vue +0 -34
- package/components/runtime/views/assemblys/common/common-style-padding.vue +0 -34
- package/components/runtime/views/assemblys/common/common-style-position.vue +0 -39
- package/components/runtime/views/assemblys/common/common-style-shadow.vue +0 -37
- package/components/runtime/views/assemblys/common/export-form-report-dialog.vue +0 -108
- package/components/runtime/views/assemblys/common/remove-signer-dialog.vue +0 -99
- package/components/runtime/views/assemblys/common/task-informition-dialog.vue +0 -69
- package/components/runtime/views/assemblys/common-attr-events.vue +0 -46
- package/components/runtime/views/assemblys/container/card/card-runtime.vue +0 -59
- package/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue +0 -59
- package/components/runtime/views/assemblys/container/container/container-runtime.vue +0 -41
- package/components/runtime/views/assemblys/container/flex/flex-runtime.vue +0 -35
- package/components/runtime/views/assemblys/container/form/form-runtime.vue +0 -37
- package/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue +0 -32
- package/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue +0 -54
- package/components/runtime/views/assemblys/container/tools/tools-runtime.vue +0 -99
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-base.vue +0 -117
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr-style.vue +0 -25
- package/components/runtime/views/assemblys/data/bar-code/barcode-attr.vue +0 -28
- package/components/runtime/views/assemblys/data/bar-code/barcode-design.vue +0 -103
- package/components/runtime/views/assemblys/data/component/attr-header.vue +0 -69
- package/components/runtime/views/assemblys/data/component/attr-style.vue +0 -64
- package/components/runtime/views/assemblys/data/component/column-config.vue +0 -171
- package/components/runtime/views/assemblys/data/component/combinedHeader.vue +0 -96
- package/components/runtime/views/assemblys/data/component/composite-header.vue +0 -257
- package/components/runtime/views/assemblys/data/component/configuration-value.vue +0 -206
- package/components/runtime/views/assemblys/data/component/data-origin-tree.vue +0 -117
- package/components/runtime/views/assemblys/data/component/data-origin.vue +0 -260
- package/components/runtime/views/assemblys/data/component/formatting.vue +0 -200
- package/components/runtime/views/assemblys/data/component/in-parameter.vue +0 -56
- package/components/runtime/views/assemblys/data/component/querySetting.vue +0 -52
- package/components/runtime/views/assemblys/data/component/return-set-table.vue +0 -91
- package/components/runtime/views/assemblys/data/component/row-backgroud-color.vue +0 -58
- package/components/runtime/views/assemblys/data/component/select-data-table.vue +0 -86
- package/components/runtime/views/assemblys/data/table/main-table-runtime.vue +0 -858
- package/components/runtime/views/assemblys/data/table/sub-table-runtime.vue +0 -625
- package/components/runtime/views/assemblys/data/table/table-runtime.vue +0 -93
- package/components/runtime/views/assemblys/data/tree/tree-attr-base.vue +0 -137
- package/components/runtime/views/assemblys/data/tree/tree-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/data/tree/tree-attr-style.vue +0 -55
- package/components/runtime/views/assemblys/data/tree/tree-attr.vue +0 -28
- package/components/runtime/views/assemblys/data/tree/tree-design.vue +0 -125
- package/components/runtime/views/assemblys/error-attr.vue +0 -15
- package/components/runtime/views/assemblys/error-render.vue +0 -17
- package/components/runtime/views/assemblys/form/cascader/cascader-design.vue +0 -288
- package/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue +0 -198
- package/components/runtime/views/assemblys/form/colors/colors-design.vue +0 -16
- package/components/runtime/views/assemblys/form/common/analytic-rule.vue +0 -148
- package/components/runtime/views/assemblys/form/common/attr-event.vue +0 -82
- package/components/runtime/views/assemblys/form/common/attr-header.vue +0 -54
- package/components/runtime/views/assemblys/form/common/attr-style.vue +0 -44
- package/components/runtime/views/assemblys/form/common/bar-code-rule.vue +0 -104
- package/components/runtime/views/assemblys/form/common/condition.vue +0 -147
- package/components/runtime/views/assemblys/form/common/data-origin.vue +0 -81
- package/components/runtime/views/assemblys/form/common/data-orign-in-parameter.vue +0 -64
- package/components/runtime/views/assemblys/form/common/dataorigin-input-table.vue +0 -106
- package/components/runtime/views/assemblys/form/common/default-value-setting.vue +0 -362
- package/components/runtime/views/assemblys/form/common/dimension-input.vue +0 -68
- package/components/runtime/views/assemblys/form/common/dynamic-data-source-setting.vue +0 -115
- package/components/runtime/views/assemblys/form/common/formatting-label.vue +0 -81
- package/components/runtime/views/assemblys/form/common/grid-num-select.vue +0 -43
- package/components/runtime/views/assemblys/form/common/icon-set-dialog.vue +0 -144
- package/components/runtime/views/assemblys/form/common/linkage.vue +0 -21
- package/components/runtime/views/assemblys/form/common/overall-height.vue +0 -20
- package/components/runtime/views/assemblys/form/common/overall-width.vue +0 -48
- package/components/runtime/views/assemblys/form/common/pre-suffix.vue +0 -33
- package/components/runtime/views/assemblys/form/common/rich-text.vue +0 -100
- package/components/runtime/views/assemblys/form/common/row-ul-li.vue +0 -55
- package/components/runtime/views/assemblys/form/common/setoption-table.vue +0 -86
- package/components/runtime/views/assemblys/form/common/size-input.vue +0 -65
- package/components/runtime/views/assemblys/form/common/suffixmodule.vue +0 -82
- package/components/runtime/views/assemblys/form/common/title.vue +0 -20
- package/components/runtime/views/assemblys/form/common/uploading.vue +0 -34
- package/components/runtime/views/assemblys/form/common/verification.vue +0 -79
- package/components/runtime/views/assemblys/form/common/voluntarily.vue +0 -27
- package/components/runtime/views/assemblys/form/custom/custom-attr-base.vue +0 -81
- package/components/runtime/views/assemblys/form/custom/custom-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/form/custom/custom-attr-style.vue +0 -14
- package/components/runtime/views/assemblys/form/custom/custom-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/custom/custom-design.vue +0 -57
- package/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue +0 -80
- package/components/runtime/views/assemblys/form/datetime/datetime-design.vue +0 -19
- package/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue +0 -60
- package/components/runtime/views/assemblys/form/divider/divider-runtime.vue +0 -44
- package/components/runtime/views/assemblys/form/file-picture/picture-design.vue +0 -80
- package/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue +0 -79
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-base.vue +0 -142
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr-style.vue +0 -14
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/image-thumbnail/imagethumbnail-design.vue +0 -104
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-base.vue +0 -75
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-event.vue +0 -13
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr-style.vue +0 -14
- package/components/runtime/views/assemblys/form/image-upload/imageupload-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/image-upload/imageupload-design.vue +0 -76
- package/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue +0 -62
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-base.vue +0 -68
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/form/input-show/input-show-attr-style.vue +0 -70
- package/components/runtime/views/assemblys/form/input-show/input-show-attr.vue +0 -28
- package/components/runtime/views/assemblys/form/input-show/input-show-design.vue +0 -155
- package/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue +0 -142
- package/components/runtime/views/assemblys/form/label/label-runtime.vue +0 -143
- package/components/runtime/views/assemblys/form/link/link-runtime.vue +0 -70
- package/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue +0 -24
- package/components/runtime/views/assemblys/form/radio/radio-runtime.vue +0 -203
- package/components/runtime/views/assemblys/form/rate/rate-design.vue +0 -16
- package/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue +0 -169
- package/components/runtime/views/assemblys/form/select/select-runtime.vue +0 -247
- package/components/runtime/views/assemblys/form/slider/slider-design.vue +0 -16
- package/components/runtime/views/assemblys/form/switch/switch-runtime.vue +0 -63
- package/components/runtime/views/assemblys/form/tag/tag-runtime.vue +0 -65
- package/components/runtime/views/assemblys/form/text/text-design.vue +0 -19
- package/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue +0 -63
- package/components/runtime/views/assemblys/form/transfer/transfer-design.vue +0 -32
- package/components/runtime/views/assemblys/object-render.vue +0 -176
- package/components/runtime/views/assemblys/page/page-attr-base-20240429-1.vue +0 -179
- package/components/runtime/views/assemblys/page/page-attr-base.vue +0 -259
- package/components/runtime/views/assemblys/page/page-attr-events.vue +0 -50
- package/components/runtime/views/assemblys/page/page-attr-style.vue +0 -25
- package/components/runtime/views/assemblys/page/page-attr.vue +0 -84
- package/components/runtime/views/assemblys/page/variable-dialog.vue +0 -242
- package/components/runtime/views/assemblys/workflow/component/combination.vue +0 -206
- package/components/runtime/views/assemblys/workflow/component/condition-dialog.vue +0 -99
- package/components/runtime/views/assemblys/workflow/component/event-dialog.vue +0 -278
- package/components/runtime/views/assemblys/workflow/component/journal-set-dialog.vue +0 -174
- package/components/runtime/views/assemblys/workflow/component/logical-setup-dialog.vue +0 -155
- package/components/runtime/views/assemblys/workflow/component/rule-dialog.vue +0 -47
- package/components/runtime/views/assemblys/workflow/component/set-dialog.vue +0 -130
- package/components/runtime/views/assemblys/workflow/component/task-trigger-dialog.vue +0 -96
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue +0 -43
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr-style.vue +0 -27
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-attr.vue +0 -28
- package/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-design.vue +0 -17
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-base.vue +0 -60
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-event.vue +0 -14
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr-style.vue +0 -27
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-attr.vue +0 -28
- package/components/runtime/views/assemblys/workflow/text-history/texthistory-design.vue +0 -17
- package/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue +0 -64
- package/components/runtime/views/render/page-view.vue +0 -80
- package/components/runtime/views/super-page copy.vue +0 -61
- package/components/runtime/views/super-page.vue +0 -667
- package/components/super-page-dialog/index.ts +0 -2
- package/components/super-page-dialog/super-page-dialog.vue +0 -267
- package/components/wf-editor/index.ts +0 -2
- package/components/wf-editor/wf-editor.vue +0 -15
- package/cypress/e2e/example.cy.ts +0 -8
- package/cypress/e2e/tsconfig.json +0 -10
- package/cypress/fixtures/example.json +0 -5
- package/cypress/support/commands.ts +0 -39
- package/cypress/support/e2e.ts +0 -20
- package/cypress.config.ts +0 -8
- package/env.d.ts +0 -1
- package/index.html +0 -13
- package/main.ts +0 -11
- package/package-ws.json +0 -70
- package/public/favicon.ico +0 -0
- package/tsconfig copy.json +0 -17
- package/tsconfig.app copy.json +0 -14
- package/tsconfig.app.json +0 -14
- package/tsconfig.json +0 -17
- package/tsconfig.node copy.json +0 -19
- package/tsconfig.node.json +0 -19
- package/tsconfig.vitest copy.json +0 -11
- package/tsconfig.vitest.json +0 -11
- package/vite.config copy.ts +0 -109
- package/vite.config.ts +0 -86
- package/vitest.config.ts +0 -14
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<el-dialog
|
|
4
|
-
model-value
|
|
5
|
-
title="Tips"
|
|
6
|
-
width="800"
|
|
7
|
-
:before-close="beforeClose"
|
|
8
|
-
>
|
|
9
|
-
<el-button type="primary" style="margin:8px 0">确定</el-button>
|
|
10
|
-
<el-table :data="tableData" style="width: 100%" @row-dblclick="handleCellEnter" @row-click="rowClick" :cell-style="columnbackgroundStyle">
|
|
11
|
-
<el-table-column type="index" label="序号" align="center" width="60" />
|
|
12
|
-
<el-table-column label="操作" align="center" width="160">
|
|
13
|
-
<template #default="scope">
|
|
14
|
-
<el-button type="primary" plain @click="add">添加</el-button>
|
|
15
|
-
<el-button type="danger" plain @click="remove(scope.row)">删除</el-button>
|
|
16
|
-
</template>
|
|
17
|
-
</el-table-column>
|
|
18
|
-
<el-table-column prop="address" align="center">
|
|
19
|
-
<template #header>
|
|
20
|
-
列名
|
|
21
|
-
<span style="color: red;">*</span>
|
|
22
|
-
</template>
|
|
23
|
-
<template #default="scope">
|
|
24
|
-
<el-input v-if="scope.row.isEdit" v-model="scope.row.columnName"/>
|
|
25
|
-
<span v-else>{{scope.row.columnName}}</span>
|
|
26
|
-
</template>
|
|
27
|
-
</el-table-column>
|
|
28
|
-
<el-table-column prop="address" label="变量名" align="center">
|
|
29
|
-
<template #default="scope">
|
|
30
|
-
<el-input v-if="scope.row.isEdit" v-model="scope.row.variableName"/>
|
|
31
|
-
<span v-else>{{scope.row.variableName}}</span>
|
|
32
|
-
</template>
|
|
33
|
-
</el-table-column>
|
|
34
|
-
<el-table-column prop="address" label="显示" align="center">
|
|
35
|
-
<template #default="scope">
|
|
36
|
-
<el-switch v-if="scope.row.isEdit" v-model="scope.row.show" />
|
|
37
|
-
<span v-else>{{scope.row.show}}</span>
|
|
38
|
-
</template>
|
|
39
|
-
</el-table-column>
|
|
40
|
-
<el-table-column prop="address" label="编辑组件" align="center">
|
|
41
|
-
<template #default="scope">
|
|
42
|
-
<el-select v-if="scope.row.isEdit" v-model="scope.row.moduleType" placeholder="请选择">
|
|
43
|
-
<el-option
|
|
44
|
-
v-for="item in getFormComponentOptions()"
|
|
45
|
-
:key="item.name"
|
|
46
|
-
:label="item.label"
|
|
47
|
-
:value="item.name"
|
|
48
|
-
/>
|
|
49
|
-
</el-select>
|
|
50
|
-
<span v-else>{{scope.row.moduleType}}</span>
|
|
51
|
-
</template>
|
|
52
|
-
</el-table-column>
|
|
53
|
-
<el-table-column prop="address" label="导出" align="center">
|
|
54
|
-
<template #default="scope">
|
|
55
|
-
<el-switch v-if="scope.row.isEdit" v-model="scope.row.export" />
|
|
56
|
-
<span v-else>{{scope.row.export}}</span>
|
|
57
|
-
</template>
|
|
58
|
-
</el-table-column>
|
|
59
|
-
<el-table-column prop="address" label="左右对齐" align="center">
|
|
60
|
-
<template #default="scope">
|
|
61
|
-
<el-select v-if="scope.row.isEdit" v-model="scope.row.align" placeholder="请选择">
|
|
62
|
-
<el-option label="靠左" value="left"/>
|
|
63
|
-
<el-option label="居中" value="center"/>
|
|
64
|
-
<el-option label="靠右" value="right"/>
|
|
65
|
-
</el-select>
|
|
66
|
-
<span v-else>{{scope.row.align}}</span>
|
|
67
|
-
</template>
|
|
68
|
-
</el-table-column>
|
|
69
|
-
<el-table-column prop="address" label="冻结" align="center">
|
|
70
|
-
<template #default="scope">
|
|
71
|
-
<el-select v-if="scope.row.isEdit" v-model="scope.row.disabled" placeholder="请选择">
|
|
72
|
-
<el-option label="是" :value="true"/>
|
|
73
|
-
<el-option label="否" :value="false"/>
|
|
74
|
-
</el-select>
|
|
75
|
-
<span v-else>{{scope.row.disabled}}</span>
|
|
76
|
-
</template>
|
|
77
|
-
</el-table-column>
|
|
78
|
-
</el-table>
|
|
79
|
-
<template #footer>
|
|
80
|
-
<div class="dialog-footer">
|
|
81
|
-
<el-button @click="$emit('close')">取消</el-button>
|
|
82
|
-
<el-button type="primary" @click="$emit('close')">确定</el-button>
|
|
83
|
-
</div>
|
|
84
|
-
</template>
|
|
85
|
-
</el-dialog>
|
|
86
|
-
</div>
|
|
87
|
-
</template>
|
|
88
|
-
<script lang='ts' setup>
|
|
89
|
-
import { getFormComponentOptions } from '../../../../utils/assemblys-config.js'
|
|
90
|
-
import { ref,confineProps } from 'vue';
|
|
91
|
-
// const props = defineProps({
|
|
92
|
-
// configure:Object
|
|
93
|
-
// });
|
|
94
|
-
|
|
95
|
-
const emit = defineEmits(['close'])
|
|
96
|
-
|
|
97
|
-
const tableData = ref([
|
|
98
|
-
{
|
|
99
|
-
columnName: 'columnName',
|
|
100
|
-
variableName: 'variableName',
|
|
101
|
-
moduleType:'1',
|
|
102
|
-
show: true,
|
|
103
|
-
export:false,
|
|
104
|
-
align:'center',
|
|
105
|
-
disabled:false
|
|
106
|
-
},
|
|
107
|
-
])
|
|
108
|
-
const modelDableData = ref([
|
|
109
|
-
{
|
|
110
|
-
date: '2016-05-03',
|
|
111
|
-
name: 'Tom',
|
|
112
|
-
address: 'No. 189, Grove St, Los Angeles',
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
date: '2016-05-02',
|
|
116
|
-
name: 'Tom',
|
|
117
|
-
address: 'No. 189, Grove St, Los Angeles',
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
date: '2016-05-04',
|
|
121
|
-
name: 'Tom',
|
|
122
|
-
address: 'No. 189, Grove St, Los Angeles',
|
|
123
|
-
}
|
|
124
|
-
])
|
|
125
|
-
|
|
126
|
-
function rowClick() {
|
|
127
|
-
tableData.value.forEach(item =>{
|
|
128
|
-
item['isEdit'] = false
|
|
129
|
-
})
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
function handleCellEnter(row:object) {
|
|
133
|
-
tableData.value.forEach(item =>{
|
|
134
|
-
item['isEdit'] = false
|
|
135
|
-
})
|
|
136
|
-
row.isEdit = true
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
function handleCellLeave(row:object) {
|
|
140
|
-
row.isEdit = false
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
function add() {
|
|
144
|
-
let obj = {
|
|
145
|
-
columnName: 'columnName',
|
|
146
|
-
variableName: '',
|
|
147
|
-
moduleType:'1',
|
|
148
|
-
show: true,
|
|
149
|
-
export:false,
|
|
150
|
-
align:'center',
|
|
151
|
-
disabled:false
|
|
152
|
-
}
|
|
153
|
-
tableData.value.push(obj)
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
function remove(row:object) {
|
|
157
|
-
tableData.value = tableData.value.filter(item => item != row)
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
function beforeClose() {
|
|
161
|
-
emit('close')
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
function columnbackgroundStyle({ row, column, rowIndex, columnIndex }){
|
|
165
|
-
if (row.isEdit){
|
|
166
|
-
return {background:'rgb(88, 147, 239,.4)',border:'none'}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
</script>
|
|
170
|
-
<style scoped>
|
|
171
|
-
</style>
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-collapse-item
|
|
3
|
-
title="导入配置"
|
|
4
|
-
name="combinedHeader"
|
|
5
|
-
class="amb-design-attr-group-header">
|
|
6
|
-
<div style="padding:8px 0px 0px 0px;">
|
|
7
|
-
<el-button type="primary" @click="dialogVisible = true">添加字段</el-button>
|
|
8
|
-
<el-tree
|
|
9
|
-
:data="data"
|
|
10
|
-
:props="defaultProps"
|
|
11
|
-
@node-click="handleNodeClick"
|
|
12
|
-
/>
|
|
13
|
-
<el-dialog
|
|
14
|
-
v-model="dialogVisible"
|
|
15
|
-
title="Tips"
|
|
16
|
-
width="500"
|
|
17
|
-
>
|
|
18
|
-
<el-form ref="formRef" :model="form" label-width="auto" style="max-width: 600px">
|
|
19
|
-
<el-form-item label="表头字段" required>
|
|
20
|
-
<el-select
|
|
21
|
-
v-model="form.label"
|
|
22
|
-
style="width: 100%"
|
|
23
|
-
>
|
|
24
|
-
<el-option label="t_time" value="t_time"/>
|
|
25
|
-
</el-select>
|
|
26
|
-
</el-form-item>
|
|
27
|
-
<el-form-item label="跳过校验">
|
|
28
|
-
<el-checkbox v-model="form.skipVerification"/>
|
|
29
|
-
</el-form-item>
|
|
30
|
-
</el-form>
|
|
31
|
-
<template #footer>
|
|
32
|
-
<div class="dialog-footer">
|
|
33
|
-
<el-button @click="dialogVisible = false">取消</el-button>
|
|
34
|
-
<el-button type="primary" @click="addTreeData" >
|
|
35
|
-
确认
|
|
36
|
-
</el-button>
|
|
37
|
-
</div>
|
|
38
|
-
</template>
|
|
39
|
-
</el-dialog>
|
|
40
|
-
</div>
|
|
41
|
-
</el-collapse-item>
|
|
42
|
-
</template>
|
|
43
|
-
|
|
44
|
-
<script lang="ts" setup>
|
|
45
|
-
import {ref} from "vue";
|
|
46
|
-
|
|
47
|
-
interface Tree {
|
|
48
|
-
label: string
|
|
49
|
-
children?: Tree[]
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
const dialogVisible = ref(false)
|
|
53
|
-
const form = ref({})
|
|
54
|
-
const formRef = ref(null)
|
|
55
|
-
const handleNodeClick = (data: Tree) => {
|
|
56
|
-
console.log(data)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const data = ref([
|
|
60
|
-
{
|
|
61
|
-
label: 'Level one 1',
|
|
62
|
-
children: [
|
|
63
|
-
{
|
|
64
|
-
label: 'Level two 1-1',
|
|
65
|
-
children: [
|
|
66
|
-
{
|
|
67
|
-
label: 'Level three 1-1-1',
|
|
68
|
-
},
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
}
|
|
73
|
-
])
|
|
74
|
-
|
|
75
|
-
const defaultProps = {
|
|
76
|
-
children: 'children',
|
|
77
|
-
label: 'label',
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function addTreeData() {
|
|
81
|
-
formRef.value.validate(valid =>{
|
|
82
|
-
if (valid){
|
|
83
|
-
if (form.value.id){
|
|
84
|
-
dialogVisible.value = false
|
|
85
|
-
}else {
|
|
86
|
-
data.value.push(form)
|
|
87
|
-
dialogVisible.value = false
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
})
|
|
91
|
-
}
|
|
92
|
-
</script>
|
|
93
|
-
|
|
94
|
-
<style scoped>
|
|
95
|
-
|
|
96
|
-
</style>
|
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-button type="primary" plain @click="showQuery = !showQuery">查询</el-button>
|
|
3
|
-
<el-button type="primary" @click="dialogVisible = true">添加顶级菜单</el-button>
|
|
4
|
-
<div style="display: flex;margin:8px 0;" v-if="showQuery">
|
|
5
|
-
<el-input style="width: 100%;margin-right: 10px" />
|
|
6
|
-
<el-button type="primary" plain>查询</el-button>
|
|
7
|
-
</div>
|
|
8
|
-
<el-tree
|
|
9
|
-
style="max-width: 600px"
|
|
10
|
-
:data="data"
|
|
11
|
-
draggable
|
|
12
|
-
:props="defaultProps"
|
|
13
|
-
@node-click="handleNodeClick"
|
|
14
|
-
@node-contextmenu="nodeContextmenu"
|
|
15
|
-
/>
|
|
16
|
-
<div v-show="menuVisible">
|
|
17
|
-
<ul v-if="selectNode" id="menu" ref="headerMenu" class="context-menu">
|
|
18
|
-
<li
|
|
19
|
-
id="menu-4994-1-0"
|
|
20
|
-
class="menu__item"
|
|
21
|
-
tabindex="-1"
|
|
22
|
-
@click="() => operationalMenuFun('createCombinedHeader')"
|
|
23
|
-
>
|
|
24
|
-
<el-icon>
|
|
25
|
-
<Plus/>
|
|
26
|
-
</el-icon>
|
|
27
|
-
创建节点
|
|
28
|
-
</li>
|
|
29
|
-
<li
|
|
30
|
-
id="menu-4994-1-1"
|
|
31
|
-
class="menu__item"
|
|
32
|
-
tabindex="-1"
|
|
33
|
-
@click="() => operationalMenuFun('updateCombinedHeader')"
|
|
34
|
-
>
|
|
35
|
-
<el-icon>
|
|
36
|
-
<EditPen/>
|
|
37
|
-
</el-icon>
|
|
38
|
-
修改节点
|
|
39
|
-
</li>
|
|
40
|
-
<li
|
|
41
|
-
id="menu-4994-1-2"
|
|
42
|
-
class="menu__item"
|
|
43
|
-
tabindex="-1"
|
|
44
|
-
@click="() => operationalMenuFun('addListColumn')"
|
|
45
|
-
>
|
|
46
|
-
<el-icon>
|
|
47
|
-
<FolderAdd/>
|
|
48
|
-
</el-icon>
|
|
49
|
-
添加字段
|
|
50
|
-
</li>
|
|
51
|
-
<li
|
|
52
|
-
id="menu-4994-1-3"
|
|
53
|
-
class="menu__item"
|
|
54
|
-
tabindex="-1"
|
|
55
|
-
@click="() => operationalMenuFun('moveToRootNode')"
|
|
56
|
-
>
|
|
57
|
-
<el-icon>
|
|
58
|
-
<Document/>
|
|
59
|
-
</el-icon>
|
|
60
|
-
移动字段到根节点
|
|
61
|
-
</li>
|
|
62
|
-
<li
|
|
63
|
-
id="menu-4994-1-4"
|
|
64
|
-
class="menu__item"
|
|
65
|
-
tabindex="-1"
|
|
66
|
-
@click="() => operationalMenuFun('childMoveToRootNode')"
|
|
67
|
-
>
|
|
68
|
-
<el-icon>
|
|
69
|
-
<Document/>
|
|
70
|
-
</el-icon>
|
|
71
|
-
移出子字段到根节点
|
|
72
|
-
</li>
|
|
73
|
-
<li
|
|
74
|
-
id="menu-4994-1-5"
|
|
75
|
-
class="menu__item"
|
|
76
|
-
tabindex="-1"
|
|
77
|
-
@click="() => operationalMenuFun('deleteNode')"
|
|
78
|
-
>
|
|
79
|
-
<el-icon>
|
|
80
|
-
<Delete/>
|
|
81
|
-
</el-icon>
|
|
82
|
-
删除节点
|
|
83
|
-
</li>
|
|
84
|
-
</ul>
|
|
85
|
-
</div>
|
|
86
|
-
<el-dialog
|
|
87
|
-
v-model="dialogVisible"
|
|
88
|
-
title="Tips"
|
|
89
|
-
width="500"
|
|
90
|
-
>
|
|
91
|
-
<el-form ref="formRef" :model="form" label-width="auto" style="max-width: 600px">
|
|
92
|
-
<el-form-item label="名称" required>
|
|
93
|
-
<el-input v-model="form.label" />
|
|
94
|
-
</el-form-item>
|
|
95
|
-
<el-form-item label="显示顺序">
|
|
96
|
-
<el-input v-model="form.displayOrder" />
|
|
97
|
-
</el-form-item>
|
|
98
|
-
</el-form>
|
|
99
|
-
<template #footer>
|
|
100
|
-
<div class="dialog-footer">
|
|
101
|
-
<el-button @click="dialogVisible = false">取消</el-button>
|
|
102
|
-
<el-button type="primary" @click="addTreeData" >
|
|
103
|
-
确认
|
|
104
|
-
</el-button>
|
|
105
|
-
</div>
|
|
106
|
-
</template>
|
|
107
|
-
</el-dialog>
|
|
108
|
-
</template>
|
|
109
|
-
|
|
110
|
-
<script lang="ts" setup>
|
|
111
|
-
import {ref,reactive} from "vue";
|
|
112
|
-
import {Delete,Document,FolderAdd,EditPen,Plus} from '@element-plus/icons-vue'
|
|
113
|
-
const showQuery = ref(false)
|
|
114
|
-
const dialogVisible = ref(false)
|
|
115
|
-
const form = ref({})
|
|
116
|
-
const formRef = ref(null)
|
|
117
|
-
const menuVisible = ref(false)
|
|
118
|
-
const data = ref([
|
|
119
|
-
{
|
|
120
|
-
label: 'Level one 1',
|
|
121
|
-
children: [
|
|
122
|
-
{
|
|
123
|
-
label: 'Level two 1-1',
|
|
124
|
-
children: [
|
|
125
|
-
{
|
|
126
|
-
label: 'Level three 1-1-1',
|
|
127
|
-
},
|
|
128
|
-
],
|
|
129
|
-
},
|
|
130
|
-
],
|
|
131
|
-
}
|
|
132
|
-
])
|
|
133
|
-
const selectNode = ref({})
|
|
134
|
-
|
|
135
|
-
const defaultProps = {
|
|
136
|
-
children: 'children',
|
|
137
|
-
label: 'label',
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
function addTreeData() {
|
|
141
|
-
formRef.value.validate(valid =>{
|
|
142
|
-
if (valid){
|
|
143
|
-
if (form.value.id){
|
|
144
|
-
dialogVisible.value = false
|
|
145
|
-
}else {
|
|
146
|
-
data.value.push(form)
|
|
147
|
-
dialogVisible.value = false
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
})
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
function handleNodeClick(data:any, node:any){
|
|
154
|
-
menuVisible.value = false
|
|
155
|
-
selectNode.value = node
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
function nodeContextmenu(event:Event, data:object) {
|
|
159
|
-
// if (
|
|
160
|
-
// data.type !== 'ListColumn' &&
|
|
161
|
-
// selectNode.value.data.type !== 'ListColumn'
|
|
162
|
-
// ) {
|
|
163
|
-
// if (selectNode.value && selectNode.value.data) {
|
|
164
|
-
// if (selectNode.value.data.mainId === data.mainId) {
|
|
165
|
-
menuVisible.value = true
|
|
166
|
-
const menu = document.querySelector('#menu')
|
|
167
|
-
const scrollTop =
|
|
168
|
-
document.documentElement.scrollTop || document.body.scrollTop
|
|
169
|
-
menu.style.display = 'block'
|
|
170
|
-
menu.style.left = event.clientX + 30 + 'px'
|
|
171
|
-
// 当滑动滚动条时也能准确获取菜单位置
|
|
172
|
-
menu.style.top = event.clientY + scrollTop - 22 + 'px'
|
|
173
|
-
// } else {
|
|
174
|
-
// ElMessage({
|
|
175
|
-
// showClose: true,
|
|
176
|
-
// type: 'warning',
|
|
177
|
-
// message: 'pleaseSelectTheCorrespondingNodeFirst',
|
|
178
|
-
// })
|
|
179
|
-
// }
|
|
180
|
-
// } else {
|
|
181
|
-
// ElMessage({
|
|
182
|
-
// showClose: true,
|
|
183
|
-
// type: 'warning',
|
|
184
|
-
// message: '请先选中节点',
|
|
185
|
-
// })
|
|
186
|
-
// }
|
|
187
|
-
// }
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
// 触发菜单
|
|
191
|
-
function operationalMenuFun(type) {
|
|
192
|
-
menuVisible.value = false
|
|
193
|
-
if (type === 'updateCombinedHeader') {
|
|
194
|
-
// 修改节点
|
|
195
|
-
form.value = selectNode.value.data
|
|
196
|
-
form.value['id'] = 1
|
|
197
|
-
dialogVisible.value = true
|
|
198
|
-
} else if (type === 'createCombinedHeader') {
|
|
199
|
-
// 创建普通节点
|
|
200
|
-
form.value = {}
|
|
201
|
-
dialogVisible.value = true
|
|
202
|
-
} else if (type === 'addListColumn') {
|
|
203
|
-
// 添加字段
|
|
204
|
-
this.openChoiceColumn()
|
|
205
|
-
} else if (type === 'moveToRootNode') {
|
|
206
|
-
// 移出字段到根节点
|
|
207
|
-
this.moveToRootNode()
|
|
208
|
-
} else if (type === 'childMoveToRootNode') {
|
|
209
|
-
// 移出子字段到根节点
|
|
210
|
-
this.childMoveToRootNode()
|
|
211
|
-
} else if (type === 'deleteNode') {
|
|
212
|
-
// 删除节点
|
|
213
|
-
if (this.selectNode && this.selectNode.data) {
|
|
214
|
-
this.remove(this.selectNode, this.selectNode.data)
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
</script>
|
|
219
|
-
|
|
220
|
-
<style scoped>
|
|
221
|
-
li {
|
|
222
|
-
color: #333;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.context-menu {
|
|
226
|
-
position: fixed;
|
|
227
|
-
background: #fff;
|
|
228
|
-
z-index: 999;
|
|
229
|
-
padding: 5px;
|
|
230
|
-
margin: 0;
|
|
231
|
-
margin-top: 30px;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.context-menu li {
|
|
235
|
-
min-width: 75px;
|
|
236
|
-
height: 28px;
|
|
237
|
-
line-height: 28px;
|
|
238
|
-
text-align: left;
|
|
239
|
-
color: #1a1a1a;
|
|
240
|
-
cursor: pointer;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.context-menu li:hover {
|
|
244
|
-
background: #5893ef;
|
|
245
|
-
color: #fff;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
.context-menu {
|
|
249
|
-
border: 1px solid #eee;
|
|
250
|
-
box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
|
|
251
|
-
border-radius: 5px;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
li {
|
|
255
|
-
list-style-type: none;
|
|
256
|
-
}
|
|
257
|
-
</style>
|