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
db377bd5
Commit
db377bd5
authored
Jul 08, 2023
by
王启林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接接口
parent
c1be6f2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
3 deletions
+68
-3
attendance-performance-manager-ui/admin/src/views/feedback/addQuestion/list.vue
...-manager-ui/admin/src/views/feedback/addQuestion/list.vue
+68
-3
No files found.
attendance-performance-manager-ui/admin/src/views/feedback/addQuestion/list.vue
View file @
db377bd5
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<ElButton
style=
"margin-left: 10px;"
icon=
"el-icon-upload"
type=
"primary"
size=
"small"
<ElButton
style=
"margin-left: 10px;"
icon=
"el-icon-upload"
type=
"primary"
size=
"small"
@
click=
"issueBtn"
round
>
问卷发布
@
click=
"issueBtn"
round
>
问卷发布
</ElButton>
</ElButton>
<ElButton
icon=
"el-icon-view"
type=
"success"
size=
"small"
@
click=
"showDrawer"
round
>
H5
预览
<ElButton
icon=
"el-icon-view"
type=
"success"
size=
"small"
@
click=
"showDrawer"
round
>
手机模拟
预览
</ElButton>
</ElButton>
</
template
>
</
template
>
</fc-designer>
</fc-designer>
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"反馈期限:"
label-width=
"125px"
>
<el-form-item
label=
"反馈期限:"
label-width=
"125px"
>
<el-date-picker
v-model=
"issueForm.time"
type=
"datetimerange"
range-separator=
"至"
<el-date-picker
v-model=
"issueForm.time"
type=
"datetimerange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"邀请人员:"
label-width=
"125px"
>
<el-form-item
label=
"邀请人员:"
label-width=
"125px"
>
...
@@ -65,7 +65,35 @@
...
@@ -65,7 +65,35 @@
<
script
>
<
script
>
import
formCreate
from
"
@form-create/element-ui
"
;
import
formCreate
from
"
@form-create/element-ui
"
;
import
moment
from
'
moment
'
function
formType
(
val
)
{
// (1.单项选择,2.多项选择,3.文本框,4.多项文本框,5.文字,6.上传附件)
switch
(
val
)
{
case
"
radio
"
:
return
1
break
;
case
'
checkbox
'
:
return
2
break
;
case
'
input
'
:
return
3
break
;
case
'
span
'
:
return
5
break
;
case
'
upload
'
:
return
6
break
;
default
:
break
;
}
}
function
formatNum
(
val
)
{
if
(
val
)
return
1
else
return
0
}
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
tabs
:
'
1
'
,
tabs
:
'
1
'
,
...
@@ -74,6 +102,8 @@ export default {
...
@@ -74,6 +102,8 @@ export default {
Fopthion
:
''
,
Fopthion
:
''
,
issueDialog
:
false
,
issueDialog
:
false
,
issueForm
:
{
issueForm
:
{
id
:
''
,
title
:
''
,
cover
:
[
cover
:
[
'
http://sy.scsmile.cn/YX-JXgl/v1.0/HT/images/%E6%96%B0%E5%A2%9E%E5%8F%8D%E9%A6%88_%E7%AC%AC3%E6%AD%A5_/u26101.svg
'
,
'
http://sy.scsmile.cn/YX-JXgl/v1.0/HT/images/%E6%96%B0%E5%A2%9E%E5%8F%8D%E9%A6%88_%E7%AC%AC3%E6%AD%A5_/u26101.svg
'
,
'
http://sy.scsmile.cn/YX-JXgl/v1.0/HT/images/%E6%96%B0%E5%A2%9E%E5%8F%8D%E9%A6%88_%E7%AC%AC3%E6%AD%A5_/u26102.svg
'
'
http://sy.scsmile.cn/YX-JXgl/v1.0/HT/images/%E6%96%B0%E5%A2%9E%E5%8F%8D%E9%A6%88_%E7%AC%AC3%E6%AD%A5_/u26102.svg
'
...
@@ -115,7 +145,15 @@ export default {
...
@@ -115,7 +145,15 @@ export default {
this
.
$refs
.
designer
.
removeMenuItem
(
"
el-button
"
)
this
.
$refs
.
designer
.
removeMenuItem
(
"
el-button
"
)
this
.
$refs
.
designer
.
removeMenuItem
(
"
el-divider
"
)
this
.
$refs
.
designer
.
removeMenuItem
(
"
el-divider
"
)
//配置组件生成规则---直接配置显示在页面上
//配置组件生成规则---直接配置显示在页面上
// const rule = [{ "type": "input", "field": "int", "title": "输入框", "info": "", "_fc_drag_tag": "input", "hidden": false, "display": true }]
// const rule = [{
// "type": "span",
// "title": "请输入问卷名称",
// "native": false,
// "children": [],
// "_fc_drag_tag": "span",
// "hidden": false,
// "display": true
// }]
// this.$refs.designer.setRule(rule)
// this.$refs.designer.setRule(rule)
},
},
methods
:
{
methods
:
{
...
@@ -158,6 +196,33 @@ export default {
...
@@ -158,6 +196,33 @@ export default {
},
},
issueFormBtn
()
{
issueFormBtn
()
{
console
.
log
(
this
.
issueForm
)
console
.
log
(
this
.
issueForm
)
this
.
Frule
.
forEach
(
i
=>
{
i
.
feedbackId
=
i
.
field
i
.
questionType
=
formType
(
i
.
type
)
i
.
require
=
formatNum
(
i
.
$required
)
i
.
content
=
i
.
info
if
(
formType
(
i
.
type
)
==
1
||
formType
(
i
.
type
)
==
2
)
{
i
.
options
.
forEach
(
j
=>
{
j
.
content
=
j
.
value
j
.
remark
=
j
.
label
})
}
i
.
feedbackOptionList
=
{
...
i
.
options
}
})
let
sub
=
{
id
:
''
,
title
:
''
,
feedbackTimeStart
:
this
.
issueForm
.
time
[
0
],
feedbackTimeEnd
:
this
.
issueForm
.
time
[
1
],
inviteNum
:
''
,
formContent
:
JSON
.
stringify
(
this
.
Frule
),
feedbackQuestionList
:
[
...
this
.
Frule
]
}
console
.
log
(
sub
)
}
}
}
}
}
}
...
...
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