super-pages 0.7.57 → 0.7.58

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.
Files changed (44) hide show
  1. package/lib/super-pages.css +1 -1
  2. package/lib/super-pages.umd.min.js +5 -5
  3. package/package.json +2 -2
  4. package/packages/index.js +33 -0
  5. package/packages/super-page/index.js +9 -0
  6. package/packages/super-page/src/button-group.vue +272 -0
  7. package/packages/super-page/src/chart-page.vue +173 -0
  8. package/packages/super-page/src/chart-query-page.vue +113 -0
  9. package/packages/super-page/src/common-form-page.vue +547 -0
  10. package/packages/super-page/src/export-form-report-dialog.vue +84 -0
  11. package/packages/super-page/src/form-head.vue +67 -0
  12. package/packages/super-page/src/form-page.vue +107 -0
  13. package/packages/super-page/src/group-tag.vue +29 -0
  14. package/packages/super-page/src/list-page.vue +1023 -0
  15. package/packages/super-page/src/list-toolbar-page.vue +257 -0
  16. package/packages/super-page/src/my-button-base.vue +367 -0
  17. package/packages/super-page/src/my-button.vue +185 -0
  18. package/packages/super-page/src/page-custom-component.vue +64 -0
  19. package/packages/super-page/src/remove-signer-dialog.vue +107 -0
  20. package/packages/super-page/src/sub-tab-page.vue +88 -0
  21. package/packages/super-page/src/super-page-component.vue +78 -0
  22. package/packages/super-page/src/super-page.vue +134 -0
  23. package/packages/super-page/src/tab-page.vue +152 -0
  24. package/packages/super-page/src/task-informition-dialog.vue +88 -0
  25. package/packages/super-page/src/util/ListButtonEvent.js +608 -0
  26. package/packages/super-page/src/util/api.js +32 -0
  27. package/packages/super-page/src/util/callEvents.js +52 -0
  28. package/packages/super-page/src/util/chartButtonEvent.js +60 -0
  29. package/packages/super-page/src/util/common-util.js +100 -0
  30. package/packages/super-page/src/util/commonButtonEvent.js +55 -0
  31. package/packages/super-page/src/util/eventBus.js +2 -0
  32. package/packages/super-page/src/util/formButtonEvent.js +262 -0
  33. package/packages/super-page/src/util/store.js +3 -0
  34. package/packages/super-page/src/util/super-page.js +19 -0
  35. package/packages/super-page/src/util/util.js +976 -0
  36. package/packages/super-page/src/util/workflowButtonEvent.js +1037 -0
  37. package/packages/super-page/src/widget-col-page.vue +339 -0
  38. package/packages/super-page/src/widget-page.vue +596 -0
  39. package/packages/super-page/src/widget-sub-tab-pane-page.vue +105 -0
  40. package/packages/super-page/src/widget-tab-pane-page.vue +125 -0
  41. package/packages/super-page/src/workflow-button-group.vue +487 -0
  42. package/packages/super-page/src/workflow-form-page.vue +1119 -0
  43. package/packages/super-page-dialog/index.js +9 -0
  44. package/packages/super-page-dialog/src/super-page-dialog.vue +173 -0
