cloud-web-corejs 1.0.54-dev.346 → 1.0.54-dev.348

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.346",
4
+ "version": "1.0.54-dev.348",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -1,92 +1,89 @@
1
- <template>
2
- <el-dialog
3
- :title="$t2('修改脚本', 'components.wf.setCandidateTitle')"
4
- :close-on-click-modal="false"
5
- :visible="showDialog"
6
- :modal="false"
7
- custom-class="dialog-style list-dialog dialog-checkbox pd_0"
8
- width="1200px"
9
- @close="closeDialog"
10
- v-el-drag-dialog
11
- v-el-dialog-center
12
- :append-to-body="true"
13
- >
14
- <template #title>
15
- <span class="el-dialog__title">
16
- {{ $t1("修改脚本") }}<span style="margin-left: 10px; margin-right: 10px">—</span>
17
- <b class="f-red" style="font-size: 12px"
18
- >{{ $t2("节点", "components.wf.node") }}:{{ wfInfo.taskName }}</b
19
- >
20
- </span>
21
- </template>
22
- <div class="cont" style="height: 450px">
23
- <vxe-grid
24
- ref="table-m1"
25
- v-bind="vxeOption"
26
- @resizable-change="$vxeTableUtil.onColumnWitchChange"
27
- @custom="$vxeTableUtil.customHandle"
28
- >
29
- <template #operate="{ row, rowIndex }">
30
- <a class="a-link" @click="openScriptDialog(row)">
31
- <i class="el-icon-edit"></i
32
- ><span>{{ $t1(!!row.script ? "修改脚本 - 已维护" : "修改脚本") }}</span>
33
- </a>
34
- </template>
35
- </vxe-grid>
36
- </div>
37
- <span slot="footer" class="dialog-footer">
38
- <el-button type="primary" plain class="button-sty" @click="closeDialog">
39
- <i class="el-icon-close el-icon"></i>
40
- {{ $t2(" ", "system.button.cancel2") }}
41
- </el-button>
42
- <el-button type="primary" @click="closeDialog" class="button-sty">
43
- <i class="el-icon-check el-icon"></i>
44
- {{ $t2("确 定", "system.button.confirm2") }}
45
- </el-button>
46
- </span>
47
- <el-dialog
48
- :title="scritpDialogTitle"
49
- :append-to-body="true"
50
- :modal-append-to-body="true"
51
- :close-on-click-modal="false"
52
- v-if="showScriptDialog"
53
- :visible.sync="showScriptDialog"
54
- :modal="false"
55
- custom-class="dialog-style tips-dialog tips-1 "
56
- width="800px"
57
- v-el-drag-dialog
58
- v-el-dialog-center
59
- >
60
- <div class="cont" style="height: 700px">
61
- <code-editor
62
- mode="java"
63
- :readonly="!1"
64
- v-model="script"
65
- height="414px;"
66
- ></code-editor>
67
- </div>
68
- <span slot="footer" class="dialog-footer">
69
- <el-button
70
- type="primary"
71
- plain
72
- class="button-sty"
73
- @click="showScriptDialog = false"
74
- >
75
- <i class="el-icon-close el-icon"></i>
76
- {{ $t1(" ") }}
77
- </el-button>
78
- <el-button type="primary" @click="saveScript" class="button-sty">
79
- <i class="el-icon-check el-icon"></i>
80
- {{ $t1("确 定") }}
81
- </el-button>
82
- </span>
83
- </el-dialog>
84
- </el-dialog>
85
- </template>
86
-
87
- <script>
88
- import mixin from "./mixins/wfFlowEleScriptDialog.js";
89
- export default {
90
- mixins: [mixin],
91
- };
92
- </script>
1
+ <template>
2
+ <el-dialog
3
+ :title="$t2('修改脚本', 'components.wf.setCandidateTitle')"
4
+ :close-on-click-modal="false"
5
+ :visible="showDialog"
6
+ :modal="false"
7
+ custom-class="dialog-style list-dialog dialog-checkbox pd_0"
8
+ width="1200px"
9
+ @close="closeDialog"
10
+ v-el-drag-dialog
11
+ v-el-dialog-center
12
+ :append-to-body="true"
13
+ >
14
+ <template #title>
15
+ <span class="el-dialog__title">
16
+ {{ $t1("修改脚本") }}
17
+ </span>
18
+ </template>
19
+ <div class="cont" style="height: 450px">
20
+ <vxe-grid
21
+ ref="table-m1"
22
+ v-bind="vxeOption"
23
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
24
+ @custom="$vxeTableUtil.customHandle"
25
+ >
26
+ <template #operate="{ row, rowIndex }">
27
+ <a class="a-link" @click="openScriptDialog(row)">
28
+ <i class="el-icon-edit"></i
29
+ ><span>{{ $t1(!!row.script ? "修改脚本 - 已维护" : "修改脚本") }}</span>
30
+ </a>
31
+ </template>
32
+ </vxe-grid>
33
+ </div>
34
+ <span slot="footer" class="dialog-footer">
35
+ <el-button type="primary" plain class="button-sty" @click="closeDialog">
36
+ <i class="el-icon-close el-icon"></i>
37
+ {{ $t2("取 消", "system.button.cancel2") }}
38
+ </el-button>
39
+ <el-button type="primary" @click="closeDialog" class="button-sty">
40
+ <i class="el-icon-check el-icon"></i>
41
+ {{ $t2("确 定", "system.button.confirm2") }}
42
+ </el-button>
43
+ </span>
44
+ <el-dialog
45
+ :title="scritpDialogTitle"
46
+ :append-to-body="true"
47
+ :modal-append-to-body="true"
48
+ :close-on-click-modal="false"
49
+ v-if="showScriptDialog"
50
+ :visible.sync="showScriptDialog"
51
+ :modal="false"
52
+ custom-class="dialog-style tips-dialog tips-1 "
53
+ width="800px"
54
+ v-el-drag-dialog
55
+ v-el-dialog-center
56
+ >
57
+ <div class="cont" style="height: 700px">
58
+ <code-editor
59
+ mode="java"
60
+ :readonly="!1"
61
+ v-model="script"
62
+ height="414px;"
63
+ ></code-editor>
64
+ </div>
65
+ <span slot="footer" class="dialog-footer">
66
+ <el-button
67
+ type="primary"
68
+ plain
69
+ class="button-sty"
70
+ @click="showScriptDialog = false"
71
+ >
72
+ <i class="el-icon-close el-icon"></i>
73
+ {{ $t1(" 消") }}
74
+ </el-button>
75
+ <el-button type="primary" @click="saveScript" class="button-sty">
76
+ <i class="el-icon-check el-icon"></i>
77
+ {{ $t1("确 定") }}
78
+ </el-button>
79
+ </span>
80
+ </el-dialog>
81
+ </el-dialog>
82
+ </template>
83
+
84
+ <script>
85
+ import mixin from "./mixins/wfFlowEleScriptDialog.js";
86
+ export default {
87
+ mixins: [mixin],
88
+ };
89
+ </script>
@@ -0,0 +1,99 @@
1
+ <template>
2
+ <static-content-wrapper
3
+ :designer="designer" :field="field" :design-state="designState"
4
+ :display-style="field.options.displayStyle"
5
+ :parent-widget="parentWidget" :parent-list="parentList"
6
+ :index-of-parent-list="indexOfParentList">
7
+ <el-dropdown trigger="hover">
8
+ <el-button type="primary" class="button-sty" size="mini">
9
+ <span>{{ getI18nLabel('列表导出') }}</span><span class="line"></span> <i
10
+ class="el-icon-arrow-down el-icon--right"></i>
11
+ </el-button>
12
+ <el-dropdown-menu slot="dropdown">
13
+ <el-dropdown-item icon="el-icon-upload2"
14
+ @click.native="toDo()">
15
+ {{ getI18nLabel('条件导出') }}
16
+ </el-dropdown-item>
17
+ <el-dropdown-item icon="el-icon-upload2"
18
+ @click.native="toDo('selected')">
19
+ {{ getI18nLabel('选择导出') }}
20
+ </el-dropdown-item>
21
+ </el-dropdown-menu>
22
+ </el-dropdown>
23
+ </static-content-wrapper>
24
+
25
+ </template>
26
+ <script>
27
+ import emitter from '../../../../../components/xform/utils/emitter'
28
+ import i18n from "../../../../../components/xform/utils/i18n";
29
+ import fieldMixin from "../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin";
30
+ import StaticContentWrapper
31
+ from "../../../../../components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue";
32
+
33
+ export default {
34
+ name: 'TableExportButtonWidget',
35
+ components: {StaticContentWrapper},
36
+ componentName: 'FieldWidget', //必须固定为FieldWidget,用于接收父级组件的broadcast事件
37
+ mixins: [emitter, fieldMixin, i18n],
38
+ props: {
39
+ field: Object,
40
+ parentWidget: Object,
41
+ parentList: Array,
42
+ indexOfParentList: Number,
43
+ designer: Object,
44
+ designState: {
45
+ type: Boolean,
46
+ default: false
47
+ }
48
+ },
49
+ data() {
50
+ return {}
51
+ },
52
+ beforeCreate() {
53
+ /* 这里不能访问方法和属性!! */
54
+ },
55
+
56
+ created() {
57
+ /* 注意:子组件mounted在父组件created之后、父组件mounted之前触发,故子组件mounted需要用到的prop
58
+ 需要在父组件created中初始化!! */
59
+ this.registerToRefList()
60
+ this.initEventHandler()
61
+
62
+ this.handleOnCreated()
63
+ },
64
+
65
+ mounted() {
66
+ this.handleOnMounted()
67
+ },
68
+
69
+ beforeDestroy() {
70
+ this.unregisterFromRefList()
71
+ },
72
+
73
+ methods: {
74
+ toDo(type = null) {
75
+ if (this.designState) {
76
+ return
77
+ }
78
+ let opt = {
79
+ title: this.field.options.exportFileName || null,
80
+ targetRef: this.field.options.tableRef || null,
81
+ pageSize: (this.field.options.exportPageSize || null),
82
+ showImageAtTable: this.field.options.showImageAtTable || null
83
+ };
84
+ let tableExportParam = this.handleCustomEvent(this.field.options.tableExportParam);
85
+ let options = {...opt, ...tableExportParam, type: type};
86
+ let tableRef = options?.targetRef;
87
+ delete options.targetRef
88
+ let tableWidget = this.getWidgetRef(tableRef);
89
+ tableWidget.exportData(options)
90
+ }
91
+ }
92
+
93
+ }
94
+ </script>
95
+
96
+ <style lang="scss" scoped>
97
+ @import "~@/styles/global.scss"; //* static-content-wrapper已引入,还需要重复引入吗? *//
98
+
99
+ </style>