kz-ui-base 1.0.161 → 2.0.148
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/api/system/config.js +0 -17
- package/common/src/components/base/dialog/BaseDialog.vue +4 -15
- package/common/src/components/base/dialog/editDialog.vue +2 -2
- package/common/src/components/basics/RightToolbar/advancedQuery.vue +26 -5
- package/common/src/components/basics/RightToolbar/advancedQueryClose.vue +26 -5
- package/common/src/components/basics/RightToolbar/index.vue +5 -6
- package/common/src/components/custom/Material/index.vue +27 -25
- package/common/src/components/custom/Material/indexTs.vue +27 -25
- package/common/src/utils/request.js +0 -5
- package/common/src/views/login.vue +0 -5
- package/common/src/views/tenantLogin.vue +0 -5
- package/components/base/dialog/elTable.vue +2 -2
- package/components/base/dialog/sampleEditDialog.vue +38 -61
- package/components/base/dialog/smapleDialog.vue +12 -12
- package/components/base/dialog/tableForm.vue +6 -6
- package/components/customForm/OpMenus.vue +5 -5
- package/components/customForm/datePicker.vue +5 -4
- package/components/customForm/dropDownList.vue +8 -8
- package/components/customForm/lookupDialog.vue +3 -3
- package/components/customForm/printDialog.vue +17 -17
- package/components/customForm/sampleEditDialog.vue +3 -3
- package/components/customForm/searchTable.vue +4 -4
- package/components/customForm/table.vue +5 -5
- package/components/customForm/textarea.vue +1 -1
- package/components/customForm/treeDownList.vue +1 -1
- package/components/customForm/upload.vue +1 -1
- package/components/customForm/uploadButton.vue +7 -7
- package/components/customForm/uploadDialog.vue +1 -1
- package/list-base-page/doublelistBasePageTs.vue +16 -16
- package/list-base-page/listBasePageTs.vue +64 -228
- package/package.json +1 -1
- package/views/bd/common/modal/AddressInfoModal.vue +8 -8
- package/views/bd/common/modal/BankInfoModal.vue +10 -10
- package/views/bd/common/modal/CustomerContactsModal.vue +13 -13
- package/views/bd/common/modal/CustomerModal.vue +49 -51
- package/views/bd/common/modal/DeptModal.vue +10 -10
- package/views/bd/common/modal/EmployeeModal.vue +22 -26
- package/views/bd/common/modal/ItemModal.vue +20 -23
- package/views/bd/common/modal/ItemModalBk.vue +8 -8
- package/views/bd/common/modal/NumberingRuleModal.vue +8 -8
- package/views/bd/common/modal/PostModal.vue +22 -22
- package/views/bd/common/modal/ProjectModal.vue +8 -8
- package/views/bd/common/modal/SalesmanInfoModel.vue +7 -7
- package/views/bd/common/modal/VendorModal.vue +24 -28
- package/views/bd/common/modal/WorkGroupModal.vue +40 -44
- package/views/bd/common/modal/materialCodeModal.vue +30 -23
- package/views/fd/common/modal/AddResourceModal.vue +6 -8
- package/views/fd/common/modal/AssetModal.vue +17 -17
- package/views/fd/common/modal/EquipmentModal.vue +10 -10
- package/views/fd/common/modal/FactoryTreeModal.vue +1 -3
- package/views/fd/common/modal/ResourceModal.vue +6 -6
- package/views/fd/common/modal/SiteModal.vue +11 -9
- package/views/fd/common/modal/StorageUnitModal.vue +9 -9
- package/views/fd/common/modal/StorageZoneModal.vue +11 -11
- package/views/fd/common/modal/WorkAreaModal.vue +9 -9
- package/views/fd/common/modal/WorkCenterModal.vue +9 -9
- package/views/fd/common/modal/WorkUnitModal.vue +9 -9
- package/views/pd/common/modal/BopModal.vue +10 -10
- package/views/pd/common/modal/DrawingPathModal.vue +52 -52
- package/views/pd/common/modal/ParameterModal.vue +18 -18
- package/views/pd/common/modal/ProcessModal.vue +15 -15
- package/views/pd/common/modal/ProdRoutingDtlModal.vue +19 -19
- package/views/pd/common/modal/ProdRoutingModal.vue +14 -14
- package/views/pd/common/modal/ProdStructureModal.vue +14 -14
- package/views/pd/common/modal/ProdstructTemplateHdrModal.vue +25 -27
- package/views/pd/common/modal/ProductionVersionModal.vue +35 -35
- package/views/pd/common/modal/technicalStandardModal.vue +20 -20
- package/views/system/common/modal/UserModal.vue +70 -72
- package/components/base/dialog/MultiLanguageDialog.vue +0 -308
- package/components/base/dialog/config.js +0 -85
package/api/system/config.js
CHANGED
|
@@ -66,20 +66,3 @@ export function refreshCache() {
|
|
|
66
66
|
method: 'delete'
|
|
67
67
|
})
|
|
68
68
|
}
|
|
69
|
-
// 批量保存或更新翻译
|
|
70
|
-
export function batchSaveTranslation(data) {
|
|
71
|
-
return request({
|
|
72
|
-
url: '/system/api/i18n/translation/batch-save',
|
|
73
|
-
method: 'post',
|
|
74
|
-
data: data
|
|
75
|
-
})
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
// 批量获取翻译
|
|
79
|
-
export function batchGetTranslation(data) {
|
|
80
|
-
return request({
|
|
81
|
-
url: '/system/api/i18n/translation/batch-get-multi',
|
|
82
|
-
method: 'post',
|
|
83
|
-
data: data
|
|
84
|
-
})
|
|
85
|
-
}
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
size="small"
|
|
23
23
|
type="primary"
|
|
24
24
|
@click="handleConfirm"
|
|
25
|
-
>{{
|
|
25
|
+
>{{ confirmText }}
|
|
26
26
|
</el-button>
|
|
27
27
|
<el-button
|
|
28
28
|
size="small"
|
|
29
29
|
@click="handleClose"
|
|
30
|
-
>{{
|
|
30
|
+
>{{ cancelText }}
|
|
31
31
|
</el-button>
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
@@ -44,11 +44,11 @@ export default {
|
|
|
44
44
|
},
|
|
45
45
|
confirmText: {
|
|
46
46
|
type: String,
|
|
47
|
-
default: ''
|
|
47
|
+
default: '确定'
|
|
48
48
|
},
|
|
49
49
|
cancelText: {
|
|
50
50
|
type: String,
|
|
51
|
-
default: ''
|
|
51
|
+
default: '关闭'
|
|
52
52
|
},
|
|
53
53
|
visible: {
|
|
54
54
|
type: Boolean,
|
|
@@ -66,23 +66,12 @@ export default {
|
|
|
66
66
|
submitLoading: false
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
|
-
computed: {
|
|
70
|
-
// 确定按钮文本,支持国际化
|
|
71
|
-
_confirmText() {
|
|
72
|
-
return this.confirmText || this.t('component.dialog.confirm') || '确定'
|
|
73
|
-
},
|
|
74
|
-
// 取消按钮文本,支持国际化
|
|
75
|
-
_cancelText() {
|
|
76
|
-
return this.cancelText || this.t('component.dialog.cancel') || '关闭'
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
69
|
watch: {
|
|
80
70
|
visible(val) {
|
|
81
71
|
this.modalState = val
|
|
82
72
|
}
|
|
83
73
|
},
|
|
84
74
|
methods: {
|
|
85
|
-
|
|
86
75
|
handleConfirm() {
|
|
87
76
|
this.$emit('on-confirm')
|
|
88
77
|
},
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
type="primary"
|
|
48
48
|
:loading="setting.submitLoading"
|
|
49
49
|
@click="submitForm"
|
|
50
|
-
|
|
50
|
+
>确 定</el-button
|
|
51
51
|
>
|
|
52
|
-
<el-button @click="cancel"
|
|
52
|
+
<el-button @click="cancel">取 消</el-button>
|
|
53
53
|
</div>
|
|
54
54
|
<div class="dialog-footer" v-if="customOpMenus&&customOpMenus.length">
|
|
55
55
|
<el-button
|
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="top-right-btn">
|
|
3
3
|
<el-row>
|
|
4
|
-
<el-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
<!-- <el-tooltip class="item" effect="dark" :content="showSearch ? '隐藏搜索' : '显示搜索'" placement="top"
|
|
5
|
+
v-if="searchVisible"> -->
|
|
6
|
+
<el-button size="mini" type="success" @click="toggleSearch()">
|
|
7
|
+
高级筛选<i class="el-icon-caret-bottom el-icon--right"></i>
|
|
8
|
+
</el-button>
|
|
9
|
+
<!-- </el-tooltip> -->
|
|
10
|
+
<!-- <el-tooltip class="item" effect="dark" content="刷新" placement="top" v-if="refreshVisible">
|
|
11
|
+
<el-button size="mini" circle icon="el-icon-refresh" @click="refresh()"/>
|
|
12
|
+
</el-tooltip>
|
|
13
|
+
<el-tooltip class="item" effect="dark" :content="sortable ? '禁用排序' : '启用排序'" placement="top" v-if="sortVisible">
|
|
14
|
+
<el-button size="mini" circle icon="el-icon-sort" @click="toggleSortable()"/>
|
|
15
|
+
</el-tooltip>
|
|
16
|
+
<el-tooltip class="item" effect="dark" content="显隐列" placement="top" v-if="columns">
|
|
17
|
+
<el-button size="mini" circle icon="el-icon-menu" @click="showColumn()"/>
|
|
18
|
+
</el-tooltip> -->
|
|
7
19
|
</el-row>
|
|
8
20
|
<el-dialog :title="title" :visible.sync="open" append-to-body>
|
|
9
21
|
<el-transfer
|
|
10
|
-
:titles="[
|
|
22
|
+
:titles="['显示', '隐藏']"
|
|
11
23
|
v-model="value"
|
|
12
24
|
:data="columns"
|
|
13
25
|
@change="dataChange"
|
|
@@ -21,8 +33,11 @@ export default {
|
|
|
21
33
|
name: "RightToolbar",
|
|
22
34
|
data() {
|
|
23
35
|
return {
|
|
36
|
+
// 显隐数据
|
|
24
37
|
value: [],
|
|
25
|
-
|
|
38
|
+
// 弹出层标题
|
|
39
|
+
title: "显示/隐藏",
|
|
40
|
+
// 是否显示弹出层
|
|
26
41
|
sortable: true,
|
|
27
42
|
open: false
|
|
28
43
|
}
|
|
@@ -49,6 +64,7 @@ export default {
|
|
|
49
64
|
}
|
|
50
65
|
},
|
|
51
66
|
created() {
|
|
67
|
+
// 显隐列初始默认隐藏列
|
|
52
68
|
for (let item in this.columns) {
|
|
53
69
|
if (this.columns[item].visible === false) {
|
|
54
70
|
this.value.push(parseInt(item))
|
|
@@ -56,22 +72,27 @@ export default {
|
|
|
56
72
|
}
|
|
57
73
|
},
|
|
58
74
|
methods: {
|
|
75
|
+
// 搜索
|
|
59
76
|
toggleSearch() {
|
|
60
77
|
this.$emit("update:showSearch", !this.showSearch)
|
|
61
78
|
},
|
|
79
|
+
// 刷新
|
|
62
80
|
refresh() {
|
|
63
81
|
this.$emit("queryTable")
|
|
64
82
|
},
|
|
83
|
+
// 排序
|
|
65
84
|
toggleSortable() {
|
|
66
85
|
this.sortable = !this.sortable
|
|
67
86
|
this.$emit("controlSortable", !this.sortable)
|
|
68
87
|
},
|
|
88
|
+
// 右侧列表元素变化
|
|
69
89
|
dataChange(data) {
|
|
70
90
|
for (var item in this.columns) {
|
|
71
91
|
const key = this.columns[item].key
|
|
72
92
|
this.columns[item].visible = !data.includes(key)
|
|
73
93
|
}
|
|
74
94
|
},
|
|
95
|
+
// 打开显隐列dialog
|
|
75
96
|
showColumn() {
|
|
76
97
|
this.open = true
|
|
77
98
|
}
|
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="top-right-btn">
|
|
3
3
|
<el-row>
|
|
4
|
-
<el-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
<!-- <el-tooltip class="item" effect="dark" :content="showSearch ? '隐藏搜索' : '显示搜索'" placement="top"
|
|
5
|
+
v-if="searchVisible"> -->
|
|
6
|
+
<el-button size="mini" type="danger" icon="el-icon-close" @click="toggleSearch()">
|
|
7
|
+
关闭
|
|
8
|
+
</el-button>
|
|
9
|
+
<!-- </el-tooltip> -->
|
|
10
|
+
<!-- <el-tooltip class="item" effect="dark" content="刷新" placement="top" v-if="refreshVisible">
|
|
11
|
+
<el-button size="mini" circle icon="el-icon-refresh" @click="refresh()"/>
|
|
12
|
+
</el-tooltip>
|
|
13
|
+
<el-tooltip class="item" effect="dark" :content="sortable ? '禁用排序' : '启用排序'" placement="top" v-if="sortVisible">
|
|
14
|
+
<el-button size="mini" circle icon="el-icon-sort" @click="toggleSortable()"/>
|
|
15
|
+
</el-tooltip>
|
|
16
|
+
<el-tooltip class="item" effect="dark" content="显隐列" placement="top" v-if="columns">
|
|
17
|
+
<el-button size="mini" circle icon="el-icon-menu" @click="showColumn()"/>
|
|
18
|
+
</el-tooltip> -->
|
|
7
19
|
</el-row>
|
|
8
20
|
<el-dialog :title="title" :visible.sync="open" append-to-body>
|
|
9
21
|
<el-transfer
|
|
10
|
-
:titles="[
|
|
22
|
+
:titles="['显示', '隐藏']"
|
|
11
23
|
v-model="value"
|
|
12
24
|
:data="columns"
|
|
13
25
|
@change="dataChange"
|
|
@@ -21,8 +33,11 @@ export default {
|
|
|
21
33
|
name: "RightToolbar",
|
|
22
34
|
data() {
|
|
23
35
|
return {
|
|
36
|
+
// 显隐数据
|
|
24
37
|
value: [],
|
|
25
|
-
|
|
38
|
+
// 弹出层标题
|
|
39
|
+
title: "显示/隐藏",
|
|
40
|
+
// 是否显示弹出层
|
|
26
41
|
sortable: true,
|
|
27
42
|
open: false
|
|
28
43
|
}
|
|
@@ -49,6 +64,7 @@ export default {
|
|
|
49
64
|
}
|
|
50
65
|
},
|
|
51
66
|
created() {
|
|
67
|
+
// 显隐列初始默认隐藏列
|
|
52
68
|
for (let item in this.columns) {
|
|
53
69
|
if (this.columns[item].visible === false) {
|
|
54
70
|
this.value.push(parseInt(item))
|
|
@@ -56,22 +72,27 @@ export default {
|
|
|
56
72
|
}
|
|
57
73
|
},
|
|
58
74
|
methods: {
|
|
75
|
+
// 搜索
|
|
59
76
|
toggleSearch() {
|
|
60
77
|
this.$emit("update:showSearch", !this.showSearch)
|
|
61
78
|
},
|
|
79
|
+
// 刷新
|
|
62
80
|
refresh() {
|
|
63
81
|
this.$emit("queryTable")
|
|
64
82
|
},
|
|
83
|
+
// 排序
|
|
65
84
|
toggleSortable() {
|
|
66
85
|
this.sortable = !this.sortable
|
|
67
86
|
this.$emit("controlSortable", !this.sortable)
|
|
68
87
|
},
|
|
88
|
+
// 右侧列表元素变化
|
|
69
89
|
dataChange(data) {
|
|
70
90
|
for (var item in this.columns) {
|
|
71
91
|
const key = this.columns[item].key
|
|
72
92
|
this.columns[item].visible = !data.includes(key)
|
|
73
93
|
}
|
|
74
94
|
},
|
|
95
|
+
// 打开显隐列dialog
|
|
75
96
|
showColumn() {
|
|
76
97
|
this.open = true
|
|
77
98
|
}
|
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
v-if="searchVisible">
|
|
6
6
|
<el-button size="mini" circle icon="el-icon-search" @click="toggleSearch()"/>
|
|
7
7
|
</el-tooltip> -->
|
|
8
|
-
<el-tooltip class="item" effect="dark"
|
|
8
|
+
<el-tooltip class="item" effect="dark" content="刷新" placement="top" v-if="refreshVisible">
|
|
9
9
|
<el-button size="mini" circle icon="el-icon-refresh" @click="refresh()"/>
|
|
10
10
|
</el-tooltip>
|
|
11
|
-
<el-tooltip class="item" effect="dark" :content="sortable ?
|
|
11
|
+
<el-tooltip class="item" effect="dark" :content="sortable ? '禁用排序' : '启用排序'" placement="top" v-if="sortVisible">
|
|
12
12
|
<el-button size="mini" circle icon="el-icon-sort" @click="toggleSortable()"/>
|
|
13
13
|
</el-tooltip>
|
|
14
|
-
<el-tooltip class="item" effect="dark"
|
|
14
|
+
<el-tooltip class="item" effect="dark" content="显隐列" placement="top" v-if="columns">
|
|
15
15
|
<el-button size="mini" circle icon="el-icon-menu" @click="showColumn()"/>
|
|
16
16
|
</el-tooltip>
|
|
17
17
|
</el-row>
|
|
18
18
|
<el-dialog :title="title" :visible.sync="open" append-to-body :before-close="handleClose">
|
|
19
19
|
<el-transfer
|
|
20
|
-
:titles="[
|
|
20
|
+
:titles="['显示', '隐藏']"
|
|
21
21
|
v-model="value"
|
|
22
22
|
:data="columns"
|
|
23
23
|
@change="dataChange"
|
|
@@ -34,7 +34,7 @@ export default {
|
|
|
34
34
|
// 显隐数据
|
|
35
35
|
value: [],
|
|
36
36
|
// 弹出层标题
|
|
37
|
-
title: "",
|
|
37
|
+
title: "显示/隐藏",
|
|
38
38
|
// 是否显示弹出层
|
|
39
39
|
sortable: true,
|
|
40
40
|
open: false
|
|
@@ -62,7 +62,6 @@ export default {
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
created() {
|
|
65
|
-
this.title = this.t('common.showHide');
|
|
66
65
|
let displayHideColumn
|
|
67
66
|
if(localStorage.getItem("displayHideColumn")&&localStorage.getItem("displayHideColumn")!=='{}'){
|
|
68
67
|
displayHideColumn=JSON.parse(localStorage.getItem("displayHideColumn"))
|
|
@@ -11,9 +11,11 @@
|
|
|
11
11
|
>
|
|
12
12
|
<template slot="title">
|
|
13
13
|
<div class="title-text">
|
|
14
|
-
<span class="title-main"
|
|
14
|
+
<span class="title-main">添加文件</span
|
|
15
15
|
><span class="title-supplement"
|
|
16
|
-
|
|
16
|
+
>(只能添加"jpg", "jpeg", "bmp", "png", "gif", "pdf", "doc", "docx",
|
|
17
|
+
"md", "xmind", "mp4", "xlsx"
|
|
18
|
+
,"bmp","tif","avi","wmv","xls"大小不超过5M。)</span
|
|
17
19
|
>
|
|
18
20
|
</div>
|
|
19
21
|
</template>
|
|
@@ -25,7 +27,7 @@
|
|
|
25
27
|
class="material"
|
|
26
28
|
style="height: 500px"
|
|
27
29
|
>
|
|
28
|
-
<el-tab-pane
|
|
30
|
+
<el-tab-pane label="我的文件" name="first">
|
|
29
31
|
<el-container>
|
|
30
32
|
<el-header class="container-header">
|
|
31
33
|
<el-row :gutter="20" type="flex" justify="space-between">
|
|
@@ -52,7 +54,7 @@
|
|
|
52
54
|
icon="el-icon-upload2"
|
|
53
55
|
:loading="upload.isUploading"
|
|
54
56
|
>
|
|
55
|
-
|
|
57
|
+
直接上传
|
|
56
58
|
</el-button>
|
|
57
59
|
</el-upload>
|
|
58
60
|
</el-col>
|
|
@@ -63,14 +65,14 @@
|
|
|
63
65
|
icon="el-icon-folder-add"
|
|
64
66
|
@click="handleAddFolder"
|
|
65
67
|
:loading="upload.isUploading"
|
|
66
|
-
|
|
68
|
+
>新增文件夹
|
|
67
69
|
</el-button>
|
|
68
70
|
</el-col>
|
|
69
71
|
</el-row>
|
|
70
72
|
</el-col>
|
|
71
73
|
<el-col :xs="4" :sm="4" :md="4" :lg="4" :xl="4" :pull="2">
|
|
72
74
|
<el-input
|
|
73
|
-
|
|
75
|
+
placeholder="搜索所有文件"
|
|
74
76
|
v-model="form.folderName"
|
|
75
77
|
class="header-search"
|
|
76
78
|
@change="searchChange"
|
|
@@ -231,18 +233,18 @@
|
|
|
231
233
|
</el-main>
|
|
232
234
|
</el-container>
|
|
233
235
|
</el-tab-pane>
|
|
234
|
-
<el-tab-pane
|
|
236
|
+
<el-tab-pane label="图库中心" name="second"></el-tab-pane>
|
|
235
237
|
</el-tabs>
|
|
236
238
|
</div>
|
|
237
239
|
<div slot="footer" class="dialog-footer dialogTop-footer">
|
|
238
240
|
<el-button class="dialogTop-footer-button" @click="handleClose"
|
|
239
|
-
|
|
241
|
+
>取 消</el-button
|
|
240
242
|
>
|
|
241
243
|
<el-button
|
|
242
244
|
class="dialogTop-footer-button"
|
|
243
245
|
type="primary"
|
|
244
246
|
@click="onSubmit"
|
|
245
|
-
|
|
247
|
+
>确 定</el-button
|
|
246
248
|
>
|
|
247
249
|
</div>
|
|
248
250
|
</el-dialog>
|
|
@@ -260,7 +262,7 @@
|
|
|
260
262
|
<template slot="title">
|
|
261
263
|
<div class="minor-title-text">
|
|
262
264
|
<span class="minor-increase"
|
|
263
|
-
|
|
265
|
+
>待添加({{ choiceList.length }}/{{ max }})</span
|
|
264
266
|
>
|
|
265
267
|
</div>
|
|
266
268
|
</template>
|
|
@@ -465,7 +467,7 @@ export default {
|
|
|
465
467
|
handleAddFolder() {
|
|
466
468
|
this.upload.isUploading = true;
|
|
467
469
|
addFolder(this.form).then((response) => {
|
|
468
|
-
this.msgSuccess(
|
|
470
|
+
this.msgSuccess("新增成功");
|
|
469
471
|
this.getList();
|
|
470
472
|
this.upload.isUploading = false;
|
|
471
473
|
});
|
|
@@ -538,12 +540,12 @@ export default {
|
|
|
538
540
|
updateMaterialNick(type, item, index) {
|
|
539
541
|
if (type === 0) {
|
|
540
542
|
updateFolder(item).then((response) => {
|
|
541
|
-
this.msgSuccess(
|
|
543
|
+
this.msgSuccess("修改成功");
|
|
542
544
|
this.getList();
|
|
543
545
|
});
|
|
544
546
|
} else if (type === 1) {
|
|
545
547
|
updateMaterial(item).then((response) => {
|
|
546
|
-
this.msgSuccess(
|
|
548
|
+
this.msgSuccess("修改成功");
|
|
547
549
|
this.getList();
|
|
548
550
|
});
|
|
549
551
|
}
|
|
@@ -552,12 +554,12 @@ export default {
|
|
|
552
554
|
imageDelete(type, item, index) {
|
|
553
555
|
this.$confirm(
|
|
554
556
|
type === 0
|
|
555
|
-
?
|
|
556
|
-
:
|
|
557
|
-
|
|
557
|
+
? "您确定将该文件夹以及该文件夹内的所有文件放入回收站吗?"
|
|
558
|
+
: "将文件放入回收站会影响使用该文件的地方,确定放入回收站吗?",
|
|
559
|
+
"提示",
|
|
558
560
|
{
|
|
559
|
-
confirmButtonText:
|
|
560
|
-
cancelButtonText:
|
|
561
|
+
confirmButtonText: "确定",
|
|
562
|
+
cancelButtonText: "取消",
|
|
561
563
|
type: "warning",
|
|
562
564
|
center: true,
|
|
563
565
|
}
|
|
@@ -573,13 +575,13 @@ export default {
|
|
|
573
575
|
this.getList();
|
|
574
576
|
this.$message({
|
|
575
577
|
type: "success",
|
|
576
|
-
message:
|
|
578
|
+
message: "删除成功!",
|
|
577
579
|
});
|
|
578
580
|
})
|
|
579
581
|
.catch(() => {
|
|
580
582
|
this.$message({
|
|
581
583
|
type: "info",
|
|
582
|
-
message:
|
|
584
|
+
message: "已取消删除",
|
|
583
585
|
});
|
|
584
586
|
});
|
|
585
587
|
},
|
|
@@ -588,7 +590,7 @@ export default {
|
|
|
588
590
|
const fileSuffix = file.name.substring(file.name.lastIndexOf(".") + 1);
|
|
589
591
|
if (this.upload.whiteList.indexOf(fileSuffix) === -1) {
|
|
590
592
|
this.$message({
|
|
591
|
-
message:
|
|
593
|
+
message: "您上传的文件暂不支持,请联系管理员",
|
|
592
594
|
type: "warning",
|
|
593
595
|
});
|
|
594
596
|
return false;
|
|
@@ -596,7 +598,7 @@ export default {
|
|
|
596
598
|
const isLt2M = file.size / 1024 / 1024 < 100;
|
|
597
599
|
if (!isLt2M) {
|
|
598
600
|
this.$message({
|
|
599
|
-
message:
|
|
601
|
+
message: "上传文件大小不能超过 100MB",
|
|
600
602
|
type: "warning",
|
|
601
603
|
});
|
|
602
604
|
return false;
|
|
@@ -611,10 +613,10 @@ export default {
|
|
|
611
613
|
this.upload.fileList = [];
|
|
612
614
|
this.upload.isUploading = false;
|
|
613
615
|
if (response.code != 200) {
|
|
614
|
-
this.$message.error(
|
|
616
|
+
this.$message.error("上传失败:" + response.msg);
|
|
615
617
|
} else {
|
|
616
618
|
this.$message({
|
|
617
|
-
message:
|
|
619
|
+
message: "上传成功!",
|
|
618
620
|
type: "success",
|
|
619
621
|
});
|
|
620
622
|
}
|
|
@@ -624,7 +626,7 @@ export default {
|
|
|
624
626
|
handleFileError(err, file, fileList) {
|
|
625
627
|
this.upload.fileList = [];
|
|
626
628
|
this.upload.isUploading = false;
|
|
627
|
-
this.$message.error(
|
|
629
|
+
this.$message.error("上传失败:" + err);
|
|
628
630
|
},
|
|
629
631
|
/** 确定 */
|
|
630
632
|
onSubmit() {
|
|
@@ -11,9 +11,11 @@
|
|
|
11
11
|
>
|
|
12
12
|
<template slot="title">
|
|
13
13
|
<div class="title-text">
|
|
14
|
-
<span class="title-main"
|
|
14
|
+
<span class="title-main">添加文件</span
|
|
15
15
|
><span class="title-supplement"
|
|
16
|
-
|
|
16
|
+
>(只能添加"jpg", "jpeg", "bmp", "png", "gif", "pdf", "doc", "docx",
|
|
17
|
+
"md", "xmind", "mp4", "xlsx"
|
|
18
|
+
,"bmp","tif","avi","wmv","xls"大小不超过5M。)</span
|
|
17
19
|
>
|
|
18
20
|
</div>
|
|
19
21
|
</template>
|
|
@@ -25,7 +27,7 @@
|
|
|
25
27
|
class="material"
|
|
26
28
|
style="height: 500px"
|
|
27
29
|
>
|
|
28
|
-
<el-tab-pane
|
|
30
|
+
<el-tab-pane label="我的文件" name="first">
|
|
29
31
|
<el-container>
|
|
30
32
|
<el-header class="container-header">
|
|
31
33
|
<el-row :gutter="20" type="flex" justify="space-between">
|
|
@@ -52,7 +54,7 @@
|
|
|
52
54
|
icon="el-icon-upload2"
|
|
53
55
|
:loading="upload.isUploading"
|
|
54
56
|
>
|
|
55
|
-
|
|
57
|
+
直接上传
|
|
56
58
|
</el-button>
|
|
57
59
|
</el-upload>
|
|
58
60
|
</el-col>
|
|
@@ -63,14 +65,14 @@
|
|
|
63
65
|
icon="el-icon-folder-add"
|
|
64
66
|
@click="handleAddFolder"
|
|
65
67
|
:loading="upload.isUploading"
|
|
66
|
-
|
|
68
|
+
>新增文件夹
|
|
67
69
|
</el-button>
|
|
68
70
|
</el-col>
|
|
69
71
|
</el-row>
|
|
70
72
|
</el-col>
|
|
71
73
|
<el-col :xs="4" :sm="4" :md="4" :lg="4" :xl="4" :pull="2">
|
|
72
74
|
<el-input
|
|
73
|
-
|
|
75
|
+
placeholder="搜索所有文件"
|
|
74
76
|
v-model="form.folderName"
|
|
75
77
|
class="header-search"
|
|
76
78
|
@change="searchChange"
|
|
@@ -231,18 +233,18 @@
|
|
|
231
233
|
</el-main>
|
|
232
234
|
</el-container>
|
|
233
235
|
</el-tab-pane>
|
|
234
|
-
<el-tab-pane
|
|
236
|
+
<el-tab-pane label="图库中心" name="second"></el-tab-pane>
|
|
235
237
|
</el-tabs>
|
|
236
238
|
</div>
|
|
237
239
|
<div slot="footer" class="dialog-footer dialogTop-footer">
|
|
238
240
|
<el-button class="dialogTop-footer-button" @click="handleClose"
|
|
239
|
-
|
|
241
|
+
>取 消</el-button
|
|
240
242
|
>
|
|
241
243
|
<el-button
|
|
242
244
|
class="dialogTop-footer-button"
|
|
243
245
|
type="primary"
|
|
244
246
|
@click="onSubmit"
|
|
245
|
-
|
|
247
|
+
>确 定</el-button
|
|
246
248
|
>
|
|
247
249
|
</div>
|
|
248
250
|
</el-dialog>
|
|
@@ -260,7 +262,7 @@
|
|
|
260
262
|
<template slot="title">
|
|
261
263
|
<div class="minor-title-text">
|
|
262
264
|
<span class="minor-increase"
|
|
263
|
-
|
|
265
|
+
>待添加({{ choiceList.length }}/{{ max }})</span
|
|
264
266
|
>
|
|
265
267
|
</div>
|
|
266
268
|
</template>
|
|
@@ -463,7 +465,7 @@ export default class material extends Vue {
|
|
|
463
465
|
public handleAddFolder() {
|
|
464
466
|
this.upload.isUploading = true;
|
|
465
467
|
addFolder(this.form).then((response) => {
|
|
466
|
-
(this as any).msgSuccess(
|
|
468
|
+
(this as any).msgSuccess("新增成功");
|
|
467
469
|
this.getList();
|
|
468
470
|
this.upload.isUploading = false;
|
|
469
471
|
});
|
|
@@ -534,12 +536,12 @@ export default class material extends Vue {
|
|
|
534
536
|
public updateMaterialNick(type, item, index) {
|
|
535
537
|
if (type === 0) {
|
|
536
538
|
updateFolder(item).then((response) => {
|
|
537
|
-
(this as any).msgSuccess(
|
|
539
|
+
(this as any).msgSuccess("修改成功");
|
|
538
540
|
this.getList();
|
|
539
541
|
});
|
|
540
542
|
} else if (type === 1) {
|
|
541
543
|
updateMaterial(item).then((response) => {
|
|
542
|
-
(this as any).msgSuccess(
|
|
544
|
+
(this as any).msgSuccess("修改成功");
|
|
543
545
|
this.getList();
|
|
544
546
|
});
|
|
545
547
|
}
|
|
@@ -549,12 +551,12 @@ export default class material extends Vue {
|
|
|
549
551
|
(this as any)
|
|
550
552
|
.$confirm(
|
|
551
553
|
type === 0
|
|
552
|
-
?
|
|
553
|
-
:
|
|
554
|
-
|
|
554
|
+
? "您确定将该文件夹以及该文件夹内的所有文件放入回收站吗?"
|
|
555
|
+
: "将文件放入回收站会影响使用该文件的地方,确定放入回收站吗?",
|
|
556
|
+
"提示",
|
|
555
557
|
{
|
|
556
|
-
confirmButtonText:
|
|
557
|
-
cancelButtonText:
|
|
558
|
+
confirmButtonText: "确定",
|
|
559
|
+
cancelButtonText: "取消",
|
|
558
560
|
type: "warning",
|
|
559
561
|
center: true,
|
|
560
562
|
}
|
|
@@ -570,13 +572,13 @@ export default class material extends Vue {
|
|
|
570
572
|
this.getList();
|
|
571
573
|
(this as any).$message({
|
|
572
574
|
type: "success",
|
|
573
|
-
message:
|
|
575
|
+
message: "删除成功!",
|
|
574
576
|
});
|
|
575
577
|
})
|
|
576
578
|
.catch(() => {
|
|
577
579
|
(this as any).$message({
|
|
578
580
|
type: "info",
|
|
579
|
-
message:
|
|
581
|
+
message: "已取消删除",
|
|
580
582
|
});
|
|
581
583
|
});
|
|
582
584
|
}
|
|
@@ -585,7 +587,7 @@ export default class material extends Vue {
|
|
|
585
587
|
const fileSuffix = file.name.substring(file.name.lastIndexOf(".") + 1);
|
|
586
588
|
if (this.upload.whiteList.indexOf(fileSuffix) === -1) {
|
|
587
589
|
(this as any).$message({
|
|
588
|
-
message:
|
|
590
|
+
message: "您上传的文件暂不支持,请联系管理员",
|
|
589
591
|
type: "warning",
|
|
590
592
|
});
|
|
591
593
|
return false;
|
|
@@ -593,7 +595,7 @@ export default class material extends Vue {
|
|
|
593
595
|
const isLt2M = file.size / 1024 / 1024 < 100;
|
|
594
596
|
if (!isLt2M) {
|
|
595
597
|
(this as any).$message({
|
|
596
|
-
message:
|
|
598
|
+
message: "上传文件大小不能超过 100MB",
|
|
597
599
|
type: "warning",
|
|
598
600
|
});
|
|
599
601
|
return false;
|
|
@@ -609,10 +611,10 @@ export default class material extends Vue {
|
|
|
609
611
|
this.upload.fileList = [];
|
|
610
612
|
this.upload.isUploading = false;
|
|
611
613
|
if (response.code != 200) {
|
|
612
|
-
(this as any).$message.error(
|
|
614
|
+
(this as any).$message.error("上传失败:" + response.msg);
|
|
613
615
|
} else {
|
|
614
616
|
(this as any).$message({
|
|
615
|
-
message:
|
|
617
|
+
message: "上传成功!",
|
|
616
618
|
type: "success",
|
|
617
619
|
});
|
|
618
620
|
}
|
|
@@ -622,7 +624,7 @@ export default class material extends Vue {
|
|
|
622
624
|
public handleFileError(err, file, fileList) {
|
|
623
625
|
this.upload.fileList = [];
|
|
624
626
|
this.upload.isUploading = false;
|
|
625
|
-
(this as any).$message.error(
|
|
627
|
+
(this as any).$message.error("上传失败:" + err);
|
|
626
628
|
}
|
|
627
629
|
/** 确定 */
|
|
628
630
|
public onSubmit() {
|
|
@@ -28,11 +28,6 @@ service.interceptors.request.use(
|
|
|
28
28
|
if (getToken() && !isToken) {
|
|
29
29
|
config.headers["Authorization"] = "Bearer " + getToken(); // 让每个请求携带自定义token 请根据实际情况自行修改
|
|
30
30
|
}
|
|
31
|
-
if(localStorage.getItem('locale')){
|
|
32
|
-
config.headers["Lang"] = localStorage.getItem('locale');
|
|
33
|
-
}else{
|
|
34
|
-
config.headers["Lang"] = "zh-CN";
|
|
35
|
-
}
|
|
36
31
|
//添加 forward-to
|
|
37
32
|
if (configRes && configRes.forwardTo) {
|
|
38
33
|
config.headers["forward-to"] = configRes.forwardTo;
|
|
@@ -175,12 +175,7 @@ export default {
|
|
|
175
175
|
created() {
|
|
176
176
|
this.$store.dispatch("LogOut").then(() => {
|
|
177
177
|
this.$store.dispatch("tagsView/delAllViews");
|
|
178
|
-
// 清空localStorage但保留语言设置
|
|
179
|
-
const locale = localStorage.getItem("locale");
|
|
180
178
|
localStorage.clear();
|
|
181
|
-
if (locale) {
|
|
182
|
-
localStorage.setItem("locale", locale);
|
|
183
|
-
}
|
|
184
179
|
localforage.clear();
|
|
185
180
|
removeToken();
|
|
186
181
|
let enterpriseName = Cookies.get("enterpriseName");
|