Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dd_school
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
wangqi
dd_school
Commits
63cc6622
Commit
63cc6622
authored
Sep 08, 2023
by
Cat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zhaodan 社团报名审核;教室借用、仓库仪器借用字段修改
parent
6f109867
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1535 additions
and
638 deletions
+1535
-638
ruoyi-ui/src/views/smartSchool/InstrumentDrugAdministration/instrumentBorrowManagement/teacherBorrowing/index.vue
+2
-2
ruoyi-ui/src/views/smartSchool/InstrumentDrugAdministration/instrumentBorrowManagement/warehouseEquipmentLoan/index.vue
+1
-1
ruoyi-ui/src/views/smartSchool/massOrganization/basicInformationManagement/index.vue
+463
-359
ruoyi-ui/src/views/smartSchool/massOrganization/clubActivityRecord/index copy.vue
+466
-0
ruoyi-ui/src/views/smartSchool/massOrganization/clubRegistrationReview/index.vue
+210
-5
ruoyi-ui/src/views/smartSchool/massOrganization/memberManagement/index.vue
+393
-271
No files found.
ruoyi-ui/src/views/smartSchool/InstrumentDrugAdministration/instrumentBorrowManagement/teacherBorrowing/index.vue
View file @
63cc6622
...
...
@@ -9,14 +9,14 @@
label-width=
"68px"
style=
"margin-left: 15px; margin-top: 10px"
>
<el-form-item
label=
"
仪器名称
"
>
<el-form-item
label=
"
申请人
"
>
<el-input
v-model=
"queryForm.name"
placeholder=
"请输入"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"
仪器分类
"
>
<el-form-item
label=
"
借用学科
"
>
<el-select
v-model=
"queryForm.name"
placeholder=
"请选择"
...
...
ruoyi-ui/src/views/smartSchool/InstrumentDrugAdministration/instrumentBorrowManagement/warehouseEquipmentLoan/index.vue
View file @
63cc6622
...
...
@@ -9,7 +9,7 @@
label-width=
"68px"
style=
"margin-left: 15px; margin-top: 10px"
>
<el-form-item
label=
"
仪器名称
"
>
<el-form-item
label=
"
申请人
"
>
<el-input
v-model=
"queryForm.name"
placeholder=
"请输入"
...
...
ruoyi-ui/src/views/smartSchool/massOrganization/basicInformationManagement/index.vue
View file @
63cc6622
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryForm"
ref=
"queryForm"
size=
"small"
:inline=
"true"
label-width=
"80px"
>
<el-form-item
prop=
"taskName"
label=
"社团名称"
>
<el-input
v-model=
"queryForm.taskName"
placeholder=
"社团名称"
></el-input>
</el-form-item>
<el-form-item
prop=
"grade"
label=
"指导教师"
>
<el-input
v-model=
"queryForm.grade"
placeholder=
"指导教师"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd()"
>
新增
</el-button>
</el-col>
</el-row>
<!-- 列表 -->
<div
class=
"listBlock"
>
<div
class=
"itemBlock"
v-for=
"(task, index) in tasks"
:key=
"index"
>
<div
style=
"display:flex; justify-content:space-between;align-items: center "
>
<div
style=
"width: 50%;"
>
<!-- 任务详细信息 -->
<div
class=
"task-info"
>
<div
class=
"task-name"
>
市二中田径社团
</div>
</div>
<div
class=
"task-level"
>
<span>
指导教师:张三
</span>
</div>
<div
class=
"task-time"
>
<div>
社团宗旨:整合
</div>
<div
class=
"app-container"
>
<el-form
:model=
"queryForm"
ref=
"queryForm"
size=
"small"
:inline=
"true"
label-width=
"80px"
>
<el-form-item
prop=
"taskName"
label=
"社团名称"
>
<el-input
v-model=
"queryForm.taskName"
placeholder=
"社团名称"
></el-input>
</el-form-item>
<el-form-item
prop=
"grade"
label=
"指导教师"
>
<el-input
v-model=
"queryForm.grade"
placeholder=
"指导教师"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button
>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button
>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd()"
>
新增
</el-button
>
</el-col>
</el-row>
<!-- 列表 -->
<div
class=
"listBlock"
>
<div
class=
"itemBlock"
v-for=
"(task, index) in tasks"
:key=
"index"
>
<div
style=
"
display: flex;
justify-content: space-between;
align-items: center;
"
>
<div
style=
"width: 50%"
>
<!-- 任务详细信息 -->
<div
class=
"task-info"
>
<div
class=
"task-name"
>
市二中田径社团
</div>
</div>
<div
class=
"task-level"
>
<span>
指导教师:张三
</span>
</div>
<div
class=
"task-time"
>
<div>
社团宗旨:整合校内外教育资源,培养学生良好的心理素质,发展学生的个性特长,促进学生身心健康、全面发展
</div>
</div>
</div>
<div
style=
"width: 50%"
>
<!-- 成员人数 -->
<div
class=
"task-count"
>
<div
class=
"count"
>
200
</div>
<div
class=
"sun"
>
成员人数
</div>
</div>
</div>
</div>
<!-- 按钮 -->
<div
class=
"task-buttons"
>
<el-button
style=
"margin-left: 10px"
size=
"mini"
type=
"danger"
round
@
click=
"handleUpdate(task)"
>
删除
</el-button>
<el-button
type=
"success"
size=
"small"
round
@
click=
"clubRegistrationReview(task.id, task.grade)"
>
社团报名审核
</el-button
>
<el-button
type=
"info"
size=
"small"
round
@
click=
"clubActivityRecord(task.id, task.grade)"
>
社团活动记录
</el-button
>
<el-button
type=
"warning"
size=
"small"
round
@
click=
"memberManagement(task.id, task.grade)"
>
成员管理
</el-button>
<el-button
class=
"purpleBtn"
size=
"small"
round
type=
"primary"
@
click=
"communityStyle(task.id, task.grade)"
>
社团风采
</el-button>
<el-button
type=
"primary"
size=
"small"
round
@
click=
"basicInformation(task.id, task.grade)"
>
基础信息管理
</el-button>
</div>
</div>
</div>
<div
style=
"width: 50%"
>
<!-- 成员人数 -->
<div
class=
"task-count"
>
<div
class=
"count"
>
200
</div>
<div
class=
"sun"
>
成员人数
</div>
</div>
</div>
</div>
<!-- 按钮 -->
<div
class=
"task-buttons"
>
<el-button
style=
"margin-left: 10px"
size=
"mini"
type=
"danger"
round
@
click=
"handleUpdate(task)"
>
删除
</el-button>
<el-button
type=
"success"
size=
"small"
round
@
click=
"clubRegistrationReview(task.id, task.grade)"
>
社团报名审核
</el-button>
<el-button
type=
"info"
size=
"small"
round
@
click=
"clubActivityRecord(task.id, task.grade)"
>
社团活动记录
</el-button>
<el-button
type=
"warning"
size=
"small"
round
@
click=
"memberManagement(task.id, task.grade)"
>
成员管理
</el-button>
<el-button
class=
"purpleBtn"
size=
"small"
round
type=
"primary"
@
click=
"communityStyle(task.id, task.grade)"
>
社团风采
</el-button>
<el-button
type=
"primary"
size=
"small"
round
@
click=
"basicInformation(task.id, task.grade)"
>
基础信息管理
</el-button>
</div>
</div>
<!-- 新增/修改弹窗 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"50%"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"110px"
>
<div>
<el-form-item
label=
"社团名称"
prop=
"taskName"
>
<el-input
v-model=
"form.taskName"
placeholder=
"请输入社团名称"
></el-input>
</el-form-item>
<el-form-item
label=
"指导教师"
>
<el-select
style=
"width: 100%"
multiple
v-model=
"form.value"
filterable
placeholder=
"请选择指导教师"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"社团宗旨"
prop=
"grade"
>
<el-input
type=
"textarea"
:rows=
"4"
v-model=
"form.grade"
placeholder=
"请输入社团宗旨"
></el-input>
</el-form-item>
<el-form-item
label=
"社团简介"
prop=
"grade"
>
<el-input
type=
"textarea"
:rows=
"4"
v-model=
"form.grade"
placeholder=
"请输入社团简介"
></el-input>
</el-form-item>
</div>
</el-form>
<div
style=
"text-align: center"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</el-dialog>
</div>
<!-- 新增/修改弹窗 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"50%"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"110px"
>
<div>
<el-form-item
label=
"社团名称"
prop=
"taskName"
>
<el-input
v-model=
"form.taskName"
placeholder=
"请输入社团名称"
></el-input>
</el-form-item>
<el-form-item
label=
"指导教师"
>
<el-select
style=
"width: 100%;"
multiple
v-model=
"form.value"
filterable
placeholder=
"请选择指导教师"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"社团宗旨"
prop=
"grade"
>
<el-input
type=
"textarea"
:rows=
"4"
v-model=
"form.grade"
placeholder=
"请输入社团宗旨"
></el-input>
</el-form-item>
<el-form-item
label=
"社团简介"
prop=
"grade"
>
<el-input
type=
"textarea"
:rows=
"4"
v-model=
"form.grade"
placeholder=
"请输入社团简介"
></el-input>
</el-form-item>
</div>
</el-form>
<div
style=
"text-align: center"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</el-dialog>
</div>
</
template
>
<
script
>
import
{
dataCurricula
,
addCurricula
,
updateCurricula
,
getCurricula
,
getDept
}
from
"@/api/smartSchool/gradeWork/courseSelection/taskPublishing.js"
;
import
{
dataCurricula
,
addCurricula
,
updateCurricula
,
getCurricula
,
getDept
}
from
'@/api/smartSchool/gradeWork/courseSelection/taskPublishing.js'
export
default
{
name
:
'basicInformationManagement'
,
data
()
{
return
{
tasks
:
[
1
,
2
,
3
],
queryForm
:
{
taskName
:
""
,
grade
:
""
,
},
form
:
{
id
:
""
,
taskName
:
""
,
grade
:
""
,
startTime
:
""
,
endTime
:
""
,
},
//新增弹窗
open
:
false
,
rules
:
{},
// 加载遮罩
loading
:
true
,
// 记录条数
total
:
0
,
title
:
""
,
// 详情
look
:
false
,
// 日期范围
dateRange
:
[],
options
:
[{
value
:
'选项1'
,
label
:
'黄金糕'
},
{
value
:
'选项2'
,
label
:
'双皮奶'
},
{
value
:
'选项3'
,
label
:
'蚵仔煎'
},
{
value
:
'选项4'
,
label
:
'龙须面'
},
{
value
:
'选项5'
,
label
:
'北京烤鸭'
}],
};
},
created
()
{
this
.
getList
();
},
methods
:
{
/** 获取列表数据 */
getList
()
{
const
params
=
{
taskName
:
this
.
queryForm
.
taskName
,
grade
:
this
.
queryForm
.
grade
,
};
// dataCurricula(params).then(response => {
// this.tasks = response.rows;
// this.total = response.total;
// }).catch(err => {
// this.loading = false;
// })
},
//新增按钮操作
handleAdd
()
{
this
.
reset
();
this
.
open
=
true
;
// getDept().then(response => {
// this.form.grade = response.data.grade;
// console.log(this.form.grade);
// })
// .catch(err => {
// this.loading = false;
// });
this
.
title
=
"新增社团基础信息"
;
},
// 社团报名审核
clubRegistrationReview
(
id
,
grade
)
{
this
.
$router
.
push
({
path
:
"/massOrganization/clubRegistrationReview"
,
query
:
{
id
,
grade
}
});
},
// 社团活动记录
clubActivityRecord
(
id
,
grade
)
{
this
.
$router
.
push
({
path
:
"/massOrganization/clubActivityRecord"
,
query
:
{
id
,
grade
name
:
'basicInformationManagement'
,
data
()
{
return
{
tasks
:
[
1
,
2
,
3
],
queryForm
:
{
taskName
:
''
,
grade
:
''
},
form
:
{
id
:
''
,
taskName
:
''
,
grade
:
''
,
startTime
:
''
,
endTime
:
''
},
//新增弹窗
open
:
false
,
rules
:
{},
// 加载遮罩
loading
:
true
,
// 记录条数
total
:
0
,
title
:
''
,
// 详情
look
:
false
,
// 日期范围
dateRange
:
[],
options
:
[
{
value
:
'选项1'
,
label
:
'黄金糕'
},
{
value
:
'选项2'
,
label
:
'双皮奶'
},
{
value
:
'选项3'
,
label
:
'蚵仔煎'
},
{
value
:
'选项4'
,
label
:
'龙须面'
},
{
value
:
'选项5'
,
label
:
'北京烤鸭'
}
]
}
});
},
//成员管理
memberManagement
(
id
,
grade
)
{
this
.
$router
.
push
({
path
:
"/massOrganization/memberManagement"
,
query
:
{
id
,
grade
}
});
},
//社团风采
communityStyle
(
id
,
grade
)
{
console
.
log
(
"grade"
,
grade
)
this
.
$router
.
push
({
path
:
"/massOrganization/communityStyle"
,
query
:
{
id
,
grade
}
});
},
//基础信息管理
basicInformation
(
id
,
grade
)
{
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"社团基础信息维护"
;
},
// 取消按钮
cancel
()
{
this
.
open
=
false
;
// this.resetQuery();
this
.
reset
();
},
// 搜索按钮
handleQuery
()
{
this
.
throttle
(()
=>
{
this
.
queryForm
.
pageNum
=
1
;
this
.
getList
();
});
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
dateRange
=
[];
this
.
resetForm
(
"queryForm"
);
this
.
handleQuery
();
created
()
{
this
.
getList
()
},
// 提交表单
submitForm
()
{
// console.log('object', this.dateRange);
this
.
throttle
(()
=>
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
id
!=
null
)
{
// 编辑
const
params
=
{
id
:
this
.
form
.
id
,
taskName
:
this
.
form
.
taskName
,
startTime
:
this
.
dateRange
[
0
],
endTime
:
this
.
dateRange
[
1
]
};
updateCurricula
(
params
).
then
(
response
=>
{
console
.
log
(
params
,
'params'
);
console
.
log
(
"res1111"
);
this
.
$message
.
success
(
"修改成功"
);
console
.
log
(
"res"
,
response
);
this
.
open
=
false
;
this
.
getList
();
}).
catch
(
err
=>
{
});
}
else
{
// 新增
const
params
=
{
taskName
:
this
.
form
.
taskName
,
grade
:
this
.
form
.
grade
,
startTime
:
this
.
dateRange
[
0
],
endTime
:
this
.
dateRange
[
1
]
};
addCurricula
(
params
).
then
(
response
=>
{
this
.
$message
.
success
(
"新增成功"
);
this
.
open
=
false
;
this
.
getList
();
}).
catch
(
err
=>
{
// Handle error if necessary
});
methods
:
{
/** 获取列表数据 */
getList
()
{
const
params
=
{
taskName
:
this
.
queryForm
.
taskName
,
grade
:
this
.
queryForm
.
grade
}
}
});
})
},
// 编辑按钮
handleUpdate
(
task
)
{
this
.
title
=
'修改'
;
this
.
open
=
true
;
getCurricula
(
task
.
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
dateRange
=
[
response
.
data
.
startTime
,
response
.
data
.
endTime
];
this
.
$modal
.
closeLoading
();
}).
catch
(
err
=>
{
})
},
// 重置表单
reset
()
{
// 重置对话框表单
this
.
form
=
{
taskName
:
""
,
grade
:
""
,
};
this
.
dateRange
=
[];
this
.
resetForm
(
'form'
);
},
},
};
// dataCurricula(params).then(response => {
// this.tasks = response.rows;
// this.total = response.total;
// }).catch(err => {
// this.loading = false;
// })
},
//新增按钮操作
handleAdd
()
{
this
.
reset
()
this
.
open
=
true
// getDept().then(response => {
// this.form.grade = response.data.grade;
// console.log(this.form.grade);
// })
// .catch(err => {
// this.loading = false;
// });
this
.
title
=
'新增社团基础信息'
},
// 社团报名审核
clubRegistrationReview
(
id
,
grade
)
{
this
.
$router
.
push
({
path
:
'/massOrganization/clubRegistrationReview'
,
query
:
{
id
,
grade
}
})
},
// 社团活动记录
clubActivityRecord
(
id
,
grade
)
{
this
.
$router
.
push
({
path
:
'/massOrganization/clubActivityRecord'
,
query
:
{
id
,
grade
}
})
},
//成员管理
memberManagement
(
id
,
grade
)
{
this
.
$router
.
push
({
path
:
'/massOrganization/memberManagement'
,
query
:
{
id
,
grade
}
})
},
//社团风采
communityStyle
(
id
,
grade
)
{
console
.
log
(
'grade'
,
grade
)
this
.
$router
.
push
({
path
:
'/massOrganization/communityStyle'
,
query
:
{
id
,
grade
}
})
},
//基础信息管理
basicInformation
(
id
,
grade
)
{
this
.
reset
()
this
.
open
=
true
this
.
title
=
'社团基础信息维护'
},
// 取消按钮
cancel
()
{
this
.
open
=
false
// this.resetQuery();
this
.
reset
()
},
// 搜索按钮
handleQuery
()
{
this
.
throttle
(()
=>
{
this
.
queryForm
.
pageNum
=
1
this
.
getList
()
})
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
dateRange
=
[]
this
.
resetForm
(
'queryForm'
)
this
.
handleQuery
()
},
// 提交表单
submitForm
()
{
// console.log('object', this.dateRange);
this
.
throttle
(()
=>
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
form
.
id
!=
null
)
{
// 编辑
const
params
=
{
id
:
this
.
form
.
id
,
taskName
:
this
.
form
.
taskName
,
startTime
:
this
.
dateRange
[
0
],
endTime
:
this
.
dateRange
[
1
]
}
updateCurricula
(
params
)
.
then
((
response
)
=>
{
console
.
log
(
params
,
'params'
)
console
.
log
(
'res1111'
)
this
.
$message
.
success
(
'修改成功'
)
console
.
log
(
'res'
,
response
)
this
.
open
=
false
this
.
getList
()
})
.
catch
((
err
)
=>
{})
}
else
{
// 新增
const
params
=
{
taskName
:
this
.
form
.
taskName
,
grade
:
this
.
form
.
grade
,
startTime
:
this
.
dateRange
[
0
],
endTime
:
this
.
dateRange
[
1
]
}
addCurricula
(
params
)
.
then
((
response
)
=>
{
this
.
$message
.
success
(
'新增成功'
)
this
.
open
=
false
this
.
getList
()
})
.
catch
((
err
)
=>
{
// Handle error if necessary
})
}
}
})
})
},
// 编辑按钮
handleUpdate
(
task
)
{
this
.
title
=
'修改'
this
.
open
=
true
getCurricula
(
task
.
id
)
.
then
((
response
)
=>
{
this
.
form
=
response
.
data
this
.
dateRange
=
[
response
.
data
.
startTime
,
response
.
data
.
endTime
]
this
.
$modal
.
closeLoading
()
})
.
catch
((
err
)
=>
{})
},
// 重置表单
reset
()
{
// 重置对话框表单
this
.
form
=
{
taskName
:
''
,
grade
:
''
}
this
.
dateRange
=
[]
this
.
resetForm
(
'form'
)
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.listBlock
{
//
display
:
flex
;
//
flex-direction
:
row
;
//
align-items
:
flex-start
;
//
flex-wrap
:
wrap
;
width
:
100%
;
//
display
:
flex
;
//
flex-direction
:
row
;
//
align-items
:
flex-start
;
//
flex-wrap
:
wrap
;
width
:
100%
;
}
.itemBlock
{
width
:
100
%
;
padding
:
15px
20px
5px
20px
;
margin
:
0
1.5%
1.5%
0
;
border-radius
:
20px
;
box-shadow
:
0
2px
12px
0
rgba
(
0
,
0
,
0
,
0.1
);
width
:
99
%
;
padding
:
15px
20px
5px
20px
;
margin
:
0
1.5%
1.5%
0
;
border-radius
:
20px
;
box-shadow
:
1px
2px
12px
1px
rgba
(
0
,
0
,
0
,
0.1
);
}
.listBlock
.itemBlock
:nth-child
(
2n
)
{
margin-right
:
0px
!important
;
margin-right
:
0px
!important
;
}
.purpleBtn
{
color
:
#FFFFFF
;
background-color
:
#B66D93
;
border
:
1px
solid
#B66D93
;
color
:
#ffffff
;
background-color
:
#b886f8
;
border
:
1px
solid
#b886f8
;
}
.rowBtn
{
color
:
#FFFFFF
;
background-color
:
#D3C1B
1
;
border
:
1px
solid
#D3C1B
1
;
color
:
#ffffff
;
background-color
:
#d3c1b
1
;
border
:
1px
solid
#d3c1b
1
;
}
.task-name
{
color
:
#0d84f
f
;
font-size
:
38
px
;
//
font-weight
:
500
;
text-align
:
left
;
color
:
#307de
f
;
font-size
:
45
px
;
font-weight
:
500
;
text-align
:
left
;
}
.task-level
{
margin-bottom
:
6px
;
color
:
rgba
(
108
,
108
,
108
,
1
);
font-size
:
13px
;
text-align
:
left
;
margin-bottom
:
6px
;
color
:
rgba
(
108
,
108
,
108
,
1
);
font-size
:
13px
;
text-align
:
left
;
}
.task-level
>
span
{
margin-right
:
25px
;
margin-right
:
25px
;
}
.task-time
{
color
:
rgba
(
108
,
108
,
108
,
1
);
font-size
:
13px
;
text-align
:
left
;
color
:
rgba
(
108
,
108
,
108
,
1
);
font-size
:
13px
;
text-align
:
left
;
margin-bottom
:
-50px
;
}
.task-info
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
padding-bottom
:
15px
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
padding-bottom
:
15px
;
}
.task-count
{
text-align
:
center
;
padding-right
:
10px
;
text-align
:
center
;
padding-left
:
60%
;
}
.task-count
>
.count
{
color
:
rgba
(
90
,
123
,
244
,
1
)
;
font-size
:
38px
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#307def
;
font-size
:
45px
;
}
.task-count
>
.sun
{
color
:
rgba
(
16
,
16
,
16
,
1
);
font-size
:
18px
;
text-align
:
center
;
font-weight
:
bold
;
color
:
rgba
(
16
,
16
,
16
,
1
);
font-size
:
18px
;
text-align
:
center
;
font-weight
:
bold
;
}
.task-buttons
{
text-align
:
left
;
margin-top
:
20px
;
display
:
flex
;
flex-direction
:
row-reverse
;
text-align
:
left
;
margin-top
:
20px
;
display
:
flex
;
flex-direction
:
row-reverse
;
}
.task-buttons
button
{
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
.el-card
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
</
style
>
ruoyi-ui/src/views/smartSchool/massOrganization/clubActivityRecord/index copy.vue
0 → 100644
View file @
63cc6622
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"标题"
prop=
"picName"
>
<el-input
v-model=
"queryParams.picName"
placeholder=
"请输入标题"
clearable
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
>
新增
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"success"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
>
修改
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
size=
"mini"
:disabled=
"multiple"
@
click=
"handleDelete"
>
删除
</el-button>
</el-col>
<!--
<el-col
:span=
"1.5"
>
-->
<!--
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
--
>
<!-- v-hasPermi="['system:pic:export']">导出-->
<!--
</el-button>
-->
<!--
</el-col>
-->
<!--
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
:columns=
"columns"
></right-toolbar>
-->
</el-row>
<el-table
v-loading=
"loading"
ref=
"table"
:data=
"picList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"序号"
align=
"center"
prop=
"seqencing"
width=
"80"
/>
<el-table-column
label=
"活动主题"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"活动开始时间"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"活动结束时间"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"活动负责人"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"所属社团"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"备注"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"附件"
align=
"center"
prop=
"picName"
>
<template
slot-scope=
"scope"
>
<!--
<ListImage
:image-url=
"pev+scope.row.picUrl"
></ListImage>
-->
<!-- previewSrcList 开启预览大图的功能。-->
<el-image
style=
"width: 100px; height: 100px"
:src=
"scope.row.url"
:preview-src-list=
"srcList"
>
</el-image>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
>
编辑
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleCheck(scope.row)"
>
查看
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<!-- 添加或修改社团主题对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"900px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"90px"
style=
"width: 80%; margin: auto"
>
<el-form-item
label=
"活动主题"
>
<el-input
v-model=
"form.name"
></el-input>
</el-form-item>
<el-form-item
label=
"活动开始时间"
>
<el-date-picker
v-model=
"form.value1"
type=
"datetime"
placeholder=
"选择活动开始时间"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"活动结束时间"
>
<el-date-picker
v-model=
"form.value1"
type=
"datetime"
placeholder=
"选择活动结束时间"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"活动负责人"
>
<el-select
v-model=
"value"
filterable
placeholder=
"请选择活动负责人"
>
<el-option
v-for=
"item in activeOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"所属社团"
>
<el-input
v-model=
"form.name"
></el-input>
</el-form-item>
<el-form-item
prop=
"gardenEmblem"
style=
"display: flex; text-align: center; justify-content: center; transform: translateX(-30px)"
>
<!-- <el-upload v-loading="uploadLoading" class="avatar-uploader" action="#" accept="image/*"-->
<!-- :show-file-list="false" :on-success="handleAvatarSuccess" :before-upload="beforeAvatarUpload" :on-remove="handleRemove"-->
<!-- :http-request="uploadImage" :limit="1" >-->
<el-upload
:disabled=
"check == true ? true : false"
v-loading=
"uploadLoading"
class=
"avatar-uploader"
action=
"#"
accept=
"image/*"
:show-file-list=
"false"
:on-success=
"handleAvatarSuccess"
:before-upload=
"beforeAvatarUpload"
:on-remove=
"handleRemove"
:limit=
"1"
>
<img
v-if=
"imageUrl"
:src=
"imageUrl"
class=
"avatar"
/>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
</el-form-item>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"风采主题:"
prop=
"picName"
>
<el-input
:readonly=
"check == true ? true : false"
v-model=
"form.picName"
placeholder=
"请输入风采主题"
style=
"width: 100%"
/>
</el-form-item>
</el-col>
<!-- <el-col :span="12">-->
<!-- <el-form-item label="排序:" prop="seqencing">-->
<!-- <el-input-number v-model="form.seqencing" controls-position="right" style="width: 100%"-->
<!-- :min="1"></el-input-number>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
</el-row>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</el-dialog>
</div>
</template>
<
script
>
import
{
listPic
,
getPic
,
delPic
,
addPic
,
updatePic
,
updateState
}
from
'@/api/smartSchool/schoolManage/introduce/pic'
import
picAvatar
from
'@/views/smartSchool/schoolManage/introduce/schoolInfo/profile/picAvatar'
import
{
changeUserStatus
}
from
'@/api/system/user'
import
{
uploadImage
as
commonUpload
}
from
'@/api/common'
import
{
ExportType
,
TEXT_SIZE
}
from
'@/enums/common'
export
default
{
name
:
'clubActivityRecord'
,
components
:
{
picAvatar
},
data
()
{
return
{
pev
:
process
.
env
.
VUE_APP_BASE_API
,
// 输入框字数限制
TEXT_SIZE
,
//是否上传的院徽
isUploadPic
:
false
,
//照片是否删除
options
:
[
{
value
:
0
,
label
:
'否'
},
{
value
:
1
,
label
:
'是'
}
],
//获取子组件传来的信息
pic
:
[],
// 图片路径
imageUrl
:
undefined
,
// 图片上传遮罩层
uploadLoading
:
false
,
// 遮罩层
loading
:
true
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 园区照片表格数据
picList
:
[],
// 弹出层标题
title
:
''
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
picName
:
null
},
// 表单参数
form
:
{},
// 表单校验
rules
:
{
picName
:
[{
required
:
true
,
message
:
'请输入相片名称'
,
trigger
:
'blur'
}],
seqencing
:
[{
required
:
true
,
message
:
'请输入排序'
,
trigger
:
'blur'
}],
remark
:
[{
max
:
TEXT_SIZE
,
message
:
'备注信息在0到200字之间'
,
trigger
:
'blur'
}]
},
//设置table列隐藏与显示
columns
:
[
{
key
:
0
,
label
:
`园区照片`
,
visible
:
true
},
{
key
:
1
,
label
:
`相片名称`
,
visible
:
true
},
// {key: 2, label: `相片路径`, visible: true},
{
key
:
2
,
label
:
`排序`
,
visible
:
true
},
{
key
:
3
,
label
:
`备注`
,
visible
:
true
},
{
key
:
4
,
label
:
`创建者`
,
visible
:
true
},
{
key
:
5
,
label
:
`创建时间`
,
visible
:
true
},
{
key
:
6
,
label
:
`操作`
,
visible
:
true
}
],
// 作为临时图片展示
tempImage
:
''
,
// 导出选项
exportOptions
:
{
title
:
'选择导出类别'
,
open
:
false
},
//查看状态
check
:
false
,
//活动负责人下拉框
activeOptions
:[{
value
:
'选项1'
,
label
:
'黄金糕'
},
{
value
:
'选项2'
,
label
:
'双皮奶'
},
{
value
:
'选项3'
,
label
:
'蚵仔煎'
},
{
value
:
'选项4'
,
label
:
'龙须面'
},
{
value
:
'选项5'
,
label
:
'北京烤鸭'
}]
}
},
created
()
{
this
.
getList
()
},
watch
:
{
pic
:
{
handler
(
newValue
,
oldValue
)
{
console
.
log
(
'watch----oldValue'
,
oldValue
)
console
.
log
(
'watch----newValue'
,
newValue
)
this
.
isUploadPic
=
newValue
[
3
]
}
}
},
methods
:
{
//是否删除 选中值发生变化时id处理函数
selectChangeHandler
(
value
)
{
this
.
form
.
isShow
=
value
},
/** 查询园区照片列表 */
getList
()
{
this
.
loading
=
true
this
.
picList
=
[]
listPic
(
this
.
queryParams
).
then
(
response
=>
{
this
.
picList
=
response
.
rows
this
.
total
=
response
.
total
this
.
loading
=
false
})
},
//获取图片信息
getSchoolInfoPic
(
val
)
{
this
.
pic
=
val
},
// 取消按钮
cancel
()
{
this
.
open
=
false
this
.
reset
()
},
// 表单重置
reset
()
{
this
.
form
=
{
params
:
{},
id
:
null
,
createBy
:
null
,
createTime
:
null
,
updateBy
:
null
,
updateTime
:
null
,
delFlag
:
null
,
picName
:
null
,
picUrl
:
null
,
seqencing
:
null
,
isShow
:
0
}
this
.
imageUrl
=
''
this
.
resetForm
(
'form'
)
},
/** 搜索按钮操作 */
handleQuery
()
{
this
.
throttle
(()
=>
{
this
.
queryParams
.
pageNum
=
1
this
.
getList
()
})
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
'queryForm'
)
this
.
handleQuery
()
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
id
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
},
/** 新增按钮操作 */
handleAdd
()
{
this
.
check
=
false
this
.
reset
()
this
.
open
=
true
this
.
title
=
'新增社团风采'
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
()
const
ids
=
row
.
id
||
this
.
ids
getPic
(
ids
).
then
(
response
=>
{
this
.
form
=
response
.
data
this
.
imageUrl
=
this
.
pev
+
this
.
form
.
picUrl
this
.
open
=
true
this
.
title
=
'修改园区照片'
})
},
/** 查看按钮操作 */
handleCheck
(
row
){
this
.
check
=
true
this
.
open
=
true
this
.
title
=
'查看社团风采'
},
// 上传成功回调
handleAvatarSuccess
(
res
,
file
)
{
this
.
imageUrl
=
res
.
data
.
url
console
.
log
(
file
)
this
.
commonUpload
(
file
)
},
// 上传前格式和图片大小限制
beforeAvatarUpload
(
file
)
{
const
type
=
file
.
type
===
'image/jpeg'
||
'image/jpg'
||
'image/webp'
||
'image/png'
const
isLt2M
=
file
.
size
/
1024
/
1024
<
2
if
(
!
type
)
{
this
.
$message
.
error
(
'图片格式不正确!(只能包含jpg,png,webp,JPEG)'
)
}
if
(
!
isLt2M
)
{
this
.
$message
.
error
(
'上传图片大小不能超过 2MB!'
)
}
return
type
&&
isLt2M
},
//删除图片
handleRemove
(
file
,
fileList
){
this
.
imageUrl
=
''
},
// 上传图片
uploadImage
(
file
)
{
const
fileData
=
file
.
file
const
formData
=
new
FormData
()
formData
.
append
(
'file'
,
fileData
)
this
.
uploadLoading
=
true
commonUpload
(
formData
)
.
then
(
response
=>
{
this
.
uploadLoading
=
false
this
.
$modal
.
msgSuccess
(
'上传成功'
)
this
.
imageUrl
=
this
.
pev
+
response
.
url
// this.form.picUrl = process.env.VUE_APP_BASE_API + response.url
this
.
form
.
picUrl
=
response
.
url
})
.
catch
(
error
=>
{
this
.
uploadLoading
=
false
})
},
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
if
(
valid
)
{
this
.
$modal
.
loading
(
'正在上传数据,请稍等...'
)
if
(
this
.
form
.
id
!=
null
)
{
updatePic
({
...
this
.
form
})
.
then
(
response
=>
{
this
.
$modal
.
closeLoading
()
this
.
$modal
.
msgSuccess
(
'修改成功'
)
this
.
open
=
false
this
.
getList
()
})
.
catch
(
error
=>
{
this
.
$modal
.
closeLoading
()
})
}
else
{
addPic
({
...
this
.
form
,
isShow
:
'0'
})
.
then
(
response
=>
{
this
.
$modal
.
closeLoading
()
this
.
$modal
.
msgSuccess
(
'新增成功'
)
this
.
open
=
false
this
.
getList
()
})
.
catch
(
error
=>
{
this
.
$modal
.
closeLoading
()
})
}
}
})
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
ids
=
row
.
id
||
this
.
ids
if
(
ids
)
{
this
.
$modal
.
confirm
(
`是否确认删除选中的
${
Object
.
hasOwnProperty
.
call
(
ids
,
'length'
)
?
ids
.
length
:
1
}
条数据?`
)
.
then
(()
=>
{
this
.
$modal
.
loading
(
'正在处理数据,请稍等...'
)
return
delPic
(
ids
)
})
.
then
(()
=>
{
this
.
$modal
.
closeLoading
()
this
.
getList
()
this
.
$modal
.
msgSuccess
(
'删除成功'
)
})
.
catch
(()
=>
{
this
.
$modal
.
closeLoading
()
})
}
},
/** 是否发布 */
handleIsShow
(
row
)
{
this
.
$modal
.
confirm
(
row
.
isShow
===
'1'
?
'是否确认显示为轮播图?'
:
'是否取消显示为轮播图?'
)
.
then
(()
=>
{
this
.
$modal
.
loading
(
'正在修改状态,请稍等...'
)
updateState
(
row
.
id
,
row
.
isShow
)
.
then
(
response
=>
{
this
.
$modal
.
closeLoading
()
this
.
$modal
.
msgSuccess
(
'修改成功'
)
})
.
catch
(
error
=>
{
this
.
$modal
.
closeLoading
()
row
.
isShow
=
row
.
isShow
===
'0'
?
'1'
:
'0'
})
})
.
catch
(()
=>
{
row
.
isShow
=
row
.
isShow
===
'0'
?
'1'
:
'0'
})
}
}
}
</
script
>
<
style
scoped
>
.avatar
,
.avatar-uploader
,
.el-icon-plus
{
width
:
650px
;
}
</
style
>
ruoyi-ui/src/views/smartSchool/massOrganization/clubRegistrationReview/index.vue
View file @
63cc6622
<
template
>
<div>
社团报名审核
</div>
<div>
<!-- 搜索条件 -->
<el-form
:model=
"queryForm"
ref=
"queryForm"
size=
"small"
:inline=
"true"
label-width=
"68px"
>
<el-form-item
label=
"标题"
>
<el-input
v-model=
"queryForm.name"
placeholder=
"请输入"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"getList"
>
搜索
</el-button
>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button
>
</el-form-item>
</el-form>
<!-- 表格 -->
<el-table
border
ref=
"table"
:data=
"tableData"
>
<el-table-column
align=
"center"
type=
"index"
label=
"序号"
width=
"55"
/>
<el-table-column
align=
"center"
prop=
"name"
label=
"姓名"
/>
<el-table-column
align=
"center"
prop=
"name"
label=
"性别"
/>
<el-table-column
align=
"center"
prop=
"name"
label=
"级别"
/>
<el-table-column
align=
"center"
prop=
"name"
label=
"班级"
/>
<el-table-column
align=
"center"
prop=
"name"
label=
"兴趣爱好"
/>
<el-table-column
align=
"center"
prop=
"name"
label=
"联系电话"
/>
<el-table-column
align=
"center"
prop=
"name"
label=
"申请理由"
/>
<el-table-column
align=
"center"
prop=
"name"
label=
"审核状态"
/>
<el-table-column
align=
"center"
fixed=
"right"
label=
"操作"
>
<template
slot-scope=
"scope"
>
<el-button
@
click=
"handleAgree(scope.row)"
type=
"text"
size=
"small"
>
同意
</el-button
>
<el-button
@
click=
"handleDisagree(scope.row)"
type=
"text"
size=
"small"
>
不同意
</el-button
>
<el-button
@
click=
"handleDelete(scope.row)"
type=
"text"
size=
"small"
>
查看
</el-button
>
</
template
>
</el-table-column>
</el-table>
<!-- 弹窗 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"dialogTableVisible"
width=
"66%"
show-close
>
<el-form
:model=
"form"
ref=
"form"
size=
"small"
label-width=
"108px"
>
<el-row>
<el-col
:span=
"10"
>
<el-form-item
label=
"姓名"
>
<el-input
v-model=
"form.name"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"10"
>
<el-form-item
label=
"性别"
>
<el-input
v-model=
"form.name"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"10"
>
<el-form-item
label=
"级部"
>
<el-input
v-model=
"form.name"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"10"
>
<el-form-item
label=
"班级"
>
<el-input
v-model=
"form.name"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"10"
>
<el-form-item
label=
"兴趣爱好"
>
<el-input
v-model=
"form.name"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"10"
>
<el-form-item
label=
"联系电话"
>
<el-input
v-model=
"form.name"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"10"
>
<el-form-item
label=
"申请理由"
>
<el-input
v-model=
"form.name"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"10"
>
<el-form-item
label=
"审核状态"
>
<el-input
v-model=
"form.name"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-dialog>
<!-- 分页 -->
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"queryForm.pageNum"
:limit
.
sync=
"queryForm.pageSize"
@
pagination=
"getList"
/>
</div>
</template>
<
script
>
export
default
{
name
:
"clubRegistrationReview"
name
:
'clubRegistrationReview'
,
data
()
{
return
{
queryForm
:
{
pageNum
:
1
,
pageSize
:
10
,
name
:
''
},
//表格数据
tableData
:
[
{
name
:
'1'
},
{
name
:
'2222'
},
{
name
:
'33'
,
hasChildren
:
true
},
{
name
:
'444'
}
],
title
:
''
,
// 弹窗
form
:
{},
// 总计
total
:
0
,
single
:
false
,
// 添加 single 属性并设置初始值
multiple
:
false
,
dialogTableVisible
:
false
}
},
methods
:
{
// 搜索
getList
()
{},
// 重置
resetQuery
()
{},
// 查看
handleDelete
()
{
this
.
dialogTableVisible
=
true
this
.
title
=
'社团报名审核'
},
// 同意
handleAgree
()
{},
// 同意
handleDisagree
()
{},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
id
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
}
}
}
</
script
>
<
style
scoped
>
</
style
>
<
style
lang=
"scss"
scoped
>
.el-form
{
margin-top
:
15px
;
margin-left
:
10px
;
}
.el-table
{
margin-left
:
10px
;
}
</
style
>
\ No newline at end of file
ruoyi-ui/src/views/smartSchool/massOrganization/memberManagement/index.vue
View file @
63cc6622
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"年级:"
prop=
"picName"
>
<el-input
v-model=
"queryParams.picName"
placeholder=
"请输入年级"
clearable
/>
</el-form-item>
<el-form-item
label=
"班级:"
prop=
"picName"
>
<el-input
v-model=
"queryParams.picName"
placeholder=
"请输入班级"
clearable
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"年级:"
prop=
"picName"
>
<el-input
v-model=
"queryParams.picName"
placeholder=
"请输入年级"
clearable
/>
</el-form-item>
<el-form-item
label=
"班级:"
prop=
"picName"
>
<el-input
v-model=
"queryParams.picName"
placeholder=
"请输入班级"
clearable
/>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button
>
<el-button
icon=
"el-icon-refresh"
size=
"mini"
@
click=
"resetQuery"
>
重置
</el-button
>
</el-form-item>
</el-form>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
>
新增
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
size=
"mini"
:disabled=
"multiple"
@
click=
"handleDelete"
>
删除
</el-button>
</el-col>
</el-row>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
>
新增
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"danger"
icon=
"el-icon-delete"
size=
"mini"
:disabled=
"multiple"
@
click=
"handleDelete"
>
删除
</el-button>
</el-col>
</el-row>
<el-table
v-loading=
"loading"
ref=
"table"
:data=
"picList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"序号"
align=
"center"
prop=
"seqencing"
width=
"80"
/>
<el-table-column
label=
"身份证号"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"年级"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"班级"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"社团部门"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"社团职位"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"联系方式"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
>
修改
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
<el-table
v-loading=
"loading"
ref=
"table"
:data=
"picList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"序号"
align=
"center"
prop=
"seqencing"
width=
"80"
/>
<el-table-column
label=
"姓名"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"性别"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"身份证号"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"年级"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"班级"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"社团部门"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"社团职位"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"联系方式"
align=
"center"
prop=
"picName"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
>
修改
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<!-- 添加或修改社团主题对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"30%"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"90px"
>
<el-form-item
label=
"姓名:"
prop=
"picName"
>
<el-select
v-model=
"form.value"
style=
"width: 100%;"
filterable
placeholder=
"请选择姓名"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"性别:"
prop=
"picName"
>
<el-input
readonly
v-model=
"form.picName"
placeholder=
"请输入性别:"
/>
</el-form-item>
<el-form-item
label=
"身份证号:"
prop=
"picName"
>
<el-input
readonly
v-model=
"form.picName"
placeholder=
"请输入身份证号"
/>
</el-form-item>
<el-form-item
label=
"年级:"
prop=
"picName"
>
<el-input
readonly
v-model=
"form.picName"
placeholder=
"请输入年级"
/>
</el-form-item>
<el-form-item
label=
"班级:"
prop=
"picName"
>
<el-input
readonly
v-model=
"form.picName"
placeholder=
"请输入班级"
/>
</el-form-item>
<el-form-item
label=
"联系方式:"
prop=
"picName"
>
<el-input
v-model=
"form.picName"
placeholder=
"请输入联系方式"
/>
</el-form-item>
<el-form-item
label=
"社团部门:"
prop=
"picName"
>
<el-input
v-model=
"form.picName"
placeholder=
"请输入社团部门"
/>
</el-form-item>
<el-form-item
label=
"社团职位:"
prop=
"picName"
>
<el-input
v-model=
"form.picName"
placeholder=
"请输入社团职位"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</el-dialog>
</div>
<!-- 添加或修改社团主题对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"30%"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"90px"
>
<el-form-item
label=
"姓名:"
prop=
"picName"
>
<el-select
v-model=
"form.value"
style=
"width: 100%"
filterable
placeholder=
"请选择姓名"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"性别:"
prop=
"picName"
>
<el-input
readonly
v-model=
"form.picName"
placeholder=
"请输入性别:"
/>
</el-form-item>
<el-form-item
label=
"身份证号:"
prop=
"picName"
>
<el-input
readonly
v-model=
"form.picName"
placeholder=
"请输入身份证号"
/>
</el-form-item>
<el-form-item
label=
"年级:"
prop=
"picName"
>
<el-input
readonly
v-model=
"form.picName"
placeholder=
"请输入年级"
/>
</el-form-item>
<el-form-item
label=
"班级:"
prop=
"picName"
>
<el-input
readonly
v-model=
"form.picName"
placeholder=
"请输入班级"
/>
</el-form-item>
<el-form-item
label=
"联系方式:"
prop=
"picName"
>
<el-input
v-model=
"form.picName"
placeholder=
"请输入联系方式"
/>
</el-form-item>
<el-form-item
label=
"社团部门:"
prop=
"picName"
>
<el-input
v-model=
"form.picName"
placeholder=
"请输入社团部门"
/>
</el-form-item>
<el-form-item
label=
"社团职位:"
prop=
"picName"
>
<el-input
v-model=
"form.picName"
placeholder=
"请输入社团职位"
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
</el-dialog>
</div>
</template>
<
script
>
import
{
listPic
,
getPic
,
delPic
,
addPic
,
updatePic
,
updateState
}
from
'@/api/smartSchool/schoolManage/introduce/pic'
import
{
listPic
,
getPic
,
delPic
,
addPic
,
updatePic
,
updateState
}
from
'@/api/smartSchool/schoolManage/introduce/pic'
import
picAvatar
from
'@/views/smartSchool/schoolManage/introduce/schoolInfo/profile/picAvatar'
import
{
changeUserStatus
}
from
'@/api/system/user'
import
{
uploadImage
as
commonUpload
}
from
'@/api/common'
import
{
ExportType
,
TEXT_SIZE
}
from
'@/enums/common'
import
{
changeUserStatus
}
from
'@/api/system/user'
import
{
uploadImage
as
commonUpload
}
from
'@/api/common'
import
{
ExportType
,
TEXT_SIZE
}
from
'@/enums/common'
export
default
{
name
:
'communityStyle'
,
components
:
{
picAvatar
},
data
()
{
return
{
pev
:
process
.
env
.
VUE_APP_BASE_API
,
// 输入框字数限制
TEXT_SIZE
,
// 遮罩层
loading
:
true
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 弹出层标题
title
:
''
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
picName
:
null
},
// 表单参数
form
:
{},
// 表单校验
rules
:
{
picName
:
[{
required
:
true
,
message
:
'请输入相片名称'
,
trigger
:
'blur'
}],
seqencing
:
[{
required
:
true
,
message
:
'请输入排序'
,
trigger
:
'blur'
}],
remark
:
[{
max
:
TEXT_SIZE
,
message
:
'备注信息在0到200字之间'
,
trigger
:
'blur'
}]
},
options
:
[{
value
:
'选项1'
,
label
:
'黄金糕'
},
{
value
:
'选项2'
,
label
:
'双皮奶'
},
{
value
:
'选项3'
,
label
:
'蚵仔煎'
},
{
value
:
'选项4'
,
label
:
'龙须面'
},
{
value
:
'选项5'
,
label
:
'北京烤鸭'
}],
}
},
created
()
{
this
.
getList
()
},
methods
:
{
/** 查询园区照片列表 */
getList
()
{
this
.
loading
=
true
this
.
picList
=
[]
listPic
(
this
.
queryParams
).
then
(
response
=>
{
this
.
picList
=
response
.
rows
this
.
total
=
response
.
total
this
.
loading
=
false
})
},
// 取消按钮
cancel
()
{
this
.
open
=
false
this
.
reset
()
},
// 表单重置
reset
()
{
this
.
form
=
{
params
:
{},
id
:
null
,
createBy
:
null
,
createTime
:
null
,
updateBy
:
null
,
updateTime
:
null
,
delFlag
:
null
,
picName
:
null
,
picUrl
:
null
,
seqencing
:
null
,
isShow
:
0
}
this
.
imageUrl
=
''
this
.
resetForm
(
'form'
)
name
:
'communityStyle'
,
components
:
{
picAvatar
},
data
()
{
return
{
pev
:
process
.
env
.
VUE_APP_BASE_API
,
// 输入框字数限制
TEXT_SIZE
,
// 遮罩层
loading
:
true
,
// 选中数组
ids
:
[],
// 非单个禁用
single
:
true
,
// 非多个禁用
multiple
:
true
,
// 显示搜索条件
showSearch
:
true
,
// 总条数
total
:
0
,
// 弹出层标题
title
:
''
,
// 是否显示弹出层
open
:
false
,
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
picName
:
null
},
// 表单参数
form
:
{},
// 表单校验
rules
:
{
// picName: [
// {
// required: true,
// message: '请输入相片名称',
// trigger: 'blur'
// }
// ],
},
options
:
[
{
value
:
'选项1'
,
label
:
'黄金糕'
},
{
value
:
'选项2'
,
label
:
'双皮奶'
},
{
value
:
'选项3'
,
label
:
'蚵仔煎'
},
{
value
:
'选项4'
,
label
:
'龙须面'
},
{
value
:
'选项5'
,
label
:
'北京烤鸭'
}
]
}
},
/** 搜索按钮操作 */
handleQuery
()
{
this
.
throttle
(()
=>
{
this
.
queryParams
.
pageNum
=
1
created
()
{
this
.
getList
()
})
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
'queryForm'
)
this
.
handleQuery
()
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
id
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
},
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
()
this
.
open
=
true
this
.
title
=
'新增社团成员'
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
()
const
ids
=
row
.
id
||
this
.
ids
getPic
(
ids
).
then
(
response
=>
{
this
.
form
=
response
.
data
this
.
imageUrl
=
this
.
pev
+
this
.
form
.
picUrl
this
.
open
=
true
this
.
title
=
'修改社团成员信息'
})
},
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
if
(
valid
)
{
this
.
$modal
.
loading
(
'正在上传数据,请稍等...'
)
if
(
this
.
form
.
id
!=
null
)
{
updatePic
({
...
this
.
form
methods
:
{
/** 查询列表 */
getList
()
{
this
.
loading
=
true
this
.
picList
=
[]
listPic
(
this
.
queryParams
).
then
((
response
)
=>
{
this
.
picList
=
response
.
rows
this
.
total
=
response
.
total
this
.
loading
=
false
})
.
then
(
response
=>
{
this
.
$modal
.
closeLoading
()
this
.
$modal
.
msgSuccess
(
'修改成功'
)
this
.
open
=
false
},
// 取消按钮
cancel
()
{
this
.
open
=
false
this
.
reset
()
},
// 表单重置
reset
()
{
this
.
form
=
{
params
:
{},
id
:
null
,
createBy
:
null
,
createTime
:
null
,
updateBy
:
null
,
updateTime
:
null
,
delFlag
:
null
,
picName
:
null
,
picUrl
:
null
,
seqencing
:
null
,
isShow
:
0
}
this
.
imageUrl
=
''
this
.
resetForm
(
'form'
)
},
/** 搜索按钮操作 */
handleQuery
()
{
this
.
throttle
(()
=>
{
this
.
queryParams
.
pageNum
=
1
this
.
getList
()
})
.
catch
(
error
=>
{
this
.
$modal
.
closeLoading
()
})
}
else
{
addPic
({
...
this
.
form
,
isShow
:
'0'
})
.
then
(
response
=>
{
this
.
$modal
.
closeLoading
()
this
.
$modal
.
msgSuccess
(
'新增成功'
)
this
.
open
=
false
this
.
getList
()
})
.
catch
(
error
=>
{
this
.
$modal
.
closeLoading
()
})
}
}
})
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
ids
=
row
.
id
||
this
.
ids
if
(
ids
)
{
this
.
$modal
.
confirm
(
`是否确认删除选中的
${
Object
.
hasOwnProperty
.
call
(
ids
,
'length'
)
?
ids
.
length
:
1
}
条数据?`
)
.
then
(()
=>
{
this
.
$modal
.
loading
(
'正在处理数据,请稍等...'
)
return
delPic
(
ids
)
})
.
then
(()
=>
{
this
.
$modal
.
closeLoading
()
this
.
getList
()
this
.
$modal
.
msgSuccess
(
'删除成功'
)
})
.
catch
(()
=>
{
this
.
$modal
.
closeLoading
()
})
}
},
},
/** 重置按钮操作 */
resetQuery
()
{
this
.
resetForm
(
'queryForm'
)
this
.
handleQuery
()
},
// 多选框选中数据
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
id
)
this
.
single
=
selection
.
length
!==
1
this
.
multiple
=
!
selection
.
length
},
/** 新增按钮操作 */
handleAdd
()
{
this
.
reset
()
this
.
open
=
true
this
.
title
=
'新增社团成员'
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
this
.
reset
()
const
ids
=
row
.
id
||
this
.
ids
getPic
(
ids
).
then
((
response
)
=>
{
this
.
form
=
response
.
data
}
this
.
open
=
true
this
.
title
=
'修改社团成员信息'
})
},
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
$modal
.
loading
(
'正在上传数据,请稍等...'
)
if
(
this
.
form
.
id
!=
null
)
{
updatePic
({
...
this
.
form
})
.
then
((
response
)
=>
{
this
.
$modal
.
closeLoading
()
this
.
$modal
.
msgSuccess
(
'修改成功'
)
this
.
open
=
false
this
.
getList
()
})
.
catch
((
error
)
=>
{
this
.
$modal
.
closeLoading
()
})
}
else
{
addPic
({
...
this
.
form
,
isShow
:
'0'
})
.
then
((
response
)
=>
{
this
.
$modal
.
closeLoading
()
this
.
$modal
.
msgSuccess
(
'新增成功'
)
this
.
open
=
false
this
.
getList
()
})
.
catch
((
error
)
=>
{
this
.
$modal
.
closeLoading
()
})
}
}
})
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
ids
=
row
.
id
||
this
.
ids
if
(
ids
)
{
this
.
$modal
.
confirm
(
`是否确认删除选中的
${
Object
.
hasOwnProperty
.
call
(
ids
,
'length'
)
?
ids
.
length
:
1
}
条数据?`
)
.
then
(()
=>
{
this
.
$modal
.
loading
(
'正在处理数据,请稍等...'
)
return
delPic
(
ids
)
})
.
then
(()
=>
{
this
.
$modal
.
closeLoading
()
this
.
getList
()
this
.
$modal
.
msgSuccess
(
'删除成功'
)
})
.
catch
(()
=>
{
this
.
$modal
.
closeLoading
()
})
}
}
}
}
</
script
>
<
style
scoped
>
.avatar
,
.avatar-uploader
,
.el-icon-plus
{
width
:
650px
;
width
:
650px
;
}
</
style
>
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