ecinc-cloud-wappaio 9.0.67 → 9.0.69
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/Basicform/index.js +19 -0
- package/Basicform/src/DynamicForm.vue +177 -0
- package/Basicform/src/FormItem.vue +1191 -0
- package/Basicform/src/index.vue +804 -0
- package/BatchProcessing/index.js +15 -0
- package/BatchProcessing/src/components/TaskItemTypeTree.vue +437 -0
- package/BatchProcessing/src/components/img/folder.png +0 -0
- package/BatchProcessing/src/index.vue +837 -0
- package/DataTable/index.js +14 -0
- package/DataTable/src/Pagination.vue +101 -0
- package/DataTable/src/RenderColumn.vue +19 -0
- package/DataTable/src/ResPermission.vue +210 -0
- package/DataTable/src/Search.vue +431 -0
- package/DataTable/src/Toolbar.vue +576 -0
- package/DataTable/src/index.vue +1942 -0
- package/DatetimeRange/index.js +9 -0
- package/DatetimeRange/src/index.vue +90 -0
- package/Directive/can-edit/index.js +93 -0
- package/Directive/el-drag-dialog/drag.js +86 -0
- package/Directive/el-drag-dialog/index.js +13 -0
- package/Directive/field-lbl/index.js +38 -0
- package/Directive/focus/index.js +30 -0
- package/Directive/index.js +17 -0
- package/Directive/listpage-dialog/index.js +51 -0
- package/Directive/permission/index.js +19 -0
- package/Directive/permission/permission.js +28 -0
- package/Directive/select-dialog/index.js +90 -0
- package/Directive/table-toxls/index.js +120 -0
- package/DoingDialog/index.js +9 -0
- package/DoingDialog/src/index.vue +72 -0
- package/InnerTable/index.js +9 -0
- package/InnerTable/src/index.vue +460 -0
- package/LRLayout/index.js +13 -0
- package/LRLayout/src/LeftPanel.vue +34 -0
- package/LRLayout/src/RightPanel.vue +28 -0
- package/LRLayout/src/index.vue +47 -0
- package/PageContent/index.js +9 -0
- package/PageContent/src/index.vue +83 -0
- package/PageHeader/index.js +9 -0
- package/PageHeader/src/index.vue +172 -0
- package/PdfTools/index.js +9 -0
- package/PdfTools/src/AddSign.vue +157 -0
- package/PdfTools/src/ListSeals.vue +251 -0
- package/PdfTools/src/SignImgBox.vue +155 -0
- package/PdfTools/src/index.vue +453 -0
- package/RichtextEditor/index.js +9 -0
- package/RichtextEditor/src/index.vue +330 -0
- package/ScrollPane/index.js +9 -0
- package/ScrollPane/src/index.vue +88 -0
- package/SelectDialog/index.js +9 -0
- package/SelectDialog/src/ListitemDialog.vue +190 -0
- package/SelectDialog/src/ListpageDialog.vue +556 -0
- package/SelectDialog/src/OrgTreeDialog.vue +1925 -0
- package/SelectDialog/src/index.vue +23 -0
- package/SelectGroup/index.js +9 -0
- package/SelectGroup/src/index.vue +85 -0
- package/SidebarLogo/index.js +8 -0
- package/SidebarLogo/src/index.vue +106 -0
- package/SvgIcon/index.js +9 -0
- package/SvgIcon/src/index.vue +61 -0
- package/TextRecognition/images/download_icon.png +0 -0
- package/TextRecognition/images/recognizing.gif +0 -0
- package/TextRecognition/images/text_icon_biao.png +0 -0
- package/TextRecognition/images/text_icon_dan.png +0 -0
- package/TextRecognition/images/text_icon_hao.png +0 -0
- package/TextRecognition/images/text_icon_jian.png +0 -0
- package/TextRecognition/images/text_icon_qi.png +0 -0
- package/TextRecognition/images/text_icon_wen.png +0 -0
- package/TextRecognition/images/text_icon_wen_black.png +0 -0
- package/TextRecognition/images/text_pageIcon.png +0 -0
- package/TextRecognition/index.js +17 -0
- package/TextRecognition/src/PDFInjector.vue +438 -0
- package/TextRecognition/src/TextRecognition.vue +465 -0
- package/WfNames/index.js +9 -0
- package/WfNames/src/index.vue +126 -0
- package/Wflowform/index.js +99 -0
- package/Wflowform/src/Attachment.vue +1647 -0
- package/Wflowform/src/BodyFile.vue +765 -0
- package/Wflowform/src/CommandBar.vue +246 -0
- package/Wflowform/src/HandleIdea.vue +550 -0
- package/Wflowform/src/IdeaInputBox.vue +433 -0
- package/Wflowform/src/IdeaSignature.vue +130 -0
- package/Wflowform/src/ImgView.vue +136 -0
- package/Wflowform/src/ModifyWfNodelog.vue +434 -0
- package/Wflowform/src/ModifyWflogAddUser.vue +346 -0
- package/Wflowform/src/ModifyWflogIdea.vue +120 -0
- package/Wflowform/src/ModifyWflogSubmitFile.vue +234 -0
- package/Wflowform/src/ReplaceFile.vue +150 -0
- package/Wflowform/src/SelectOuterDeputy.vue +128 -0
- package/Wflowform/src/SubmitDialog.vue +291 -0
- package/Wflowform/src/SubmitHandle.vue +877 -0
- package/Wflowform/src/ViewBodyFile.vue +232 -0
- package/Wflowform/src/WfNodelogList.vue +927 -0
- package/Wflowform/src/WfTaskNode.vue +299 -0
- package/Wflowform/src/WflowView.vue +12 -0
- package/Wflowform/src/WriteToReadIdea.vue +144 -0
- package/i18n/index.js +49 -0
- package/lang/index.js +46 -0
- package/package.json +5 -85
- package/README.md +0 -24
- package/lib/ecwappaio.common.1.js +0 -34
- package/lib/ecwappaio.common.2.js +0 -808
- package/lib/ecwappaio.common.js +0 -323112
- package/lib/ecwappaio.umd.1.js +0 -34
- package/lib/ecwappaio.umd.2.js +0 -808
- package/lib/ecwappaio.umd.js +0 -323122
- package/lib/ecwappaio.umd.min.1.js +0 -2
- package/lib/ecwappaio.umd.min.2.js +0 -2
- package/lib/ecwappaio.umd.min.js +0 -140
- package/lib/img/404.cb2515ac.svg +0 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import $Basicform from './src/index.vue'
|
|
3
|
+
import $DynamicForm from './src/DynamicForm.vue'
|
|
4
|
+
import $FormItem from './src/FormItem.vue'
|
|
5
|
+
|
|
6
|
+
// 为组件添加 install 方法,用于按需引入
|
|
7
|
+
$Basicform.install = function(Vue) {
|
|
8
|
+
Vue.component($Basicform.name, $Basicform)
|
|
9
|
+
}
|
|
10
|
+
$DynamicForm.install = function(Vue) {
|
|
11
|
+
Vue.component($DynamicForm.name, $DynamicForm)
|
|
12
|
+
}
|
|
13
|
+
$FormItem.install = function(Vue) {
|
|
14
|
+
Vue.component($FormItem.name, $FormItem)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const Basicform = $Basicform
|
|
18
|
+
export const DynamicForm = $DynamicForm
|
|
19
|
+
export const FormItem = $FormItem
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form :model="vo">
|
|
3
|
+
<div :style="{width:formWidth}" class="el-table el-table--fit el-table--border">
|
|
4
|
+
<div class="el-table__body-wrapper">
|
|
5
|
+
<table cellspacing="0" cellpadding="0" border="0" class="el-table__body">
|
|
6
|
+
<tbody>
|
|
7
|
+
<template v-for="(row,key) in tbRows">
|
|
8
|
+
<tr v-if="rowMaxFieldCount===3" :key="key">
|
|
9
|
+
<template v-for="(field,fkey) in row.childs">
|
|
10
|
+
<td :key="fkey" class="el-table__cell tdlbl tdw13"><span v-if="field.isRequired===1" class="required">*</span>{{ field.propComment }}</td>
|
|
11
|
+
<td v-if="row.fieldCount===1" :key="'f'+fkey" colspan="5" class="el-table__cell tdcont tdw87"><form-item :field="field" :vo="vo" :can-edit="canEdit" /></td>
|
|
12
|
+
<td v-if="row.fieldCount===2" :key="'f'+fkey" :colspan="field.formTdColspan===16?3:1" :class="{'tdcont':true, 'tdw20':field.formTdColspan===8,'tdw44':field.formTdColspan===16}"><form-item :field="field" :vo="vo" :can-edit="canEdit" /></td>
|
|
13
|
+
<td v-if="row.fieldCount===3" :key="'f'+fkey" class="el-table__cell tdcont tdw20"><form-item :field="field" :vo="vo" :can-edit="canEdit" /></td>
|
|
14
|
+
</template>
|
|
15
|
+
</tr>
|
|
16
|
+
<tr v-else-if="rowDisplay(row)||(row.childs[0].propName === 'resRoles' && vo.visitType === 1)" :key="key">
|
|
17
|
+
<template v-for="(field,fkey) in row.childs">
|
|
18
|
+
<td :key="fkey" class="el-table__cell tdlbl tdw17"><span v-if="field.isRequired===1" class="required">*</span>{{ field.propComment }}</td>
|
|
19
|
+
<td v-if="row.fieldCount===1" :key="'f'+fkey" colspan="3" class="el-table__cell tdcont tdw83"><form-item :field="field" :vo="vo" :can-edit="canEdit" /></td>
|
|
20
|
+
<td v-if="row.fieldCount===2" :key="'f'+fkey" class="el-table__cell tdcont tdw33"><form-item :field="field" :vo="vo" :can-edit="canEdit" /></td>
|
|
21
|
+
</template>
|
|
22
|
+
</tr>
|
|
23
|
+
</template>
|
|
24
|
+
</tbody>
|
|
25
|
+
</table>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</el-form>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script>
|
|
32
|
+
import FormItem from './FormItem'
|
|
33
|
+
|
|
34
|
+
export default {
|
|
35
|
+
name: 'DynamicForm',
|
|
36
|
+
components: {
|
|
37
|
+
FormItem
|
|
38
|
+
},
|
|
39
|
+
props: {
|
|
40
|
+
tableFieldInfo: { type: Array, default: function() { return [] } },
|
|
41
|
+
vo: { type: Object, default: function() { return {} } },
|
|
42
|
+
canEdit: { type: Number, default: 1 },
|
|
43
|
+
formWidth: { type: String, default: '100%' },
|
|
44
|
+
moduleInfo: { type: Object, default: function() { return {} } }
|
|
45
|
+
},
|
|
46
|
+
data: function() {
|
|
47
|
+
return {
|
|
48
|
+
formFields: [],
|
|
49
|
+
tbRows: [],
|
|
50
|
+
rowMaxFieldCount: 1
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
watch: {
|
|
54
|
+
vo: {
|
|
55
|
+
handler(newValue, oldValue) {
|
|
56
|
+
this.formFields = this.getFormFields()
|
|
57
|
+
this.tbRows = []
|
|
58
|
+
this.$nextTick(() => {
|
|
59
|
+
this.tbRows = this.getTbRows()
|
|
60
|
+
this.rowMaxFieldCount = this.getRowMaxFieldCount()
|
|
61
|
+
})
|
|
62
|
+
},
|
|
63
|
+
immediate: true
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
methods: {
|
|
67
|
+
getFormFields() {
|
|
68
|
+
const _this = this
|
|
69
|
+
const formFields = []
|
|
70
|
+
this.tableFieldInfo.forEach(function(field) {
|
|
71
|
+
if (field.elementType === 'file') {
|
|
72
|
+
const nameField = _this.tableFieldInfo.filter(item => {
|
|
73
|
+
if (item.propName === field.defaultValue) return true
|
|
74
|
+
})
|
|
75
|
+
if (nameField.length > 0) {
|
|
76
|
+
field.nameField = nameField[0].propName
|
|
77
|
+
field.limitCount = field.valueMaxLength
|
|
78
|
+
field.valueMaxLength = nameField[0].valueMaxLength
|
|
79
|
+
field.downloadUrl = '/' + _this.moduleInfo.getByIdUrl.substring(0, _this.moduleInfo.getByIdUrl.lastIndexOf('/')) + '/download'
|
|
80
|
+
formFields.push(field)
|
|
81
|
+
}
|
|
82
|
+
} else if (field.elementType !== 'hidden' && field.formShow !== 0) {
|
|
83
|
+
formFields.push(field)
|
|
84
|
+
|
|
85
|
+
if (field.propName === 'visitType' && field.searchabled !== true) {
|
|
86
|
+
let resFormatter = field.textFormatter
|
|
87
|
+
if (typeof field.textFormatter === 'string' && resFormatter.indexOf('{') !== -1 && resFormatter.indexOf('}') !== -1) {
|
|
88
|
+
resFormatter = JSON.parse(field.textFormatter)
|
|
89
|
+
} else if ((resFormatter === null || resFormatter === '') && _this.moduleInfo) {
|
|
90
|
+
const resType = _this.moduleInfo.moduleCode.substring(0, 1).toUpperCase() + _this.moduleInfo.moduleCode.substring(1)
|
|
91
|
+
resFormatter = { 'resType': resType, 'permissionCode': 'VISIT' }
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const visitTypeField = {
|
|
95
|
+
'defaultValue': '',
|
|
96
|
+
'elementCanEdit': '{${canEdit}}',
|
|
97
|
+
'elementFormatter': '',
|
|
98
|
+
'elementReadonly': 0,
|
|
99
|
+
'elementType': 'checkbox',
|
|
100
|
+
'emptyMessage': '请选择访问授权',
|
|
101
|
+
'errorMessage': '',
|
|
102
|
+
'formTdColspan': 24,
|
|
103
|
+
'isRequired': 1,
|
|
104
|
+
'propComment': '访问授权',
|
|
105
|
+
'propName': 'resRoles',
|
|
106
|
+
'propType': 'String',
|
|
107
|
+
'textFormatter': 'textfield',
|
|
108
|
+
'resType': resFormatter.resType,
|
|
109
|
+
'permissionCode': resFormatter.permissionCode
|
|
110
|
+
}
|
|
111
|
+
formFields.push(visitTypeField)
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
})
|
|
115
|
+
|
|
116
|
+
return formFields
|
|
117
|
+
},
|
|
118
|
+
getTbRows() {
|
|
119
|
+
const rows = []
|
|
120
|
+
let colspan = 0
|
|
121
|
+
let curRow = {}
|
|
122
|
+
|
|
123
|
+
this.formFields.forEach((field, index) => {
|
|
124
|
+
if (field.formTdColspan === 24 || field.formTdColspan === 0) {
|
|
125
|
+
if (colspan > 0) {
|
|
126
|
+
rows.push(curRow)
|
|
127
|
+
curRow.childs[curRow.childs.length - 1].formTdColspan += (24 - colspan)
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
rows.push({ fieldCount: 1, childs: [field] })
|
|
131
|
+
colspan = 0
|
|
132
|
+
} else if ((colspan + field.formTdColspan) < 24) {
|
|
133
|
+
if (colspan === 0) {
|
|
134
|
+
curRow = { fieldCount: 1, childs: [field] }
|
|
135
|
+
} else {
|
|
136
|
+
curRow.fieldCount++
|
|
137
|
+
curRow.childs.push(field)
|
|
138
|
+
}
|
|
139
|
+
colspan += field.formTdColspan
|
|
140
|
+
} else if ((colspan + field.formTdColspan) === 24) {
|
|
141
|
+
curRow.fieldCount++
|
|
142
|
+
curRow.childs.push(field)
|
|
143
|
+
rows.push(curRow)
|
|
144
|
+
|
|
145
|
+
colspan = 0
|
|
146
|
+
} else if ((colspan + field.formTdColspan) > 24) {
|
|
147
|
+
curRow.childs[curRow.childs.length - 1].formTdColspan += (24 - colspan)
|
|
148
|
+
|
|
149
|
+
rows.push({ fieldCount: 1, childs: [field] })
|
|
150
|
+
colspan = 0
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if ((index + 1) === this.formFields.length && colspan > 0 && colspan < 24) {
|
|
154
|
+
curRow.childs[curRow.childs.length - 1].formTdColspan += (24 - colspan)
|
|
155
|
+
rows.push(curRow)
|
|
156
|
+
}
|
|
157
|
+
})
|
|
158
|
+
return rows
|
|
159
|
+
},
|
|
160
|
+
getRowMaxFieldCount() {
|
|
161
|
+
let maxCount = 1
|
|
162
|
+
this.tbRows.forEach(function(row) {
|
|
163
|
+
if (row.fieldCount > maxCount) maxCount = row.fieldCount
|
|
164
|
+
})
|
|
165
|
+
return maxCount
|
|
166
|
+
},
|
|
167
|
+
rowDisplay(row) {
|
|
168
|
+
if (row.childs[0].propName === 'resRoles' && this.vo.visitType === 0) {
|
|
169
|
+
return false
|
|
170
|
+
} else {
|
|
171
|
+
return true
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
</script>
|
|
177
|
+
|