three-trees-ui 1.0.80 → 1.0.81
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/lib/three-trees-ui.common.js +181 -179
- package/lib/three-trees-ui.css +1 -1
- package/lib/three-trees-ui.umd.js +181 -179
- package/lib/three-trees-ui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/OnlineForm/src/Form.vue +7 -4
- package/packages/TemplateBatchUpdate/src/TemplateBatchUpdateDialog.vue +1 -1
- package/src/mixins/templatePreview.js +1 -2
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div name="online-form">
|
|
3
3
|
<el-skeleton v-if="loadStatus == 0" :rows="6" animated />
|
|
4
|
-
<
|
|
4
|
+
<component
|
|
5
5
|
v-else-if="loadStatus > 0"
|
|
6
|
+
v-bind:is="currentComponent"
|
|
6
7
|
:name="formName"
|
|
7
8
|
:data="data"
|
|
8
9
|
:permission="permission"
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
:is-preview="isPreview"
|
|
19
20
|
@load-fail="handleLoadFail"
|
|
20
21
|
@load-success="handleLoadSuccess"
|
|
21
|
-
|
|
22
|
+
></component>
|
|
22
23
|
<div v-else class="loaded-fail__div">
|
|
23
24
|
表单加载失败,可能是表单配置发生了变化,请联系管理员...
|
|
24
25
|
</div>
|
|
@@ -81,6 +82,7 @@
|
|
|
81
82
|
},
|
|
82
83
|
data() {
|
|
83
84
|
return {
|
|
85
|
+
currentComponent: '',
|
|
84
86
|
formName: `onlineForm_${utils.getName()}`,
|
|
85
87
|
loadStatus: 0,
|
|
86
88
|
subBackfill: new Map(),
|
|
@@ -138,9 +140,10 @@
|
|
|
138
140
|
})
|
|
139
141
|
},
|
|
140
142
|
init() {
|
|
143
|
+
this.currentComponent = this.scopeName
|
|
141
144
|
this.loadStatus = 1
|
|
142
|
-
Vue.component(
|
|
143
|
-
componentName:
|
|
145
|
+
Vue.component(this.currentComponent, {
|
|
146
|
+
componentName: this.currentComponent,
|
|
144
147
|
mixins: [onlineSubtable],
|
|
145
148
|
props: {
|
|
146
149
|
html: String,
|
|
@@ -3671,8 +3671,7 @@ export default {
|
|
|
3671
3671
|
if (item.isRequired) {
|
|
3672
3672
|
isRequired = true
|
|
3673
3673
|
}
|
|
3674
|
-
|
|
3675
|
-
const descField = item.name.toLowerCase().replace('f_', '')
|
|
3674
|
+
const descField = item.name
|
|
3676
3675
|
let obj = {
|
|
3677
3676
|
name: item.name,
|
|
3678
3677
|
desc: filedsObj[descField],
|