|
@@ -4,141 +4,182 @@
|
|
<div class="squrt"></div>网管课列表
|
|
<div class="squrt"></div>网管课列表
|
|
</h2>-->
|
|
</h2>-->
|
|
<div class="topWrap">
|
|
<div class="topWrap">
|
|
- <div class="newBand"
|
|
|
|
- v-permission="'export/practiceGroup'"
|
|
|
|
- @click="onStudentExport"
|
|
|
|
- style="width: 120px;">网管课续费提醒</div>
|
|
|
|
- <div class="newBand"
|
|
|
|
- v-permission="'export/practiceGroupList'"
|
|
|
|
- @click="onPracticeExport"
|
|
|
|
- style="width: 120px;">网管课导出</div>
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="newBand"
|
|
|
|
+ v-permission="'export/practiceGroup'"
|
|
|
|
+ @click="onStudentExport"
|
|
|
|
+ style="width: 120px"
|
|
|
|
+ >
|
|
|
|
+ 网管课续费提醒
|
|
|
|
+ </div>
|
|
|
|
+ <div
|
|
|
|
+ class="newBand"
|
|
|
|
+ v-permission="'export/practiceGroupList'"
|
|
|
|
+ @click="onPracticeExport"
|
|
|
|
+ style="width: 120px"
|
|
|
|
+ >
|
|
|
|
+ 网管课导出
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="m-core">
|
|
<div class="m-core">
|
|
- <save-form :inline="true"
|
|
|
|
- class="searchForm"
|
|
|
|
- @submit="search"
|
|
|
|
- @reset="onReSet"
|
|
|
|
- :model.sync="searchForm">
|
|
|
|
|
|
+ <save-form
|
|
|
|
+ :inline="true"
|
|
|
|
+ class="searchForm"
|
|
|
|
+ save-key="accompanyList"
|
|
|
|
+ @submit="search"
|
|
|
|
+ @reset="onReSet"
|
|
|
|
+ :model.sync="searchForm"
|
|
|
|
+ >
|
|
<!-- 状态 指导老师 活动方案-->
|
|
<!-- 状态 指导老师 活动方案-->
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-input v-model.trim="searchForm.search"
|
|
|
|
- clearable
|
|
|
|
- placeholder="课程组名称"></el-input>
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ v-model.trim="searchForm.search"
|
|
|
|
+ clearable
|
|
|
|
+ placeholder="课程组名称"
|
|
|
|
+ ></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-select class="multiple"
|
|
|
|
- v-model.trim="searchForm.organIdList"
|
|
|
|
- filterable
|
|
|
|
- clearable
|
|
|
|
- placeholder="请选择分部">
|
|
|
|
- <el-option v-for="(item,index) in selects.branchs"
|
|
|
|
- :key="index"
|
|
|
|
- :label="item.name"
|
|
|
|
- :value="item.id"></el-option>
|
|
|
|
|
|
+ <el-select
|
|
|
|
+ class="multiple"
|
|
|
|
+ v-model.trim="searchForm.organIdList"
|
|
|
|
+ filterable
|
|
|
|
+ clearable
|
|
|
|
+ placeholder="请选择分部"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="(item, index) in selects.branchs"
|
|
|
|
+ :key="index"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ ></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-select v-model.trim="searchForm.practiceGroupType"
|
|
|
|
- clearable
|
|
|
|
- filterable
|
|
|
|
- placeholder="课程组类型">
|
|
|
|
- <el-option v-for="(item,index) in practiceGroupType"
|
|
|
|
- :key="index"
|
|
|
|
- :value="item.value"
|
|
|
|
- :label="item.label"></el-option>
|
|
|
|
|
|
+ <el-select
|
|
|
|
+ v-model.trim="searchForm.practiceGroupType"
|
|
|
|
+ clearable
|
|
|
|
+ filterable
|
|
|
|
+ placeholder="课程组类型"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="(item, index) in practiceGroupType"
|
|
|
|
+ :key="index"
|
|
|
|
+ :value="item.value"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ ></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item prop="status">
|
|
<el-form-item prop="status">
|
|
- <el-select class="multiple"
|
|
|
|
- v-model.trim="searchForm.hasEducationalTeacherId"
|
|
|
|
- filterable
|
|
|
|
- clearable
|
|
|
|
- placeholder="是否有乐团主管">
|
|
|
|
- <el-option label="是"
|
|
|
|
- value="true"></el-option>
|
|
|
|
- <el-option label="否"
|
|
|
|
- value="false"></el-option>
|
|
|
|
|
|
+ <el-select
|
|
|
|
+ class="multiple"
|
|
|
|
+ v-model.trim="searchForm.hasEducationalTeacherId"
|
|
|
|
+ filterable
|
|
|
|
+ clearable
|
|
|
|
+ placeholder="是否有乐团主管"
|
|
|
|
+ >
|
|
|
|
+ <el-option label="是" value="true"></el-option>
|
|
|
|
+ <el-option label="否" value="false"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <remote-search :commit='"setTeachers"' v-model='searchForm.teacherId' />
|
|
|
|
|
|
+ <remote-search
|
|
|
|
+ :commit="'setTeachers'"
|
|
|
|
+ v-model="searchForm.teacherId"
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-select v-model.trim="searchForm.groupStatus"
|
|
|
|
- clearable
|
|
|
|
- filterable
|
|
|
|
- placeholder="课程组状态">
|
|
|
|
- <el-option v-for="(item,index) in commGroupStatus"
|
|
|
|
- :key="index"
|
|
|
|
- :value="item.value"
|
|
|
|
- :label="item.label"></el-option>
|
|
|
|
|
|
+ <el-select
|
|
|
|
+ v-model.trim="searchForm.groupStatus"
|
|
|
|
+ clearable
|
|
|
|
+ filterable
|
|
|
|
+ placeholder="课程组状态"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="(item, index) in commGroupStatus"
|
|
|
|
+ :key="index"
|
|
|
|
+ :value="item.value"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ ></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-select v-model.trim="searchForm.firstOrRenew"
|
|
|
|
- clearable
|
|
|
|
- filterable
|
|
|
|
- placeholder="是否续费">
|
|
|
|
- <el-option label="首充"
|
|
|
|
- value="1"></el-option>
|
|
|
|
- <el-option label="续费"
|
|
|
|
- value="0"></el-option>
|
|
|
|
- <el-option label="免费"
|
|
|
|
- value="2"></el-option>
|
|
|
|
|
|
+ <el-select
|
|
|
|
+ v-model.trim="searchForm.firstOrRenew"
|
|
|
|
+ clearable
|
|
|
|
+ filterable
|
|
|
|
+ placeholder="是否续费"
|
|
|
|
+ >
|
|
|
|
+ <el-option label="首充" value="1"></el-option>
|
|
|
|
+ <el-option label="续费" value="0"></el-option>
|
|
|
|
+ <el-option label="免费" value="2"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-button native-type="submit"
|
|
|
|
- type="danger">搜索</el-button>
|
|
|
|
- <el-button native-type="reset"
|
|
|
|
- type="primary">重置</el-button>
|
|
|
|
|
|
+ <el-button native-type="submit" type="danger">搜索</el-button>
|
|
|
|
+ <el-button native-type="reset" type="primary">重置</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</save-form>
|
|
</save-form>
|
|
<!-- tab -->
|
|
<!-- tab -->
|
|
<div class="tableWrap">
|
|
<div class="tableWrap">
|
|
- <el-table style="width: 100%"
|
|
|
|
- :header-cell-style="{background:'#EDEEF0',color:'#444'}"
|
|
|
|
- :data="tableData">
|
|
|
|
- <el-table-column align="center"
|
|
|
|
- prop="id"
|
|
|
|
- label="课程组编号"
|
|
|
|
- width="100">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <copy-text>{{scope.row.id}}</copy-text>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column align="center"
|
|
|
|
- prop="name"
|
|
|
|
- label="课程组名称"
|
|
|
|
- width="100">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <copy-text>{{scope.row.name}}</copy-text>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column align="center"
|
|
|
|
- prop="type"
|
|
|
|
- label="课程组类型"
|
|
|
|
- width="100">
|
|
|
|
|
|
+ <el-table
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
|
|
+ :data="tableData"
|
|
|
|
+ >
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="id"
|
|
|
|
+ label="课程组编号"
|
|
|
|
+ width="100"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <copy-text>{{ scope.row.id }}</copy-text>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="name"
|
|
|
|
+ label="课程组名称"
|
|
|
|
+ width="100"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <copy-text>{{ scope.row.name }}</copy-text>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="type"
|
|
|
|
+ label="课程组类型"
|
|
|
|
+ width="100"
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
- <p>{{scope.row.type | comType}}</p>
|
|
|
|
|
|
+ <p>{{ scope.row.type | comType }}</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center"
|
|
|
|
- prop="organName"
|
|
|
|
- label="所属分部"></el-table-column>
|
|
|
|
|
|
+ <el-table-column align="center" prop="organName" label="所属分部">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <copy-text>{{ scope.row.organName }}</copy-text>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<!-- educationalTeacherId -->
|
|
<!-- educationalTeacherId -->
|
|
- <el-table-column align="center"
|
|
|
|
- prop="educationalTeacherName"
|
|
|
|
- label="乐团主管"></el-table-column>
|
|
|
|
- <el-table-column align="center"
|
|
|
|
- prop="teacherName"
|
|
|
|
- label="指导老师"></el-table-column>
|
|
|
|
- <el-table-column align="center"
|
|
|
|
- prop="studentNum"
|
|
|
|
- label="班级人数"></el-table-column>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="educationalTeacherName"
|
|
|
|
+ label="乐团主管"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column align="center" prop="teacherName" label="指导老师">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <copy-text>{{ scope.row.teacherName }}</copy-text>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="studentNum"
|
|
|
|
+ label="班级人数"
|
|
|
|
+ ></el-table-column>
|
|
<!-- <el-table-column align="center" label="课程单价">
|
|
<!-- <el-table-column align="center" label="课程单价">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
@@ -147,132 +188,151 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>-->
|
|
</el-table-column>-->
|
|
- <el-table-column align="center"
|
|
|
|
- label="当前课次">
|
|
|
|
|
|
+ <el-table-column align="center" label="当前课次">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
- <p>{{scope.row.currentClassTimes + '/' + scope.row.totalClassTimes}}</p>
|
|
|
|
|
|
+ <p>
|
|
|
|
+ {{
|
|
|
|
+ scope.row.currentClassTimes +
|
|
|
|
+ "/" +
|
|
|
|
+ scope.row.totalClassTimes
|
|
|
|
+ }}
|
|
|
|
+ </p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center"
|
|
|
|
- prop="coursesStartDate"
|
|
|
|
- label="开课时间"
|
|
|
|
- width="120">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="coursesStartDate"
|
|
|
|
+ label="开课时间"
|
|
|
|
+ width="120"
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
- <p>{{scope.row.coursesStartDate | formatTimer}}</p>
|
|
|
|
|
|
+ <p>{{ scope.row.coursesStartDate | formatTimer }}</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center"
|
|
|
|
- prop="coursesExpireDate"
|
|
|
|
- label="结束时间"
|
|
|
|
- width="120">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="coursesExpireDate"
|
|
|
|
+ label="结束时间"
|
|
|
|
+ width="120"
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
- <p>{{scope.row.coursesExpireDate | formatTimer}}</p>
|
|
|
|
|
|
+ <p>{{ scope.row.coursesExpireDate | formatTimer }}</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center"
|
|
|
|
- prop="groupStatus"
|
|
|
|
- label="课程组状态"
|
|
|
|
- width="100">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="groupStatus"
|
|
|
|
+ label="课程组状态"
|
|
|
|
+ width="100"
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
- <p>{{scope.row.groupStatus | comCourseGroup}}</p>
|
|
|
|
|
|
+ <p>{{ scope.row.groupStatus | comCourseGroup }}</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center"
|
|
|
|
- label="是否续费"
|
|
|
|
- fixed="right">
|
|
|
|
|
|
+ <el-table-column align="center" label="是否续费" fixed="right">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
<p v-if="scope.row.buyMonths == 0">免费</p>
|
|
<p v-if="scope.row.buyMonths == 0">免费</p>
|
|
- <p v-if="scope.row.buyMonths > 0">{{scope.row.beRenewGroupId>0?'续费':'首充'}}</p>
|
|
|
|
|
|
+ <p v-if="scope.row.buyMonths > 0">
|
|
|
|
+ {{ scope.row.beRenewGroupId > 0 ? "续费" : "首充" }}
|
|
|
|
+ </p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column width="150"
|
|
|
|
- prop="memo"
|
|
|
|
- label="备注"
|
|
|
|
- fixed="right">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <overflow-text :text="scope.row.memo" width="150px"></overflow-text>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ <el-table-column width="150" prop="memo" label="备注" fixed="right">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <overflow-text
|
|
|
|
+ :text="scope.row.memo"
|
|
|
|
+ width="150px"
|
|
|
|
+ ></overflow-text>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
|
|
- <el-table-column align="center"
|
|
|
|
- width="200"
|
|
|
|
- fixed="right"
|
|
|
|
- label="操作">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ width="200"
|
|
|
|
+ fixed="right"
|
|
|
|
+ label="操作"
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
<!-- v-permission="'courseSchedule/classStartDateAdjust'" v-if="!scope.row.isSettlement" -->
|
|
<!-- v-permission="'courseSchedule/classStartDateAdjust'" v-if="!scope.row.isSettlement" -->
|
|
- <el-button type="text"
|
|
|
|
- @click="lookCrouse(scope.row)">查看</el-button>
|
|
|
|
- <el-button type="text"
|
|
|
|
- v-if="scope.row.groupStatus == 'NORMAL' && permission('practiceGroupManage/cancelGroup')"
|
|
|
|
- @click="closeCrouse(scope.row)">关闭</el-button>
|
|
|
|
- <el-button type="text"
|
|
|
|
- v-if="permission('practiceGroupManage/updateMemo')"
|
|
|
|
- @click="resetMemo(scope.row)">修改备注</el-button>
|
|
|
|
|
|
+ <el-button type="text" @click="lookCrouse(scope.row)"
|
|
|
|
+ >查看</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button
|
|
|
|
+ type="text"
|
|
|
|
+ v-if="
|
|
|
|
+ scope.row.groupStatus == 'NORMAL' &&
|
|
|
|
+ permission('practiceGroupManage/cancelGroup')
|
|
|
|
+ "
|
|
|
|
+ @click="closeCrouse(scope.row)"
|
|
|
|
+ >关闭</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button
|
|
|
|
+ type="text"
|
|
|
|
+ v-if="permission('practiceGroupManage/updateMemo')"
|
|
|
|
+ @click="resetMemo(scope.row)"
|
|
|
|
+ >修改备注</el-button
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- <pagination sync :total.sync="rules.total"
|
|
|
|
- :page.sync="rules.page"
|
|
|
|
- :limit.sync="rules.limit"
|
|
|
|
- :page-sizes="rules.page_size"
|
|
|
|
- @pagination="getList" />
|
|
|
|
|
|
+ <pagination
|
|
|
|
+ sync
|
|
|
|
+ :total.sync="rules.total"
|
|
|
|
+ :page.sync="rules.page"
|
|
|
|
+ :limit.sync="rules.limit"
|
|
|
|
+ :page-sizes="rules.page_size"
|
|
|
|
+ @pagination="getList"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <el-dialog title="关闭课程组"
|
|
|
|
- width="400px"
|
|
|
|
- :visible.sync="closeVisible">
|
|
|
|
- <el-form :model="closeForm"
|
|
|
|
- ref="closeForm"
|
|
|
|
- label-position="right"
|
|
|
|
- label-width="80px;"
|
|
|
|
- :inline="true">
|
|
|
|
- <el-form-item label="是否退费"
|
|
|
|
- prop="isBasck">
|
|
|
|
- <el-radio v-model="closeForm.isBack"
|
|
|
|
- :label="true">是</el-radio>
|
|
|
|
- <el-radio v-model="closeForm.isBack"
|
|
|
|
- :label="false">否</el-radio>
|
|
|
|
|
|
+ <el-dialog title="关闭课程组" width="400px" :visible.sync="closeVisible">
|
|
|
|
+ <el-form
|
|
|
|
+ :model="closeForm"
|
|
|
|
+ ref="closeForm"
|
|
|
|
+ label-position="right"
|
|
|
|
+ label-width="80px;"
|
|
|
|
+ :inline="true"
|
|
|
|
+ >
|
|
|
|
+ <el-form-item label="是否退费" prop="isBasck">
|
|
|
|
+ <el-radio v-model="closeForm.isBack" :label="true">是</el-radio>
|
|
|
|
+ <el-radio v-model="closeForm.isBack" :label="false">否</el-radio>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="退费金额"
|
|
|
|
- v-if="closeForm.isBack"
|
|
|
|
- prop="money">
|
|
|
|
- <el-input type="number"
|
|
|
|
- @mousewheel.native.prevent
|
|
|
|
- v-model.trim="closeForm.money"></el-input>
|
|
|
|
|
|
+ <el-form-item label="退费金额" v-if="closeForm.isBack" prop="money">
|
|
|
|
+ <el-input
|
|
|
|
+ type="number"
|
|
|
|
+ @mousewheel.native.prevent
|
|
|
|
+ v-model.trim="closeForm.money"
|
|
|
|
+ ></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
- <div slot="footer"
|
|
|
|
- class="dialog-footer">
|
|
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
<el-button @click="closeVisible = false">取 消</el-button>
|
|
<el-button @click="closeVisible = false">取 消</el-button>
|
|
- <el-button type="primary"
|
|
|
|
- @click="submieCloseCrouse">确 定</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="submieCloseCrouse">确 定</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
- <el-dialog title="备注"
|
|
|
|
- width="400px"
|
|
|
|
- :visible.sync="memoVisible">
|
|
|
|
- <el-input type="textarea"
|
|
|
|
- v-model.trim="memoForm.memo"
|
|
|
|
- :rows="7"
|
|
|
|
- :maxlength="255"
|
|
|
|
- show-word-limit></el-input>
|
|
|
|
- <div slot="footer"
|
|
|
|
- class="dialog-footer">
|
|
|
|
|
|
+ <el-dialog title="备注" width="400px" :visible.sync="memoVisible">
|
|
|
|
+ <el-input
|
|
|
|
+ type="textarea"
|
|
|
|
+ v-model.trim="memoForm.memo"
|
|
|
|
+ :rows="7"
|
|
|
|
+ :maxlength="255"
|
|
|
|
+ show-word-limit
|
|
|
|
+ ></el-input>
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
<el-button @click="memoVisible = false">取 消</el-button>
|
|
<el-button @click="memoVisible = false">取 消</el-button>
|
|
- <el-button type="primary"
|
|
|
|
- @click="subMemo">确 定</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="subMemo">确 定</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
@@ -280,20 +340,20 @@
|
|
<script>
|
|
<script>
|
|
import pagination from "@/components/Pagination/index";
|
|
import pagination from "@/components/Pagination/index";
|
|
import { permission } from "@/utils/directivePage";
|
|
import { permission } from "@/utils/directivePage";
|
|
-import cleanDeep from 'clean-deep'
|
|
|
|
|
|
+import cleanDeep from "clean-deep";
|
|
import { commGroupStatus, practiceGroupType } from "@/utils/searchArray";
|
|
import { commGroupStatus, practiceGroupType } from "@/utils/searchArray";
|
|
import {
|
|
import {
|
|
getEmployeeOrgan,
|
|
getEmployeeOrgan,
|
|
practiceGroupManage,
|
|
practiceGroupManage,
|
|
cancelGroup,
|
|
cancelGroup,
|
|
- practiceUpdateMemo
|
|
|
|
|
|
+ practiceUpdateMemo,
|
|
} from "@/api/buildTeam";
|
|
} from "@/api/buildTeam";
|
|
import axios from "axios";
|
|
import axios from "axios";
|
|
import { getToken } from "@/utils/auth";
|
|
import { getToken } from "@/utils/auth";
|
|
import load from "@/utils/loading";
|
|
import load from "@/utils/loading";
|
|
export default {
|
|
export default {
|
|
components: { pagination },
|
|
components: { pagination },
|
|
- data () {
|
|
|
|
|
|
+ data() {
|
|
return {
|
|
return {
|
|
searchForm: {
|
|
searchForm: {
|
|
search: null,
|
|
search: null,
|
|
@@ -302,15 +362,15 @@ export default {
|
|
organIdList: null,
|
|
organIdList: null,
|
|
firstOrRenew: null,
|
|
firstOrRenew: null,
|
|
practiceGroupType: null,
|
|
practiceGroupType: null,
|
|
- groupStatus: null
|
|
|
|
|
|
+ groupStatus: null,
|
|
},
|
|
},
|
|
closeForm: {
|
|
closeForm: {
|
|
isBack: false,
|
|
isBack: false,
|
|
- money: null
|
|
|
|
|
|
+ money: null,
|
|
},
|
|
},
|
|
memoForm: {
|
|
memoForm: {
|
|
memo: "",
|
|
memo: "",
|
|
- groupId: ""
|
|
|
|
|
|
+ groupId: "",
|
|
},
|
|
},
|
|
memoVisible: false,
|
|
memoVisible: false,
|
|
closeVisible: false,
|
|
closeVisible: false,
|
|
@@ -326,11 +386,11 @@ export default {
|
|
limit: 10, // 限制显示条数
|
|
limit: 10, // 限制显示条数
|
|
page: 1, // 当前页
|
|
page: 1, // 当前页
|
|
total: 0, // 总条数
|
|
total: 0, // 总条数
|
|
- page_size: [10, 20, 40, 50] // 选择限制显示条数
|
|
|
|
- }
|
|
|
|
|
|
+ page_size: [10, 20, 40, 50], // 选择限制显示条数
|
|
|
|
+ },
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- mounted () {
|
|
|
|
|
|
+ mounted() {
|
|
if (this.$route.query.searchForm) {
|
|
if (this.$route.query.searchForm) {
|
|
this.$route.query.searchForm instanceof Object
|
|
this.$route.query.searchForm instanceof Object
|
|
? (this.searchForm = this.$route.query.searchForm)
|
|
? (this.searchForm = this.$route.query.searchForm)
|
|
@@ -343,24 +403,23 @@ export default {
|
|
}
|
|
}
|
|
this.init();
|
|
this.init();
|
|
},
|
|
},
|
|
- activated () {
|
|
|
|
|
|
+ activated() {
|
|
this.init();
|
|
this.init();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
- init () {
|
|
|
|
- this.$store.dispatch('setBranchs')
|
|
|
|
|
|
+ init() {
|
|
|
|
+ this.$store.dispatch("setBranchs");
|
|
|
|
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
- permission (str, parent) {
|
|
|
|
|
|
+ permission(str, parent) {
|
|
return permission(str, parent);
|
|
return permission(str, parent);
|
|
},
|
|
},
|
|
- search () {
|
|
|
|
|
|
+ search() {
|
|
this.rules.page = 1;
|
|
this.rules.page = 1;
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
- onReSet () {
|
|
|
|
|
|
+ onReSet() {
|
|
this.searchForm = {
|
|
this.searchForm = {
|
|
search: null,
|
|
search: null,
|
|
status: null,
|
|
status: null,
|
|
@@ -368,11 +427,11 @@ export default {
|
|
organIdList: null,
|
|
organIdList: null,
|
|
firstOrRenew: null,
|
|
firstOrRenew: null,
|
|
practiceGroupType: null,
|
|
practiceGroupType: null,
|
|
- groupStatus: null
|
|
|
|
|
|
+ groupStatus: null,
|
|
};
|
|
};
|
|
this.search();
|
|
this.search();
|
|
},
|
|
},
|
|
- onStudentExport () {
|
|
|
|
|
|
+ onStudentExport() {
|
|
// 导出VIP课
|
|
// 导出VIP课
|
|
// let searchForm = this.searchForm;
|
|
// let searchForm = this.searchForm;
|
|
let data = {
|
|
let data = {
|
|
@@ -386,29 +445,29 @@ export default {
|
|
const options = {
|
|
const options = {
|
|
method: "get",
|
|
method: "get",
|
|
headers: {
|
|
headers: {
|
|
- Authorization: getToken()
|
|
|
|
|
|
+ Authorization: getToken(),
|
|
},
|
|
},
|
|
params: data,
|
|
params: data,
|
|
url,
|
|
url,
|
|
- responseType: "blob"
|
|
|
|
|
|
+ responseType: "blob",
|
|
};
|
|
};
|
|
this.$confirm("网管课续费提醒导出?", "提示", {
|
|
this.$confirm("网管课续费提醒导出?", "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
- type: "warning"
|
|
|
|
|
|
+ type: "warning",
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
load.startLoading();
|
|
load.startLoading();
|
|
axios(options)
|
|
axios(options)
|
|
- .then(res => {
|
|
|
|
|
|
+ .then((res) => {
|
|
let blob = new Blob([res.data], {
|
|
let blob = new Blob([res.data], {
|
|
// type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
|
|
// type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
|
|
- type: "application/vnd.ms-excel;charset=utf-8"
|
|
|
|
|
|
+ type: "application/vnd.ms-excel;charset=utf-8",
|
|
//word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
|
|
//word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
|
|
});
|
|
});
|
|
|
|
|
|
let text = new Response(blob).text();
|
|
let text = new Response(blob).text();
|
|
- text.then(res => {
|
|
|
|
|
|
+ text.then((res) => {
|
|
// 判断是否报错
|
|
// 判断是否报错
|
|
if (res.indexOf("code") != -1) {
|
|
if (res.indexOf("code") != -1) {
|
|
let json = JSON.parse(res);
|
|
let json = JSON.parse(res);
|
|
@@ -425,14 +484,14 @@ export default {
|
|
});
|
|
});
|
|
load.endLoading();
|
|
load.endLoading();
|
|
})
|
|
})
|
|
- .catch(error => {
|
|
|
|
|
|
+ .catch((error) => {
|
|
this.$message.error("导出数据失败,请联系管理员");
|
|
this.$message.error("导出数据失败,请联系管理员");
|
|
load.endLoading();
|
|
load.endLoading();
|
|
});
|
|
});
|
|
})
|
|
})
|
|
- .catch(() => { });
|
|
|
|
|
|
+ .catch(() => {});
|
|
},
|
|
},
|
|
- onPracticeExport () {
|
|
|
|
|
|
+ onPracticeExport() {
|
|
// 导出VIP课
|
|
// 导出VIP课
|
|
let searchForm = this.searchForm;
|
|
let searchForm = this.searchForm;
|
|
let obj = {
|
|
let obj = {
|
|
@@ -442,35 +501,35 @@ export default {
|
|
hasEducationalTeacherId: searchForm.hasEducationalTeacherId || null,
|
|
hasEducationalTeacherId: searchForm.hasEducationalTeacherId || null,
|
|
type: searchForm.firstOrRenew || null,
|
|
type: searchForm.firstOrRenew || null,
|
|
practiceGroupType: searchForm.practiceGroupType || null,
|
|
practiceGroupType: searchForm.practiceGroupType || null,
|
|
- groupStatus: searchForm.groupStatus || null
|
|
|
|
|
|
+ groupStatus: searchForm.groupStatus || null,
|
|
};
|
|
};
|
|
let url = "/api-web/export/practiceGroupList";
|
|
let url = "/api-web/export/practiceGroupList";
|
|
const options = {
|
|
const options = {
|
|
method: "get",
|
|
method: "get",
|
|
headers: {
|
|
headers: {
|
|
- Authorization: getToken()
|
|
|
|
|
|
+ Authorization: getToken(),
|
|
},
|
|
},
|
|
params: cleanDeep(obj),
|
|
params: cleanDeep(obj),
|
|
url,
|
|
url,
|
|
- responseType: "blob"
|
|
|
|
|
|
+ responseType: "blob",
|
|
};
|
|
};
|
|
this.$confirm("网管课导出?", "提示", {
|
|
this.$confirm("网管课导出?", "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
- type: "warning"
|
|
|
|
|
|
+ type: "warning",
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
load.startLoading();
|
|
load.startLoading();
|
|
axios(options)
|
|
axios(options)
|
|
- .then(res => {
|
|
|
|
|
|
+ .then((res) => {
|
|
let blob = new Blob([res.data], {
|
|
let blob = new Blob([res.data], {
|
|
// type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
|
|
// type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
|
|
- type: "application/vnd.ms-excel;charset=utf-8"
|
|
|
|
|
|
+ type: "application/vnd.ms-excel;charset=utf-8",
|
|
//word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
|
|
//word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
|
|
});
|
|
});
|
|
|
|
|
|
let text = new Response(blob).text();
|
|
let text = new Response(blob).text();
|
|
- text.then(res => {
|
|
|
|
|
|
+ text.then((res) => {
|
|
// 判断是否报错
|
|
// 判断是否报错
|
|
if (res.indexOf("code") != -1) {
|
|
if (res.indexOf("code") != -1) {
|
|
let json = JSON.parse(res);
|
|
let json = JSON.parse(res);
|
|
@@ -487,14 +546,14 @@ export default {
|
|
});
|
|
});
|
|
load.endLoading();
|
|
load.endLoading();
|
|
})
|
|
})
|
|
- .catch(error => {
|
|
|
|
|
|
+ .catch((error) => {
|
|
this.$message.error("导出数据失败,请联系管理员");
|
|
this.$message.error("导出数据失败,请联系管理员");
|
|
load.endLoading();
|
|
load.endLoading();
|
|
});
|
|
});
|
|
})
|
|
})
|
|
- .catch(() => { });
|
|
|
|
|
|
+ .catch(() => {});
|
|
},
|
|
},
|
|
- getList () {
|
|
|
|
|
|
+ getList() {
|
|
let obj = {
|
|
let obj = {
|
|
search: this.searchForm.search || null,
|
|
search: this.searchForm.search || null,
|
|
teacherId: this.searchForm.teacherId || null,
|
|
teacherId: this.searchForm.teacherId || null,
|
|
@@ -505,31 +564,31 @@ export default {
|
|
this.searchForm.hasEducationalTeacherId || null,
|
|
this.searchForm.hasEducationalTeacherId || null,
|
|
type: this.searchForm.firstOrRenew || null,
|
|
type: this.searchForm.firstOrRenew || null,
|
|
practiceGroupType: this.searchForm.practiceGroupType || null,
|
|
practiceGroupType: this.searchForm.practiceGroupType || null,
|
|
- groupStatus: this.searchForm.groupStatus || null
|
|
|
|
|
|
+ groupStatus: this.searchForm.groupStatus || null,
|
|
};
|
|
};
|
|
- practiceGroupManage(obj).then(res => {
|
|
|
|
|
|
+ practiceGroupManage(obj).then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.tableData = res.data.rows;
|
|
this.tableData = res.data.rows;
|
|
this.rules.total = res.data.total;
|
|
this.rules.total = res.data.total;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- lookCrouse (row) {
|
|
|
|
|
|
+ lookCrouse(row) {
|
|
let rules = JSON.stringify(this.rules);
|
|
let rules = JSON.stringify(this.rules);
|
|
let searchForm = JSON.stringify(this.searchForm);
|
|
let searchForm = JSON.stringify(this.searchForm);
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: "/business/accompanys",
|
|
path: "/business/accompanys",
|
|
- query: { id: row.id, type: row.type }
|
|
|
|
|
|
+ query: { id: row.id, type: row.type },
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- closeCrouse (row) {
|
|
|
|
|
|
+ closeCrouse(row) {
|
|
this.activeRow = row;
|
|
this.activeRow = row;
|
|
this.closeVisible = true;
|
|
this.closeVisible = true;
|
|
},
|
|
},
|
|
- courseVisibleClose () {
|
|
|
|
|
|
+ courseVisibleClose() {
|
|
// 关闭弹窗前
|
|
// 关闭弹窗前
|
|
},
|
|
},
|
|
- submieCloseCrouse () {
|
|
|
|
|
|
+ submieCloseCrouse() {
|
|
// 提交关闭课程组
|
|
// 提交关闭课程组
|
|
if (this.closeForm.isBack) {
|
|
if (this.closeForm.isBack) {
|
|
if (!this.closeForm.money) {
|
|
if (!this.closeForm.money) {
|
|
@@ -543,8 +602,8 @@ export default {
|
|
cancelGroup({
|
|
cancelGroup({
|
|
groupId: this.activeRow.id,
|
|
groupId: this.activeRow.id,
|
|
groupType: "PRACTICE",
|
|
groupType: "PRACTICE",
|
|
- refundAmount: this.closeForm.money
|
|
|
|
- }).then(res => {
|
|
|
|
|
|
+ refundAmount: this.closeForm.money,
|
|
|
|
+ }).then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.$message.success("关闭成功");
|
|
this.$message.success("关闭成功");
|
|
this.getList();
|
|
this.getList();
|
|
@@ -552,34 +611,34 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- resetMemo (row) {
|
|
|
|
|
|
+ resetMemo(row) {
|
|
this.$set(this.memoForm, "memo", row.memo);
|
|
this.$set(this.memoForm, "memo", row.memo);
|
|
this.$set(this.memoForm, "groupId", row.id);
|
|
this.$set(this.memoForm, "groupId", row.id);
|
|
this.memoVisible = true;
|
|
this.memoVisible = true;
|
|
},
|
|
},
|
|
- subMemo () {
|
|
|
|
- practiceUpdateMemo(this.memoForm).then(res => {
|
|
|
|
|
|
+ subMemo() {
|
|
|
|
+ practiceUpdateMemo(this.memoForm).then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.$message.success("修改成功");
|
|
this.$message.success("修改成功");
|
|
this.memoVisible = false;
|
|
this.memoVisible = false;
|
|
this.getList();
|
|
this.getList();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
- closeVisible (val) {
|
|
|
|
|
|
+ closeVisible(val) {
|
|
if (!val) {
|
|
if (!val) {
|
|
this.activeRow = null;
|
|
this.activeRow = null;
|
|
(this.closeForm = {
|
|
(this.closeForm = {
|
|
isBack: false,
|
|
isBack: false,
|
|
- money: null
|
|
|
|
|
|
+ money: null,
|
|
}),
|
|
}),
|
|
this.$refs.closeForm.resetFields();
|
|
this.$refs.closeForm.resetFields();
|
|
this.closeVisible = false;
|
|
this.closeVisible = false;
|
|
}
|
|
}
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style lang='scss' scoped>
|
|
<style lang='scss' scoped>
|