Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
exhibition_backstage
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
exhibition_backstage
Commits
1c06d651
提交
1c06d651
authored
9月 22, 2022
作者:
龙菲
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化文物导入提示、优化预览模板
上级
aa21a8cf
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
147 行增加
和
59 行删除
+147
-59
ImportRecordDialog.vue
src/views/culturalRelic/components/ImportRecordDialog.vue
+0
-1
InfoEditDialog.vue
src/views/culturalRelic/components/InfoEditDialog.vue
+1
-1
UploadListDialog.vue
src/views/culturalRelic/components/UploadListDialog.vue
+14
-3
config.js
src/views/culturalRelic/config.js
+1
-1
index.vue
src/views/culturalRelic/index.vue
+54
-43
InfoEditDialog.vue
src/views/display/components/InfoEditDialog.vue
+30
-1
BlueStyle.vue
src/views/display/components/templates/BlueStyle.vue
+2
-2
index.vue
src/views/importExport/index.vue
+0
-1
InfoEditDialog.vue
src/views/museum/components/InfoEditDialog.vue
+39
-3
index.vue
src/views/museum/index.vue
+6
-3
没有找到文件。
src/views/culturalRelic/components/ImportRecordDialog.vue
浏览文件 @
1c06d651
...
@@ -93,7 +93,6 @@ export default {
...
@@ -93,7 +93,6 @@ export default {
},
},
getFileSize
(
fileSize
)
{
getFileSize
(
fileSize
)
{
return
(
fileSize
)
=>
{
return
(
fileSize
)
=>
{
console
.
log
(
fileSize
);
return
(
Number
(
fileSize
)
/
1024
/
1024
).
toFixed
(
2
)
+
"M"
;
return
(
Number
(
fileSize
)
/
1024
/
1024
).
toFixed
(
2
)
+
"M"
;
};
};
},
},
...
...
src/views/culturalRelic/components/InfoEditDialog.vue
浏览文件 @
1c06d651
...
@@ -553,7 +553,7 @@ export default {
...
@@ -553,7 +553,7 @@ export default {
params
.
textureType
[
params
.
textureType
.
length
-
1
].
trim
();
params
.
textureType
[
params
.
textureType
.
length
-
1
].
trim
();
}
}
// 处理
行政区划
// 处理
馆藏单位
if
(
params
.
deptId
instanceof
Array
)
{
if
(
params
.
deptId
instanceof
Array
)
{
params
.
deptId
=
params
.
deptId
[
params
.
deptId
.
length
-
1
];
params
.
deptId
=
params
.
deptId
[
params
.
deptId
.
length
-
1
];
}
}
...
...
src/views/culturalRelic/components/UploadListDialog.vue
浏览文件 @
1c06d651
<
template
>
<
template
>
<el-dialog
<el-dialog
:visible=
"dialogVisible"
:visible=
"dialogVisible"
width=
"
5
0%"
width=
"
6
0%"
style=
"height: 98%"
style=
"height: 98%"
:before-close=
"handleClose"
:before-close=
"handleClose"
top=
"5vh"
top=
"5vh"
...
@@ -10,6 +10,10 @@
...
@@ -10,6 +10,10 @@
<div
class=
"title"
slot=
"title"
>
<div
class=
"title"
slot=
"title"
>
<div
class=
"divider"
></div>
<div
class=
"divider"
></div>
<span
class=
"label"
>
上传列表
</span>
<span
class=
"label"
>
上传列表
</span>
<span
class=
"tips"
>
<i
class=
"el-icon-info"
></i
>
提示:上传过程中请勿关闭此弹窗或刷新页面等操作
</span>
</div>
</div>
<div
class=
"upload-progress"
>
<div
class=
"upload-progress"
>
<el-table
:data=
"filesList"
fit
>
<el-table
:data=
"filesList"
fit
>
...
@@ -23,6 +27,7 @@
...
@@ -23,6 +27,7 @@
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-progress
<el-progress
:percentage=
"scope.row.percent"
:percentage=
"scope.row.percent"
v-if=
"!isNaN(parseInt(scope.row.percent))"
:status=
"scope.row.status"
:status=
"scope.row.status"
></el-progress>
></el-progress>
</
template
>
</
template
>
...
@@ -34,7 +39,7 @@
...
@@ -34,7 +39,7 @@
size=
"48"
size=
"48"
icon=
"el-icon-circle-close"
icon=
"el-icon-circle-close"
@
click
.
native=
"handleCancel(scope.$index)"
@
click
.
native=
"handleCancel(scope.$index)"
v-if=
"scope.row.status
==
null"
v-if=
"scope.row.status
==
null"
></el-button>
></el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -105,7 +110,7 @@ export default {
...
@@ -105,7 +110,7 @@ export default {
this
.
handleClose
();
this
.
handleClose
();
},
},
handleCancel
(
index
)
{
handleCancel
(
index
)
{
this
.
$emit
(
'handleCancel'
,
index
)
this
.
$emit
(
"handleCancel"
,
index
);
},
},
handleClose
()
{
handleClose
()
{
this
.
$emit
(
"handleClose"
);
this
.
$emit
(
"handleClose"
);
...
@@ -117,6 +122,7 @@ export default {
...
@@ -117,6 +122,7 @@ export default {
<
style
lang=
'scss'
scoped
>
<
style
lang=
'scss'
scoped
>
.title
{
.title
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
.divider
{
.divider
{
width
:
8px
;
width
:
8px
;
height
:
16px
;
height
:
16px
;
...
@@ -126,6 +132,11 @@ export default {
...
@@ -126,6 +132,11 @@ export default {
.label
{
.label
{
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.tips
{
font-size
:
14px
;
color
:
#666
;
margin-left
:
10px
;
}
}
}
.dialog-content
{
.dialog-content
{
padding
:
0
32px
;
padding
:
0
32px
;
...
...
src/views/culturalRelic/config.js
浏览文件 @
1c06d651
...
@@ -152,7 +152,7 @@ export const importRecordsTitle = [{
...
@@ -152,7 +152,7 @@ export const importRecordsTitle = [{
prop
:
"fileName"
,
prop
:
"fileName"
,
label
:
"文件名称"
,
label
:
"文件名称"
,
columnAlign
:
"center"
,
columnAlign
:
"center"
,
width
:
2
2
0
width
:
2
6
0
},
},
{
{
prop
:
"fileSize"
,
prop
:
"fileSize"
,
...
...
src/views/culturalRelic/index.vue
浏览文件 @
1c06d651
...
@@ -4,48 +4,51 @@
...
@@ -4,48 +4,51 @@
<SearchBar
:config=
"searchConfig"
@
search=
"search"
@
reset=
"reset"
/>
<SearchBar
:config=
"searchConfig"
@
search=
"search"
@
reset=
"reset"
/>
</div>
</div>
<div
class=
"tools"
>
<div
class=
"tools"
>
<el-button
<div
class=
"tools-item"
>
type=
"primary"
@
click
.
native=
"handleOperation(
{ type: 'add' })"
icon="el-icon-plus"
>
添加
</el-button
>
<el-upload
class=
"upload-button"
:action=
"importZipUrl"
:headers=
"headers"
accept=
".zip"
:show-file-list=
"false"
:on-exceed=
"handleExceed"
:before-upload=
"handleUpload"
:on-success=
"handleSuccess"
multiple
>
<el-button
<el-button
type=
"
success
"
type=
"
primary
"
@
click
.
native=
"handleOperation(
{ type: '
multiA
dd' })"
@
click
.
native=
"handleOperation(
{ type: '
a
dd' })"
icon="el-icon-
upload
"
icon="el-icon-
plus
"
>
>
批量导入
</el-button
添加
</el-button
>
<el-upload
class=
"upload-button"
:action=
"importZipUrl"
:headers=
"headers"
accept=
".zip"
:show-file-list=
"false"
:on-exceed=
"handleExceed"
:before-upload=
"handleUpload"
:on-success=
"handleSuccess"
multiple
>
<el-button
type=
"success"
@
click
.
native=
"handleOperation(
{ type: 'multiAdd' })"
icon="el-icon-upload"
>
批量导入
</el-button
>
</el-upload>
</div>
<div
class=
"tools-item"
>
<el-button
type=
"primary"
@
click
.
native=
"handleOperation(
{ type: 'downloadTemplate' })"
icon="el-icon-download"
>
下载导入模板
</el-button
>
>
</el-upload>
<el-button
type=
"primary"
@
click
.
native=
"handleOperation(
{ type: 'downloadTemplate' })"
icon="el-icon-download"
>
下载导入模板
</el-button
>
<el-button
<el-button
type=
"primary"
type=
"primary"
@
click
.
native=
"handleOperation(
{ type: 'viewImportRecord' })"
@
click
.
native=
"handleOperation(
{ type: 'viewImportRecord' })"
icon="el-icon-document"
icon="el-icon-document"
>
>
查看导入记录
</el-button
查看导入记录
</el-button
>
>
</div>
</div>
</div>
<TablePage
<TablePage
:data=
"list.records"
:data=
"list.records"
...
@@ -149,7 +152,7 @@ export default {
...
@@ -149,7 +152,7 @@ export default {
InfoEditDialog
,
InfoEditDialog
,
SearchBar
,
SearchBar
,
ImportRecordDialog
,
ImportRecordDialog
,
UploadListDialog
UploadListDialog
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -506,9 +509,9 @@ export default {
...
@@ -506,9 +509,9 @@ export default {
};
};
},
},
handleImportRecordClose
(){
handleImportRecordClose
()
{
this
.
importRecordVisible
=
false
this
.
importRecordVisible
=
false
;
}
}
,
},
},
};
};
</
script
>
</
script
>
...
@@ -532,7 +535,15 @@ export default {
...
@@ -532,7 +535,15 @@ export default {
// }
// }
.tools
{
.tools
{
display
:
flex
;
display
:
flex
;
margin-bottom
:
20px
;
align-items
:
center
;
justify-content
:
space-between
;
margin-bottom
:
14px
;
.tools-item
{
display
:
flex
;
&
:last-child
{
justify-content
:
flex-end
;
}
}
.upload-button
{
.upload-button
{
margin
:
0
10px
;
margin
:
0
10px
;
}
}
...
...
src/views/display/components/InfoEditDialog.vue
浏览文件 @
1c06d651
...
@@ -37,6 +37,16 @@
...
@@ -37,6 +37,16 @@
</el-option>
</el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"展览单位"
:label-width=
"formLabelWidth"
>
<el-cascader
style=
"width: 100%"
v-model=
"dialogForm.deptId"
:options=
"orgTreeData"
:props=
"optionProps"
placeholder=
"请选择展览单位"
>
</el-cascader>
</el-form-item>
<el-form-item
<el-form-item
label=
"展览性质"
label=
"展览性质"
:label-width=
"formLabelWidth"
:label-width=
"formLabelWidth"
...
@@ -344,6 +354,11 @@ export default {
...
@@ -344,6 +354,11 @@ export default {
}
}
});
});
}
}
// 回填展览单位
if
(
this
.
dialogForm
.
deptId
)
{
this
.
dialogForm
.
deptId
=
[
this
.
dialogForm
.
deptId
];
}
}
}
},
},
immediate
:
true
,
immediate
:
true
,
...
@@ -414,6 +429,13 @@ export default {
...
@@ -414,6 +429,13 @@ export default {
theme
:
"snow"
,
theme
:
"snow"
,
placeholder
:
"请输入单元介绍"
,
placeholder
:
"请输入单元介绍"
,
},
},
orgTreeData
:
[],
optionProps
:
{
value
:
"id"
,
label
:
"name"
,
children
:
"children"
,
checkStrictly
:
true
,
//单选选择任意一级选项
},
};
};
},
},
async
created
()
{
async
created
()
{
...
@@ -421,6 +443,9 @@ export default {
...
@@ -421,6 +443,9 @@ export default {
"displayType"
,
"displayType"
,
"displayCharacter"
,
"displayCharacter"
,
]);
]);
this
.
$store
.
dispatch
(
"org/getMuseumTreeData"
,
false
).
then
((
res
)
=>
{
this
.
orgTreeData
=
res
[
0
].
children
;
//去掉根节点的文旅厅
});
},
},
methods
:
{
methods
:
{
...
@@ -771,6 +796,7 @@ export default {
...
@@ -771,6 +796,7 @@ export default {
let
literature
=
this
.
literatureValues
.
join
(
","
);
let
literature
=
this
.
literatureValues
.
join
(
","
);
let
crIds
=
this
.
crIds
.
join
(
","
);
let
crIds
=
this
.
crIds
.
join
(
","
);
let
status
=
this
.
dialogForm
.
status
?
1
:
0
;
let
status
=
this
.
dialogForm
.
status
?
1
:
0
;
// return;
// return;
const
params
=
{
const
params
=
{
exhibitionId
,
exhibitionId
,
...
@@ -793,7 +819,10 @@ export default {
...
@@ -793,7 +819,10 @@ export default {
displayCharacter
,
displayCharacter
,
exhibitionUnits
:
unitData
,
exhibitionUnits
:
unitData
,
};
};
// 处理馆藏单位
if
(
params
.
deptId
instanceof
Array
)
{
params
.
deptId
=
params
.
deptId
[
params
.
deptId
.
length
-
1
];
}
// return;
// return;
editDisplay
(
params
)
editDisplay
(
params
)
.
then
(
async
(
res
)
=>
{
.
then
(
async
(
res
)
=>
{
...
...
src/views/display/components/templates/BlueStyle.vue
浏览文件 @
1c06d651
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
</div>
</div>
<el-row
:span=
"20"
>
<el-row
:span=
"20"
>
<el-col
:span=
"
15
"
class=
"left"
>
<el-col
:span=
"
24
"
class=
"left"
>
<div
class=
"basic-info"
>
<div
class=
"basic-info"
>
<div
class=
"body-item"
>
<div
class=
"body-item"
>
<span
class=
"label"
>
<span
class=
"label"
>
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
</div>
</div>
</div>
</div>
</el-col>
</el-col>
<el-col
:span=
"
9
"
class=
"right"
>
<el-col
:span=
"
10
"
class=
"right"
>
<!--
<div
class=
"qrcode"
>
<!--
<div
class=
"qrcode"
>
<img
<img
src=
"@/assets/imgs/display/normal/test-qrcode.png"
src=
"@/assets/imgs/display/normal/test-qrcode.png"
...
...
src/views/importExport/index.vue
浏览文件 @
1c06d651
...
@@ -95,7 +95,6 @@ export default {
...
@@ -95,7 +95,6 @@ export default {
},
},
getFileSize
(
fileSize
)
{
getFileSize
(
fileSize
)
{
return
(
fileSize
)
=>
{
return
(
fileSize
)
=>
{
console
.
log
(
fileSize
);
return
(
Number
(
fileSize
)
/
1024
/
1024
).
toFixed
(
2
)
+
"M"
;
return
(
Number
(
fileSize
)
/
1024
/
1024
).
toFixed
(
2
)
+
"M"
;
};
};
},
},
...
...
src/views/museum/components/InfoEditDialog.vue
浏览文件 @
1c06d651
<
template
>
<
template
>
<el-dialog
<el-dialog
:visible
.
sync=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
width=
"
4
0%"
width=
"
6
0%"
style=
"height: 98%"
style=
"height: 98%"
:before-close=
"handleClose"
:before-close=
"handleClose"
top=
"5vh"
top=
"5vh"
...
@@ -78,14 +78,20 @@
...
@@ -78,14 +78,20 @@
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"简介"
:label-width=
"formLabelWidth"
>
<el-form-item
label=
"简介"
:label-width=
"formLabelWidth"
>
<el-input
<
!--
<
el-input
type=
"textarea"
type=
"textarea"
placeholder=
"请输入博物馆简介"
placeholder=
"请输入博物馆简介"
v-model=
"dialogForm.intro"
v-model=
"dialogForm.intro"
maxlength=
"600"
maxlength=
"600"
show-word-limit
show-word-limit
>
>
</el-input>
</el-input>
-->
<quill-editor
ref=
"myQuillEditor"
v-model=
"dialogForm.intro"
:options=
"editorOption"
class=
".editor"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -104,10 +110,13 @@ import ManualUploader from "@/components/Uploader/ManualUploader.vue";
...
@@ -104,10 +110,13 @@ import ManualUploader from "@/components/Uploader/ManualUploader.vue";
import
{
mapGetters
}
from
"vuex"
;
import
{
mapGetters
}
from
"vuex"
;
import
{
uploadV1
}
from
"@/utils/file"
;
import
{
uploadV1
}
from
"@/utils/file"
;
import
{
deleteFiles
}
from
"@/api/file"
;
import
{
deleteFiles
}
from
"@/api/file"
;
import
{
quillEditor
}
from
"vue-quill-editor"
;
export
default
{
export
default
{
name
:
"InfoEditDialog"
,
name
:
"InfoEditDialog"
,
components
:
{
components
:
{
ManualUploader
,
ManualUploader
,
quillEditor
},
},
props
:
{
props
:
{
visible
:
{
visible
:
{
...
@@ -188,6 +197,23 @@ export default {
...
@@ -188,6 +197,23 @@ export default {
},
},
},
},
data
()
{
data
()
{
// 工具栏配置
const
toolbarOptions
=
[
[
"bold"
,
"italic"
,
"underline"
,
"strike"
],
// 加粗 斜体 下划线 删除线 -----['bold', 'italic', 'underline', 'strike']
[
"blockquote"
,
"code-block"
],
// 引用 代码块-----['blockquote', 'code-block']
[{
header
:
1
},
{
header
:
2
}],
// 1、2 级标题-----[{ header: 1 }, { header: 2 }]
[{
list
:
"ordered"
},
{
list
:
"bullet"
}],
// 有序、无序列表-----[{ list: 'ordered' }, { list: 'bullet' }]
[{
script
:
"sub"
},
{
script
:
"super"
}],
// 上标/下标-----[{ script: 'sub' }, { script: 'super' }]
[{
indent
:
"-1"
},
{
indent
:
"+1"
}],
// 缩进-----[{ indent: '-1' }, { indent: '+1' }]
[{
direction
:
"rtl"
}],
// 文本方向-----[{'direction': 'rtl'}]
[{
size
:
[
"small"
,
false
,
"large"
,
"huge"
]
}],
// 字体大小-----[{ size: ['small', false, 'large', 'huge'] }]
[{
header
:
[
1
,
2
,
3
,
4
,
5
,
6
,
false
]
}],
// 标题-----[{ header: [1, 2, 3, 4, 5, 6, false] }]
[{
color
:
[]
},
{
background
:
[]
}],
// 字体颜色、字体背景颜色-----[{ color: [] }, { background: [] }]
[{
font
:
[]
}],
// 字体种类-----[{ font: [] }]
[{
align
:
[]
}],
// 对齐方式-----[{ align: [] }]
[
"clean"
],
// 清除文本格式-----['clean']
// ["image", "video"], // 链接、图片、视频-----['link', 'image', 'video']
];
return
{
return
{
dialogForm
:
{},
dialogForm
:
{},
formLabelWidth
:
"100px"
,
formLabelWidth
:
"100px"
,
...
@@ -209,6 +235,16 @@ export default {
...
@@ -209,6 +235,16 @@ export default {
regionCodeModalKey
:
0
,
regionCodeModalKey
:
0
,
faceImage
:
[],
faceImage
:
[],
parentPid
:
null
,
//博物馆根节点id
parentPid
:
null
,
//博物馆根节点id
editorOption
:
{
// 富文本编辑器配置
modules
:
{
//工具栏定义的
toolbar
:
toolbarOptions
,
},
//主题
theme
:
"snow"
,
placeholder
:
"请输入单元介绍"
,
},
};
};
},
},
methods
:
{
methods
:
{
...
...
src/views/museum/index.vue
浏览文件 @
1c06d651
...
@@ -56,8 +56,11 @@
...
@@ -56,8 +56,11 @@
prop=
"intro"
prop=
"intro"
label=
"简介"
label=
"简介"
show-overflow-tooltip
show-overflow-tooltip
/>
>
<
template
slot-scope=
"scope"
>
<span
v-html=
"scope.row.intro"
></span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"操作"
>
<el-table-column
align=
"center"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
...
@@ -152,7 +155,7 @@ export default {
...
@@ -152,7 +155,7 @@ export default {
expandRow
:
[],
expandRow
:
[],
tabelData
:
[],
tabelData
:
[],
imgList
:
[],
imgList
:
[],
imgViewerVisible
:
false
imgViewerVisible
:
false
,
};
};
},
},
computed
:
{
computed
:
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论