cloud-web-corejs 1.0.54-dev.372 → 1.0.54-dev.373
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/xform/form-designer/form-widget/dialog/formulaDialog.vue +799 -0
- package/src/components/xform/form-render/index.vue +62 -23
- package/src/components/xform/form-render/indexMixin.js +3151 -2
- package/src/components/xform/mixins/defaultHandle.js +336 -1
- package/src/components/xform/utils/formula-util.js +30 -0
- package/src/layout/components/Sidebar/default.vue +1389 -1266
- package/src/layout/components/createCompany/createCompanyDialog.vue +157 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<el-dialog
|
|
4
|
+
:title="$t1('新建企业')"
|
|
5
|
+
:append-to-body="true"
|
|
6
|
+
:modal-append-to-body="true"
|
|
7
|
+
:close-on-click-modal="false"
|
|
8
|
+
:visible.sync="showDialog"
|
|
9
|
+
:modal="false"
|
|
10
|
+
custom-class="dialog-style list-dialog dialog-checkbox pd_8"
|
|
11
|
+
width="350px"
|
|
12
|
+
v-el-drag-dialog
|
|
13
|
+
v-el-dialog-center
|
|
14
|
+
:before-close="dialogClose"
|
|
15
|
+
>
|
|
16
|
+
<div class="cont">
|
|
17
|
+
<el-form
|
|
18
|
+
ref="editCategoryForm"
|
|
19
|
+
:model="formData"
|
|
20
|
+
label-width="102px"
|
|
21
|
+
class="adSearchForm"
|
|
22
|
+
style="min-height: 150px; width: auto"
|
|
23
|
+
>
|
|
24
|
+
<el-form-item :label="$t1('企业类型')">
|
|
25
|
+
<el-radio-group v-model="formData.gender">
|
|
26
|
+
<el-radio :label="1">{{ $t1("海外营销") }}</el-radio
|
|
27
|
+
><br />
|
|
28
|
+
<el-radio :label="2">{{ $t1("国内营销") }}</el-radio
|
|
29
|
+
><br />
|
|
30
|
+
<el-radio :label="3">{{ $t1("产品平台") }}</el-radio>
|
|
31
|
+
</el-radio-group>
|
|
32
|
+
</el-form-item>
|
|
33
|
+
<el-form-item :label="$t1('编码')">
|
|
34
|
+
<el-input v-model="formData.sid" clearable class="all-width" />
|
|
35
|
+
</el-form-item>
|
|
36
|
+
</el-form>
|
|
37
|
+
</div>
|
|
38
|
+
<span slot="footer" class="dialog-footer">
|
|
39
|
+
<el-button type="primary" plain class="button-sty" @click="dialogClose">
|
|
40
|
+
<i class="el-icon-close el-icon"></i>
|
|
41
|
+
{{ $t1("取消") }}
|
|
42
|
+
</el-button>
|
|
43
|
+
<el-button type="primary" @click="openCreateCompanyJsonDialog" class="button-sty">
|
|
44
|
+
<i class="el-icon-check el-icon"></i>
|
|
45
|
+
{{ $t1("确定") }}
|
|
46
|
+
</el-button>
|
|
47
|
+
</span>
|
|
48
|
+
</el-dialog>
|
|
49
|
+
<el-dialog
|
|
50
|
+
title="新建企业JSON维护"
|
|
51
|
+
:append-to-body="true"
|
|
52
|
+
:modal-append-to-body="true"
|
|
53
|
+
:close-on-click-modal="false"
|
|
54
|
+
:visible.sync="showCreateCompanyJsonDialog"
|
|
55
|
+
:modal="false"
|
|
56
|
+
custom-class="dialog-style tips-dialog tips-1 "
|
|
57
|
+
width="800px"
|
|
58
|
+
@close="dialogClose"
|
|
59
|
+
v-el-drag-dialog
|
|
60
|
+
v-el-dialog-center
|
|
61
|
+
>
|
|
62
|
+
<div class="cont" style="height: 700px">
|
|
63
|
+
<code-editor
|
|
64
|
+
mode="json"
|
|
65
|
+
:readonly="!1"
|
|
66
|
+
v-model="companyJson"
|
|
67
|
+
height="414px;"
|
|
68
|
+
></code-editor>
|
|
69
|
+
</div>
|
|
70
|
+
<span slot="footer" class="dialog-footer">
|
|
71
|
+
<el-button type="primary" plain class="button-sty" @click="dialogClose">
|
|
72
|
+
<i class="el-icon-close el-icon"></i>
|
|
73
|
+
{{ $t1("取 消") }}
|
|
74
|
+
</el-button>
|
|
75
|
+
<el-button
|
|
76
|
+
type="primary"
|
|
77
|
+
@click="confirmCreateCompanyJsonDialog"
|
|
78
|
+
class="button-sty"
|
|
79
|
+
>
|
|
80
|
+
<i class="el-icon-check el-icon"></i>
|
|
81
|
+
{{ $t1("确 定") }}
|
|
82
|
+
</el-button>
|
|
83
|
+
</span>
|
|
84
|
+
</el-dialog>
|
|
85
|
+
</div>
|
|
86
|
+
</template>
|
|
87
|
+
<script>
|
|
88
|
+
export default {
|
|
89
|
+
components: {},
|
|
90
|
+
data() {
|
|
91
|
+
return {
|
|
92
|
+
showDialog: true,
|
|
93
|
+
formData: {
|
|
94
|
+
objType: "FormTemplate",
|
|
95
|
+
sid: null,
|
|
96
|
+
},
|
|
97
|
+
extractedCode: null,
|
|
98
|
+
companyJson: null,
|
|
99
|
+
showCreateCompanyJsonDialog: false,
|
|
100
|
+
};
|
|
101
|
+
},
|
|
102
|
+
methods: {
|
|
103
|
+
dialogConfirm() {
|
|
104
|
+
this.extractedCode = null;
|
|
105
|
+
if (!this.formData.sid) {
|
|
106
|
+
this.$baseAlert("唯一标识不能为空");
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
this.$http({
|
|
110
|
+
aes: true,
|
|
111
|
+
url: USER_PREFIX + `/form_develop/getExtractedCodeData`,
|
|
112
|
+
method: `post`,
|
|
113
|
+
data: this.formData,
|
|
114
|
+
isLoading: true,
|
|
115
|
+
success: (res) => {
|
|
116
|
+
let rows = res.objx || [];
|
|
117
|
+
if (rows.length) {
|
|
118
|
+
let row = rows[0];
|
|
119
|
+
this.extractedCode = row.extractedCode;
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
});
|
|
123
|
+
},
|
|
124
|
+
dialogClose() {
|
|
125
|
+
this.showDialog = false;
|
|
126
|
+
this.$emit("update:visiable", false);
|
|
127
|
+
},
|
|
128
|
+
openCreateCompanyJsonDialog() {
|
|
129
|
+
this.showDialog = false;
|
|
130
|
+
this.companyJson = "";
|
|
131
|
+
this.showCreateCompanyJsonDialog = true;
|
|
132
|
+
},
|
|
133
|
+
confirmCreateCompanyJsonDialog(data) {
|
|
134
|
+
/* this.$http({
|
|
135
|
+
aes: true,
|
|
136
|
+
url: USER_PREFIX + `/form_develop/getExtractedCodeData`,
|
|
137
|
+
method: `post`,
|
|
138
|
+
data: this.formData,
|
|
139
|
+
isLoading: true,
|
|
140
|
+
success: (res) => {
|
|
141
|
+
this.$message({
|
|
142
|
+
message: res.content,
|
|
143
|
+
type: "success"
|
|
144
|
+
});
|
|
145
|
+
this.dialogClose();
|
|
146
|
+
},
|
|
147
|
+
}); */
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
};
|
|
151
|
+
</script>
|
|
152
|
+
|
|
153
|
+
<style scoped>
|
|
154
|
+
::v-deep .el-select.all-width .el-input {
|
|
155
|
+
width: 100% !important;
|
|
156
|
+
}
|
|
157
|
+
</style>
|