@@ -0,0 +1,257 @@
1
+ <template>
2
+ <span>
3
+ <span
4
+ v-for="(toolbar) in listToolbarList"
5
+ :key="toolbar.label"
6
+ >
7
+ {{ toolbar.label }}
8
+ <el-select
9
+ v-if="toolbar.controlType === 'select'"
10
+ v-model="modelObj[toolbar.propDbName]"
11
+ :placeholder="toolbar.nullLabel"
12
+ :size="toolbar.size?toolbar.size:small"
13
+ clearable
14
+ @change="searchGridData"
15
+ >
16
+ <el-option
17
+ v-for="item in optionListResult"
18
+ :key="item.value"
19
+ :label="item.label"
20
+ :value="item.value"
21
+ />
22
+ </el-select>
23
+ <el-select
24
+ v-if="toolbar.controlType === 'multipleSelect'"
25
+ v-model="modelObj[toolbar.propDbName]"
26
+ collapse-tags
27
+ :placeholder="toolbar.nullLabel"
28
+ :size="toolbar.size?toolbar.size:small"
29
+ multiple
30
+ clearable
31
+ @change="searchGridData"
32
+ >
33
+ <el-option
34
+ v-for="item in optionListResult"
35
+ :key="item.value"
36
+ :label="item.label"
37
+ :value="item.value"
38
+ />
39
+ </el-select>
40
+ <el-radio-group
41
+ v-if="toolbar.controlType === 'radio'"
42
+ v-model="modelObj[toolbar.propDbName]"
43
+ :size="toolbar.size?toolbar.size:small"
44
+ @change="searchGridData"
45
+ >
46
+ <el-radio
47
+ v-for="item in optionListResult"
48
+ :key="item.value"
49
+ :label="item.value"
50
+ > {{ item.name==null?item.label:item.name }}</el-radio>
51
+ </el-radio-group>
52
+ <el-checkbox-group
53
+ v-if="toolbar.controlType === 'checkbox'"
54
+ v-model="modelObj[toolbar.propDbName]"
55
+ :size="toolbar.size?toolbar.size:small"
56
+ @change="searchGridData"
57
+ >
58
+ <el-checkbox
59
+ v-for="item in optionListResult"
60
+ :key="item.value"
61
+ :label="item.value"
62
+ >
63
+ {{ item.name==null?item.label:item.name }}
64
+ </el-checkbox>
65
+ </el-checkbox-group>
66
+ <el-date-picker
67
+ v-if="toolbar.controlType === 'year'"
68
+ v-model="modelObj[toolbar.propDbName]"
69
+ :size="toolbar.size?toolbar.size:small"
70
+ type="year"
71
+ :placeholder="toolbar.nullLabel"
72
+ value-format="yyyy"
73
+ @change="searchGridData(toolbar.controlType)"
74
+ />
75
+ <el-date-picker
76
+ v-if="toolbar.controlType === 'month'"
77
+ v-model="modelObj[toolbar.propDbName]"
78
+ :size="toolbar.size?toolbar.size:small"
79
+ type="month"
80
+ value-format="yyyy-MM"
81
+ :placeholder="toolbar.nullLabel"
82
+ @change="searchGridData(toolbar.controlType)"
83
+ />
84
+ </span>
85
+ </span>
86
+ </template>
87
+
88
+ <script>
89
+
90
+ import Util from './util/util'
91
+ import { getStoreInfo } from './util/common-util'
92
+ export default {
93
+ name: 'ListToolbarPage',
94
+ components: {
95
+
96
+ },
97
+ props: {
98
+ // 工具栏
99
+ listToolbarList: {
100
+ type: Array,
101
+ default: null
102
+ },
103
+ // 页面编码
104
+ pageCode: {
105
+ type: String,
106
+ default: null
107
+ }
108
+ },
109
+ data () {
110
+ return {
111
+ modelObj: {},
112
+ modelObjType: {},
113
+ optionsList: {},
114
+ additionalParamMap: null,
115
+ dataTypeObj: {}
116
+ }
117
+ },
118
+ computed: {
119
+ optionListResult () {
120
+ return this.toolbar.dynamicDataSourceCode ? this.optionsList[this.toolbar.dynamicDataSourceCode] : this.toolbar.optionGroupCode ? this.optionsList[this.toolbar.optionGroupCode] : null
121
+ }
122
+ },
123
+ created () {
124
+ const additionalParamMap = getStoreInfo(this.pageCode, 'additionalParamMap')
125
+ if (additionalParamMap) {
126
+ this.additionalParamMap = additionalParamMap
127
+ }
128
+ this.analysisListToolbarList()
129
+ },
130
+ mounted () {
131
+ },
132
+ beforeDestroy () {
133
+ },
134
+ methods: {
135
+ ...Util,
136
+ // 解析listToolbarList
137
+ analysisListToolbarList () {
138
+ if (this.listToolbarList && this.listToolbarList.length > 0) {
139
+ // 将每一条合并起来封装为一个对象 {prop}
140
+ this.toolbarListToObj()
141
+ // 将数据来源解析后封装
142
+ this.toolbarListOptions()
143
+ // 解析默认值
144
+ this.analysisDefaultValue()
145
+ }
146
+ },
147
+ // 将每一条合并起来封装为一个对象 {prop}
148
+ toolbarListToObj () {
149
+ for (var i = 0; i < this.listToolbarList.length; i++) {
150
+ const item = this.listToolbarList[i]
151
+ if (item && item.propDbName) {
152
+ if (!this.modelObj[item.propDbName]) {
153
+ this.$set(this.modelObj, item.propDbName, null)
154
+ if (item.controlType && (item.controlType === 'year' || item.controlType === 'month')) {
155
+ this.$set(this.modelObjType, item.propDbName + '~~' + item.controlType, item.controlType)
156
+ } else {
157
+ this.$set(this.modelObjType, item.propDbName, item.controlType)
158
+ }
159
+ this.$set(this.dataTypeObj, item.propDbName, item.dataType)
160
+ }
161
+ }
162
+ }
163
+ },
164
+ // 将数据来源解析后封装
165
+ toolbarListOptions () {
166
+ for (var i = 0; i < this.listToolbarList.length; i++) {
167
+ const item = this.listToolbarList[i]
168
+ if (item && item.propDbName) {
169
+ if (item.dynamicDataSourceCode) {
170
+ // 动态数据源优先级高
171
+ this.findOptionsByDynamicDataSource(item.dynamicDataSourceCode, null, null, this.additionalParamMap).then(data => {
172
+ this.$set(this.optionsList, item.dynamicDataSourceCode, data)
173
+ })
174
+ } else if (item.optionGroupCode) {
175
+ this.getOptionGroupOptions(item.optionGroupCode).then(data => {
176
+ this.$set(this.optionsList, item.optionGroupCode, data)
177
+ })
178
+ }
179
+ }
180
+ }
181
+ },
182
+ // 解析默认值
183
+ analysisDefaultValue () {
184
+ const defaultValueList = []
185
+ for (var i = 0; i < this.listToolbarList.length; i++) {
186
+ const item = this.listToolbarList[i]
187
+ if (item && item.propDbName) {
188
+ if (item.propValue) {
189
+ defaultValueList.push(item.propValue)
190
+ } else {
191
+ defaultValueList.push(null)
192
+ }
193
+ } else {
194
+ defaultValueList.push(null)
195
+ }
196
+ }
197
+ // 发送请求
198
+ const map = {
199
+ additionalParamMap: this.additionalParamMap,
200
+ values: defaultValueList
201
+ }
202
+ this.analysisStandardValues(map).then(data => {
203
+ if (data && data.returnValues) {
204
+ if (data.returnValues.length === 1 && data.returnValues[0] === null) {
205
+ return
206
+ }
207
+ for (var k = 0; k < this.listToolbarList.length; k++) {
208
+ const item = this.listToolbarList[k]
209
+ if (item && item.propDbName) {
210
+ const value = data.returnValues[k]
211
+ if (item.controlType === 'multipleSelect' || item.controlType === 'checkbox') {
212
+ this.$set(this.modelObj, item.propDbName, [])
213
+ if (value !== undefined && value !== null) {
214
+ if (typeof (value) === 'string') {
215
+ this.$set(this.modelObj, item.propDbName, value.split(','))
216
+ } else {
217
+ this.$set(this.modelObj, item.propDbName, value)
218
+ }
219
+ }
220
+ } else {
221
+ if (value !== undefined && value !== null) {
222
+ if (item.controlType === 'year') {
223
+ const valArr = value.split('-')
224
+ let year = null
225
+ if (valArr.length >= 1) {
226
+ year = valArr[0]
227
+ }
228
+ this.$set(this.modelObj, item.propDbName, year)
229
+ } else if (item.controlType === 'month') {
230
+ const valArr = value.split('-')
231
+ let month = null
232
+ if (valArr.length >= 2) {
233
+ month = valArr[0] + '-' + valArr[1]
234
+ }
235
+ this.$set(this.modelObj, item.propDbName, month)
236
+ } else {
237
+ this.$set(this.modelObj, item.propDbName, value)
238
+ }
239
+ }
240
+ }
241
+ }
242
+ }
243
+ this.searchGridData()
244
+ }
245
+ })
246
+ },
247
+ // 刷新列表数据
248
+ searchGridData (contorlType) {
249
+ this.$emit('searchGridData', this.modelObj, this.modelObjType, this.dataTypeObj, contorlType)
250
+ }
251
+ }
252
+ }
253
+ </script>
254
+
255
+ <style lang="scss" scoped>
256
+
257
+ </style>
@@ -0,0 +1,367 @@
1
+ <template>
2
+ <span v-if="isCustomVisible" :id="pageCode + '_' + button.code">
3
+ <span
4
+ v-if="!isView || button.code ==='back'"
5
+ v-permission="permission"
6
+ style="margin-right:10px"
7
+ >
8
+ <span v-if="button.code !== 'exportPDF'">
9
+ <component
10
+ :is="button.customControl"
11
+ v-if="button.customControl"
12
+ :search-form-data="searchFormInfo.data"
13
+ :selections="selections"
14
+ :entity="initFormData"
15
+ :get-entity="myFormDataFun"
16
+ :refresh-list="getSystemRef"
17
+ :class="button.code"
18
+ @refresh="refreshEmit"
19
+ @prohibi-edit="fnProhibitToEdit"
20
+ @refresh-tab="refreshTab"
21
+ @refreshFrom="refreshFrom"
22
+ />
23
+ <el-button
24
+ v-else
25
+ :loading="button.loading===undefined?false:button.loading"
26
+ :disabled="disabled?disabled:preventReclick"
27
+ :size="button.size?button.size:'small'"
28
+ :type="getButtonType(button)"
29
+ :icon="icon"
30
+ :class="button.code"
31
+ :plain="typeof(button.isPlain) === 'undefined'?false:button.isPlain"
32
+ :round="typeof(button.isRound) === 'undefined'?false:button.isRound"
33
+ :circle="typeof(button.isCircle) === 'undefined'?false:button.isCircle"
34
+ @click="clickMyButton(button)"
35
+ >{{ getButtonLabel(button) }}</el-button>
36
+ </span>
37
+ <span v-else>
38
+ <export-pdf-button
39
+ v-if="showPdfButton"
40
+ :pdf-template-code="button.pdfTemplateCode"
41
+ :entity="formData"
42
+ :base-props="button"
43
+ :watermark-setting="watermarkSetting"
44
+ :befoer-open="befoerOpenPdf"
45
+ @closePreview="closePreview"
46
+ />
47
+ </span>
48
+ </span>
49
+ <export-form-report-dialog
50
+ v-if="showExportForm"
51
+ :button="button"
52
+ @close="closeExportFormDialog"
53
+ @preview-export-form-report="previewExportFormReport"
54
+ @before-export-form-report="beforeExportFormReport"
55
+ />
56
+ </span>
57
+ </template>
58
+
59
+ <script>
60
+ import { mapGetters } from 'vuex'
61
+ import Util from './util/util'
62
+ import { getStoreInfo } from './util/common-util'
63
+ import superPageService from './util/super-page'
64
+ import ExportFormReportDialog from './export-form-report-dialog'
65
+ export default {
66
+ name: 'MyButtonBase',
67
+ components: {
68
+ ExportFormReportDialog
69
+ },
70
+ props: {
71
+ button: {
72
+ type: Object,
73
+ default: null
74
+ },
75
+ // 资源编码前缀,例如:系统编码.页面编码.列表组件编码 或 系统编码.页面编码.表单组件编码 或 系统编码.页面编码.按钮组组件编码
76
+ permissionPrefix: {
77
+ type: String,
78
+ default: null
79
+ },
80
+ // 按钮所在位置,list列表或form表单内
81
+ position: {
82
+ type: String,
83
+ default: null
84
+ },
85
+ // 数据表名称
86
+ tableName: {
87
+ type: String,
88
+ default: null
89
+ },
90
+ // 流程表单页面才需要传该设置
91
+ buttonGroups: {
92
+ type: Array,
93
+ default: null
94
+ },
95
+ // 列表行编辑时编辑的记录下标,行编辑按钮使用
96
+ rowIndex: {
97
+ type: Number,
98
+ default: null
99
+ },
100
+ // 页面编码
101
+ pageCode: {
102
+ type: String,
103
+ default: null
104
+ },
105
+ // 获取页面数据的方法
106
+ getFormData: {
107
+ type: Function,
108
+ default: function () {}
109
+ },
110
+ // 列表选中的记录集合
111
+ selections: {
112
+ type: Array,
113
+ default: null
114
+ },
115
+ // 表单对象
116
+ myFormDataFun: {
117
+ type: Function,
118
+ default: function () {}
119
+ },
120
+ // 列表刷新方法
121
+ getSystemRef: {
122
+ type: Function,
123
+ default: function () {}
124
+ },
125
+ searchFormInfo: {
126
+ type: Object,
127
+ default: () => {
128
+ return { data: {} }
129
+ }
130
+ },
131
+ disabled: {
132
+ type: Boolean,
133
+ default: false
134
+ },
135
+ // 没传的话,需要在本组件内判断是否显示
136
+ isVisible: {
137
+ type: String,
138
+ default: null
139
+ }
140
+ },
141
+ data () {
142
+ let permission = 'true'
143
+ if ((this.button.isPermission === undefined || this.button.isPermission === true)) {
144
+ // 表示按钮受权限保护
145
+ permission = this.permissionPrefix + '.' + this.button.code
146
+ if (this.button.functionCode) {
147
+ permission = this.button.functionCode
148
+ }
149
+ }
150
+ console.log('my-button-base1111------permission=', permission)
151
+ const isDevMode = getStoreInfo(this.pageCode, '_pageDevMode')
152
+ const isPreview = getStoreInfo(this.pageCode, '_pagePreview')
153
+ console.log('my-button-base222------isDevMode=', isDevMode)
154
+ console.log('my-button-base333------isPreview=', isPreview)
155
+ if ((isDevMode && isDevMode === true) || (isPreview && isPreview === true) || (this.button && this.button.code === 'back')) {
156
+ // 开发模式 或 预览时 或 返回按钮,权限不受控制
157
+ permission = 'true'
158
+ }
159
+ console.log('my-button-base444------permission=', permission)
160
+ const displayConditions = this.button.buttonDisplayConditionsList
161
+ let isCustomVisible = false
162
+ const isView = this.isViewDetail(this.position)
163
+ let icon = this.button.icon
164
+ if (icon && icon.indexOf('fa-') === 0) {
165
+ // 表示以“fa-”开头,使用font-awesome中的图标
166
+ icon = 'fa fa-custom ' + icon
167
+ }
168
+ if (this.position === 'chart' && !icon && this.button.code === 'export') {
169
+ icon = 'fa fa-custom fa-cloud-download'
170
+ }
171
+ const formDataFun = this.myFormDataFun
172
+ let initFormData
173
+ if (formDataFun) {
174
+ initFormData = formDataFun.call(this)
175
+ }
176
+ let jumpInfo = sessionStorage.getItem(this.pageCode + '-jumpMode')
177
+ let backButtonName
178
+ if (jumpInfo) {
179
+ const jumpInfoObj = JSON.parse(jumpInfo)
180
+ const jumpMode = jumpInfoObj.jumpMode
181
+ if (jumpMode === 'openWindow' || jumpMode === 'newTab') {
182
+ // 新页签或新窗口显示“关闭”按钮
183
+ backButtonName = this.$t('superPage.closeButton')
184
+ }
185
+ }
186
+ return {
187
+ permission, // 按钮的资源编码
188
+ isCustomVisible, // 是否显示按钮
189
+ displayConditions, // 按钮显示条件
190
+ isPreview, // 预览时导入按钮不操作
191
+ isView, // 是否是查看页面
192
+ additionalParamMap: null, // 跳转页面的附加参数
193
+ icon,
194
+ formData: {},
195
+ contextParameter: null,
196
+ watermarkSetting: null,
197
+ showPdfButton: false,
198
+ showExportForm: false,
199
+ initFormData, // 表单初始值
200
+ backButtonName
201
+ }
202
+ },
203
+ computed: {
204
+ ...mapGetters([
205
+ 'preventReclick'
206
+ ])
207
+ },
208
+ created () {
209
+ const additionalParamMap = getStoreInfo(this.pageCode, 'additionalParamMap')
210
+ if (additionalParamMap) {
211
+ this.additionalParamMap = additionalParamMap
212
+ }
213
+ const contextParameter = getStoreInfo(this.pageCode, '_contextParameter')
214
+ if (contextParameter) {
215
+ this.contextParameter = contextParameter
216
+ }
217
+ // 判断是否需要水印
218
+ if (this.button.code === 'exportPDF') {
219
+ this.judgeNeedWatermark()
220
+ // 判断pdf按钮需要的样式
221
+ this.judgePdfButtonStyle()
222
+ }
223
+ // 解析按钮是否显示
224
+ if (this.isVisible === undefined || this.isVisible === null) {
225
+ // 如果没有传按钮是否显示,则需要自己重新解析是否显示
226
+ if (!this.displayConditions || this.displayConditions.length === 0) {
227
+ // 如果没有配置按钮显示条件,则默认为显示
228
+ this.isCustomVisible = true
229
+ } else if (this.position === 'form' || this.position === 'workflowForm') {
230
+ this.isButtonVisible(this.displayConditions, this.tableName, this.additionalParamMap).then(result => {
231
+ this.isCustomVisible = result
232
+ })
233
+ }
234
+ } else {
235
+ this.isCustomVisible = this.isVisible === 'true'
236
+ }
237
+ },
238
+ methods: {
239
+ ...Util,
240
+ ...superPageService,
241
+ judgePdfButtonStyle () {
242
+ if (this.button.loading === null || this.button.loading === undefined) {
243
+ this.button.loading = false
244
+ }
245
+ this.button.disabled = this.preventReclick
246
+ if (this.button.size === null || this.button.size === undefined) {
247
+ this.button.size = 'small'
248
+ }
249
+ },
250
+ // 判断是否需要水印
251
+ judgeNeedWatermark () {
252
+ if (this.button.pdfNeedAddWatermark) {
253
+ const system = getStoreInfo(this.pageCode, '_systemInfo')
254
+ let code = null
255
+ // 先获取按钮选择的水印
256
+ if (this.button.pdfTemplateWatermarkCode) {
257
+ code = this.button.pdfTemplateWatermarkCode
258
+ } else if (system && system.watermarkCode) {
259
+ // 当前系统的水印
260
+ code = system.watermarkCode
261
+ }
262
+ if (code) {
263
+ const contextParameter = getStoreInfo(this.pageCode, '_contextParameter')
264
+ this.getSystemWatermark(code).then(data => {
265
+ if (data != null) {
266
+ if (data.watermarkSetting) {
267
+ // this.showPageWatermarkSetting(JSON.parse(data.watermarkSetting), contextParameter)
268
+ const pageWatermarkSetting = JSON.parse(data.watermarkSetting)
269
+ if (pageWatermarkSetting) {
270
+ const label = this.getWatermarkLabel(pageWatermarkSetting, contextParameter)
271
+ pageWatermarkSetting.label = label
272
+ this.watermarkSetting = pageWatermarkSetting
273
+ }
274
+ }
275
+ this.showPdfButton = true
276
+ }
277
+ })
278
+ } else {
279
+ this.showPdfButton = true
280
+ }
281
+ } else {
282
+ this.showPdfButton = true
283
+ }
284
+ },
285
+ // 按钮组中按钮点击事件
286
+ clickMyButton (button) {
287
+ if (button.code === 'exportForm') {
288
+ this.showExportForm = true
289
+ } else {
290
+ this.$emit('click', button)
291
+ }
292
+ },
293
+ befoerOpenPdf () {
294
+ if (this.button.code === 'exportPDF') {
295
+ if (this.getFormData) {
296
+ const custFun = this.getFormData
297
+ custFun.call(this, false).then(data => {
298
+ this.formData = data
299
+ })
300
+ }
301
+ }
302
+ return true
303
+ },
304
+ closePreview () {
305
+ setTimeout(function () {
306
+ const thisNode = document.getElementById('1.23452384164.123412456415')
307
+ if (thisNode != null) {
308
+ if (document.getElementById('pdfDom')) {
309
+ var cell1 = document.getElementById('pdfDom')
310
+ cell1.removeChild(document.getElementById('1.23452384164.123412456415'))
311
+ } else {
312
+ console.log(thisNode.parentNode.childNodes)
313
+ // thisNode.parentNode.childNodes.splice(10, 1)
314
+ thisNode.parentNode.removeChild(thisNode)
315
+ // 1.23452384164.123412456415
316
+ // document.body.removeChild(document.getElementById('1.23452384164.123412456415'))
317
+ }
318
+ }
319
+ }, 500)
320
+ // this.$nextTick(() => {
321
+ // debugger
322
+ // const thisNode = document.getElementById('1.23452384164.123412456415')
323
+ // if (thisNode != null) {
324
+ // if (document.getElementById('pdfDom')) {
325
+ // var cell1 = document.getElementById('pdfDom')
326
+ // cell1.removeChild(document.getElementById('1.23452384164.123412456415'))
327
+ // } else {
328
+ // document.body.removeChild(document.getElementById('1.23452384164.123412456415'))
329
+ // }
330
+ // }
331
+ // })
332
+ },
333
+ beforeExportFormReport (templateFileInfo) {
334
+ this.$set(this.button, 'templateShowPath', templateFileInfo.templateShowPath)
335
+ this.$set(this.button, 'templateUUID', templateFileInfo.templateUUID)
336
+ this.$emit('click', this.button)
337
+ },
338
+ previewExportFormReport (templateFileInfo) {
339
+ this.$set(this.button, 'isPreviewFormReport', true)
340
+ this.$set(this.button, 'templateShowPath', templateFileInfo.templateShowPath)
341
+ this.$set(this.button, 'templateUUID', templateFileInfo.templateUUID)
342
+ this.$emit('click', this.button)
343
+ },
344
+ closeExportFormDialog () {
345
+ this.showExportForm = false
346
+ },
347
+ fnProhibitToEdit (data) {
348
+ this.$emit('prohibi-edit', data)
349
+ },
350
+ getButtonLabel (button) {
351
+ let label = button.label ? button.label : (button.code === 'search' ? this.$t('superPageMessage.searchButtonLabel') : '')
352
+ if (button.code === 'back' && this.backButtonName) {
353
+ label = this.backButtonName
354
+ }
355
+ return label
356
+ },
357
+ getButtonType (button) {
358
+ return this.position && this.position === 'chart' ? 'text' : (button.type ? button.type : (button.code === 'delete' ? 'danger' : ''))
359
+ }
360
+ }
361
+ }
362
+ </script>
363
+ <style>
364
+ .fa-custom{
365
+ padding-right: 5px
366
+ }
367
+ </style>