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
提交
51157c5d
提交
51157c5d
编写于
4月 10, 2019
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改
上级
2e013aef
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
26 行增加
和
29 行删除
+26
-29
fetch.js
src/utils/fetch.js
+1
-8
question-list.vue
src/views/question-naire/question-list.vue
+25
-21
未找到文件。
src/utils/fetch.js
浏览文件 @
51157c5d
import
axios
from
'axios'
import
store
from
'../store'
import
{
openLoading
,
closeLoading
}
from
'./utils'
// import { getHostnameAndPort } from '../utils'
// axios.defaults.withCredentials = true
...
...
@@ -14,14 +15,6 @@ service.interceptors.request.use(config => {
config
.
headers
[
'sysCode'
]
=
26
config
.
headers
[
'token'
]
=
localStorage
.
getItem
(
'storageToken'
)
config
.
headers
[
'deviceInfo'
]
=
JSON
.
stringify
({
"app_channel"
:
""
,
"app_mac"
:
""
,
"app_uuid"
:
""
,
"app_version"
:
""
,
"device_brand"
:
""
,
"device_ip"
:
""
,
"device_model"
:
""
,
"device_net"
:
""
,
"device_ops"
:
""
,
"resolution_wh"
:
""
,
"system_level"
:
""
,
"device_type"
:
'10'
})
// if (config.data && config.data.setEntry) {
// config.headers['sysCode'] = config.data.sysCode || 10
// if(config.data.token){
// config.headers['token'] = config.data.token || '63C3FA92AF8A45A48B31EB7FD97B95EB'
// }
// config.headers['deviceInfo'] = JSON.stringify({ "app_channel": "", "app_mac": "", "app_uuid": "", "app_version": "", "device_brand": "", "device_ip": "", "device_model": "", "device_net": "", "device_ops": "", "resolution_wh": "", "system_level": "", "device_type": '10' })
// }
return
config
},
error
=>
{
// logger.debug('service.interceptors.request: ', error)
...
...
src/views/question-naire/question-list.vue
浏览文件 @
51157c5d
...
...
@@ -53,7 +53,7 @@
</el-table-column>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
min-width=
"200"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"edit(scope.row)"
>
编辑
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"edit
Question
(scope.row)"
>
编辑
</el-button>
<el-button
type=
"primary"
v-if=
"scope.row.status == 1"
size=
"small"
@
click=
"onAndDownLine(scope.row)"
>
上线
</el-button>
<el-button
type=
"primary"
v-if=
"scope.row.status == 2"
size=
"small"
@
click=
"onAndDownLine(scope.row)"
>
下线
</el-button>
<!--
<el-button
type=
"primary"
size=
"small"
@
click=
"reviewQuestion(scope.row)"
>
查看题库
</el-button>
-->
...
...
@@ -98,10 +98,10 @@
<el-input
v-model=
"questionEditList.name"
maxlength=
"30"
placeholder=
"标题最多30字符"
style=
"width: 300px;"
></el-input>
</el-form-item>
<el-form-item
label=
"题库导入"
prop=
"fileName"
>
<el-col
:span=
"1
0
"
>
<el-input
class=
"form-input"
:placeholder=
"excelFileName"
v-model=
"fileName"
disabled
style=
"width:
300px
;"
/>
<el-col
:span=
"1
2
"
>
<el-input
class=
"form-input"
:placeholder=
"excelFileName"
v-model=
"fileName"
disabled
style=
"width:
99%
;"
/>
</el-col>
<el-col
:span=
"
6
"
>
<el-col
:span=
"
10
"
>
<el-upload
class=
"upload-demo"
style=
"display: inline-block;width: 80px;"
...
...
@@ -115,7 +115,7 @@
</el-col>
</el-form-item>
<el-form-item
label=
"下一题按钮"
v-if=
"questionEditList.showType == 1"
>
<div
class=
"submit-btn"
>
<div
class=
"submit-btn"
style=
"margin-right:20px;"
>
<p>
置灰不可点
</p>
<el-upload
v-model=
"questionEditList.nextDisableClickUrl"
...
...
@@ -130,7 +130,7 @@
<img
v-if=
"!questionEditList.nextDisableClickUrl"
class=
"bg-img"
src=
"https://files.yunqueyi.com/image/png/common/20190408164003674.png"
>
</div>
</div>
<div
class=
"submit-btn"
style=
"margin-left:20px;"
>
<div
class=
"submit-btn"
>
<p>
点亮可点
</p>
<el-upload
v-model=
"questionEditList.nextClickUrl"
...
...
@@ -160,21 +160,19 @@
</el-form-item>
<el-form-item
label=
"问卷起始时间"
v-if=
"questionEditList.showType == 2 && questionEditList.headStyle == 1"
>
<el-date-picker
type=
"date"
type=
"date
time
"
placeholder=
"开始时间"
v-model=
"questionEditList.startDate"
style=
"width: 144px;"
format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd 00:00:00"
>
style=
"width: 181px;"
>
</el-date-picker>
<span>
-
</span>
<el-date-picker
type=
"date"
type=
"date
time
"
placeholder=
"结束时间"
v-model=
"questionEditList.endDate"
style=
"width: 144px;"
format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd 00:00:00"
>
style=
"width: 181px;"
>
</el-date-picker>
</el-form-item>
<div
v-if=
"questionEditList.showType == 2 && questionEditList.headStyle == 2"
>
...
...
@@ -258,7 +256,9 @@ export default {
headDiagramUrl
:
''
,
headStyle
:
1
,
subheading
:
''
,
questionIntro
:
''
questionIntro
:
''
,
startDate
:
''
,
endDate
:
''
},
rules
:
{
name
:
[
...
...
@@ -334,14 +334,20 @@ export default {
headDiagramUrl
:
''
,
headStyle
:
1
,
subheading
:
''
,
questionIntro
:
''
questionIntro
:
''
,
startDate
:
''
,
endDate
:
''
});
vm
.
fileName
=
''
vm
.
fileArray
=
[]
vm
.
excelFileName
=
''
},
// 编辑
edit
(
row
)
{
edit
Question
(
row
)
{
vm
.
discussEditVisible
=
true
vm
.
excelFileName
=
''
vm
.
fileName
=
''
vm
.
fileArray
=
[]
vm
.
GET
(
'/campaign/adminQuestionnaire/getQuestionnaireById'
,{
id
:
row
.
id
}).
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
vm
.
questionEditList
=
Object
.
assign
({},
res
.
data
)
...
...
@@ -367,10 +373,6 @@ export default {
vm
.
search
()
}
})
},
// 查看题库
reviewQuestion
()
{
},
// 导入题库
beforeImport
(
file
)
{
...
...
@@ -480,8 +482,10 @@ export default {
}
vm
.
$refs
.
questionForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
commonUtil
.
openLoading
(
vm
)
vm
.
POST
(
'/campaign/adminQuestionnaire/insertOrUpdateQuestionnaire'
,
req
).
then
((
res
)
=>
{
if
(
res
.
code
==
'000000'
)
{
commonUtil
.
closeLoading
(
vm
)
vm
.
discussEditVisible
=
false
vm
.
search
()
}
else
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录