Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
e0b228b4
提交
e0b228b4
authored
4月 19, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
办事大厅bug修改
上级
8b556656
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
89 行增加
和
64 行删除
+89
-64
affairs_api.js
client/src/api/affairs_api.js
+1
-1
againAdd.vue
client/src/pages/affairsHall/againAdd.vue
+14
-11
hall.vue
client/src/pages/affairsHall/hall.vue
+57
-37
learningAdd.vue
client/src/pages/affairsHall/learningAdd.vue
+5
-5
shareAdd.vue
client/src/pages/affairsHall/shareAdd.vue
+12
-10
没有找到文件。
client/src/api/affairs_api.js
浏览文件 @
e0b228b4
...
...
@@ -20,7 +20,7 @@ export default class AffairsAPI extends BaseAPI {
* symposium_lecturer
* 返回 {'flag' : true, 'errors' : []}
*/
submitLearning
=
(
obj
=
{})
=>
this
.
post
(
'/v2/lobby/processes'
,
obj
,
{
headers
:
{
'Content-Type'
:
'
application/json
'
}
})
submitLearning
=
(
obj
=
{})
=>
this
.
post
(
'/v2/lobby/processes'
,
obj
,
{
headers
:
{
'Content-Type'
:
'
multipart/form-data
'
}
})
/* 删除事务 */
deleteAffairs
=
(
reid
)
=>
this
.
delete
(
`/v2/lobby/processes/
${
reid
}
`
,
{})
/* 获取事务详情 */
...
...
client/src/pages/affairsHall/againAdd.vue
浏览文件 @
e0b228b4
...
...
@@ -5,7 +5,7 @@
<el-button
type=
"text"
@
click=
'gobackActiveList'
>
返回列表
</el-button>
<el-row
type=
"flex"
justify=
"center"
>
<el-col
:xs=
"24"
:sm=
"24"
:md=
"16"
:lg=
"12"
:xl=
"8"
>
<el-form
ref=
"setApplyForm"
:label-width=
"labelWidth"
:model=
"setApply"
:rules=
"applyRules"
>
<el-form
:disabled=
"this.isFormProhibit"
ref=
"setApplyForm"
:label-width=
"labelWidth"
:model=
"setApply"
:rules=
"applyRules"
>
<el-form-item
label=
"姓名"
prop=
"personal_name"
>
<el-input
v-model=
"setApply.personal_name"
placeholder=
"请输入您的姓名"
type=
"text"
/>
</el-form-item>
...
...
@@ -20,6 +20,7 @@
</el-form-item>
<el-form-item
label=
"上传缴费凭证"
prop=
"file"
>
<el-upload
v-if=
"!isFormProhibit"
ref=
"upFile"
class=
"upload-demo"
list-type=
"picture-card"
...
...
@@ -32,12 +33,13 @@
<el-button
size=
"small"
type=
"primary"
>
点击上传
</el-button>
<div
slot=
"tip"
class=
"el-upload__tip"
>
长传图片.jpg,.jpeg,.png
</div>
</el-upload>
<img
v-if=
"isFormProhibit"
style=
"width:100px;height:100px"
:src=
"dialogImageUrl"
alt=
""
>
<el-dialog
:visible
.
sync=
"dialogVisible"
>
<img
width=
"100%"
:src=
"dialogImageUrl"
alt=
""
>
</el-dialog>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"onApplyFrom"
>
保存并提交
</el-button>
<el-button
type=
"primary"
@
click=
"onApplyFrom"
v-if=
"!isFormProhibit"
>
保存并提交
</el-button>
</el-form-item>
</el-form>
</el-col>
...
...
@@ -55,6 +57,7 @@ export default {
components
:
{},
data
()
{
return
{
isFormProhibit
:
false
,
labelWidth
:
'110px'
,
setApply
:
{
personal_name
:
''
,
...
...
@@ -94,16 +97,16 @@ export default {
this
.
affair_id
=
this
.
$route
.
query
.
id
},
mounted
()
{
this
.
isFormProhibit
=
this
.
$route
.
query
.
is_view
||
false
if
(
this
.
rid
!==
'-1'
)
{
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
''
,
spinner
:
''
,
background
:
'rgba(255, 255, 255, 0.9)'
})
cAction
.
Affairs
.
getReportActive
(
this
.
rid
).
then
(
data
=>
{
if
(
data
.
symposium_name
)
{
this
.
setApply
.
name
=
data
.
symposium_name
this
.
setApply
.
time
=
data
.
symposium_time
this
.
setApply
.
author
=
data
.
symposium_lecturer
this
.
setApply
.
address
=
data
.
symposium_address
this
.
setApply
.
content
=
data
.
symposium_contents
this
.
successFileUrl
=
data
.
symposium_attachments
cAction
.
Affairs
.
getAffairsDetails
(
this
.
rid
).
then
(
data
=>
{
if
(
data
.
form
.
id
)
{
this
.
setApply
.
personal_name
=
data
.
form
.
personal_name
this
.
setApply
.
class_name
=
data
.
form
.
class_name
this
.
setApply
.
semester_name
=
data
.
form
.
semester_name
this
.
setApply
.
course_name
=
data
.
form
.
course_name
this
.
dialogImageUrl
=
data
.
form
.
payment_instrument
}
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
loading
.
close
()
})
}
...
...
@@ -173,7 +176,7 @@ export default {
if
(
data
.
success
)
{
this
.
$message
({
type
:
'success'
,
message
:
'提交成功'
})
setTimeout
(()
=>
{
this
.
$router
.
push
({
path
:
'/app/affairs-hall/hall'
})
this
.
$router
.
push
({
path
:
'/app/affairs-hall/hall'
,
query
:
{
index
:
2
}
})
},
500
)
}
}).
catch
(
e
=>
{
this
.
filesArr
.
pop
();
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
loading
.
close
()
})
...
...
client/src/pages/affairsHall/hall.vue
浏览文件 @
e0b228b4
...
...
@@ -5,9 +5,9 @@
</div>
<Tap
:tapParam=
"tapParam"
@
tapParam=
"tapIndexs"
></Tap>
<div
class=
"con-box"
>
<el-button
type=
"primary"
v-show=
"tapIndex==0"
@
click=
"golearningAdd(
0
)"
>
申请新的活动
</el-button>
<el-button
type=
"primary"
v-show=
"tapIndex==1"
@
click=
"golearningAdd(
1
)"
>
申请新乐分享
</el-button>
<el-button
type=
"primary"
v-show=
"tapIndex==2"
@
click=
"golearningAdd(
2
)"
>
申请重修
</el-button>
<el-button
type=
"primary"
v-show=
"tapIndex==0"
@
click=
"golearningAdd(
'/app/affairs-hall/learning-add/-1'
)"
>
申请新的活动
</el-button>
<el-button
type=
"primary"
v-show=
"tapIndex==1"
@
click=
"golearningAdd(
'/app/affairs-hall/share-add/-1'
)"
>
申请新乐分享
</el-button>
<el-button
type=
"primary"
v-show=
"tapIndex==2"
@
click=
"golearningAdd(
'/app/affairs-hall/again-add/-1'
)"
>
申请重修
</el-button>
<div
style=
"width: 100%; height: 0.2rem;"
></div>
<table-list
:data=
"tableData"
:columns=
"columns"
></table-list>
</div>
...
...
@@ -44,13 +44,13 @@ export default {
return
{
dialogVisible
:
false
,
loading
:
false
,
tapIndex
:
0
,
tapIndex
:
this
.
$route
.
query
.
index
||
0
,
// tap切换
tapParam
:
[
{
name
:
'分类'
,
isShow
:
false
,
selectIndex
:
0
,
selectIndex
:
this
.
$route
.
query
.
index
||
0
,
key
:
'cc'
,
arrItem
:
[]
}
...
...
@@ -138,9 +138,29 @@ export default {
{
prop
:
'form.class_name'
,
label
:
'班级'
},
{
prop
:
'form.personal_name'
,
label
:
'申请人'
},
{
prop
:
'form.telephone'
,
label
:
'电话'
},
{
prop
:
'approve_status'
,
label
:
'审核状态'
},
{
prop
:
'approve_time'
,
label
:
'审核时间'
},
{
prop
:
'remark1'
,
label
:
'备注'
}
{
prop
:
'status'
,
label
:
'审核状态'
,
computed
(
value
)
{
return
status
[
value
]
}
},
{
prop
:
'approve_time1'
,
label
:
'审核时间'
},
{
prop
:
'remark1'
,
label
:
'备注'
},
{
label
:
'操作'
,
buttons
:
[
{
label
:
'查看'
,
onClick
:
row
=>
{
this
.
$router
.
push
({
path
:
`/app/affairs-hall/share-add/
${
row
.
id
}
`
,
query
:
{
id
:
row
.
affair_id
,
is_view
:
true
}
})
}
}
]
}
]
},
// 重修
...
...
@@ -149,9 +169,29 @@ export default {
{
prop
:
'form.semester_name'
,
label
:
'学期'
},
{
prop
:
'form.class_name'
,
label
:
'班级'
},
{
prop
:
'form.course_name'
,
label
:
'课程'
},
{
prop
:
'approve_status'
,
label
:
'审核状态'
},
{
prop
:
'approve_time'
,
label
:
'审核时间'
},
{
prop
:
'remark1'
,
label
:
'备注'
}
{
prop
:
'status'
,
label
:
'审核状态'
,
computed
(
value
)
{
return
status
[
value
]
}
},
{
prop
:
'approve_time1'
,
label
:
'审核时间'
},
{
prop
:
'remark1'
,
label
:
'备注'
},
{
label
:
'操作'
,
buttons
:
[
{
label
:
'查看'
,
onClick
:
row
=>
{
this
.
$router
.
push
({
path
:
`/app/affairs-hall/again-add/
${
row
.
id
}
`
,
query
:
{
id
:
row
.
affair_id
,
is_view
:
true
}
})
}
}
]
}
]
}
},
...
...
@@ -217,7 +257,8 @@ export default {
return
{
val
:
item
.
id
,
name
:
item
.
affair_name
}
})
const
[
first
]
=
data
this
.
affairId
=
first
.
id
const
datas
=
data
[
this
.
$route
.
query
.
index
]
||
first
this
.
affairId
=
datas
.
id
this
.
affairList
=
data
this
.
getData
()
})
...
...
@@ -225,32 +266,11 @@ export default {
this
.
$message
.
error
(
e
.
message
)
})
},
golearningAdd
(
n
)
{
if
(
n
===
0
)
{
this
.
$router
.
push
({
path
:
'/app/affairs-hall/learning-add/-1'
,
query
:
{
id
:
this
.
tapParam
[
0
].
arrItem
[
this
.
tapIndex
].
val
}
})
}
else
if
(
n
===
1
)
{
this
.
$router
.
push
({
path
:
'/app/affairs-hall/share-add/-1'
,
query
:
{
id
:
this
.
tapParam
[
0
].
arrItem
[
this
.
tapIndex
].
val
}
})
}
else
{
this
.
$router
.
push
({
path
:
'/app/affairs-hall/again-add/-1'
,
query
:
{
id
:
this
.
tapParam
[
0
].
arrItem
[
this
.
tapIndex
].
val
}
})
}
},
goMyApply
()
{
golearningAdd
(
url
)
{
const
affairId
=
{
id
:
this
.
tapParam
[
0
].
arrItem
[
this
.
tapIndex
].
val
}
this
.
$router
.
push
({
path
:
'/app/affairs-hall/my-apply'
,
query
:
{
id1
:
this
.
tapParam
[
0
].
arrItem
[
0
].
val
,
id2
:
this
.
tapParam
[
0
].
arrItem
[
1
].
val
,
id3
:
this
.
tapParam
[
0
].
arrItem
[
2
].
val
}
path
:
url
,
query
:
affairId
})
}
}
...
...
client/src/pages/affairsHall/learningAdd.vue
浏览文件 @
e0b228b4
...
...
@@ -5,7 +5,7 @@
<el-button
type=
"text"
@
click=
'gobackActiveList'
>
返回列表
</el-button>
<el-row
type=
"flex"
justify=
"center"
>
<el-col
:xs=
"24"
:sm=
"24"
:md=
"16"
:lg=
"12"
:xl=
"8"
>
<el-form
ref=
"setApplyForm"
:label-width=
"labelWidth"
:model=
"setApply"
:rules=
"applyRules"
>
<el-form
:disabled=
"this.isFormProhibit"
ref=
"setApplyForm"
:label-width=
"labelWidth"
:model=
"setApply"
:rules=
"applyRules"
>
<!--
<el-form-item
label=
"姓名"
prop=
"personal_name"
>
<el-input
v-model=
"setApply.personal_name"
placeholder=
"请输入您的姓名"
type=
"text"
/>
</el-form-item>
...
...
@@ -49,7 +49,7 @@
</
template
>
</el-form-item>
-->
<el-form-item>
<el-button
type=
"primary"
@
click=
"onApplyFrom"
>
保存并提交
</el-button>
<el-button
type=
"primary"
@
click=
"onApplyFrom"
v-if=
'!this.isFormProhibit'
>
保存并提交
</el-button>
</el-form-item>
</el-form>
</el-col>
...
...
@@ -68,6 +68,7 @@ export default {
components
:
{},
data
()
{
return
{
isFormProhibit
:
false
,
labelWidth
:
'110px'
,
setApply
:
{
personal_name
:
''
,
...
...
@@ -116,12 +117,11 @@ export default {
},
mounted
()
{
this
.
affair_id
=
this
.
$route
.
query
.
id
console
.
log
(
'------'
,
this
.
affair_id
)
this
.
isFormProhibit
=
this
.
$route
.
query
.
is_view
||
false
if
(
this
.
rid
!==
'-1'
)
{
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
''
,
spinner
:
''
,
background
:
'rgba(255, 255, 255, 0.9)'
})
cAction
.
Affairs
.
getAffairsDetails
(
this
.
rid
).
then
(
data
=>
{
console
.
log
(
data
)
if
(
data
.
form
.
symposium_name
)
{
if
(
data
.
form
.
id
)
{
this
.
setApply
.
personal_name
=
data
.
form
.
personal_name
this
.
setApply
.
class_name
=
data
.
form
.
class_name
this
.
setApply
.
name
=
data
.
form
.
symposium_name
...
...
client/src/pages/affairsHall/shareAdd.vue
浏览文件 @
e0b228b4
...
...
@@ -5,7 +5,7 @@
<el-button
type=
"text"
@
click=
'gobackActiveList'
>
返回列表
</el-button>
<el-row
type=
"flex"
justify=
"center"
>
<el-col
:xs=
"24"
:sm=
"24"
:md=
"16"
:lg=
"12"
:xl=
"8"
>
<el-form
ref=
"setApplyForm"
:label-width=
"labelWidth"
:model=
"setApply"
:rules=
"applyRules"
>
<el-form
:disabled=
"this.isFormProhibit"
ref=
"setApplyForm"
:label-width=
"labelWidth"
:model=
"setApply"
:rules=
"applyRules"
>
<el-form-item
label=
"姓名"
prop=
"personal_name"
>
<el-input
v-model=
"setApply.personal_name"
placeholder=
"请输入您的姓名"
type=
"text"
/>
</el-form-item>
...
...
@@ -46,7 +46,7 @@
</
template
>
</el-form-item>
-->
<el-form-item>
<el-button
type=
"primary"
@
click=
"onApplyFrom"
>
保存并提交
</el-button>
<el-button
type=
"primary"
@
click=
"onApplyFrom"
v-if=
"!this.isFormProhibit"
>
保存并提交
</el-button>
</el-form-item>
</el-form>
</el-col>
...
...
@@ -65,6 +65,7 @@ export default {
components
:
{},
data
()
{
return
{
isFormProhibit
:
false
,
labelWidth
:
'110px'
,
setApply
:
{
personal_name
:
''
,
...
...
@@ -111,16 +112,17 @@ export default {
this
.
affair_id
=
this
.
$route
.
query
.
id
},
mounted
()
{
this
.
isFormProhibit
=
this
.
$route
.
query
.
is_view
||
false
if
(
this
.
rid
!==
'-1'
)
{
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
''
,
spinner
:
''
,
background
:
'rgba(255, 255, 255, 0.9)'
})
cAction
.
Affairs
.
get
ReportActive
(
this
.
rid
).
then
(
data
=>
{
if
(
data
.
symposium_name
)
{
this
.
setApply
.
name
=
data
.
symposium
_name
this
.
setApply
.
t
ime
=
data
.
symposium_ti
me
this
.
setApply
.
a
uthor
=
data
.
symposium_lecturer
this
.
setApply
.
address
=
data
.
symposium_address
this
.
setApply
.
content
=
data
.
symposium_contents
this
.
s
uccessFileUrl
=
data
.
symposium_attachments
cAction
.
Affairs
.
get
AffairsDetails
(
this
.
rid
).
then
(
data
=>
{
if
(
data
.
form
.
id
)
{
this
.
setApply
.
personal_name
=
data
.
form
.
personal
_name
this
.
setApply
.
t
rade_name
=
data
.
form
.
trade_na
me
this
.
setApply
.
a
ge
=
data
.
form
.
age
this
.
setApply
.
class_name
=
data
.
form
.
class_name
this
.
setApply
.
telephone
=
data
.
form
.
telephone
this
.
s
etApply
.
sharing_theme
=
data
.
form
.
sharing_theme
}
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
loading
.
close
()
})
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论