Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center-ui
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center-ui
Commits
a5753517
Commit
a5753517
authored
Mar 17, 2021
by
罗承锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台活动提交
parent
6c7b040e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
2 deletions
+32
-2
src/api/school-center/activity/activityAPI.js
+3
-1
src/views/school-center/activity/activityAuditList.vue
+0
-0
src/views/school-center/activity/activityList.vue
+29
-1
No files found.
src/api/school-center/activity/activityAPI.js
View file @
a5753517
...
@@ -16,7 +16,9 @@ let deleteActivity = (params) => postAction(prefix + "/activity/deleteActivity"
...
@@ -16,7 +16,9 @@ let deleteActivity = (params) => postAction(prefix + "/activity/deleteActivity"
// 上传图片
// 上传图片
let
uploadImg
=
(
params
)
=>
postAction
(
prefix
+
"/activity/uploadImg"
,
params
);
let
uploadImg
=
(
params
)
=>
postAction
(
prefix
+
"/activity/uploadImg"
,
params
);
//审核
let
auditActivity
=
(
params
)
=>
postAction
(
prefix
+
"/activity/auditActivity"
,
params
);
export
{
export
{
getList
,
addActivity
,
updateActivity
,
deleteActivity
,
uploadImg
getList
,
addActivity
,
updateActivity
,
deleteActivity
,
uploadImg
,
auditActivity
}
}
src/views/school-center/activity/activityAuditList.vue
0 → 100644
View file @
a5753517
This diff is collapsed.
Click to expand it.
src/views/school-center/activity/activityList.vue
View file @
a5753517
...
@@ -94,6 +94,13 @@
...
@@ -94,6 +94,13 @@
</a-upload>
</a-upload>
</a-form-item>
</a-form-item>
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 8, offset: 1}"
label=
"活动范围"
>
<a-select
v-model=
"modifyForm.range"
>
<a-select-option
key=
"全市"
>
全市
</a-select-option>
<a-select-option
v-for=
"d in subNames"
:key=
"d.value"
:value=
"d.value"
>
{{d.text}}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 8, offset: 1}"
label=
"排序号"
>
<a-form-item
:labelCol=
"{span: 6}"
:wrapperCol=
"{span: 8, offset: 1}"
label=
"排序号"
>
<a-input
v-decorator=
"[ 'sort', {rules: [{ required: true, type:'number', message: '排序号不能为空!' ,whitespace:true,transform:(value)=> {return Number(value)} }]} ]"
></a-input>
<a-input
v-decorator=
"[ 'sort', {rules: [{ required: true, type:'number', message: '排序号不能为空!' ,whitespace:true,transform:(value)=> {return Number(value)} }]} ]"
></a-input>
...
@@ -122,6 +129,7 @@
...
@@ -122,6 +129,7 @@
import
STable
from
'@/components/table'
;
import
STable
from
'@/components/table'
;
import
{
getList
,
addActivity
,
updateActivity
,
deleteActivity
,
uploadImg
}
from
"../../../api/school-center/activity/activityAPI"
import
{
getList
,
addActivity
,
updateActivity
,
deleteActivity
,
uploadImg
}
from
"../../../api/school-center/activity/activityAPI"
import
{
cloneObject
}
from
'@/utils/util'
;
import
{
cloneObject
}
from
'@/utils/util'
;
import
{
initSubstName
}
from
"../../../api/school-center/userManager/newUserAPI"
;
export
default
{
export
default
{
name
:
"activity"
,
name
:
"activity"
,
components
:
{
components
:
{
...
@@ -132,6 +140,7 @@
...
@@ -132,6 +140,7 @@
emptyText
:
{
emptyText
:
'暂无数据'
},
emptyText
:
{
emptyText
:
'暂无数据'
},
previewVisible
:
false
,
previewVisible
:
false
,
previewImage
:
''
,
previewImage
:
''
,
subNames
:
[],
fileList
:
[
fileList
:
[
],
],
apis
:
''
,
apis
:
''
,
...
@@ -222,6 +231,9 @@
...
@@ -222,6 +231,9 @@
}
}
}
}
},
},
mounted
()
{
this
.
initSubstName
();
},
methods
:{
methods
:{
// getuuid() {
// getuuid() {
// return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
// return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
...
@@ -309,6 +321,7 @@
...
@@ -309,6 +321,7 @@
sort
:
data
.
sort
,
sort
:
data
.
sort
,
})
})
},
0
)
},
0
)
this
.
modifyForm
.
range
=
data
.
range
;
this
.
customimg
=
"./img/custom"
+
data
.
serviceQrcode
this
.
customimg
=
"./img/custom"
+
data
.
serviceQrcode
this
.
modifyvisible
=
true
;
this
.
modifyvisible
=
true
;
...
@@ -323,7 +336,6 @@
...
@@ -323,7 +336,6 @@
this
.
modifyForm
.
activityType
=
values
.
activityType
this
.
modifyForm
.
activityType
=
values
.
activityType
this
.
modifyForm
.
subclass
=
values
.
subclass
this
.
modifyForm
.
subclass
=
values
.
subclass
this
.
modifyForm
.
sort
=
values
.
sort
this
.
modifyForm
.
sort
=
values
.
sort
this
.
modifyForm
.
range
=
values
.
range
this
.
chosePages
.
forEach
(
value
=>
{
this
.
chosePages
.
forEach
(
value
=>
{
if
(
value
!=
undefined
){
if
(
value
!=
undefined
){
...
@@ -376,10 +388,26 @@
...
@@ -376,10 +388,26 @@
})
})
this
.
fileList
=
[]
this
.
fileList
=
[]
this
.
modifyForm
.
id
=
""
this
.
modifyForm
.
id
=
""
this
.
modifyForm
.
range
=
""
this
.
modifyForm
.
chosePages
=
""
this
.
modifyForm
.
chosePages
=
""
this
.
chosePages
.
splice
(
0
,
this
.
chosePages
.
length
)
this
.
chosePages
.
splice
(
0
,
this
.
chosePages
.
length
)
this
.
modifyvisible
=
false
;
this
.
modifyvisible
=
false
;
},
},
initSubstName
()
{
initSubstName
().
then
((
res
)
=>
{
if
(
res
.
state
==
"success"
)
{
const
result
=
res
.
data
result
.
forEach
((
r
)
=>
{
if
(
r
.
subName
===
'null'
)
return
;
this
.
subNames
.
push
({
value
:
r
.
subName
,
text
:
r
.
subName
})
})
}
})
},
uploadPicture
(
file
)
{
uploadPicture
(
file
)
{
let
fileSize
=
file
.
size
/
1024
/
1024
let
fileSize
=
file
.
size
/
1024
/
1024
console
.
log
(
fileSize
)
console
.
log
(
fileSize
)
...
...
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