doway-coms 2.11.11 → 2.11.13
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/.browserslistrc +2 -2
- package/README.md +28 -28
- package/dist/css/chunk-vendors.7f83d8f9.css +8 -0
- package/dist/css/index.7946d50b.css +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/js/chunk-vendors.28fda91d.js +340 -0
- package/dist/js/index.49bc6add.js +2 -0
- package/lib/doway-coms.common.js +120397 -0
- package/lib/doway-coms.css +1 -0
- package/lib/doway-coms.umd.js +120407 -0
- package/lib/doway-coms.umd.min.js +328 -0
- package/package.json +62 -62
- package/packages/AuditsList/index.js +7 -7
- package/packages/AuditsList/src/index.vue +314 -314
- package/packages/BaseButton/index.js +7 -7
- package/packages/BaseButton/src/index.vue +242 -242
- package/packages/BaseCheckbox/index.js +7 -7
- package/packages/BaseCheckbox/src/index.vue +134 -134
- package/packages/BaseDate/index.js +7 -7
- package/packages/BaseDate/src/index.vue +197 -197
- package/packages/BaseDateWeek/index.js +7 -7
- package/packages/BaseDateWeek/src/index.vue +163 -163
- package/packages/BaseDatetime/index.js +7 -7
- package/packages/BaseDatetime/src/index.vue +196 -196
- package/packages/BaseFileGroup/index.js +7 -7
- package/packages/BaseFileGroup/src/index.vue +724 -724
- package/packages/BaseForm/index.js +7 -7
- package/packages/BaseForm/src/index.vue +895 -895
- package/packages/BaseGantt/index.js +9 -9
- package/packages/BaseGantt/src/index.vue +617 -617
- package/packages/BaseGrid/index.js +9 -9
- package/packages/BaseGrid/src/exportCmp.vue +105 -105
- package/packages/BaseGrid/src/gridApi.js +32 -32
- package/packages/BaseGrid/src/index.vue +4242 -4230
- package/packages/BaseGridAdjust/index.js +9 -9
- package/packages/BaseGridAdjust/src/index.vue +482 -482
- package/packages/BaseInput/index.js +7 -7
- package/packages/BaseInput/src/index.vue +195 -195
- package/packages/BaseIntervalInput/index.js +7 -7
- package/packages/BaseIntervalInput/src/index.vue +310 -310
- package/packages/BaseKanbanEmpty/index.js +7 -7
- package/packages/BaseKanbanEmpty/src/index.vue +176 -176
- package/packages/BaseNumberInput/index.js +7 -7
- package/packages/BaseNumberInput/src/index.vue +291 -291
- package/packages/BasePagination/index.js +7 -7
- package/packages/BasePagination/src/index.vue +91 -91
- package/packages/BasePictureCard/index.js +7 -7
- package/packages/BasePictureCard/src/index.vue +671 -671
- package/packages/BasePrintPreview/index.js +7 -7
- package/packages/BasePrintPreview/src/index.vue +150 -150
- package/packages/BasePulldown/index.js +7 -7
- package/packages/BasePulldown/src/index.vue +1395 -1395
- package/packages/BaseSearch/index.js +7 -7
- package/packages/BaseSearch/src/index.vue +935 -935
- package/packages/BaseSelect/index.js +7 -7
- package/packages/BaseSelect/src/index.vue +155 -155
- package/packages/BaseSelectMulti/index.js +7 -7
- package/packages/BaseSelectMulti/src/index.vue +148 -148
- package/packages/BaseTextArea/index.js +7 -7
- package/packages/BaseTextArea/src/index.vue +187 -187
- package/packages/BaseTime/index.js +7 -7
- package/packages/BaseTime/src/index.vue +166 -166
- package/packages/BaseTool/index.js +7 -7
- package/packages/BaseTool/src/index.vue +353 -353
- package/packages/BaseToolStatus/index.js +7 -7
- package/packages/BaseToolStatus/src/ApprovalPersonsGroup.vue +41 -41
- package/packages/BaseToolStatus/src/index.vue +439 -439
- package/packages/BaseTreeSelect/index.js +8 -8
- package/packages/BaseTreeSelect/src/index.vue +437 -437
- package/packages/HistoryModal/index.js +8 -8
- package/packages/HistoryModal/src/index.vue +144 -144
- package/packages/LeaveAMessage/index.js +7 -7
- package/packages/LeaveAMessage/src/index.vue +601 -601
- package/packages/directive/clickoutside.js +44 -44
- package/packages/index.js +197 -197
- package/packages/styles/default.css +78 -78
- package/packages/styles/default.less +91 -91
- package/packages/utils/api.js +122 -122
- package/packages/utils/auth.js +38 -38
- package/packages/utils/common.js +703 -703
- package/packages/utils/dom.js +181 -181
- package/packages/utils/enum.js +86 -86
- package/packages/utils/filters.js +495 -485
- package/packages/utils/gridFormat.js +66 -66
- package/packages/utils/msg.js +103 -103
- package/packages/utils/patchFiles.js +44 -44
- package/packages/utils/request.js +181 -181
- package/packages/utils/store.js +372 -372
- package/packages/utils/tscPrinter.js +101 -101
- package/sync.bash +6 -6
- package/vue.config.js +59 -59
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// 导入组件,组件必须声明 name
|
|
2
|
-
import BaseGrid from './src/index.vue';
|
|
3
|
-
import VXETable from 'vxe-table'
|
|
4
|
-
// 为组件提供 install 安装方法,供按需引入
|
|
5
|
-
BaseGrid.install = function(Vue) {
|
|
6
|
-
Vue.use(VXETable)
|
|
7
|
-
Vue.component(BaseGrid.name, BaseGrid);
|
|
8
|
-
};
|
|
9
|
-
// 默认导出组件
|
|
1
|
+
// 导入组件,组件必须声明 name
|
|
2
|
+
import BaseGrid from './src/index.vue';
|
|
3
|
+
import VXETable from 'vxe-table'
|
|
4
|
+
// 为组件提供 install 安装方法,供按需引入
|
|
5
|
+
BaseGrid.install = function(Vue) {
|
|
6
|
+
Vue.use(VXETable)
|
|
7
|
+
Vue.component(BaseGrid.name, BaseGrid);
|
|
8
|
+
};
|
|
9
|
+
// 默认导出组件
|
|
10
10
|
export default BaseGrid;
|
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<vxe-modal
|
|
4
|
-
v-model="showExport"
|
|
5
|
-
:title="exportTitle"
|
|
6
|
-
show-zoom
|
|
7
|
-
resize
|
|
8
|
-
showFooter
|
|
9
|
-
show-close
|
|
10
|
-
:mask-closable="true"
|
|
11
|
-
width="400px"
|
|
12
|
-
height="400px"
|
|
13
|
-
:destroyOnClose="true"
|
|
14
|
-
>
|
|
15
|
-
<template #default>
|
|
16
|
-
<draggable ref="dragView" v-model="exportFields">
|
|
17
|
-
<div v-for="loopField in exportFields" :key="loopField.code">
|
|
18
|
-
<a-checkbox v-model="loopField.selected">{{ loopField.title }}</a-checkbox>
|
|
19
|
-
</div>
|
|
20
|
-
</draggable>
|
|
21
|
-
</template>
|
|
22
|
-
<template #footer>
|
|
23
|
-
<Button type="primary" size="small" @click="confirmExport">确认导出</Button>
|
|
24
|
-
</template>
|
|
25
|
-
</vxe-modal>
|
|
26
|
-
</div>
|
|
27
|
-
</template>
|
|
28
|
-
|
|
29
|
-
<script>
|
|
30
|
-
import { commonExportApi } from './gridApi';
|
|
31
|
-
import XEUtils from 'xe-utils';
|
|
32
|
-
import { controlType } from '../../utils/enum';
|
|
33
|
-
import draggable from 'vuedraggable';
|
|
34
|
-
import { Button } from 'ant-design-vue';
|
|
35
|
-
|
|
36
|
-
export default {
|
|
37
|
-
name: 'commonExportCmp',
|
|
38
|
-
components: {
|
|
39
|
-
draggable,
|
|
40
|
-
Button
|
|
41
|
-
},
|
|
42
|
-
props: {
|
|
43
|
-
objectService: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: ''
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
data() {
|
|
49
|
-
return {
|
|
50
|
-
showExport: false,
|
|
51
|
-
exportTitle: '',
|
|
52
|
-
exportFields: [],
|
|
53
|
-
moduleCode: '',
|
|
54
|
-
dataCode: '',
|
|
55
|
-
fieldCode: '',
|
|
56
|
-
searchParam: {}
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
|
-
methods: {
|
|
60
|
-
show(moduleCodeParam, dataCodeParam, dataNameParam, fieldCodeParam, searchParamParam, fields) {
|
|
61
|
-
this.exportFields = [];
|
|
62
|
-
this.moduleCode = moduleCodeParam;
|
|
63
|
-
this.dataCode = dataCodeParam;
|
|
64
|
-
this.fieldCode = fieldCodeParam;
|
|
65
|
-
this.searchParam = searchParamParam;
|
|
66
|
-
|
|
67
|
-
XEUtils.arrayEach(fields, (loopField) => {
|
|
68
|
-
if (loopField.ignoreExport === true || loopField.controlType === controlType.buttons) {
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
this.exportFields.push({
|
|
72
|
-
code: loopField.field,
|
|
73
|
-
title: loopField.title,
|
|
74
|
-
selected: true
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
this.exportTitle = dataNameParam + '导出字段选择';
|
|
79
|
-
this.showExport = true;
|
|
80
|
-
},
|
|
81
|
-
confirmExport() {
|
|
82
|
-
let postData = {
|
|
83
|
-
moduleCode: this.moduleCode,
|
|
84
|
-
dataCode: this.dataCode,
|
|
85
|
-
fieldCode: this.fieldCode,
|
|
86
|
-
fields: [],
|
|
87
|
-
searchParam: this.searchParam
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
XEUtils.arrayEach(this.exportFields, (loopField) => {
|
|
91
|
-
if (loopField.selected === true) {
|
|
92
|
-
postData.fields.push(loopField.code);
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
console.debug('export post data', postData);
|
|
97
|
-
commonExportApi(this.objectService, postData);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
</script>
|
|
102
|
-
|
|
103
|
-
<style scoped>
|
|
104
|
-
|
|
105
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<vxe-modal
|
|
4
|
+
v-model="showExport"
|
|
5
|
+
:title="exportTitle"
|
|
6
|
+
show-zoom
|
|
7
|
+
resize
|
|
8
|
+
showFooter
|
|
9
|
+
show-close
|
|
10
|
+
:mask-closable="true"
|
|
11
|
+
width="400px"
|
|
12
|
+
height="400px"
|
|
13
|
+
:destroyOnClose="true"
|
|
14
|
+
>
|
|
15
|
+
<template #default>
|
|
16
|
+
<draggable ref="dragView" v-model="exportFields">
|
|
17
|
+
<div v-for="loopField in exportFields" :key="loopField.code">
|
|
18
|
+
<a-checkbox v-model="loopField.selected">{{ loopField.title }}</a-checkbox>
|
|
19
|
+
</div>
|
|
20
|
+
</draggable>
|
|
21
|
+
</template>
|
|
22
|
+
<template #footer>
|
|
23
|
+
<Button type="primary" size="small" @click="confirmExport">确认导出</Button>
|
|
24
|
+
</template>
|
|
25
|
+
</vxe-modal>
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<script>
|
|
30
|
+
import { commonExportApi } from './gridApi';
|
|
31
|
+
import XEUtils from 'xe-utils';
|
|
32
|
+
import { controlType } from '../../utils/enum';
|
|
33
|
+
import draggable from 'vuedraggable';
|
|
34
|
+
import { Button } from 'ant-design-vue';
|
|
35
|
+
|
|
36
|
+
export default {
|
|
37
|
+
name: 'commonExportCmp',
|
|
38
|
+
components: {
|
|
39
|
+
draggable,
|
|
40
|
+
Button
|
|
41
|
+
},
|
|
42
|
+
props: {
|
|
43
|
+
objectService: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: ''
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
data() {
|
|
49
|
+
return {
|
|
50
|
+
showExport: false,
|
|
51
|
+
exportTitle: '',
|
|
52
|
+
exportFields: [],
|
|
53
|
+
moduleCode: '',
|
|
54
|
+
dataCode: '',
|
|
55
|
+
fieldCode: '',
|
|
56
|
+
searchParam: {}
|
|
57
|
+
};
|
|
58
|
+
},
|
|
59
|
+
methods: {
|
|
60
|
+
show(moduleCodeParam, dataCodeParam, dataNameParam, fieldCodeParam, searchParamParam, fields) {
|
|
61
|
+
this.exportFields = [];
|
|
62
|
+
this.moduleCode = moduleCodeParam;
|
|
63
|
+
this.dataCode = dataCodeParam;
|
|
64
|
+
this.fieldCode = fieldCodeParam;
|
|
65
|
+
this.searchParam = searchParamParam;
|
|
66
|
+
|
|
67
|
+
XEUtils.arrayEach(fields, (loopField) => {
|
|
68
|
+
if (loopField.ignoreExport === true || loopField.controlType === controlType.buttons) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
this.exportFields.push({
|
|
72
|
+
code: loopField.field,
|
|
73
|
+
title: loopField.title,
|
|
74
|
+
selected: true
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
this.exportTitle = dataNameParam + '导出字段选择';
|
|
79
|
+
this.showExport = true;
|
|
80
|
+
},
|
|
81
|
+
confirmExport() {
|
|
82
|
+
let postData = {
|
|
83
|
+
moduleCode: this.moduleCode,
|
|
84
|
+
dataCode: this.dataCode,
|
|
85
|
+
fieldCode: this.fieldCode,
|
|
86
|
+
fields: [],
|
|
87
|
+
searchParam: this.searchParam
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
XEUtils.arrayEach(this.exportFields, (loopField) => {
|
|
91
|
+
if (loopField.selected === true) {
|
|
92
|
+
postData.fields.push(loopField.code);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
console.debug('export post data', postData);
|
|
97
|
+
commonExportApi(this.objectService, postData);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
</script>
|
|
102
|
+
|
|
103
|
+
<style scoped>
|
|
104
|
+
|
|
105
|
+
</style>
|
|
106
106
|
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import store from '../../utils/store'
|
|
2
|
-
|
|
3
|
-
export function commonExportApi(objectService, data) {
|
|
4
|
-
const formExport = document.createElement('form');
|
|
5
|
-
formExport.method = 'post';
|
|
6
|
-
(formExport.action =
|
|
7
|
-
getServiceUrl(objectService) + '/v1/commonOperation/exportGridExcel?token=' + store.state.token),
|
|
8
|
-
(formExport.target = 'exportFrame');
|
|
9
|
-
const inputValue = document.createElement('input');
|
|
10
|
-
inputValue.type = 'text';
|
|
11
|
-
inputValue.name = 'exportData';
|
|
12
|
-
inputValue.value = JSON.stringify(data);
|
|
13
|
-
formExport.appendChild(inputValue);
|
|
14
|
-
document.body.appendChild(formExport);
|
|
15
|
-
formExport.submit();
|
|
16
|
-
document.body.removeChild(formExport);
|
|
17
|
-
}
|
|
18
|
-
export function getServiceUrl(objectService) {
|
|
19
|
-
let url = process.env.VUE_APP_ERP_SERVICE_URL;
|
|
20
|
-
if (objectService === 'base') {
|
|
21
|
-
url = process.env.VUE_APP_BASE_SERVICE_URL;
|
|
22
|
-
}
|
|
23
|
-
if (objectService === 'mes') {
|
|
24
|
-
url = process.env.VUE_APP_MES_SERVICE_URL;
|
|
25
|
-
}
|
|
26
|
-
if (objectService === 'aps') {
|
|
27
|
-
url = process.env.VUE_APP_APS_SERVICE_URL;
|
|
28
|
-
}
|
|
29
|
-
if (objectService === 'wms') {
|
|
30
|
-
url = process.env.VUE_APP_WMS_SERVICE_URL;
|
|
31
|
-
}
|
|
32
|
-
return url;
|
|
1
|
+
import store from '../../utils/store'
|
|
2
|
+
|
|
3
|
+
export function commonExportApi(objectService, data) {
|
|
4
|
+
const formExport = document.createElement('form');
|
|
5
|
+
formExport.method = 'post';
|
|
6
|
+
(formExport.action =
|
|
7
|
+
getServiceUrl(objectService) + '/v1/commonOperation/exportGridExcel?token=' + store.state.token),
|
|
8
|
+
(formExport.target = 'exportFrame');
|
|
9
|
+
const inputValue = document.createElement('input');
|
|
10
|
+
inputValue.type = 'text';
|
|
11
|
+
inputValue.name = 'exportData';
|
|
12
|
+
inputValue.value = JSON.stringify(data);
|
|
13
|
+
formExport.appendChild(inputValue);
|
|
14
|
+
document.body.appendChild(formExport);
|
|
15
|
+
formExport.submit();
|
|
16
|
+
document.body.removeChild(formExport);
|
|
17
|
+
}
|
|
18
|
+
export function getServiceUrl(objectService) {
|
|
19
|
+
let url = process.env.VUE_APP_ERP_SERVICE_URL;
|
|
20
|
+
if (objectService === 'base') {
|
|
21
|
+
url = process.env.VUE_APP_BASE_SERVICE_URL;
|
|
22
|
+
}
|
|
23
|
+
if (objectService === 'mes') {
|
|
24
|
+
url = process.env.VUE_APP_MES_SERVICE_URL;
|
|
25
|
+
}
|
|
26
|
+
if (objectService === 'aps') {
|
|
27
|
+
url = process.env.VUE_APP_APS_SERVICE_URL;
|
|
28
|
+
}
|
|
29
|
+
if (objectService === 'wms') {
|
|
30
|
+
url = process.env.VUE_APP_WMS_SERVICE_URL;
|
|
31
|
+
}
|
|
32
|
+
return url;
|
|
33
33
|
}
|