Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
exhibition_backstage
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
exhibition_backstage
Commits
38ec8a91
提交
38ec8a91
authored
10月 20, 2023
作者:
龙菲
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改展览部分逻辑,修复bug
上级
fe3273d4
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
22 个修改的文件
包含
295 行增加
和
231 行删除
+295
-231
index.scss
src/assets/styles/index.scss
+67
-0
variable.scss
src/assets/styles/variable.scss
+0
-11
TableOperation.vue
src/components/Table/TableOperation.vue
+2
-32
TablePage.vue
src/components/Table/TablePage.vue
+3
-0
ManualUploader.vue
src/components/Uploader/ManualUploader.vue
+8
-14
index.js
src/contants/index.js
+1
-1
fileUploadFuctions.js
src/utils/fileUploadFuctions.js
+7
-5
transformData.js
src/utils/transformData.js
+4
-2
InfoEditDialog.vue
src/views/culturalRelic/components/InfoEditDialog.vue
+16
-4
list.js
src/views/culturalRelic/configs/list.js
+25
-26
index.vue
src/views/culturalRelic/index.vue
+37
-7
ImportRecordDialog.vue
src/views/display/components/ImportRecordDialog.vue
+4
-13
InfoEditDialog copy.vue
src/views/display/components/InfoEditDialog copy.vue
+0
-1
InfoEditDialog.vue
src/views/display/components/InfoEditDialog.vue
+3
-1
list.js
src/views/display/configs/list.js
+59
-37
index.vue
src/views/display/index.vue
+0
-0
PreviewDialog.vue
src/views/displayApproval/components/PreviewDialog.vue
+5
-2
DisplayBaseInfo.vue
...ws/displayApproval/components/display/DisplayBaseInfo.vue
+2
-1
DisplayRender.vue
...iews/displayApproval/components/display/DisplayRender.vue
+24
-21
config.js
src/views/displayApproval/config.js
+10
-7
index.vue
src/views/displayApproval/index.vue
+16
-37
vue.config.js
vue.config.js
+2
-9
没有找到文件。
src/assets/styles/index.scss
0 → 100644
浏览文件 @
38ec8a91
$deepBlue
:
#252F57
;
$yellow
:
#dfab46
;
$font-size-sm
:
14px
;
$font-size-base
:
16px
;
$font-size-lg
:
22px
;
$nav-height
:
120px
;
$defaultFontFamily
:
Avenir
,
Helvetica
Neue
,
Arial
,
Helvetica
,
sans-serif
;
/* 设置滚动条的样式 */
::-webkit-scrollbar
{
width
:
5px
;
height
:
5px
;
background-color
:
transparent
;
}
::-webkit-scrollbar:hover
{
background-color
:
#eee
;
}
/* 滚动槽/外层轨道 */
::-webkit-scrollbar-track
{
width
:
5px
;
height
:
5px
;
border-radius
:
5px
;
-webkit-box-shadow
:
inset
0
0
6px
rgba
(
0
,
0
,
0
,
0
.3
);
background-color
:
transparent
;
}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb
{
min-height
:
5px
;
min-width
:
5px
;
border-radius
:
5px
;
-webkit-box-shadow
:
inset
0
0
6px
rgba
(
0
,
0
,
0
,
0
.3
);
}
/* 设置滚动条的样式 */
::-webkit-scrollbar
{
width
:
5px
;
height
:
5px
;
background-color
:
transparent
;
}
::-webkit-scrollbar:hover
{
background-color
:
#eee
;
}
/* 滚动槽/外层轨道 */
::-webkit-scrollbar-track
{
width
:
5px
;
height
:
5px
;
border-radius
:
5px
;
-webkit-box-shadow
:
inset
0
0
6px
rgba
(
0
,
0
,
0
,
0
.3
);
background-color
:
transparent
;
}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb
{
min-height
:
5px
;
min-width
:
5px
;
border-radius
:
5px
;
-webkit-box-shadow
:
inset
0
0
6px
rgba
(
0
,
0
,
0
,
0
.3
);
}
\ No newline at end of file
src/assets/styles/variable.scss
deleted
100644 → 0
浏览文件 @
fe3273d4
$deepBlue
:
#252F57
;
$yellow
:
#dfab46
;
$font-size-sm
:
14px
;
$font-size-base
:
16px
;
$font-size-lg
:
22px
;
$nav-height
:
120px
;
$defaultFontFamily
:
Avenir
,
Helvetica
Neue
,
Arial
,
Helvetica
,
sans-serif
;
\ No newline at end of file
src/components/Table/TableOperation.vue
浏览文件 @
38ec8a91
...
@@ -6,19 +6,10 @@
...
@@ -6,19 +6,10 @@
:title=
"deleteTitle ? deleteTitle : '确定删除吗?'"
:title=
"deleteTitle ? deleteTitle : '确定删除吗?'"
@
confirm=
"clickOperation(op)"
@
confirm=
"clickOperation(op)"
>
>
<!--
<el-link
type=
"danger"
:disabled=
"disabled"
size=
"mini"
slot=
"reference"
:icon=
"icons[op.type]"
>
{{
op
.
title
}}
</el-link
>
-->
<PermissionButton
<PermissionButton
:perms=
"op.perms"
:perms=
"op.perms"
type=
"danger"
type=
"danger"
:disabled=
"disabled"
:disabled=
"
op.
disabled"
size=
"mini"
size=
"mini"
slot=
"reference"
slot=
"reference"
:icon=
"icons[op.type]"
:icon=
"icons[op.type]"
...
@@ -26,32 +17,11 @@
...
@@ -26,32 +17,11 @@
>
>
</el-popconfirm>
</el-popconfirm>
</span>
</span>
<!--
<span
class=
"view-3d"
v-else-if=
"op.type == 'view3D'"
@
click=
"clickOperation(op)"
>
<el-link
type=
"primary"
>
<svg-icon
icon-class=
"three"
></svg-icon>
{{
op
.
title
}}
</el-link
></span
>
-->
<!--
<el-link
v-else-if=
"op.type == 'view'"
size=
"mini"
:icon=
"icons[op.type]"
:disabled=
"disabled && op.type != 'view'"
@
click=
"clickOperation(op)"
type=
"primary"
style=
"margin-right: 16px"
v-else
>
{{
op
.
title
}}
</el-link>
-->
<PermissionButton
<PermissionButton
:perms=
"op.perms"
:perms=
"op.perms"
size=
"mini"
size=
"mini"
:icon=
"icons[op.type]"
:icon=
"icons[op.type]"
:disabled=
"disabled && op.type != 'view'"
:disabled=
"
op.
disabled && op.type != 'view'"
@
click=
"clickOperation(op)"
@
click=
"clickOperation(op)"
type=
"primary"
type=
"primary"
style=
"margin-right: 16px"
style=
"margin-right: 16px"
...
...
src/components/Table/TablePage.vue
浏览文件 @
38ec8a91
...
@@ -40,6 +40,9 @@
...
@@ -40,6 +40,9 @@
<
template
v-else-if=
"item.prop == 'faceImagePressUrl'"
>
<
template
v-else-if=
"item.prop == 'faceImagePressUrl'"
>
<slot
name=
"faceImagePressUrl"
:scope=
"scope.row"
></slot>
<slot
name=
"faceImagePressUrl"
:scope=
"scope.row"
></slot>
</
template
>
</
template
>
<
template
v-else-if=
"item.prop == 'sourceWay'"
>
<slot
name=
"sourceWay"
:scope=
"scope.row"
></slot>
</
template
>
<
template
v-else-if=
"item.prop == 'images'"
>
<
template
v-else-if=
"item.prop == 'images'"
>
<slot
name=
"images"
:scope=
"scope.row"
></slot>
<slot
name=
"images"
:scope=
"scope.row"
></slot>
</
template
>
</
template
>
...
...
src/components/Uploader/ManualUploader.vue
浏览文件 @
38ec8a91
...
@@ -73,7 +73,7 @@ export default {
...
@@ -73,7 +73,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
fileList
:
[],
fileList
:
[],
removedIds
:
[],
//被删除的文件Id集合
removedIds
:
[],
//被删除的文件Id集合
};
};
},
},
watch
:
{
watch
:
{
...
@@ -88,9 +88,8 @@ export default {
...
@@ -88,9 +88,8 @@ export default {
}
else
{
}
else
{
return
{
return
{
highImg
:
item
.
url
,
highImg
:
item
.
url
,
lowImg
:
item
.
pressUrl
,
lowImg
:
item
.
pressUrl
||
item
.
url
,
url
:
item
.
pressUrl
,
url
:
item
.
pressUrl
||
item
.
url
,
// pressUrl:item.pressUrl,
name
:
item
.
name
,
name
:
item
.
name
,
fileId
:
item
.
fileId
,
fileId
:
item
.
fileId
,
};
};
...
@@ -139,19 +138,14 @@ export default {
...
@@ -139,19 +138,14 @@ export default {
if
(
item
.
status
==
"ready"
)
{
if
(
item
.
status
==
"ready"
)
{
return
item
;
return
item
;
}
else
{
}
else
{
const
{
highImg
,
lowImg
,
name
,
fileId
,
status
}
=
item
const
{
highImg
,
lowImg
,
name
,
fileId
,
status
}
=
item
;
const
obj
=
{
const
obj
=
{
urL
:
highImg
,
urL
:
highImg
,
pressUrl
:
lowImg
,
pressUrl
:
lowImg
,
name
,
name
,
fileId
,
fileId
,
status
,
status
,
}
};
// item.url = item.highImg;
// item.pressUrl = item.lowImg;
// item.name = item.name;
// item.fileId = item.fileId;
// item.status =
return
obj
;
return
obj
;
}
}
});
});
...
@@ -210,7 +204,7 @@ export default {
...
@@ -210,7 +204,7 @@ export default {
const
{
status
}
=
file
;
const
{
status
}
=
file
;
if
(
status
==
"success"
)
{
if
(
status
==
"success"
)
{
this
.
removedIds
.
push
(
file
.
fileId
);
this
.
removedIds
.
push
(
file
.
fileId
);
this
.
$emit
(
'getRemovedIds'
,
this
.
removedIds
)
this
.
$emit
(
"getRemovedIds"
,
this
.
removedIds
);
}
}
that
.
fileList
.
map
(
async
(
item
,
index
)
=>
{
that
.
fileList
.
map
(
async
(
item
,
index
)
=>
{
if
(
item
.
uid
===
file
.
uid
)
{
if
(
item
.
uid
===
file
.
uid
)
{
...
...
src/contants/index.js
浏览文件 @
38ec8a91
...
@@ -74,7 +74,7 @@ const constantsTool = {
...
@@ -74,7 +74,7 @@ const constantsTool = {
return
item
.
tagType
return
item
.
tagType
},
},
// 获取Type,用于展示
tag
状态 等
// 获取Type,用于展示
流程
状态 等
getStepTypeByValue
(
dictName
,
value
)
{
getStepTypeByValue
(
dictName
,
value
)
{
const
list
=
constantsTool
.
allList
[
dictName
]
const
list
=
constantsTool
.
allList
[
dictName
]
if
(
!
list
)
{
if
(
!
list
)
{
...
...
src/utils/fileUploadFuctions.js
浏览文件 @
38ec8a91
...
@@ -55,11 +55,13 @@ const fileUploadFuctions = {
...
@@ -55,11 +55,13 @@ const fileUploadFuctions = {
},
},
/**
/**
* 获取需要已经存在(数据库已存储的)文件ID对象
* 获取需要已经存在(数据库已存储的)文件ID对象
,并且仍然需要保留的
* @param {Array} mediaKeys 媒体keys数组
* @param {Array} mediaKeys 媒体keys数组
* @param {Array} dialogForm 表单对象
* @param {Array} removedIds 已经被删除的ID
* @returns {Object} 已经存在(数据库已存储的)文件ID对象
* @returns {Object} 已经存在(数据库已存储的)文件ID对象
*/
*/
getOldIdsObj
(
mediaKeys
,
dialogForm
,
$el
)
{
getOldIdsObj
(
{
mediaKeys
,
dialogForm
,
removedIds
}
,
$el
)
{
// debugger
// debugger
let
oldFileIdsObj
=
{};
let
oldFileIdsObj
=
{};
// 文物的3D文件和封面需要单独处理
// 文物的3D文件和封面需要单独处理
...
@@ -67,11 +69,11 @@ const fileUploadFuctions = {
...
@@ -67,11 +69,11 @@ const fileUploadFuctions = {
mediaKeys
.
forEach
((
key
)
=>
{
mediaKeys
.
forEach
((
key
)
=>
{
// 因为封面和3D文件的旧ID就是dialogForm的faceImage和file3d,此时还是旧的
// 因为封面和3D文件的旧ID就是dialogForm的faceImage和file3d,此时还是旧的
// 新的在调用组件的this.faceImage和this.file3d对象里
// 新的在调用组件的this.faceImage和this.file3d对象里
if
(
key
==
"faceImage"
)
{
if
(
key
==
"faceImage"
&&
!
removedIds
.
includes
(
dialogForm
.
faceImage
)
)
{
oldFileIdsObj
.
faceImage
=
dialogForm
.
faceImage
;
oldFileIdsObj
.
faceImage
=
dialogForm
.
faceImage
;
return
;
return
;
}
}
if
(
key
==
"file3d"
)
{
if
(
key
==
"file3d"
&&
!
removedIds
.
includes
(
dialogForm
.
file3d
)
)
{
oldFileIdsObj
.
file3d
=
dialogForm
.
file3d
;
oldFileIdsObj
.
file3d
=
dialogForm
.
file3d
;
return
;
return
;
}
}
...
@@ -80,7 +82,7 @@ const fileUploadFuctions = {
...
@@ -80,7 +82,7 @@ const fileUploadFuctions = {
// 已存在的文件status为success
// 已存在的文件status为success
const
files
=
$el
.
$refs
[
key
].
getFiles
();
const
files
=
$el
.
$refs
[
key
].
getFiles
();
const
successItems
=
files
.
filter
((
item
)
=>
{
const
successItems
=
files
.
filter
((
item
)
=>
{
return
item
.
status
==
"success"
;
return
item
.
status
==
"success"
&&
!
removedIds
.
includes
(
item
.
fileId
)
;
});
});
if
(
successItems
.
length
>
0
)
{
if
(
successItems
.
length
>
0
)
{
// 获取他们的fileId
// 获取他们的fileId
...
...
src/utils/transformData.js
浏览文件 @
38ec8a91
...
@@ -19,6 +19,7 @@ const transformData = {
...
@@ -19,6 +19,7 @@ const transformData = {
fileId
:
faceImage
||
""
,
fileId
:
faceImage
||
""
,
},
},
];
];
console
.
log
(
'result'
,
result
);
return
result
;
return
result
;
},
},
...
@@ -26,15 +27,16 @@ const transformData = {
...
@@ -26,15 +27,16 @@ const transformData = {
* 转换服务器的封面数据到前端可用的3D模型数据
* 转换服务器的封面数据到前端可用的3D模型数据
* @param {String} file3d 3D文件ID
* @param {String} file3d 3D文件ID
* @param {String} file3dUrl 3D文件url
* @param {String} file3dUrl 3D文件url
* @param {String} file3dName 3D文件名称
* @returns {Array} el-upload组件需要的数据
* @returns {Array} el-upload组件需要的数据
*/
*/
file3dToClient
(
file3d
,
file3dUrl
)
{
file3dToClient
(
file3d
,
file3dUrl
,
file3dName
)
{
if
(
!
file3d
)
{
if
(
!
file3d
)
{
return
[];
return
[];
}
}
const
file3dArr
=
[
const
file3dArr
=
[
{
{
name
:
""
,
name
:
file3dName
,
url
:
file3dUrl
||
""
,
url
:
file3dUrl
||
""
,
fileId
:
file3d
||
""
,
fileId
:
file3d
||
""
,
},
},
...
...
src/views/culturalRelic/components/InfoEditDialog.vue
浏览文件 @
38ec8a91
...
@@ -427,6 +427,7 @@ export default {
...
@@ -427,6 +427,7 @@ export default {
deptId
,
deptId
,
file3d
,
file3d
,
file3dUrl
,
file3dUrl
,
file3dName
,
}
=
this
.
dialogForm
;
}
=
this
.
dialogForm
;
this
.
dialogForm
.
status
=
statusStrToBool
(
status
);
this
.
dialogForm
.
status
=
statusStrToBool
(
status
);
this
.
faceImage
=
faceImageToClient
(
this
.
faceImage
=
faceImageToClient
(
...
@@ -434,7 +435,7 @@ export default {
...
@@ -434,7 +435,7 @@ export default {
faceImageUrl
,
faceImageUrl
,
faceImagePressUrl
faceImagePressUrl
);
);
this
.
file3d
=
file3dToClient
(
file3d
,
file3dUrl
);
this
.
file3d
=
file3dToClient
(
file3d
,
file3dUrl
,
file3dName
);
this
.
images
=
imagesVo
||
[];
this
.
images
=
imagesVo
||
[];
this
.
videos
=
videosVo
||
[];
this
.
videos
=
videosVo
||
[];
this
.
audios
=
audiosVo
||
[];
this
.
audios
=
audiosVo
||
[];
...
@@ -543,7 +544,6 @@ export default {
...
@@ -543,7 +544,6 @@ export default {
* @returns {object} 传入的媒体key对应的id字符串,多个以逗号隔开
* @returns {object} 传入的媒体key对应的id字符串,多个以逗号隔开
*/
*/
async
uploadMediaFiles
(
mediaKeys
,
dialogForm
)
{
async
uploadMediaFiles
(
mediaKeys
,
dialogForm
)
{
console
.
log
(
"doing uploadMediaFiles"
);
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
const
{
const
{
getNeedUploadFormData
,
getNeedUploadFormData
,
...
@@ -560,14 +560,26 @@ export default {
...
@@ -560,14 +560,26 @@ export default {
let
upLoadRes
=
await
uploadV1
(
formData
);
let
upLoadRes
=
await
uploadV1
(
formData
);
if
(
upLoadRes
.
code
==
0
)
{
if
(
upLoadRes
.
code
==
0
)
{
const
newIdObj
=
getNewIdsObj
(
mediaKeys
,
upLoadRes
);
const
newIdObj
=
getNewIdsObj
(
mediaKeys
,
upLoadRes
);
const
oldIdObj
=
getOldIdsObj
(
mediaKeys
,
dialogForm
,
this
);
const
{
removedIds
}
=
this
;
const
options
=
{
mediaKeys
,
dialogForm
,
removedIds
,
};
const
oldIdObj
=
getOldIdsObj
(
options
,
this
);
const
mediaForm
=
getMergedIdsObj
(
oldIdObj
,
newIdObj
,
mediaKeys
);
const
mediaForm
=
getMergedIdsObj
(
oldIdObj
,
newIdObj
,
mediaKeys
);
console
.
log
(
"mediaForm"
,
mediaForm
);
console
.
log
(
"mediaForm"
,
mediaForm
);
resolve
(
mediaForm
);
resolve
(
mediaForm
);
}
}
}
else
{
}
else
{
// 没有任何媒体需要上传的,把已有的交给后面
// 没有任何媒体需要上传的,把已有的交给后面
const
mediaForm
=
getOldIdsObj
(
mediaKeys
,
dialogForm
,
this
);
const
{
removedIds
}
=
this
;
const
options
=
{
mediaKeys
,
dialogForm
,
removedIds
,
};
const
mediaForm
=
getOldIdsObj
(
options
,
this
);
console
.
log
(
"uploadMediaFiles nothing to upload"
,
mediaForm
);
console
.
log
(
"uploadMediaFiles nothing to upload"
,
mediaForm
);
resolve
(
mediaForm
);
resolve
(
mediaForm
);
}
}
...
...
src/views/culturalRelic/configs/list.js
浏览文件 @
38ec8a91
...
@@ -148,11 +148,11 @@ export const unPassedTitle = [{
...
@@ -148,11 +148,11 @@ export const unPassedTitle = [{
// columnAlign: 'center',
// columnAlign: 'center',
// isCulturalRelicType:true
// isCulturalRelicType:true
// },
// },
{
//
{
prop
:
"createId"
,
//
prop: "createId",
label
:
"创建人"
,
//
label: "创建人",
columnAlign
:
'center'
,
//
columnAlign: 'center',
},
//
},
{
{
prop
:
"createTime"
,
prop
:
"createTime"
,
label
:
"创建时间"
,
label
:
"创建时间"
,
...
@@ -258,29 +258,28 @@ export const operates = {
...
@@ -258,29 +258,28 @@ export const operates = {
width
:
"180px"
,
width
:
"180px"
,
}
}
// 操作(临时表)
// 编辑按钮
export
const
operationsTemp
=
[
export
const
editButton
=
{
{
type
:
'edit'
,
type
:
'edit'
,
title
:
'编辑'
,
title
:
'编辑'
,
perms
:
'bizCulturalRelic:update'
perms
:
'bizCulturalRelic:update'
}
},
{
// 编辑禁用按钮
type
:
'delete'
,
export
const
editDisabledButton
=
{
title
:
'删除'
,
type
:
'edit'
,
perms
:
'bizCulturalRelic:delete'
title
:
'编辑'
,
},
perms
:
'bizCulturalRelic:update'
,
]
disabled
:
true
}
// 编辑按钮
export
const
deleteButton
=
{
type
:
'delete'
,
title
:
'删除'
,
perms
:
'bizCulturalRelic:delete'
}
// 操作(最终表)
export
const
operations
=
[
{
type
:
'delete'
,
title
:
'删除'
,
perms
:
'bizCulturalRelic:delete'
},
]
// 搜索配置
// 搜索配置
export
const
searchConfig
=
[
export
const
searchConfig
=
[
...
...
src/views/culturalRelic/index.vue
浏览文件 @
38ec8a91
...
@@ -57,6 +57,12 @@
...
@@ -57,6 +57,12 @@
:tableTitle=
"getTitle"
:tableTitle=
"getTitle"
:operates=
"operates"
:operates=
"operates"
>
>
<template
v-slot:sourceWay=
"data"
>
<DictText
name=
"culturalRelicSourceWay"
:dictValue=
"data.scope.sourceWay"
/>
</
template
>
<
template
v-slot:status=
"data"
>
<
template
v-slot:status=
"data"
>
<el-popconfirm
<el-popconfirm
:title=
"getStatusTitle(data.scope.status)"
:title=
"getStatusTitle(data.scope.status)"
...
@@ -68,6 +74,22 @@
...
@@ -68,6 +74,22 @@
></el-switch>
></el-switch>
</el-popconfirm>
</el-popconfirm>
</
template
>
</
template
>
<
template
v-slot:checkStatus=
"data"
>
<el-tag
:type=
"
$constantsTool.getTagTypeByValue(
'checkStatus',
data.scope.checkStatus
)
"
>
{{
$constantsTool
.
getLabelByValue
(
"checkStatus"
,
data
.
scope
.
checkStatus
)
}}
</el-tag
>
</
template
>
<
template
v-slot:faceImageUrl=
"data"
>
<
template
v-slot:faceImageUrl=
"data"
>
<img
<img
:src=
"
:src=
"
...
@@ -87,7 +109,7 @@
...
@@ -87,7 +109,7 @@
</
template
>
</
template
>
<
template
v-slot:operates=
"scope"
>
<
template
v-slot:operates=
"scope"
>
<TableOperation
<TableOperation
:operations=
"getOperations"
:operations=
"getOperations
(scope.scope.row)
"
:rawData=
"scope.scope.row"
:rawData=
"scope.scope.row"
@
handleOperation=
"handleOperation"
@
handleOperation=
"handleOperation"
></TableOperation>
></TableOperation>
...
@@ -135,8 +157,9 @@ import {
...
@@ -135,8 +157,9 @@ import {
passedTitle
,
passedTitle
,
unPassedTitle
,
unPassedTitle
,
operates
,
operates
,
operations
,
editButton
,
operationsTemp
,
deleteButton
,
editDisabledButton
,
searchConfig
,
searchConfig
,
}
from
"./configs/list"
;
}
from
"./configs/list"
;
import
{
import
{
...
@@ -188,8 +211,6 @@ export default {
...
@@ -188,8 +211,6 @@ export default {
passedTitle
,
passedTitle
,
unPassedTitle
,
unPassedTitle
,
operates
,
operates
,
operations
,
operationsTemp
,
tabActive
:
"unPassed"
,
tabActive
:
"unPassed"
,
};
};
},
},
...
@@ -213,8 +234,17 @@ export default {
...
@@ -213,8 +234,17 @@ export default {
}
}
};
};
},
},
getOperations
()
{
getOperations
(
row
)
{
return
this
.
tabActive
==
"passed"
?
this
.
operations
:
this
.
operationsTemp
;
return
(
row
)
=>
{
if
(
this
.
tabActive
==
"passed"
)
{
return
[
deleteButton
];
}
else
if
(
row
.
checkStatus
==
0
)
{
// 审核中的禁用编辑
return
[
editDisabledButton
,
deleteButton
];
}
else
{
return
[
editButton
,
deleteButton
];
}
};
},
},
},
},
async
created
()
{
async
created
()
{
...
...
src/views/display/components/ImportRecordDialog.vue
浏览文件 @
38ec8a91
<
template
>
<
template
>
<el-dialog
<el-dialog
:visible=
"
dialogV
isible"
:visible=
"
v
isible"
width=
"70%"
width=
"70%"
style=
"height: 98%"
style=
"height: 98%"
:before-close=
"handleClose"
:before-close=
"handleClose"
...
@@ -92,10 +92,6 @@ import { getLogList } from "@/api/log";
...
@@ -92,10 +92,6 @@ import { getLogList } from "@/api/log";
export
default
{
export
default
{
name
:
"ImportRecordDialog"
,
name
:
"ImportRecordDialog"
,
props
:
{
props
:
{
visible
:
{
type
:
Boolean
,
default
:
false
,
},
filesList
:
{
filesList
:
{
type
:
Array
,
type
:
Array
,
default
:
()
=>
[],
default
:
()
=>
[],
...
@@ -104,7 +100,6 @@ export default {
...
@@ -104,7 +100,6 @@ export default {
watch
:
{
watch
:
{
visible
:
{
visible
:
{
handler
:
function
(
value
)
{
handler
:
function
(
value
)
{
this
.
dialogVisible
=
value
;
if
(
value
)
{
if
(
value
)
{
this
.
loadData
();
this
.
loadData
();
}
}
...
@@ -140,14 +135,10 @@ export default {
...
@@ -140,14 +135,10 @@ export default {
}
}
};
};
},
},
getYestoday
()
{
console
.
log
(
getYestoday
());
return
getYestoday
();
},
},
},
data
()
{
data
()
{
return
{
return
{
dialogV
isible
:
false
,
v
isible
:
false
,
list
:
{
list
:
{
records
:
[],
records
:
[],
size
:
10
,
size
:
10
,
...
@@ -168,6 +159,7 @@ export default {
...
@@ -168,6 +159,7 @@ export default {
};
};
},
},
methods
:
{
methods
:
{
getYestoday
,
async
search
(
form
)
{
async
search
(
form
)
{
var
params
=
{
var
params
=
{
page
:
this
.
list
.
current
,
page
:
this
.
list
.
current
,
...
@@ -211,7 +203,6 @@ export default {
...
@@ -211,7 +203,6 @@ export default {
if
(
params
.
createTime
)
{
if
(
params
.
createTime
)
{
delete
params
.
createTime
;
delete
params
.
createTime
;
}
}
// let res = await getImportListPage(params);
let
res
=
await
getLogList
(
params
);
let
res
=
await
getLogList
(
params
);
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
list
=
res
.
data
;
this
.
list
=
res
.
data
;
...
@@ -244,7 +235,7 @@ export default {
...
@@ -244,7 +235,7 @@ export default {
},
},
handleClose
()
{
handleClose
()
{
this
.
$emit
(
"handleClose"
)
;
this
.
visible
=
false
;
},
},
},
},
};
};
...
...
src/views/display/components/InfoEditDialog copy.vue
浏览文件 @
38ec8a91
...
@@ -764,7 +764,6 @@ export default {
...
@@ -764,7 +764,6 @@ export default {
* @returns {object} 传入的媒体key对应的id字符串,多个以逗号隔开
* @returns {object} 传入的媒体key对应的id字符串,多个以逗号隔开
*/
*/
async
uploadMediaFiles
(
mediaKeys
,
dialogForm
)
{
async
uploadMediaFiles
(
mediaKeys
,
dialogForm
)
{
console
.
log
(
"doing uploadMediaFiles"
);
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
const
formData
=
getNeedUploadFormData
(
this
,
mediaKeys
);
const
formData
=
getNeedUploadFormData
(
this
,
mediaKeys
);
const
unitData
=
[...
this
.
$refs
[
"exhibitionUnits"
].
getUnitData
()];
const
unitData
=
[...
this
.
$refs
[
"exhibitionUnits"
].
getUnitData
()];
...
...
src/views/display/components/InfoEditDialog.vue
浏览文件 @
38ec8a91
...
@@ -298,7 +298,7 @@
...
@@ -298,7 +298,7 @@
></el-button>
></el-button>
<el-button
<el-button
size=
"mini"
size=
"mini"
@
click=
"
cancelForm
"
@
click=
"
handleClose
"
icon=
"el-icon-circle-close"
icon=
"el-icon-circle-close"
type=
"warning"
type=
"warning"
>
取 消
</el-button
>
取 消
</el-button
...
@@ -930,6 +930,7 @@ export default {
...
@@ -930,6 +930,7 @@ export default {
this
.
reload
();
this
.
reload
();
this
.
submitLoading
=
false
;
this
.
submitLoading
=
false
;
this
.
$message
.
success
(
"提交成功!"
);
this
.
$message
.
success
(
"提交成功!"
);
this
.
visible
=
false
;
},
1000
);
},
1000
);
}
}
})
})
...
@@ -970,6 +971,7 @@ export default {
...
@@ -970,6 +971,7 @@ export default {
handleClose
(
done
)
{
handleClose
(
done
)
{
this
.
$confirm
(
"确认关闭?"
)
this
.
$confirm
(
"确认关闭?"
)
.
then
((
_
)
=>
{
.
then
((
_
)
=>
{
this
.
visible
=
false
;
this
.
reload
();
this
.
reload
();
this
.
submitLoading
=
false
;
this
.
submitLoading
=
false
;
done
();
done
();
...
...
src/views/display/configs/list.js
浏览文件 @
38ec8a91
...
@@ -209,12 +209,12 @@ export const unPassedTitle = [
...
@@ -209,12 +209,12 @@ export const unPassedTitle = [
// columnAlign: 'center',
// columnAlign: 'center',
// width:100
// width:100
// },
// },
{
//
{
prop
:
"status"
,
//
prop: "status",
label
:
"是否上架"
,
//
label: "是否上架",
columnAlign
:
"center"
,
//
columnAlign: "center",
isStatus
:
true
,
//
isStatus: true,
},
//
},
{
{
prop
:
"checkStatus"
,
prop
:
"checkStatus"
,
label
:
"审核状态"
,
label
:
"审核状态"
,
...
@@ -265,35 +265,57 @@ export const operates = {
...
@@ -265,35 +265,57 @@ export const operates = {
columnAlign
:
"center"
,
columnAlign
:
"center"
,
};
};
// 临时表
// 编辑按钮
export
const
operationsTemp
=
[
export
const
editButton
=
{
// {
type
:
'edit'
,
// type: "view",
title
:
'编辑'
,
// title: "预览",
perms
:
'bizCulturalRelic:update'
// perms: "bizExhibition:list"
}
// },
{
type
:
"edit"
,
title
:
"编辑"
,
perms
:
'bizExhibition:update'
},
{
type
:
"delete"
,
title
:
"删除"
,
perms
:
'bizExhibition:delete'
},
];
// 最终表
// 编辑禁用按钮
export
const
operations
=
[
export
const
editDisabledButton
=
{
// {
type
:
'edit'
,
// type: "edit",
title
:
'编辑'
,
// title: "编辑",
perms
:
'bizCulturalRelic:update'
,
// perms: 'bizExhibition:update'
disabled
:
true
// },
}
{
type
:
"delete"
,
// 编辑按钮
title
:
"删除"
,
export
const
deleteButton
=
{
perms
:
'bizExhibition:delete'
type
:
'delete'
,
},
title
:
'删除'
,
];
perms
:
'bizCulturalRelic:delete'
}
// // 临时表
// export const operationsTemp = [
// // {
// // type: "view",
// // title: "预览",
// // perms: "bizExhibition:list"
// // },
// {
// type: "edit",
// title: "编辑",
// perms: 'bizExhibition:update'
// },
// {
// type: "delete",
// title: "删除",
// perms: 'bizExhibition:delete'
// },
// ];
// // 最终表
// export const operations = [
// // {
// // type: "edit",
// // title: "编辑",
// // perms: 'bizExhibition:update'
// // },
// {
// type: "delete",
// title: "删除",
// perms: 'bizExhibition:delete'
// },
// ];
src/views/display/index.vue
浏览文件 @
38ec8a91
差异被折叠。
点击展开。
src/views/displayApproval/components/PreviewDialog.vue
浏览文件 @
38ec8a91
...
@@ -51,7 +51,6 @@ import CulturalRelicTable from "./culturalRelic/CulturalRelicTable.vue";
...
@@ -51,7 +51,6 @@ import CulturalRelicTable from "./culturalRelic/CulturalRelicTable.vue";
import
DisplayBaseInfo
from
"./display/DisplayBaseInfo.vue"
;
import
DisplayBaseInfo
from
"./display/DisplayBaseInfo.vue"
;
import
ApprovalInfo
from
"./approval/ApprovalInfo.vue"
;
import
ApprovalInfo
from
"./approval/ApprovalInfo.vue"
;
import
DisplayRender
from
"./display/DisplayRender.vue"
;
import
DisplayRender
from
"./display/DisplayRender.vue"
;
// import { cr, crList, display } from "../mock";
export
default
{
export
default
{
name
:
"PreviewDialog"
,
name
:
"PreviewDialog"
,
components
:
{
components
:
{
...
@@ -168,7 +167,11 @@ export default {
...
@@ -168,7 +167,11 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
::v-deep
.el-tabs__content
{
::v-deep
.el-tabs__content
{
max-height
:
6
0
vh
;
max-height
:
6
4
vh
;
overflow
:
auto
;
overflow
:
auto
;
}
}
::v-deep
.el-table__body-wrapper
{
overflow-x
:
hidden
;
}
</
style
>
</
style
>
src/views/displayApproval/components/display/DisplayBaseInfo.vue
浏览文件 @
38ec8a91
<
template
>
<
template
>
<!-- 文物基本信息 -->
<!-- 文物基本信息 -->
<div>
<div>
<el-card
shadow=
"hover"
>
<el-card
shadow=
"hover"
v-if=
"info"
>
<el-descriptions
title=
"展览基本详情"
:column=
"1"
labelClassName=
"label"
>
<el-descriptions
title=
"展览基本详情"
:column=
"1"
labelClassName=
"label"
>
<el-descriptions-item
<el-descriptions-item
:label=
"item.label"
:label=
"item.label"
...
@@ -100,6 +100,7 @@
...
@@ -100,6 +100,7 @@
</el-descriptions-item>
</el-descriptions-item>
</el-descriptions>
</el-descriptions>
</el-card>
</el-card>
<el-empty
v-else
/>
</div>
</div>
</template>
</template>
...
...
src/views/displayApproval/components/display/DisplayRender.vue
浏览文件 @
38ec8a91
<
template
>
<
template
>
<!-- 展览效果预览图 -->
<!-- 展览效果预览图 -->
<div
class=
"container"
>
<div>
<NavBar
/>
<div
class=
"container"
v-if=
"info"
>
<NormalStyle
<NavBar
/>
v-if=
"info.themeType == NORMAL_STYLE.value"
<NormalStyle
:displayDetail=
"info"
v-if=
"info.themeType == NORMAL_STYLE.value"
:dicts=
"dicts"
:displayDetail=
"info"
/>
:dicts=
"dicts"
<ChStyle
/>
v-if=
"info.themeType == CH_STYLE.value"
<ChStyle
:displayDetail=
"info"
v-if=
"info.themeType == CH_STYLE.value"
:dicts=
"dicts"
:displayDetail=
"info"
/>
:dicts=
"dicts"
<RedStyle
/>
v-if=
"info.themeType == RED_STYLE.value"
<RedStyle
:displayDetail=
"info"
v-if=
"info.themeType == RED_STYLE.value"
:dicts=
"dicts"
:displayDetail=
"info"
/>
:dicts=
"dicts"
<Footer
/>
/>
<Footer
/>
</div>
<el-empty
v-else
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -48,11 +51,11 @@ export default {
...
@@ -48,11 +51,11 @@ export default {
default
:
()
=>
({}),
default
:
()
=>
({}),
},
},
},
},
data
(){
data
()
{
return
{
return
{
...
THEME_TYPE
,
...
THEME_TYPE
,
}
}
;
}
}
,
};
};
</
script
>
</
script
>
...
...
src/views/displayApproval/config.js
浏览文件 @
38ec8a91
...
@@ -128,6 +128,7 @@ export const crTabletitle = [{
...
@@ -128,6 +128,7 @@ export const crTabletitle = [{
prop
:
"detailSize"
,
prop
:
"detailSize"
,
label
:
"尺寸"
,
label
:
"尺寸"
,
columnAlign
:
'center'
,
columnAlign
:
'center'
,
showOverFlowToolTip
:
true
},
},
{
{
prop
:
"textureTypeLabel"
,
prop
:
"textureTypeLabel"
,
...
@@ -150,6 +151,7 @@ export const crTabletitle = [{
...
@@ -150,6 +151,7 @@ export const crTabletitle = [{
prop
:
"createTime"
,
prop
:
"createTime"
,
label
:
"创建时间"
,
label
:
"创建时间"
,
columnAlign
:
'center'
,
columnAlign
:
'center'
,
showOverFlowToolTip
:
true
},
},
{
{
...
@@ -164,13 +166,13 @@ export const crTabletitle = [{
...
@@ -164,13 +166,13 @@ export const crTabletitle = [{
columnAlign
:
'center'
,
columnAlign
:
'center'
,
showOverFlowToolTip
:
true
,
showOverFlowToolTip
:
true
,
},
},
{
//
{
prop
:
"intro"
,
//
prop: "intro",
label
:
"馆藏介绍"
,
//
label: "馆藏介绍",
columnAlign
:
'center'
,
//
columnAlign: 'center',
showOverFlowToolTip
:
true
,
//
showOverFlowToolTip: true,
width
:
120
,
//
width: 120,
},
//
},
{
{
prop
:
"themeWord"
,
prop
:
"themeWord"
,
...
@@ -183,6 +185,7 @@ export const crTabletitle = [{
...
@@ -183,6 +185,7 @@ export const crTabletitle = [{
label
:
"封面"
,
label
:
"封面"
,
columnAlign
:
'center'
,
columnAlign
:
'center'
,
isFaceImage
:
true
,
isFaceImage
:
true
,
showOverFlowToolTip
:
true
},
},
// {
// {
// prop: "imagesVo",
// prop: "imagesVo",
...
...
src/views/displayApproval/index.vue
浏览文件 @
38ec8a91
...
@@ -10,30 +10,20 @@
...
@@ -10,30 +10,20 @@
v-loading=
"loading"
v-loading=
"loading"
>
>
<template
v-slot:checkStatus=
"data"
>
<template
v-slot:checkStatus=
"data"
>
<el-tag
type=
"primary"
v-if=
"data.scope.checkStatus == 0"
>
<el-tag
{{
:type=
"
$constantsTool
.
getLabelByValue
(
$constantsTool.getTagTypeByValue(
"checkStatus"
,
'checkStatus',
data
.
scope
.
checkStatus
)
}}
</el-tag>
<el-tag
type=
"success"
v-if=
"data.scope.checkStatus == 1"
>
{{
$constantsTool
.
getLabelByValue
(
"checkStatus"
,
data.scope.checkStatus
data.scope.checkStatus
)
)
}}
"
</el-tag>
>
{{
<el-tag
type=
"danger"
v-if=
"data.scope.checkStatus == -2"
>
{{
$constantsTool
.
getLabelByValue
(
$constantsTool
.
getLabelByValue
(
"checkStatus"
,
"checkStatus"
,
data
.
scope
.
checkStatus
data
.
scope
.
checkStatus
)
)
}}
}}
</el-tag
</el-tag
>
>
</
template
>
</
template
>
<
template
v-slot:operates=
"scope"
>
<
template
v-slot:operates=
"scope"
>
<TableOperation
<TableOperation
...
@@ -190,28 +180,17 @@ export default {
...
@@ -190,28 +180,17 @@ export default {
...
mapGetters
([
"dicts"
,
"userInfo"
]),
...
mapGetters
([
"dicts"
,
"userInfo"
]),
getOperation
(
row
)
{
getOperation
(
row
)
{
return
(
row
)
=>
{
return
(
row
)
=>
{
const
label
=
this
.
$constantsTool
.
getLabelByValue
(
switch
(
row
.
checkStatus
)
{
"checkStatus"
,
case
0
:
row
.
checkStatus
// 审核中
);
switch
(
label
)
{
case
"已驳回"
:
return
[
viewButton
,
approvalButton
,
reSubmitButtton
];
break
;
case
"审核中"
:
return
[
viewButton
,
approvalButton
];
return
[
viewButton
,
approvalButton
];
break
;
case
1
:
case
"已通过"
:
// 已通过
return
[
viewButton
];
return
[
viewButton
];
break
;
case
-
2
:
// 已驳回
return
[
viewButton
,
reSubmitButtton
];
}
}
// 管理员2种
// 1 查看详情和审批
// 2 查看详情 管理员操作——已审核、被驳回的条目能够操作的
// 普通人2种
// 1 查看详情
// 2 重传-当被驳回时
};
};
},
},
},
},
...
...
vue.config.js
浏览文件 @
38ec8a91
...
@@ -32,7 +32,7 @@ module.exports = {
...
@@ -32,7 +32,7 @@ module.exports = {
productionSourceMap
:
false
,
productionSourceMap
:
false
,
devServer
:
{
devServer
:
{
// host: '172.24.100.158',
// host: '172.24.100.158',
host
:
'0.0.0.0'
,
host
:
'0.0.0.0'
,
port
:
port
,
port
:
port
,
open
:
true
,
open
:
true
,
overlay
:
{
overlay
:
{
...
@@ -71,13 +71,6 @@ module.exports = {
...
@@ -71,13 +71,6 @@ module.exports = {
}
}
}
}
},
},
// css: {
// loaderOptions: {
// sass: {
// prependData: `@import "@/assets/styles/variable.scss";` //引入全局变量
// }
// }
// },
css
:
{
css
:
{
// 是否使用css分离插件 ExtractTextPlugin
// 是否使用css分离插件 ExtractTextPlugin
extract
:
true
,
extract
:
true
,
...
@@ -85,7 +78,7 @@ module.exports = {
...
@@ -85,7 +78,7 @@ module.exports = {
sourceMap
:
false
,
sourceMap
:
false
,
loaderOptions
:
{
loaderOptions
:
{
sass
:
{
sass
:
{
prependData
:
`@import "@/assets/styles/
variable
.scss";`
,
//引入全局变量
prependData
:
`@import "@/assets/styles/
index
.scss";`
,
//引入全局变量
},
},
},
},
},
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论