cloud-web-corejs 1.0.30 → 1.0.32
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 +1 -1
- package/src/components/jsonImport/index.js +1 -1
- package/src/components/statusTag/index.vue +14 -14
- package/src/components/statusTag/mixins.js +5 -5
- package/src/components/table/index.js +10 -10
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +379 -379
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +125 -125
- package/src/components/xform/form-designer/indexMixin.js +1 -1
- package/src/components/xform/form-designer/toolbar-panel/index.vue +122 -118
- package/src/components/xform/form-render/container-item/data-table-mixin.js +18 -18
- package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -2
- package/src/views/bd/setting/bd_attach_setting/edit.vue +7 -6
- package/src/views/bd/setting/bd_attach_setting/list.vue +3 -3
- package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +5 -5
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +15 -23
- package/src/views/bd/setting/form_script/dialog.vue +8 -7
- package/src/views/bd/setting/form_script/edit.vue +9 -9
- package/src/views/bd/setting/form_script/edit1.vue +24 -20
- package/src/views/bd/setting/form_script/form_list.vue +5 -5
- package/src/views/bd/setting/form_script/list1.vue +10 -8
- package/src/views/bd/setting/form_script/mixins/dialog.js +15 -23
- package/src/views/bd/setting/form_script/mixins/edit1.js +19 -1
- package/src/views/bd/setting/form_script/mixins/form_list.js +52 -36
- package/src/views/bd/setting/form_script/mixins/list.js +19 -27
- package/src/views/bd/setting/form_script/mixins/list1.js +30 -37
- package/src/views/bd/setting/form_template/dialog.vue +6 -6
- package/src/views/bd/setting/form_template/edit.vue +32 -38
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +3 -3
- package/src/views/bd/setting/form_template/ftHistoryDialog.vue +5 -4
- package/src/views/bd/setting/form_template/itemEdit.vue +29 -25
- package/src/views/bd/setting/form_template/itemList.vue +1 -1
- package/src/views/bd/setting/form_template/list.vue +17 -15
- package/src/views/bd/setting/form_template/mixins/dialog.js +7 -14
- package/src/views/bd/setting/form_template/mixins/edit.js +21 -3
- package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +4 -4
- package/src/views/bd/setting/form_template/mixins/itemList.js +43 -57
- package/src/views/bd/setting/form_template/mixins/list.js +42 -78
- package/src/views/bd/setting/form_template/preformDialog.vue +1 -1
- package/src/views/bd/setting/menu_kind/authDialog.vue +7 -2
- package/src/views/bd/setting/menu_kind/dialog.vue +2 -2
- package/src/views/bd/setting/menu_kind/list.vue +8 -11
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +14 -33
- package/src/views/bd/setting/menu_kind/mixins/dialog.js +15 -19
- package/src/views/bd/setting/menu_kind/mixins/list.js +17 -24
- package/src/views/bd/setting/table_model/dialog.vue +8 -6
- package/src/views/bd/setting/table_model/edit.vue +80 -42
- package/src/views/bd/setting/table_model/list.vue +10 -13
- package/src/views/bd/setting/table_model/mixins/dialog.js +6 -6
- package/src/views/bd/setting/table_model/mixins/edit.js +72 -85
- package/src/views/bd/setting/table_model/mixins/list.js +28 -59
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +14 -16
- package/src/views/bd/setting/table_model/zdDialog.vue +8 -6
- package/src/views/bd/setting/utils/index.js +60 -0
- package/src/views/user/form/vform/designer.vue +1 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export function getJsxStatus(className, content) {
|
|
2
|
+
let statusClass = "txt-status";
|
|
3
|
+
if (className) statusClass = statusClass + ' ' + className;
|
|
4
|
+
let h = window.$vueRoot.$createElement;
|
|
5
|
+
let node = h('div', {staticClass: statusClass}, content)
|
|
6
|
+
return [node];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function getJsxBtn({iconName, content, showContent,show, onclick}) {
|
|
10
|
+
if(show===false){
|
|
11
|
+
return [];
|
|
12
|
+
}
|
|
13
|
+
let h = window.$vueRoot.$createElement;
|
|
14
|
+
let contentNodes = [h("i", {staticClass: iconName})]
|
|
15
|
+
if (showContent) {
|
|
16
|
+
contentNodes.push(h('span', {}, content));
|
|
17
|
+
}
|
|
18
|
+
return [h("a", {
|
|
19
|
+
staticClass: "a-link",
|
|
20
|
+
on: {
|
|
21
|
+
click: (event) => {
|
|
22
|
+
onclick && onclick(event);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}, [
|
|
26
|
+
h("el-tooltip", {
|
|
27
|
+
attrs: {
|
|
28
|
+
enterable: false,
|
|
29
|
+
effect: "dark",
|
|
30
|
+
content: content,
|
|
31
|
+
placement: "top",
|
|
32
|
+
"popper-class": "tooltip-skin"
|
|
33
|
+
}
|
|
34
|
+
}, [
|
|
35
|
+
h("div", {}, contentNodes)
|
|
36
|
+
])
|
|
37
|
+
])]
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function getJsxLink({content, onclick}) {
|
|
41
|
+
let h = window.$vueRoot.$createElement;
|
|
42
|
+
return [h("a", {
|
|
43
|
+
on: {
|
|
44
|
+
click: (event) => {
|
|
45
|
+
onclick && onclick(event);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}, content)]
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function getJsxBtnList(list) {
|
|
52
|
+
let arr = [];
|
|
53
|
+
list.forEach(item => {
|
|
54
|
+
arr.push(...getJsxBtn(item));
|
|
55
|
+
})
|
|
56
|
+
let h = window.$vueRoot.$createElement;
|
|
57
|
+
return [
|
|
58
|
+
h('div', {}, arr)
|
|
59
|
+
];
|
|
60
|
+
}
|