|
@@ -8,12 +8,12 @@
|
|
@reset="onReSet"
|
|
@reset="onReSet"
|
|
save-key="studentDetail-studentLebao"
|
|
save-key="studentDetail-studentLebao"
|
|
>
|
|
>
|
|
- <el-form-item>
|
|
|
|
|
|
+ <el-form-item prop="specification">
|
|
<el-input
|
|
<el-input
|
|
placeholder="具体型号"
|
|
placeholder="具体型号"
|
|
clearable
|
|
clearable
|
|
@keyup.enter.native="onSearch"
|
|
@keyup.enter.native="onSearch"
|
|
- v-model.trim="searchForm.vipGroupName"
|
|
|
|
|
|
+ v-model.trim="searchForm.specification"
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item prop="goodsCategoryId">
|
|
<el-form-item prop="goodsCategoryId">
|
|
@@ -30,9 +30,9 @@
|
|
></el-option>
|
|
></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item>
|
|
|
|
|
|
+ <el-form-item prop="status">
|
|
<el-select
|
|
<el-select
|
|
- v-model.trim="searchForm.attendanceStatus"
|
|
|
|
|
|
+ v-model.trim="searchForm.status"
|
|
filterable
|
|
filterable
|
|
clearable
|
|
clearable
|
|
placeholder="是否乐保"
|
|
placeholder="是否乐保"
|
|
@@ -48,7 +48,7 @@
|
|
<el-button type="primary" native-type="reset">重置</el-button>
|
|
<el-button type="primary" native-type="reset">重置</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</save-form>
|
|
</save-form>
|
|
- <el-button @click="addMusicVisible = true" type="primary"
|
|
|
|
|
|
+ <el-button @click="addMusicVisible = true" type="primary" v-permission="'studentInstrument/add'"
|
|
>新增乐器</el-button
|
|
>新增乐器</el-button
|
|
>
|
|
>
|
|
<div class="tableWrap">
|
|
<div class="tableWrap">
|
|
@@ -58,17 +58,25 @@
|
|
>
|
|
>
|
|
<el-table-column label="具体型号" align="center" prop="id">
|
|
<el-table-column label="具体型号" align="center" prop="id">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <copy-text>{{ scope.row.id }}</copy-text>
|
|
|
|
|
|
+ <copy-text>{{ scope.row.specification }}</copy-text>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="乐器分类" align="center" prop="name">
|
|
<el-table-column label="乐器分类" align="center" prop="name">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <copy-text>{{ scope.row.name }}</copy-text>
|
|
|
|
|
|
+ <copy-text>{{ scope.row.goodsCategoryName }}</copy-text>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="是否乐保" align="center" prop="teacherName">
|
|
<el-table-column label="是否乐保" align="center" prop="teacherName">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{ scope.row.status?'是':'否' }}
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="乐保有效期" align="center" prop="studentNum">
|
|
<el-table-column label="乐保有效期" align="center" prop="studentNum">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ {{ scope.row.startTime|formatTimer}}~{{scope.row.endTime | formatTimer}}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
<pagination
|
|
<pagination
|
|
@@ -87,7 +95,7 @@
|
|
:visible.sync="addMusicVisible"
|
|
:visible.sync="addMusicVisible"
|
|
v-if="addMusicVisible"
|
|
v-if="addMusicVisible"
|
|
>
|
|
>
|
|
- <addMusic />
|
|
|
|
|
|
+ <addMusic :categoryList='categoryList' ref='addMusic' @getList='getList'/>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click="addMusicVisible = false">取 消</el-button>
|
|
<el-button @click="addMusicVisible = false">取 消</el-button>
|
|
<el-button type="primary" @click="addMusicSubmit">确 定</el-button>
|
|
<el-button type="primary" @click="addMusicSubmit">确 定</el-button>
|
|
@@ -98,7 +106,7 @@
|
|
<script>
|
|
<script>
|
|
import pagination from "@/components/Pagination/index";
|
|
import pagination from "@/components/Pagination/index";
|
|
import addMusic from "../modals/addMusic";
|
|
import addMusic from "../modals/addMusic";
|
|
-import { getSoundTree } from "@/api/buildTeam";
|
|
|
|
|
|
+import { getInstrument } from "@/api/buildTeam";
|
|
import { categoryListTree } from "@/api/businessManager";
|
|
import { categoryListTree } from "@/api/businessManager";
|
|
export default {
|
|
export default {
|
|
components: { pagination, addMusic },
|
|
components: { pagination, addMusic },
|
|
@@ -107,7 +115,9 @@ export default {
|
|
soundLists: [],
|
|
soundLists: [],
|
|
tableList: [],
|
|
tableList: [],
|
|
searchForm: {
|
|
searchForm: {
|
|
|
|
+ specification:'',
|
|
goodsCategoryId: "",
|
|
goodsCategoryId: "",
|
|
|
|
+ studentId:this.$route.query.userId
|
|
},
|
|
},
|
|
pageInfo: {
|
|
pageInfo: {
|
|
// 分页规则
|
|
// 分页规则
|
|
@@ -122,13 +132,25 @@ export default {
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.getCategory();
|
|
this.getCategory();
|
|
|
|
+ this.getList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- onSearch() {},
|
|
|
|
|
|
+ onSearch() {
|
|
|
|
+ this.pageInfo.page = 1;
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
onReSet() {},
|
|
onReSet() {},
|
|
- getList() {},
|
|
|
|
|
|
+ async getList() {
|
|
|
|
+ try{
|
|
|
|
+ const res = await getInstrument({...this.searchForm,rows:this.pageInfo.limit,page:this.pageInfo.page})
|
|
|
|
+ this.tableList = res.data.rows
|
|
|
|
+ }catch(e){
|
|
|
|
+ console.log(e)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
addMusicSubmit() {
|
|
addMusicSubmit() {
|
|
- this.addMusicVisible = false;
|
|
|
|
|
|
+ this.$refs.addMusic.addMusicSubmit()
|
|
},
|
|
},
|
|
getCategory() {
|
|
getCategory() {
|
|
let params = {
|
|
let params = {
|