cloud-web-corejs 1.0.54-dev.386 → 1.0.54-dev.388
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/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1758 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +46 -21
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1 -0
- package/src/views/user/role/edit.vue +499 -429
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
<el-input v-model="optionModel.importEntity"></el-input>
|
|
8
8
|
</el-form-item>
|
|
9
9
|
<el-form-item label="文件大小限制(M)">
|
|
10
|
-
<base-input-number
|
|
10
|
+
<base-input-number
|
|
11
|
+
v-model="optionModel.importFileLimitSize"
|
|
12
|
+
:max="200"
|
|
13
|
+
></base-input-number>
|
|
11
14
|
</el-form-item>
|
|
12
15
|
<el-form-item label="导入模板文件编码">
|
|
13
16
|
<el-input
|
|
@@ -15,41 +18,60 @@
|
|
|
15
18
|
max="200"
|
|
16
19
|
:value="optionModel.importAttachCode"
|
|
17
20
|
clearable
|
|
18
|
-
@clear="
|
|
21
|
+
@clear="
|
|
22
|
+
optionModel.importAttachCode = null;
|
|
23
|
+
optionModel.importAttachName = null;
|
|
24
|
+
"
|
|
19
25
|
>
|
|
20
|
-
<i
|
|
26
|
+
<i
|
|
27
|
+
slot="suffix"
|
|
28
|
+
class="el-input__icon el-icon-search"
|
|
29
|
+
@click="showBdAttachSettingDialog = true"
|
|
30
|
+
></i>
|
|
21
31
|
</el-input>
|
|
22
32
|
</el-form-item>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
33
|
+
<el-form-item label="导入模板文件名称">
|
|
34
|
+
<span>{{ optionModel.importAttachName }}</span>
|
|
35
|
+
</el-form-item>
|
|
26
36
|
<el-form-item label="关联表格唯一名称">
|
|
27
37
|
<el-input v-model="optionModel.tableRef"></el-input>
|
|
28
38
|
</el-form-item>
|
|
29
39
|
<el-form-item label="执行后台脚本编码">
|
|
30
40
|
<el-input v-model="optionModel.importScriptCode"></el-input>
|
|
31
41
|
</el-form-item>
|
|
42
|
+
<el-form-item label="多sheet导入">
|
|
43
|
+
<el-switch v-model="optionModel.multipleSheet"></el-switch>
|
|
44
|
+
</el-form-item>
|
|
32
45
|
<el-form-item label="批量导入">
|
|
33
46
|
<el-switch v-model="optionModel.importMultiple"></el-switch>
|
|
34
47
|
</el-form-item>
|
|
35
48
|
<el-form-item label="批量导入大小">
|
|
36
|
-
<base-input-number
|
|
49
|
+
<base-input-number
|
|
50
|
+
v-model="optionModel.importMultiSize"
|
|
51
|
+
:max="200"
|
|
52
|
+
></base-input-number>
|
|
37
53
|
</el-form-item>
|
|
38
54
|
|
|
39
55
|
<el-form-item label="启用图片处理">
|
|
40
56
|
<el-switch v-model="optionModel.enabledImportPreHandle"></el-switch>
|
|
41
57
|
</el-form-item>
|
|
42
58
|
<el-form-item label="导入前数据处理" label-width="150px">
|
|
43
|
-
<a
|
|
44
|
-
|
|
59
|
+
<a
|
|
60
|
+
href="javascript:void(0);"
|
|
61
|
+
class="a-link link-oneLind"
|
|
62
|
+
@click="editEventHandler('onBeforeImport', onBeforeImportParams)"
|
|
63
|
+
>
|
|
45
64
|
<span>{{ optionModel.onBeforeImport }}</span>
|
|
46
65
|
<i class="el-icon-edit"></i>
|
|
47
66
|
</a>
|
|
48
67
|
</el-form-item>
|
|
49
68
|
|
|
50
69
|
<el-form-item label="导入完成回调" label-width="150px">
|
|
51
|
-
<a
|
|
52
|
-
|
|
70
|
+
<a
|
|
71
|
+
href="javascript:void(0);"
|
|
72
|
+
class="a-link link-oneLind"
|
|
73
|
+
@click="editEventHandler('onSuccessImport', onSuccessImportParams)"
|
|
74
|
+
>
|
|
53
75
|
<span>{{ optionModel.onSuccessImport }}</span>
|
|
54
76
|
<i class="el-icon-edit"></i>
|
|
55
77
|
</a>
|
|
@@ -58,20 +80,23 @@
|
|
|
58
80
|
<el-switch v-model="optionModel.hideCancelButton"></el-switch>
|
|
59
81
|
</el-form-item>
|
|
60
82
|
|
|
61
|
-
<bdAttachSettingDialog
|
|
62
|
-
|
|
83
|
+
<bdAttachSettingDialog
|
|
84
|
+
v-if="showBdAttachSettingDialog"
|
|
85
|
+
:visiable.sync="showBdAttachSettingDialog"
|
|
86
|
+
:multi="false"
|
|
87
|
+
@confirm="confirmBdAttachSettingDialog"
|
|
88
|
+
></bdAttachSettingDialog>
|
|
63
89
|
</div>
|
|
64
90
|
</template>
|
|
65
91
|
|
|
66
92
|
<script>
|
|
67
93
|
import i18n from "../../../../../../components/xform/utils/i18n";
|
|
68
|
-
import eventMixin
|
|
69
|
-
from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
|
94
|
+
import eventMixin from "../../../../../../components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin";
|
|
70
95
|
import bdAttachSettingDialog from "../../../../../../views/bd/setting/bd_attach_setting/dialog.vue";
|
|
71
96
|
|
|
72
97
|
export default {
|
|
73
98
|
name: "import-button-editor",
|
|
74
|
-
components: {bdAttachSettingDialog},
|
|
99
|
+
components: { bdAttachSettingDialog },
|
|
75
100
|
mixins: [i18n, eventMixin],
|
|
76
101
|
props: {
|
|
77
102
|
designer: Object,
|
|
@@ -82,9 +107,9 @@ export default {
|
|
|
82
107
|
return {
|
|
83
108
|
eventParams: [],
|
|
84
109
|
showBdAttachSettingDialog: false,
|
|
85
|
-
onBeforeImportParams: ["dataId", "formCode",
|
|
86
|
-
onConfirmImportParams: ["dataId", "formCode",
|
|
87
|
-
onSuccessImportParams: ["dataId", "formCode",
|
|
110
|
+
onBeforeImportParams: ["dataId", "formCode", "file", "resultData", "done"],
|
|
111
|
+
onConfirmImportParams: ["dataId", "formCode", "resultData", "file", "done"],
|
|
112
|
+
onSuccessImportParams: ["dataId", "formCode", "resultData", "file"],
|
|
88
113
|
};
|
|
89
114
|
},
|
|
90
115
|
methods: {
|
|
@@ -94,8 +119,8 @@ export default {
|
|
|
94
119
|
this.optionModel.importAttachName = row.name;
|
|
95
120
|
this.optionModel.importAttachCode = row.code;
|
|
96
121
|
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
122
|
+
},
|
|
123
|
+
},
|
|
99
124
|
};
|
|
100
125
|
</script>
|
|
101
126
|
|