Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
9c8b210b
Commit
9c8b210b
authored
Jul 19, 2023
by
王启林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推
parent
9d4d487a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
11 deletions
+33
-11
attendance-performance-manager-ui/admin/src/components/DataTreeTable.vue
...ormance-manager-ui/admin/src/components/DataTreeTable.vue
+1
-0
attendance-performance-manager-ui/admin/src/views/feedback/addQuestion/list.vue
...-manager-ui/admin/src/views/feedback/addQuestion/list.vue
+32
-11
No files found.
attendance-performance-manager-ui/admin/src/components/DataTreeTable.vue
View file @
9c8b210b
...
...
@@ -8,6 +8,7 @@
:row-class-name=
"tableRowClassName"
:default-expand-all=
"expand"
:tree-props=
"
{ children: 'children', hasChildren: 'hasChildren' }"
height="630px"
>
<el-table-column
...
...
attendance-performance-manager-ui/admin/src/views/feedback/addQuestion/list.vue
View file @
9c8b210b
...
...
@@ -26,11 +26,11 @@
<fc-designer
style=
"height: 79vh;"
ref=
"designer"
>
<template
slot=
"handle"
>
<ElButton
style=
"margin-left: 10px;"
icon=
"el-icon-upload"
type=
"primary"
size=
"small"
@
click=
"issueBtn"
round
>
问卷发布
@
click=
"issueBtn"
round
>
问卷配置发布
</ElButton>
<ElButton
style=
"margin-left: 10px;"
icon=
"el-icon-position"
type=
"warning"
size=
"small"
@
click=
"outsideBtn"
round
>
外部链接发布
</ElButton>
<!--
<ElButton
style=
"margin-left: 10px;"
icon=
"el-icon-position"
type=
"warning"
size=
"small"
@
click=
"issueBtn"
round
>
外部链接
</ElButton>
-->
<ElButton
icon=
"el-icon-view"
type=
"success"
size=
"small"
@
click=
"showDrawer"
round
>
手机预览
</ElButton>
</
template
>
...
...
@@ -50,6 +50,9 @@
<!-- 问卷发布弹出框 -->
<el-dialog
title=
"问卷发布"
:visible.sync=
"issueDialog"
width=
"30%"
top=
"25vh"
>
<el-form
:model=
"issueForm"
:rules=
"issueRules"
ref=
"issueForm"
>
<el-form-item
label=
"链接地址:"
label-width=
"125px"
prop=
"webUrl"
v-if=
"weblink"
>
<el-input
v-model=
"issueForm.webUrl"
placeholder=
"请输入链接地址"
></el-input>
</el-form-item>
<el-form-item
label=
"问卷封面:"
label-width=
"125px"
>
<div
style=
"display: flex;align-items: center;"
>
<img
style=
"width:80px; height: 80px; margin-right: 10px;cursor: pointer;"
...
...
@@ -161,6 +164,10 @@ export default {
issueRules
:
{
time
:
[
{
required
:
true
,
message
:
'
请输入选择反馈期限
'
,
trigger
:
'
blur
'
},
],
webUrl
:
[
{
required
:
true
,
message
:
'
请输入链接地址
'
,
trigger
:
'
blur
'
},
{
pattern
:
/^https
?
:
\/\/((
.
)
+
(\.)?)
*
(
:
\d
+
)?(\/((\.)?(\?)?
=
?
&
?
.
(\?)?)
*
)
*$/i
,
message
:
'
请输入正确的链接 例:https://www.baidu.com
'
,
trigger
:
'
change
'
}
]
},
treeData
:
[],
...
...
@@ -178,7 +185,17 @@ export default {
editStyle
:
false
,
loadingstate
:
false
,
ImgUrl
:
process
.
env
.
VUE_APP_API_BASE_URL
,
coverImg
:
[]
coverImg
:
[],
weblink
:
0
,
webUrl
:
''
,
}
},
watch
:
{
issueDialog
(
val
)
{
//监听关闭外联状态
if
(
!
val
)
{
this
.
weblink
=
0
}
}
},
mounted
()
{
...
...
@@ -202,6 +219,10 @@ export default {
this
.
getFile
()
},
methods
:
{
outsideBtn
()
{
this
.
weblink
=
1
this
.
issueDialog
=
1
},
handleUploadSuccess
(
res
)
{
console
.
log
(
res
)
this
.
coverImg
.
push
(
res
)
...
...
@@ -253,7 +274,6 @@ export default {
console
.
log
(
file
)
}
},
//获取问卷封面
getFile
()
{
this
.
$post
(
'
/feedback/file/list
'
,
{
page
:
1
,
size
:
3
}).
then
(
res
=>
{
...
...
@@ -360,12 +380,12 @@ export default {
return
JSON
.
stringify
(
FcDesignerOptions
)
},
issueFormBtn
(
formName
)
{
if
(
this
.
checkedUser
.
length
<
1
)
{
this
.
$message
.
warning
(
'
请选择人员后发布问卷
'
)
return
}
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
checkedUser
.
length
<
1
)
{
this
.
$message
.
warning
(
'
请选择人员后发布问卷
'
)
return
}
console
.
log
(
this
.
issueForm
)
this
.
Frule
.
forEach
(
i
=>
{
i
.
remark
=
i
.
field
...
...
@@ -384,7 +404,8 @@ export default {
})
let
sub
=
{
weblink
:
this
.
weblink
,
webUrl
:
this
.
issueForm
.
webUrl
,
staffList
:
this
.
checkedUser
,
id
:
this
.
feedbackId
,
...
this
.
titleForm
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment