Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-IM
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-IM
提交
d11e846e
提交
d11e846e
编写于
9月 20, 2019
作者:
qingzhong.ren@picahealth.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
对接接口
上级
f270b986
变更
1
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
86 行增加
和
38 行删除
+86
-38
question-list.vue
src/views/question-naire/question-list.vue
+86
-38
未找到文件。
src/views/question-naire/question-list.vue
浏览文件 @
d11e846e
...
@@ -101,15 +101,15 @@
...
@@ -101,15 +101,15 @@
v-show=
"scope.row.status == 1"
v-show=
"scope.row.status == 1"
size=
"small"
size=
"small"
@
click=
"onAndDownLine(scope.row)"
@
click=
"onAndDownLine(scope.row)"
>
上线
</el-button
>
上线
>
</el-button
>
<el-button
<el-button
type=
"primary"
type=
"primary"
v-show=
"scope.row.status == 2"
v-show=
"scope.row.status == 2"
size=
"small"
size=
"small"
@
click=
"onAndDownLine(scope.row)"
@
click=
"onAndDownLine(scope.row)"
>
下线
</el-button
>
下线
>
</el-button
>
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"reviewQuestion(scope.row)"
>
查看题库
</el-button>
-->
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"reviewQuestion(scope.row)"
>
查看题库
</el-button>
-->
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -166,7 +166,8 @@
...
@@ -166,7 +166,8 @@
maxlength=
"30"
maxlength=
"30"
placeholder=
"标题最多30字符"
placeholder=
"标题最多30字符"
style=
"width: 300px;"
style=
"width: 300px;"
></el-input>
>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"题库导入"
prop=
"fileName"
>
<el-form-item
label=
"题库导入"
prop=
"fileName"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -258,11 +259,13 @@
...
@@ -258,11 +259,13 @@
></el-input>
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"基本信息"
v-show=
"questionEditList.showType == 2"
>
<el-form-item
label=
"基本信息"
v-show=
"questionEditList.showType == 2"
>
<el-checkbox-group
v-model=
"questionEditList.baseInfoList"
>
<el-checkbox
v-model=
"userBase.name"
label=
"true"
>
姓名
</el-checkbox>
<el-checkbox
label=
"1"
>
姓名
</el-checkbox>
<el-checkbox
v-model=
"userBase.mobile"
label=
"true"
<el-checkbox
label=
"2"
>
手机号
</el-checkbox>
>
手机号
</el-checkbox
<el-checkbox
label=
"3"
>
地址
</el-checkbox>
>
</el-checkbox-group>
<el-checkbox
v-model=
"userBase.address"
label=
"true"
>
地址
</el-checkbox
>
</el-form-item>
</el-form-item>
<div
v-show=
"questionEditList.showType == 2"
>
<div
v-show=
"questionEditList.showType == 2"
>
<el-form-item
class=
"submit-btn"
label=
"头图"
>
<el-form-item
class=
"submit-btn"
label=
"头图"
>
...
@@ -327,10 +330,7 @@
...
@@ -327,10 +330,7 @@
label=
"登录权限控制"
label=
"登录权限控制"
v-show=
"questionEditList.showType == 2"
v-show=
"questionEditList.showType == 2"
>
>
<el-checkbox-group
<el-checkbox-group
v-model=
"loginAuthList"
class=
"login-auth"
>
v-model=
"questionEditList.loginAuthList"
class=
"login-auth"
>
<el-checkbox
label=
"1"
>
云鹊医APP
</el-checkbox>
<el-checkbox
label=
"1"
>
云鹊医APP
</el-checkbox>
<el-checkbox
label=
"2"
>
云鹊医H5
</el-checkbox>
<el-checkbox
label=
"2"
>
云鹊医H5
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
...
@@ -405,17 +405,18 @@ export default {
...
@@ -405,17 +405,18 @@ export default {
submitButtomUrl
:
""
,
submitButtomUrl
:
""
,
promptCopy
:
""
,
promptCopy
:
""
,
headDiagramUrl
:
""
,
headDiagramUrl
:
""
,
baseInfoList
:
[],
//基本信息
questionIntro
:
""
,
questionIntro
:
""
,
loginAuthList
:
[],
//登录权限控制
limitNumFlag
:
"0"
,
//填写次数flag
limitNumFlag
:
"0"
,
//填写次数flag
limitNum
:
1
//填写次数
limitNum
:
1
//填写次数
},
},
loginAuthList
:
[],
//登录权限控制
userBase
:
{},
//基本信息
rules
:
{
rules
:
{
name
:
[{
required
:
true
,
message
:
"请输入问卷标题"
,
trigger
:
"blur"
}],
name
:
[
fileName
:
[
{
{
required
:
true
required
:
true
,
message
:
"请输入问卷标题"
,
trigger
:
"blur"
}
}
],
],
promptCopy
:
[
promptCopy
:
[
...
@@ -503,13 +504,20 @@ export default {
...
@@ -503,13 +504,20 @@ export default {
submitButtomUrl
:
""
,
submitButtomUrl
:
""
,
promptCopy
:
"您已成功提交问卷,感谢您的参与!"
,
promptCopy
:
"您已成功提交问卷,感谢您的参与!"
,
headDiagramUrl
:
""
,
headDiagramUrl
:
""
,
baseInfoList
:
[],
questionIntro
:
""
,
questionIntro
:
""
,
loginAuthList
:
[
"1"
],
limitNumFlag
:
"0"
,
limitNumFlag
:
"0"
,
limitNum
:
1
limitNum
:
1
}
}
);
);
vm
.
loginAuthList
=
[
"1"
];
vm
.
userBase
=
Object
.
assign
(
{},
{
address
:
false
,
mobile
:
false
,
name
:
false
}
);
vm
.
fileName
=
""
;
vm
.
fileName
=
""
;
vm
.
fileArray
=
[];
vm
.
fileArray
=
[];
vm
.
excelFileName
=
""
;
vm
.
excelFileName
=
""
;
...
@@ -523,22 +531,35 @@ export default {
...
@@ -523,22 +531,35 @@ export default {
vm
.
excelFileName
=
""
;
vm
.
excelFileName
=
""
;
vm
.
fileName
=
""
;
vm
.
fileName
=
""
;
vm
.
fileArray
=
[];
vm
.
fileArray
=
[];
vm
.
GET
(
"/campaign/adminQuestionnaire/getQuestionnaireById"
,
{
vm
.
GET
(
"/campaign/adminQuestionnaire/getQuestionnaireById"
,
{
id
:
row
.
id
id
:
row
.
id
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
console
.
log
(
res
.
data
);
// console.log(res.data);
vm
.
questionEditList
=
Object
.
assign
({},
res
.
data
);
vm
.
questionEditList
=
Object
.
assign
(
if
(
!
res
.
data
.
limitNum
||
res
.
data
.
limitNum
<
1
)
{
{},
res
.
data
.
data
.
questionnaireInfo
);
vm
.
questionEditList
=
Object
.
assign
({},
vm
.
questionEditList
,
{
vm
.
questionEditList
=
Object
.
assign
({},
vm
.
questionEditList
,
{
limitNumFlag
:
"0"
,
limitNumFlag
:
res
.
data
.
data
.
limitNum
<
1
?
"1"
:
"0"
,
limitNum
:
1
limitNum
:
res
.
data
.
data
.
limitNum
<
1
?
1
:
res
.
data
.
data
.
limitNum
});
});
}
else
{
vm
.
questionEditList
=
Object
.
assign
({},
vm
.
questionEditList
,
{
vm
.
loginAuthList
=
[];
limitNumFlag
:
"1"
res
.
data
.
data
.
loginAuthInfo
.
map
(
u
=>
{
vm
.
loginAuthList
.
push
(
u
.
value
);
});
const
userBaseData
=
JSON
.
parse
(
res
.
data
.
data
.
questionnaireInfo
.
userBase
);
vm
.
userBase
=
Object
.
assign
({},
vm
.
userBase
,
{
address
:
Boolean
(
userBaseData
.
address
),
mobile
:
Boolean
(
userBaseData
.
mobile
),
name
:
Boolean
(
userBaseData
.
name
)
});
});
}
}
}
});
});
},
},
...
@@ -671,9 +692,25 @@ export default {
...
@@ -671,9 +692,25 @@ export default {
submitQuestion
()
{
submitQuestion
()
{
let
req
=
{
let
req
=
{
model
:
vm
.
questionEditList
,
model
:
vm
.
questionEditList
,
fileArray
:
vm
.
fileArray
fileArray
:
vm
.
fileArray
,
loginAuth
:
[]
};
};
console
.
log
(
vm
.
questionEditList
.
questionIntro
);
if
(
vm
.
questionEditList
.
limitNumFlag
==
1
)
{
req
.
model
.
limitNum
=
-
1
;
}
vm
.
userBase
=
Object
.
assign
({},
vm
.
userBase
,
{
address
:
Number
(
vm
.
userBase
.
address
),
mobile
:
Number
(
vm
.
userBase
.
mobile
),
name
:
Number
(
vm
.
userBase
.
name
)
});
req
.
model
.
userBase
=
JSON
.
stringify
(
vm
.
userBase
);
vm
.
loginAuthList
.
map
(
u
=>
{
req
.
loginAuth
.
push
({
value
:
u
});
});
console
.
log
(
req
);
if
(
vm
.
questionEditList
.
showType
==
1
)
{
if
(
vm
.
questionEditList
.
showType
==
1
)
{
// 单题显示
// 单题显示
vm
.
questionEditList
.
questionIntro
=
""
;
vm
.
questionEditList
.
questionIntro
=
""
;
...
@@ -728,48 +765,61 @@ export default {
...
@@ -728,48 +765,61 @@ export default {
.question-wrap
{
.question-wrap
{
.question-content
{
.question-content
{
background
:
#fff
;
background
:
#fff
;
.add-question
{
.add-question
{
float
:
right
;
float
:
right
;
margin
:
10px
;
margin
:
10px
;
}
}
.table-empty
{
.table-empty
{
img
{
img
{
width
:
100px
;
width
:
100px
;
}
}
p
{
p
{
margin-top
:
-50px
;
margin-top
:
-50px
;
}
}
}
}
}
}
.submit-btn
{
.submit-btn
{
display
:
inline-block
;
display
:
inline-block
;
overflow
:
hidden
;
overflow
:
hidden
;
p
{
p
{
font-size
:
12px
;
font-size
:
12px
;
}
}
.avatar-uploader
{
.avatar-uploader
{
float
:
right
;
float
:
right
;
.el-button
{
.el-button
{
margin-left
:
10px
;
margin-left
:
10px
;
}
}
.head-btn
{
.head-btn
{
margin-top
:
48px
!
important
;
margin-top
:
48px
!
important
;
}
}
}
}
.uploat-content
{
.uploat-content
{
float
:
left
;
float
:
left
;
.bg-img
{
.bg-img
{
width
:
150px
;
width
:
150px
;
height
:
30px
;
height
:
30px
;
}
}
.head-bg-img
{
.head-bg-img
{
width
:
80px
;
width
:
80px
;
height
:
80px
;
height
:
80px
;
}
}
}
}
}
}
.login-auth
{
.login-auth
{
width
:
400px
;
width
:
400px
;
.el-checkbox
{
.el-checkbox
{
display
:
inline-block
;
display
:
inline-block
;
width
:
150px
;
width
:
150px
;
...
@@ -778,5 +828,3 @@ export default {
...
@@ -778,5 +828,3 @@ export default {
}
}
}
}
</
style
>
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录