Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform-ui
Commits
1549e381
Commit
1549e381
authored
Oct 14, 2019
by
guoyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建峰会修改
parent
f76a5531
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
7 deletions
+34
-7
activity.js
src/api/summit/activity.js
+7
-0
summitPopup.vue
src/views/summit/model/summitPopup.vue
+27
-7
No files found.
src/api/summit/activity.js
View file @
1549e381
...
@@ -32,3 +32,10 @@ export function add(obj) {
...
@@ -32,3 +32,10 @@ export function add(obj) {
data
:
obj
data
:
obj
})
})
}
}
export
function
activityIds
()
{
return
fetch
({
url
:
'/api/summit/imxr/ids'
,
method
:
'get'
})
}
\ No newline at end of file
src/views/summit/model/summitPopup.vue
View file @
1549e381
...
@@ -101,9 +101,17 @@
...
@@ -101,9 +101,17 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"
8
"
>
<el-col
:span=
"
12
"
>
<el-form-item
label=
"活动id:"
>
<el-form-item
label=
"活动id:"
>
<el-input
v-model=
"form.rid"
placeholder=
"请输入签到/抽奖活动的id"
></el-input>
<!--
<el-input
v-model=
"form.rid"
placeholder=
"请输入签到/抽奖活动的id"
></el-input>
-->
<el-select
v-model=
"form.rid"
placeholder=
"请选择签到/抽奖活动id"
>
<el-option
v-for=
"(item,index) in optionsId"
:key=
"index"
:label=
"item"
:value=
"item"
></el-option>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -213,7 +221,7 @@ import ElRow from 'element-ui/packages/row/src/row'
...
@@ -213,7 +221,7 @@ import ElRow from 'element-ui/packages/row/src/row'
import
ElInput
from
'../../../../node_modules/element-ui/packages/input/src/input.vue'
import
ElInput
from
'../../../../node_modules/element-ui/packages/input/src/input.vue'
import
ElCol
from
'element-ui/packages/col/src/col'
import
ElCol
from
'element-ui/packages/col/src/col'
import
ElFormItem
from
'../../../../node_modules/element-ui/packages/form/src/form-item.vue'
import
ElFormItem
from
'../../../../node_modules/element-ui/packages/form/src/form-item.vue'
import
{
getOne
,
update
,
add
}
from
'src/api/summit/activity'
import
{
getOne
,
update
,
add
,
activityIds
}
from
'src/api/summit/activity'
import
{
getToken
}
from
'src/utils/auth'
import
{
getToken
}
from
'src/utils/auth'
import
{
mapGetters
}
from
'vuex'
import
{
mapGetters
}
from
'vuex'
import
UE
from
'../../modal/Ueditor'
// 百度ue富文本
import
UE
from
'../../modal/Ueditor'
// 百度ue富文本
...
@@ -230,6 +238,7 @@ export default {
...
@@ -230,6 +238,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
optionsId
:
[],
statusRadio
:
'0'
,
statusRadio
:
'0'
,
activeNameTab
:
'first'
,
activeNameTab
:
'first'
,
fileList2
:
[],
fileList2
:
[],
...
@@ -265,7 +274,7 @@ export default {
...
@@ -265,7 +274,7 @@ export default {
actDesc
:
''
,
// 诚邀莅临
actDesc
:
''
,
// 诚邀莅临
companyDesc
:
''
,
// 公司简章
companyDesc
:
''
,
// 公司简章
vehicleImgs
:
[],
// 房车介绍
vehicleImgs
:
[],
// 房车介绍
processJson
:[]
processJson
:
[]
},
},
result
:
false
,
result
:
false
,
processJson
:
[{
time
:
undefined
,
content
:
''
}]
processJson
:
[{
time
:
undefined
,
content
:
''
}]
...
@@ -275,6 +284,13 @@ export default {
...
@@ -275,6 +284,13 @@ export default {
this
.
cleanForm
()
this
.
cleanForm
()
this
.
getOrderInfo
()
this
.
getOrderInfo
()
},
},
created
()
{
activityIds
().
then
(
data
=>
{
if
(
data
.
status
==
200
)
{
this
.
optionsId
=
data
.
data
;
}
})
},
computed
:
{
computed
:
{
...
mapGetters
([
'elements'
]),
...
mapGetters
([
'elements'
]),
...
@@ -310,6 +326,7 @@ export default {
...
@@ -310,6 +326,7 @@ export default {
this
.
form
=
res
.
data
this
.
form
=
res
.
data
this
.
form
.
bmCloseTime
=
Number
(
res
.
data
.
bmCloseTime
)
this
.
form
.
bmCloseTime
=
Number
(
res
.
data
.
bmCloseTime
)
let
introduce
=
this
.
form
.
vehicleImgs
.
split
(
','
)
let
introduce
=
this
.
form
.
vehicleImgs
.
split
(
','
)
this
.
statusRadio
=
res
.
data
.
status
introduce
.
forEach
(
element
=>
{
introduce
.
forEach
(
element
=>
{
this
.
fileList2
.
push
({
name
:
'峰会介绍'
,
url
:
element
})
this
.
fileList2
.
push
({
name
:
'峰会介绍'
,
url
:
element
})
})
})
...
@@ -367,6 +384,7 @@ export default {
...
@@ -367,6 +384,7 @@ export default {
},
},
getState
(
status
)
{
getState
(
status
)
{
if
(
this
.
$utils
.
isInteger
(
status
))
{
if
(
this
.
$utils
.
isInteger
(
status
))
{
console
.
log
(
status
);
if
(
status
==
0
)
{
if
(
status
==
0
)
{
return
'默认'
return
'默认'
}
else
{
}
else
{
...
@@ -478,7 +496,7 @@ export default {
...
@@ -478,7 +496,7 @@ export default {
duration
:
2000
duration
:
2000
})
})
}
else
{
}
else
{
this
.
form
.
processJson
=
this
.
processJson
//
this.form.processJson = this.processJson
this
.
form
.
endTime
=
this
.
form
.
endTime
.
getTime
()
this
.
form
.
endTime
=
this
.
form
.
endTime
.
getTime
()
this
.
form
.
startTime
=
this
.
form
.
startTime
.
getTime
()
this
.
form
.
startTime
=
this
.
form
.
startTime
.
getTime
()
this
.
form
.
bmCloseTime
=
this
.
form
.
bmCloseTime
.
getTime
()
this
.
form
.
bmCloseTime
=
this
.
form
.
bmCloseTime
.
getTime
()
...
@@ -498,8 +516,10 @@ export default {
...
@@ -498,8 +516,10 @@ export default {
dataProcessing
()
{
dataProcessing
()
{
if
(
this
.
form
.
state
===
'默认'
)
{
if
(
this
.
form
.
state
===
'默认'
)
{
this
.
form
.
status
=
'0'
this
.
form
.
status
=
'0'
}
else
{
this
.
form
.
status
=
this
.
statusRadio
}
}
//
this.form.processJson = JSON.stringify(this.processJson)
this
.
form
.
processJson
=
JSON
.
stringify
(
this
.
processJson
)
},
},
/**
/**
* 请求结果判断
* 请求结果判断
...
@@ -553,7 +573,7 @@ export default {
...
@@ -553,7 +573,7 @@ export default {
actDesc
:
''
,
// 诚邀莅临
actDesc
:
''
,
// 诚邀莅临
companyDesc
:
''
,
// 公司简章
companyDesc
:
''
,
// 公司简章
vehicleImgs
:
[],
// 房车介绍
vehicleImgs
:
[],
// 房车介绍
processJson
:[]
processJson
:
[]
}
}
}
}
}
}
...
...
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