cloud-web-corejs 1.0.54-dev.371 → 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/table/vxeFilter/mixin.js +26 -18
- package/src/components/xform/form-designer/form-widget/dialog/formulaDialog.vue +799 -0
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +5 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -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
- package/src/mixins/selectDialog/index.js +13 -7
- package/src/views/user/wf/wf_transfer_setting/edit.vue +1 -0
- package/src/views/user/wf/wf_transfer_setting/list.vue +1 -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>
|
|
@@ -12,7 +12,8 @@ tMixins = {
|
|
|
12
12
|
data() {
|
|
13
13
|
return {
|
|
14
14
|
checkRows: [],
|
|
15
|
-
fieldKey: 'id'
|
|
15
|
+
fieldKey: 'id',
|
|
16
|
+
defaultTableRefName: "table-m1"
|
|
16
17
|
}
|
|
17
18
|
},
|
|
18
19
|
methods: {
|
|
@@ -31,6 +32,10 @@ tMixins = {
|
|
|
31
32
|
if (this.$attrs.fieldKey) {
|
|
32
33
|
this.fieldKey = this.$attrs.fieldKey;
|
|
33
34
|
}
|
|
35
|
+
|
|
36
|
+
if (this.$attrs.tableRef) {
|
|
37
|
+
this.defaultTableRefName = this.$attrs.tableRef;
|
|
38
|
+
}
|
|
34
39
|
let checkRows;
|
|
35
40
|
if (this.selectMulti) {
|
|
36
41
|
checkRows = this.rows || [];
|
|
@@ -48,13 +53,11 @@ tMixins = {
|
|
|
48
53
|
}
|
|
49
54
|
},
|
|
50
55
|
addDataTable(obj) {
|
|
51
|
-
debugger
|
|
52
56
|
let fieldKey = this.fieldKey;
|
|
53
57
|
let selectMulti = this.selectMulti;
|
|
54
58
|
let row = obj.row;
|
|
55
59
|
let that = this;
|
|
56
60
|
let $table1 = obj.$table;
|
|
57
|
-
let $table2 = this.$refs['table-m2'];
|
|
58
61
|
|
|
59
62
|
if (selectMulti) {
|
|
60
63
|
let rows = this.checkRows;
|
|
@@ -108,7 +111,7 @@ tMixins = {
|
|
|
108
111
|
let selectMulti = this.selectMulti;
|
|
109
112
|
let row = this.checkRows[index];
|
|
110
113
|
var rowid = row[fieldKey];
|
|
111
|
-
let $grid1 = this.$refs[
|
|
114
|
+
let $grid1 = this.$refs[this.defaultTableRefName];
|
|
112
115
|
|
|
113
116
|
// let rows = $grid1.getTableData().fullData;
|
|
114
117
|
let rows = $grid1.getTableData().visibleData;
|
|
@@ -162,10 +165,13 @@ tMixins = {
|
|
|
162
165
|
})
|
|
163
166
|
},
|
|
164
167
|
clearChecked() {
|
|
165
|
-
let $grid1 = this.$refs[
|
|
168
|
+
let $grid1 = this.$refs[this.defaultTableRefName];
|
|
166
169
|
$grid1.clearCheckboxRow();
|
|
167
170
|
this.checkRows = [];
|
|
168
171
|
},
|
|
172
|
+
_clearChecked() {
|
|
173
|
+
this.clearChecked();
|
|
174
|
+
},
|
|
169
175
|
findTreeRowById(rows, rowid) {
|
|
170
176
|
let fieldKey = this.fieldKey;
|
|
171
177
|
for (let i = 0; i < rows.length; i++) {
|
|
@@ -197,7 +203,7 @@ tMixins = {
|
|
|
197
203
|
return newRows;
|
|
198
204
|
},
|
|
199
205
|
searchEvent(option) {
|
|
200
|
-
let target =
|
|
206
|
+
let target = this.defaultTableRefName;
|
|
201
207
|
let formKey = "formData";
|
|
202
208
|
if (option && !option.preventDefault) {
|
|
203
209
|
if (option.target) {
|
|
@@ -210,7 +216,7 @@ tMixins = {
|
|
|
210
216
|
this.$refs[target].commitProxy('reload');
|
|
211
217
|
},
|
|
212
218
|
resetEvent(option) {
|
|
213
|
-
let target =
|
|
219
|
+
let target = this.defaultTableRefName;
|
|
214
220
|
let formKey = "formData";
|
|
215
221
|
if (option && !option.preventDefault) {
|
|
216
222
|
if (option.target) {
|