Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
exhibition_backstage
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
exhibition_backstage
Commits
b8c53c79
提交
b8c53c79
authored
12月 12, 2022
作者:
龙菲
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改审批驳回意见输入框高度,审批后自动刷新页面和关闭弹出框
上级
a4401123
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
85 行增加
和
24 行删除
+85
-24
PreviewDisplayDialog.vue
src/views/approval/components/PreviewDisplayDialog.vue
+74
-19
config.js
src/views/approval/config.js
+2
-2
display.vue
src/views/approval/display.vue
+6
-2
config.js
src/views/display/config.js
+3
-1
没有找到文件。
src/views/approval/components/PreviewDisplayDialog.vue
浏览文件 @
b8c53c79
...
@@ -35,18 +35,21 @@
...
@@ -35,18 +35,21 @@
</el-tabs>
</el-tabs>
<div
class=
"dialog-footer"
>
<div
class=
"dialog-footer"
>
<span
v-if=
"(displayDetail.checkStatus == 0)"
>
<span
v-if=
"(displayDetail.checkStatus == 0)"
>
<el-button
@
click
.
native=
"handleC
lose
"
style=
"margin-right:6px"
>
取消
</el-button>
<el-button
@
click
.
native=
"handleC
ancel
"
style=
"margin-right:6px"
>
取消
</el-button>
<el-popover
placement=
"top-end"
width=
"400"
trigger=
"
click
"
>
<el-popover
placement=
"top-end"
width=
"400"
trigger=
"
manual"
v-model=
"popoverVisible
"
>
<div>
<div>
<el-form
:model=
"dialogForm"
>
<el-form
:model=
"dialogForm"
prop=
"remark"
:rules=
"rules"
ref=
"form"
>
<el-form-item
label=
"驳回意见"
prop=
"remark"
>
<el-form-item
label=
"驳回意见"
prop=
"remark"
>
<el-input
placeholder=
"驳回意见"
v-model=
"dialogForm.remark"
size=
"small"
>
<el-input
type=
"textarea"
placeholder=
"驳回意见"
v-model=
"dialogForm.remark"
size=
"small"
:rows=
"4"
<el-button
type=
"primary"
slot=
"append"
@
click
.
native=
"handleCheck(-2)"
>
确定
</el-button
>
>
</el-input>
</el-input>
<el-button
type=
"primary"
style=
"float:right;margin-top:16px"
@
click
.
native=
"handleCheck(-2)"
size=
"small"
>
确定
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
<el-button
slot=
"reference"
type=
"danger"
icon=
"el-icon-close"
>
驳回
</el-button>
<el-button
slot=
"reference"
type=
"danger"
icon=
"el-icon-close"
@
click
.
native=
"handleShowPopover"
>
驳回
</el-button>
</el-popover>
</el-popover>
<el-button
style=
"margin-left:6px"
type=
"primary"
icon=
"el-icon-check"
<el-button
style=
"margin-left:6px"
type=
"primary"
icon=
"el-icon-check"
@
click
.
native=
"handleCheck(1)"
>
同意
</el-button>
@
click
.
native=
"handleCheck(1)"
>
同意
</el-button>
...
@@ -145,7 +148,17 @@ export default {
...
@@ -145,7 +148,17 @@ export default {
},
},
activeName
:
'page'
,
activeName
:
'page'
,
historyChecks
:
[],
historyChecks
:
[],
dialogLoading
:
false
dialogLoading
:
false
,
rules
:
{
remark
:
[
{
required
:
true
,
message
:
"请输入驳回意见"
,
trigger
:
'blur'
}
]
},
popoverVisible
:
false
};
};
},
},
async
mounted
()
{
async
mounted
()
{
...
@@ -160,20 +173,62 @@ export default {
...
@@ -160,20 +173,62 @@ export default {
},
},
async
handleCheck
(
checkStatus
)
{
async
handleCheck
(
checkStatus
)
{
this
.
dialogLoading
=
true
const
params
=
{
if
(
checkStatus
==
-
2
)
{
sourceId
:
this
.
displayDetail
.
exhibitionId
,
this
.
$refs
.
form
.
validate
(
async
valid
=>
{
checkStatus
,
if
(
valid
)
{
remark
:
this
.
dialogForm
.
remark
,
this
.
dialogLoading
=
true
sourceType
:
'biz_exhibition'
,
const
params
=
{
sourceName
:
this
.
displayDetail
.
title
sourceId
:
this
.
displayDetail
.
exhibitionId
,
}
checkStatus
,
let
res
=
await
postCheck
(
params
)
remark
:
this
.
dialogForm
.
remark
,
if
(
res
.
code
==
0
)
{
sourceType
:
'biz_exhibition'
,
this
.
$message
.
success
(
'操作成功!'
)
sourceName
:
this
.
displayDetail
.
title
}
let
res
=
await
postCheck
(
params
)
if
(
res
.
code
==
0
)
{
this
.
$message
.
success
(
'操作成功!'
)
this
.
handleClose
()
this
.
$emit
(
'refresh'
)
this
.
$refs
.
form
.
resetFields
()
}
this
.
dialogLoading
=
false
this
.
popoverVisible
=
false
}
})
}
else
{
this
.
dialogLoading
=
true
const
params
=
{
sourceId
:
this
.
displayDetail
.
exhibitionId
,
checkStatus
,
remark
:
this
.
dialogForm
.
remark
,
sourceType
:
'biz_exhibition'
,
sourceName
:
this
.
displayDetail
.
title
}
let
res
=
await
postCheck
(
params
)
if
(
res
.
code
==
0
)
{
this
.
$message
.
success
(
'操作成功!'
)
this
.
handleClose
()
this
.
$emit
(
'refresh'
)
this
.
$refs
.
form
.
resetFields
()
}
this
.
dialogLoading
=
false
this
.
dialogLoading
=
false
this
.
handleClose
()
this
.
popoverVisible
=
false
}
}
},
handleShowPopover
()
{
this
.
popoverVisible
=
true
},
handleCancel
()
{
this
.
handleClose
()
this
.
$emit
(
'refresh'
)
this
.
$refs
.
form
.
resetFields
()
this
.
popoverVisible
=
false
this
.
dialogLoading
=
false
}
}
},
},
};
};
...
...
src/views/approval/config.js
浏览文件 @
b8c53c79
...
@@ -2,7 +2,6 @@ export const displayTabletitle = [{
...
@@ -2,7 +2,6 @@ export const displayTabletitle = [{
prop
:
"title"
,
prop
:
"title"
,
label
:
"标题"
,
label
:
"标题"
,
columnAlign
:
'center'
,
columnAlign
:
'center'
,
width
:
120
,
showOverFlowToolTip
:
true
,
showOverFlowToolTip
:
true
,
},
},
// {
// {
...
@@ -14,7 +13,8 @@ export const displayTabletitle = [{
...
@@ -14,7 +13,8 @@ export const displayTabletitle = [{
{
{
prop
:
"deptName"
,
prop
:
"deptName"
,
label
:
"展览单位"
,
label
:
"展览单位"
,
columnAlign
:
'center'
,
showOverFlowToolTip
:
true
,
columnAlign
:
'center'
,
showOverFlowToolTip
:
true
,
},
},
{
{
prop
:
"type"
,
prop
:
"type"
,
...
...
src/views/approval/display.vue
浏览文件 @
b8c53c79
...
@@ -49,8 +49,12 @@
...
@@ -49,8 +49,12 @@
</el-tabs>
</el-tabs>
<PreviewDisplayDialog
v-if=
"Object.keys(curPreviewObj).length > 0"
:visible=
"previewDialogVisible"
<PreviewDisplayDialog
v-if=
"Object.keys(curPreviewObj).length > 0"
:displayDetail=
"curPreviewObj"
@
handleClose=
"handleClosePreviewDialog"
:loading=
"previewLoading"
/>
:visible=
"previewDialogVisible"
:displayDetail=
"curPreviewObj"
:loading=
"previewLoading"
@
handleClose=
"handleClosePreviewDialog"
@
refresh=
"loadData"
/>
<el-image-viewer
v-if=
"imgViewerVisible"
:on-close=
"closeImgViewer"
:url-list=
"imgList"
/>
<el-image-viewer
v-if=
"imgViewerVisible"
:on-close=
"closeImgViewer"
:url-list=
"imgList"
/>
</div>
</div>
...
...
src/views/display/config.js
浏览文件 @
b8c53c79
...
@@ -85,6 +85,7 @@ export const title = [{
...
@@ -85,6 +85,7 @@ export const title = [{
prop
:
"checkRemark"
,
prop
:
"checkRemark"
,
label
:
"审核意见"
,
label
:
"审核意见"
,
columnAlign
:
'center'
,
columnAlign
:
'center'
,
showOverFlowToolTip
:
true
,
},
},
{
{
prop
:
"themeType"
,
prop
:
"themeType"
,
...
@@ -94,7 +95,8 @@ export const title = [{
...
@@ -94,7 +95,8 @@ export const title = [{
{
{
prop
:
"remark"
,
prop
:
"remark"
,
label
:
"备注"
,
label
:
"备注"
,
columnAlign
:
'center'
,
showOverFlowToolTip
:
true
,
columnAlign
:
'center'
,
showOverFlowToolTip
:
true
,
},
},
// {
// {
// prop: "images",
// prop: "images",
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论