cloud-web-corejs 1.0.174 → 1.0.176
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 +3 -1
- package/src/components/Tinymce/index.vue +112 -71
- package/src/components/VabUpload/image-viewer.vue +2 -2
- package/src/components/VabUpload/index.js +2 -1
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/privateProfileDialogMixins.js +1 -1063
- package/src/components/VabUpload/view.vue +4 -2
- package/src/components/baseAlert/mixins.js +1 -1
- package/src/components/baseAttachment/mixins.js +2 -1
- package/src/components/baseInputExport/index.vue +19 -12
- package/src/components/baseInputExport/mixins.js +1 -1
- package/src/components/baseTabs/mixins.js +1 -1
- package/src/components/code-editor/index.vue +102 -63
- package/src/components/confirmDialog/index.vue +24 -17
- package/src/components/confirmDialog/mixins.js +1 -1
- package/src/components/errorMsg/index.vue +42 -34
- package/src/components/errorMsg/mixins.js +1 -1
- package/src/components/excelExport/index.js +1 -2
- package/src/components/excelExport/mixins.js +1 -1
- package/src/components/obsUpload/index.js +1 -0
- package/src/components/obsUpload/index.vue +231 -0
- package/src/components/obsUpload/mixins.js +8 -0
- package/src/components/scriptDescription/button.vue +12 -4
- package/src/components/scriptTest/mixins.js +1 -1
- package/src/components/table/index.js +1 -1
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js +11028 -0
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.min.css +200 -0
- package/src/components/vb-tabs/x-tabs.vue +0 -1
- package/src/components/xform/form-designer/designer.js +1 -1
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +16 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +17 -4
- 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 +247 -187
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +2 -0
- package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +6 -2
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +10 -0
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +65 -4
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +131 -118
- package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +137 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +124 -50
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +5 -1
- package/src/components/xform/form-render/indexMixin copy.js +3462 -0
- package/src/components/xform/form-render/indexMixin.js +1 -1
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/utils/format.js +14 -4
- package/src/components/xform/utils/formula-util.js +0 -4
- package/src/components/xform/utils/util.js +1 -1
- package/src/layout/components/Sidebar/default.vue +1421 -1266
- package/src/layout/components/createCompany/createCompanyDialog.vue +157 -0
- package/src/utils/index.js +1 -6
- package/src/utils/vab.js +1 -1
- package/src/views/user/form/vform/designer.vue +2 -1
- package/src/views/user/outLink/index.vue +57 -18
- package/src/components/xform/utils/formula-util copy 2.js +0 -945
- package/src/components/xform/utils/formula-util copy.js +0 -860
|
@@ -1,26 +1,56 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<el-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
<div>
|
|
3
|
+
<el-form-item prop="name" :rules="nameRequiredRule">
|
|
4
|
+
<span slot="label"
|
|
5
|
+
>{{ i18nt("designer.setting.uniqueName") }}
|
|
6
|
+
<el-tooltip effect="light" :content="i18nt('designer.setting.editNameHelp')">
|
|
7
|
+
<i class="el-icon-info"></i
|
|
8
|
+
></el-tooltip>
|
|
9
|
+
</span>
|
|
10
|
+
<template
|
|
11
|
+
v-if="
|
|
12
|
+
(!!selectedWidget.category && selectedWidget.type !== 'sub-form') || noFieldList
|
|
13
|
+
"
|
|
14
|
+
>
|
|
15
|
+
<el-input
|
|
16
|
+
type="text"
|
|
17
|
+
v-model="optionModel.name"
|
|
18
|
+
:readonly="widgetNameReadonly"
|
|
19
|
+
@change="updateWidgetNameAndRef"
|
|
20
|
+
></el-input>
|
|
21
|
+
</template>
|
|
22
|
+
<template v-else>
|
|
23
|
+
<el-select
|
|
24
|
+
v-model="optionModel.name"
|
|
25
|
+
allow-create
|
|
26
|
+
filterable
|
|
27
|
+
:disabled="true"
|
|
28
|
+
@change="updateWidgetNameAndRef"
|
|
29
|
+
:title="i18nt('designer.setting.editNameHelp')"
|
|
30
|
+
>
|
|
31
|
+
<el-option
|
|
32
|
+
v-for="(sf, sfIdx) in serverFieldList"
|
|
33
|
+
:key="sfIdx"
|
|
34
|
+
:label="sf.label"
|
|
35
|
+
:value="sf.name"
|
|
36
|
+
></el-option>
|
|
37
|
+
</el-select>
|
|
38
|
+
</template>
|
|
39
|
+
</el-form-item>
|
|
40
|
+
<el-form-item label="菜单按钮权限编码" v-show="showAuthCode">
|
|
41
|
+
<div style="word-break: break-all">
|
|
42
|
+
<el-tooltip effect="light" content="复制">
|
|
43
|
+
<a class="a-link" style="color: unset;" @click="copyAuthCode"><span><i class="el-icon-copy-document" style="margin-right:2px"></i>{{ authCode }}</span></a>
|
|
44
|
+
</el-tooltip>
|
|
45
|
+
</div>
|
|
46
|
+
</el-form-item>
|
|
47
|
+
</div>
|
|
19
48
|
</template>
|
|
20
49
|
|
|
21
50
|
<script>
|
|
22
|
-
import i18n from "../../../../../components/xform/utils/i18n"
|
|
23
|
-
import {isEmptyStr} from "../../../../../components/xform/utils/util"
|
|
51
|
+
import i18n from "../../../../../components/xform/utils/i18n";
|
|
52
|
+
import { isEmptyStr } from "../../../../../components/xform/utils/util";
|
|
53
|
+
import Clipboard from 'clipboard'
|
|
24
54
|
|
|
25
55
|
export default {
|
|
26
56
|
name: "name-editor",
|
|
@@ -31,53 +61,100 @@ export default {
|
|
|
31
61
|
optionModel: Object,
|
|
32
62
|
parentList: Array,
|
|
33
63
|
},
|
|
34
|
-
inject: [
|
|
64
|
+
inject: ["serverFieldList", "getDesignerConfig", "isDataTableChildWidget"],
|
|
35
65
|
data() {
|
|
36
66
|
return {
|
|
37
|
-
nameRequiredRule: [{required: true, message:
|
|
38
|
-
}
|
|
67
|
+
nameRequiredRule: [{ required: true, message: "name required" }],
|
|
68
|
+
};
|
|
39
69
|
},
|
|
40
70
|
computed: {
|
|
41
71
|
noFieldList() {
|
|
42
|
-
return !this.serverFieldList ||
|
|
72
|
+
return !this.serverFieldList || this.serverFieldList.length <= 0;
|
|
43
73
|
},
|
|
44
74
|
|
|
45
75
|
widgetNameReadonly() {
|
|
46
|
-
return !!this.getDesignerConfig().widgetNameReadonly
|
|
76
|
+
return !!this.getDesignerConfig().widgetNameReadonly;
|
|
77
|
+
},
|
|
78
|
+
showAuthCode() {
|
|
79
|
+
// return this.selectedWidget.category !== "container";
|
|
80
|
+
return [
|
|
81
|
+
"button",
|
|
82
|
+
"a-text",
|
|
83
|
+
"a-link",
|
|
84
|
+
"a-link2",
|
|
85
|
+
"search_button",
|
|
86
|
+
"save_button",
|
|
87
|
+
"reset_button",
|
|
88
|
+
"table-export-button",
|
|
89
|
+
"select-export-button",
|
|
90
|
+
"add_button",
|
|
91
|
+
"import-button",
|
|
92
|
+
"import2-button",
|
|
93
|
+
"print-button",
|
|
94
|
+
"print-detail-button",
|
|
95
|
+
"download-button",
|
|
96
|
+
"copy_button",
|
|
97
|
+
"tempStorage",
|
|
98
|
+
].includes(this.selectedWidget.type);
|
|
99
|
+
},
|
|
100
|
+
authCode() {
|
|
101
|
+
return (
|
|
102
|
+
this.designer.vueInstance?.reportTemplate?.formCode + ":" + this.optionModel.name
|
|
103
|
+
);
|
|
47
104
|
},
|
|
48
|
-
|
|
49
105
|
},
|
|
50
106
|
methods: {
|
|
107
|
+
copyAuthCode(e){
|
|
108
|
+
this.copyToClipboard(this.authCode, e, this.$message, '复制成功', '复制失败');
|
|
109
|
+
},
|
|
110
|
+
copyToClipboard(content, clickEvent, $message, successMsg, errorMsg) {
|
|
111
|
+
const clipboard = new Clipboard(clickEvent.target, {
|
|
112
|
+
text: () => content
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
clipboard.on('success', () => {
|
|
116
|
+
$message.success(successMsg);
|
|
117
|
+
clipboard.destroy();
|
|
118
|
+
})
|
|
119
|
+
|
|
120
|
+
clipboard.on('error', () => {
|
|
121
|
+
$message.error(errorMsg);
|
|
122
|
+
clipboard.destroy();
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
clipboard.onClick(clickEvent);
|
|
126
|
+
},
|
|
51
127
|
updateWidgetNameAndRef(newName) {
|
|
52
|
-
let oldName = this.designer.selectedWidgetName
|
|
128
|
+
let oldName = this.designer.selectedWidgetName;
|
|
53
129
|
if (isEmptyStr(newName)) {
|
|
54
|
-
this.selectedWidget.options.name = oldName
|
|
55
|
-
this.$message.info(this.i18nt(
|
|
56
|
-
return
|
|
130
|
+
this.selectedWidget.options.name = oldName;
|
|
131
|
+
this.$message.info(this.i18nt("designer.hint.nameRequired"));
|
|
132
|
+
return;
|
|
57
133
|
}
|
|
58
134
|
|
|
59
135
|
if (!!this.designer.formWidget) {
|
|
60
|
-
let foundRef = this.designer.formWidget.getWidgetRef(newName) // 检查newName是否已存在!!
|
|
136
|
+
let foundRef = this.designer.formWidget.getWidgetRef(newName); // 检查newName是否已存在!!
|
|
61
137
|
|
|
62
138
|
if (!!foundRef) {
|
|
63
139
|
if (this.isDataTableChildWidget()) {
|
|
64
140
|
let parentList = this.parentList;
|
|
65
|
-
for (let i;i<parentList.length;i++){
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
this.selectedWidget.options.name = oldName
|
|
71
|
-
this.$message.info(this.i18nt('designer.hint.duplicateName') + newName)
|
|
72
|
-
return
|
|
141
|
+
for (let i; i < parentList.length; i++) {}
|
|
142
|
+
} else {
|
|
143
|
+
this.selectedWidget.options.name = oldName;
|
|
144
|
+
this.$message.info(this.i18nt("designer.hint.duplicateName") + newName);
|
|
145
|
+
return;
|
|
73
146
|
}
|
|
74
147
|
}
|
|
75
148
|
|
|
76
|
-
let widgetInDesign = this.designer.formWidget.getWidgetRef(oldName)
|
|
149
|
+
let widgetInDesign = this.designer.formWidget.getWidgetRef(oldName);
|
|
77
150
|
if (!!widgetInDesign && !!widgetInDesign.registerToRefList) {
|
|
78
|
-
widgetInDesign.registerToRefList(oldName)
|
|
79
|
-
let newLabel = this.getLabelByFieldName(newName)
|
|
80
|
-
this.designer.updateSelectedWidgetNameAndLabel(
|
|
151
|
+
widgetInDesign.registerToRefList(oldName); //注册组件新的ref名称并删除老的ref!!
|
|
152
|
+
let newLabel = this.getLabelByFieldName(newName);
|
|
153
|
+
this.designer.updateSelectedWidgetNameAndLabel(
|
|
154
|
+
this.selectedWidget,
|
|
155
|
+
newName,
|
|
156
|
+
newLabel
|
|
157
|
+
);
|
|
81
158
|
}
|
|
82
159
|
}
|
|
83
160
|
},
|
|
@@ -85,17 +162,14 @@ export default {
|
|
|
85
162
|
getLabelByFieldName(fieldName) {
|
|
86
163
|
for (let i = 0; i < this.serverFieldList.length; i++) {
|
|
87
164
|
if (this.serverFieldList[i].name === fieldName) {
|
|
88
|
-
return this.serverFieldList[i].label
|
|
165
|
+
return this.serverFieldList[i].label;
|
|
89
166
|
}
|
|
90
167
|
}
|
|
91
168
|
|
|
92
|
-
return null
|
|
169
|
+
return null;
|
|
93
170
|
},
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
171
|
+
},
|
|
172
|
+
};
|
|
97
173
|
</script>
|
|
98
174
|
|
|
99
|
-
<style lang="scss" scoped>
|
|
100
|
-
|
|
101
|
-
</style>
|
|
175
|
+
<style lang="scss" scoped></style>
|
|
@@ -1766,7 +1766,7 @@ export const basicFields = [
|
|
|
1766
1766
|
{
|
|
1767
1767
|
type: "html-text",
|
|
1768
1768
|
icon: "html-text",
|
|
1769
|
-
commonFlag: !
|
|
1769
|
+
commonFlag: !0,
|
|
1770
1770
|
formItemFlag: !1,
|
|
1771
1771
|
columnFlag: false,
|
|
1772
1772
|
options: {
|
|
@@ -1948,6 +1948,8 @@ export const basicFields = [
|
|
|
1948
1948
|
|
|
1949
1949
|
autoValueEnabled: false,
|
|
1950
1950
|
autoValueHanlde: null,
|
|
1951
|
+
formatType: null,
|
|
1952
|
+
renderHandle: null,
|
|
1951
1953
|
|
|
1952
1954
|
showRuleFlag: 1,
|
|
1953
1955
|
showRuleEnabled: 1,
|
|
@@ -1989,6 +1991,8 @@ export const basicFields = [
|
|
|
1989
1991
|
underline: false,
|
|
1990
1992
|
href: "",
|
|
1991
1993
|
colorClass: "f-red",
|
|
1994
|
+
formatType: null,
|
|
1995
|
+
renderHandle: null,
|
|
1992
1996
|
|
|
1993
1997
|
onCreated: "",
|
|
1994
1998
|
onMounted: "",
|