cloud-web-corejs 1.0.188 → 1.0.190
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 +273 -187
- package/src/components/baseAlert/index.vue +23 -19
- package/src/components/baseAlert/mixins.js +1 -1
- package/src/components/baseInputExport/index.vue +1 -1
- package/src/components/baseInputExport/mixins.js +1 -1
- package/src/components/errorMsg/index.vue +78 -78
- package/src/components/errorMsg/mixins.js +1 -1
- package/src/components/excelImport/mixins.js +1 -1
- package/src/components/fileLibrary/index.vue +17 -14
- package/src/components/hiprint/view/design/index.vue +139 -47
- package/src/components/hiprint/view/design/preview.vue +75 -52
- package/src/components/hiprint/view/json-view.vue +31 -31
- package/src/components/luckysheet/dialog.vue +159 -0
- package/src/components/luckysheet/export.js +5 -0
- package/src/components/luckysheet/fileUtils.js +1 -0
- package/src/components/luckysheet/index.js +1 -0
- package/src/components/luckysheet/templateJson.js +12078 -0
- package/src/components/luckysheet/view.vue +210 -0
- package/src/components/oplogTable/mixins.js +4 -4
- package/src/components/table/index.js +1 -1
- package/src/components/table/util/index.js +8 -1
- package/src/components/wf/content.vue +3 -2
- package/src/components/wf/wf.js +1 -1
- package/src/components/wf/wfUtil.js +1 -1
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +8 -2
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +11 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +4 -0
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +92 -0
- package/src/components/xform/form-designer/form-widget/field-widget/static-text-widget.vue +8 -3
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +37 -37
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +54 -47
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +432 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/preWrap-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +71 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +39 -34
- package/src/components/xform/form-render/container-item/data-table-item.vue +6 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
- package/src/components/xform/form-render/index.vue +7 -7
- package/src/components/xform/form-render/indexMixin.js +2 -1
- package/src/components/xform/lang/zh-CN.js +2 -0
- package/src/components/xform/utils/formHttp.js +162 -0
- package/src/layout/components/extractedCode/viewDialog.vue +1 -0
- package/src/mixins/tableTree/index.js +4 -4
- package/src/store/modules/permission.js +41 -41
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +1 -239
- package/src/views/bd/setting/form_script/edit.vue +9 -0
- package/src/views/bd/setting/form_script/edit1.vue +29 -3
- package/src/views/bd/setting/form_script/form_list.vue +99 -37
- package/src/views/bd/setting/form_script/list1.vue +181 -118
- package/src/views/bd/setting/form_script/mixins/dialog.js +1 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +3 -2
- package/src/views/bd/setting/form_script/mixins/edit1.js +3 -2
- package/src/views/bd/setting/form_script/mixins/list.js +1 -1
- package/src/views/bd/setting/form_script/mixins/list1.js +1 -1
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
- package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/edit.vue +13 -0
- package/src/views/bd/setting/form_template/list.vue +326 -214
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +2 -1
- package/src/views/bd/setting/form_template/mixins/edit.js +10 -9
- package/src/views/bd/setting/form_template/mixins/list.js +3 -3
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +7 -0
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/logic_param/edit2.vue +17 -0
- package/src/views/bd/setting/menu_kind/list.vue +172 -87
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +7 -7
- package/src/views/bd/setting/menu_kind/mixins/list.js +1 -201
- package/src/views/bd/setting/table_model/edit.vue +345 -304
- package/src/views/bd/setting/table_model/list.vue +190 -128
- package/src/views/bd/setting/table_model/mixins/edit.js +3 -1
- package/src/views/bd/setting/table_model/mixins/list.js +2 -2
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +7 -0
- package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
- package/src/views/user/company_info/dialog.vue +80 -49
- package/src/views/user/home/default.vue +8 -6
- package/src/views/user/notify_message/dialog.vue +9 -7
- package/src/views/user/user/form_dialog.vue +158 -0
- package/src/views/user/user/modifyPasswordDialog.vue +64 -53
- package/src/views/user/wf/wfReport/index.vue +1 -0
- package/src/views/user/wf/wf_manage/list.vue +8 -1
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +25 -22
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<span>
|
|
3
|
-
<el-button type="primary" class="button-sty" @click="show">
|
|
4
|
-
|
|
5
|
-
</el-button>
|
|
6
|
-
<el-dialog :visible="visible" :maskClosable="false"
|
|
7
|
-
@cancel="hideModal">
|
|
3
|
+
<el-button type="primary" class="button-sty" @click="show"> 查看模板json </el-button>
|
|
4
|
+
<el-dialog :visible="visible" :maskClosable="false" @cancel="hideModal">
|
|
8
5
|
<!-- <el-spin :spinning="spinning" style="min-height: 100px"> -->
|
|
9
|
-
|
|
6
|
+
<el-input type="textarea" :rows="2" style="width: 40vw" v-model:value="jsonOut" />
|
|
10
7
|
<!-- </el-spin> -->
|
|
11
8
|
<template slot="title">
|
|
12
9
|
<div>
|
|
13
10
|
<div style="margin-right: 20px">JSON</div>
|
|
14
|
-
<el-switch
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
<el-switch
|
|
12
|
+
active-text="tid模式"
|
|
13
|
+
inactive-text="默认"
|
|
14
|
+
v-model:checked="tidMode"
|
|
15
|
+
@change="onModeChange"
|
|
16
|
+
/>
|
|
17
|
+
<el-switch
|
|
18
|
+
active-text="美化"
|
|
19
|
+
inactive-text="压缩"
|
|
20
|
+
v-model:checked="beautify"
|
|
21
|
+
@change="onModeChange"
|
|
22
|
+
/>
|
|
18
23
|
</div>
|
|
19
24
|
</template>
|
|
20
25
|
<template slot="footer">
|
|
21
|
-
<el-button key="close" type="info" @click="hideModal">
|
|
22
|
-
关闭
|
|
23
|
-
</el-button>
|
|
26
|
+
<el-button key="close" type="info" @click="hideModal"> 关闭 </el-button>
|
|
24
27
|
</template>
|
|
25
28
|
</el-dialog>
|
|
26
29
|
</span>
|
|
@@ -32,7 +35,7 @@ export default {
|
|
|
32
35
|
props: {
|
|
33
36
|
template: {
|
|
34
37
|
type: Object,
|
|
35
|
-
}
|
|
38
|
+
},
|
|
36
39
|
},
|
|
37
40
|
data() {
|
|
38
41
|
return {
|
|
@@ -41,41 +44,38 @@ export default {
|
|
|
41
44
|
jsonOut: "",
|
|
42
45
|
tidMode: false,
|
|
43
46
|
beautify: false,
|
|
44
|
-
}
|
|
47
|
+
};
|
|
45
48
|
},
|
|
46
49
|
computed: {},
|
|
47
50
|
watch: {},
|
|
48
|
-
created() {
|
|
49
|
-
},
|
|
50
|
-
mounted() {
|
|
51
|
-
},
|
|
51
|
+
created() {},
|
|
52
|
+
mounted() {},
|
|
52
53
|
methods: {
|
|
53
54
|
hideModal() {
|
|
54
|
-
this.visible = false
|
|
55
|
+
this.visible = false;
|
|
55
56
|
},
|
|
56
57
|
show() {
|
|
57
|
-
this.visible = true
|
|
58
|
-
this.spinning = true
|
|
58
|
+
this.visible = true;
|
|
59
|
+
this.spinning = true;
|
|
59
60
|
setTimeout(() => {
|
|
60
61
|
let json = this.tidMode ? this.template.getJsonTid() : this.template.getJson();
|
|
61
62
|
let beautify = this.beautify ? 2 : 0;
|
|
62
63
|
this.jsonOut = JSON.stringify(json, null, beautify);
|
|
63
|
-
this.spinning = false
|
|
64
|
-
}, 500)
|
|
64
|
+
this.spinning = false;
|
|
65
|
+
}, 500);
|
|
65
66
|
},
|
|
66
67
|
onModeChange() {
|
|
67
68
|
this.show();
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
72
|
</script>
|
|
73
|
-
<style lang="
|
|
74
|
-
|
|
73
|
+
<style lang="scss" scoped>
|
|
74
|
+
::v-deep .ant-modal-body {
|
|
75
75
|
padding: 0px;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
::v-deep .ant-modal-content {
|
|
79
79
|
margin-bottom: 24px;
|
|
80
80
|
}
|
|
81
81
|
</style>
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
:visible.sync="showDialog"
|
|
4
|
+
:fullscreen="true"
|
|
5
|
+
@close="close"
|
|
6
|
+
:appendToBody="true"
|
|
7
|
+
:modalAppendToBody="true"
|
|
8
|
+
:closeOnClickModal="false"
|
|
9
|
+
:modal="false"
|
|
10
|
+
:title="options.title || 'excel'"
|
|
11
|
+
custom-class="dialog-style list-dialog dialog-checkbox pd_0"
|
|
12
|
+
>
|
|
13
|
+
<div class="cont" id="containt" :class="{ nfootBtn: options.readonly }">
|
|
14
|
+
<luckysheet
|
|
15
|
+
ref="luckysheet"
|
|
16
|
+
:data="json"
|
|
17
|
+
v-if="showLuckysheet"
|
|
18
|
+
:options="options"
|
|
19
|
+
></luckysheet>
|
|
20
|
+
</div>
|
|
21
|
+
<span slot="footer" class="dialog-footer" v-if="!options.readonly">
|
|
22
|
+
<el-button type="primary" plain class="button-sty" @click="close">
|
|
23
|
+
<i class="el-icon-close el-icon"></i>
|
|
24
|
+
{{ $t2("取 消", "system.button.cancel2") }}
|
|
25
|
+
</el-button>
|
|
26
|
+
<el-button type="primary" @click="dialogSubmit" class="button-sty">
|
|
27
|
+
<i class="el-icon-check el-icon"></i>
|
|
28
|
+
{{ $t2("确 定", "system.button.confirm2") }}
|
|
29
|
+
</el-button>
|
|
30
|
+
</span>
|
|
31
|
+
</el-dialog>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script>
|
|
35
|
+
import luckysheet from "./view.vue";
|
|
36
|
+
import { fileToBase64, base64ToFile } from "./fileUtils.js";
|
|
37
|
+
import { saveAs } from "file-saver";
|
|
38
|
+
|
|
39
|
+
export default {
|
|
40
|
+
name: "luckysheetDialog",
|
|
41
|
+
components: { luckysheet },
|
|
42
|
+
props: {
|
|
43
|
+
visiable: Boolean,
|
|
44
|
+
options: {
|
|
45
|
+
type: Object,
|
|
46
|
+
default: () => {},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
mounted() {},
|
|
50
|
+
data() {
|
|
51
|
+
return {
|
|
52
|
+
showDialog: true,
|
|
53
|
+
json: [],
|
|
54
|
+
showLuckysheet: false,
|
|
55
|
+
};
|
|
56
|
+
},
|
|
57
|
+
computed: {},
|
|
58
|
+
created() {
|
|
59
|
+
this.init();
|
|
60
|
+
},
|
|
61
|
+
methods: {
|
|
62
|
+
init() {
|
|
63
|
+
if (this.options.data) {
|
|
64
|
+
try {
|
|
65
|
+
let data = JSON.parse(this.options.data);
|
|
66
|
+
if (Array.isArray(data)) {
|
|
67
|
+
this.json = data;
|
|
68
|
+
} else {
|
|
69
|
+
this.json = [];
|
|
70
|
+
}
|
|
71
|
+
} catch (error) {
|
|
72
|
+
this.json = [];
|
|
73
|
+
console.error(error);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
this.$nextTick(() => {
|
|
77
|
+
this.showLuckysheet = true;
|
|
78
|
+
});
|
|
79
|
+
},
|
|
80
|
+
close() {
|
|
81
|
+
this.$refs.luckysheet.exitEditMode();
|
|
82
|
+
this.showDialog = false;
|
|
83
|
+
this.$emit("update:visiable", false);
|
|
84
|
+
},
|
|
85
|
+
dialogSubmit() {
|
|
86
|
+
let luckysheetRef = this.$refs.luckysheet;
|
|
87
|
+
let value = luckysheetRef.getValue();
|
|
88
|
+
luckysheetRef.generateExcelFile((file) => {
|
|
89
|
+
fileToBase64(file)
|
|
90
|
+
.then((base64) => {
|
|
91
|
+
let response = {
|
|
92
|
+
data: JSON.stringify(value),
|
|
93
|
+
json: value,
|
|
94
|
+
file: file,
|
|
95
|
+
base64: base64,
|
|
96
|
+
// convertedFile: convertedFile // 添加转换后的file对象
|
|
97
|
+
};
|
|
98
|
+
let onConfirm = this.options.onConfirm;
|
|
99
|
+
if (onConfirm && typeof onConfirm === "function") {
|
|
100
|
+
let result = onConfirm(response, this.close);
|
|
101
|
+
if (result !== false) {
|
|
102
|
+
this.close();
|
|
103
|
+
}
|
|
104
|
+
} else {
|
|
105
|
+
this.close();
|
|
106
|
+
}
|
|
107
|
+
})
|
|
108
|
+
.catch((error) => {
|
|
109
|
+
console.error("文件转换失败:", error);
|
|
110
|
+
this.$message.error("文件处理失败");
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
},
|
|
114
|
+
/**
|
|
115
|
+
* 保留原有的fileToBase64Async方法以保持向后兼容
|
|
116
|
+
*/
|
|
117
|
+
fileToBase64Async(file) {
|
|
118
|
+
return fileToBase64(file);
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
</script>
|
|
123
|
+
|
|
124
|
+
<style lang="scss" scoped>
|
|
125
|
+
.list-dialog {
|
|
126
|
+
.el-dialog__body {
|
|
127
|
+
height: calc(100% - 42px);
|
|
128
|
+
.cont {
|
|
129
|
+
height: calc(100vh - 210px);
|
|
130
|
+
|
|
131
|
+
&.nfootBtn {
|
|
132
|
+
height: calc(100vh - 158px);
|
|
133
|
+
}
|
|
134
|
+
&#containt {
|
|
135
|
+
padding: 0;
|
|
136
|
+
::v-deep .grid-container {
|
|
137
|
+
outline: none;
|
|
138
|
+
&.detail-wrap .d-cont {
|
|
139
|
+
height: calc(100vh - 150px);
|
|
140
|
+
.title .field-wrapper {
|
|
141
|
+
display: inline-block !important;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&.is-fullscreen .el-dialog__body {
|
|
150
|
+
.cont {
|
|
151
|
+
height: calc(100vh - 110px);
|
|
152
|
+
|
|
153
|
+
&.nfootBtn {
|
|
154
|
+
height: calc(100vh - 58px);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
</style>
|