|
@@ -19,7 +19,7 @@
|
|
v-model.trim="searchForm.subjectId"
|
|
v-model.trim="searchForm.subjectId"
|
|
filterable
|
|
filterable
|
|
clearable
|
|
clearable
|
|
- placeholder="请选择声部"
|
|
|
|
|
|
+ placeholder="声部"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in selects.subjects"
|
|
v-for="item in selects.subjects"
|
|
@@ -35,25 +35,38 @@
|
|
v-model.trim="searchForm.degreeType"
|
|
v-model.trim="searchForm.degreeType"
|
|
filterable
|
|
filterable
|
|
clearable
|
|
clearable
|
|
- placeholder="请选择级别"
|
|
|
|
|
|
+ placeholder="报考项目"
|
|
>
|
|
>
|
|
- <el-option :value="4" label="2023级寒假考级"></el-option>
|
|
|
|
- <el-option :value="3" label="2022级暑假考级"></el-option>
|
|
|
|
- <el-option :value="2" label="2022级寒假考级"></el-option>
|
|
|
|
- <el-option :value="1" label="2021级寒假考级"></el-option>
|
|
|
|
|
|
+ <el-option value="GRADE" label="专业考级"></el-option>
|
|
|
|
+ <el-option value="THEORY" label="乐理考级"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-select
|
|
<el-select
|
|
class="multiple"
|
|
class="multiple"
|
|
- v-model.trim="searchForm.status"
|
|
|
|
|
|
+ v-model.trim="searchForm.level"
|
|
filterable
|
|
filterable
|
|
clearable
|
|
clearable
|
|
- placeholder="请选择上传证件"
|
|
|
|
|
|
+ placeholder="级别"
|
|
>
|
|
>
|
|
- <el-option :value="1" label="全部"></el-option>
|
|
|
|
- <el-option :value="2" label="无需上传"></el-option>
|
|
|
|
- <el-option :value="3" label="需上传"></el-option>
|
|
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in degreeLevel"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :value="item.value"
|
|
|
|
+ :label="item.text"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-select
|
|
|
|
+ class="multiple"
|
|
|
|
+ v-model.trim="searchForm.credentials"
|
|
|
|
+ filterable
|
|
|
|
+ clearable
|
|
|
|
+ placeholder="上传证件"
|
|
|
|
+ >
|
|
|
|
+ <el-option :value="0" label="无需上传"></el-option>
|
|
|
|
+ <el-option :value="1" label="需上传"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
@@ -63,7 +76,7 @@
|
|
</save-form>
|
|
</save-form>
|
|
|
|
|
|
<el-button
|
|
<el-button
|
|
- v-permission="'/teacherOperationAdd'"
|
|
|
|
|
|
+ v-permission="'degreeLevelFee/save'"
|
|
type="primary"
|
|
type="primary"
|
|
@click="onLevelSetting"
|
|
@click="onLevelSetting"
|
|
style="margin-bottom:20px"
|
|
style="margin-bottom:20px"
|
|
@@ -80,45 +93,34 @@
|
|
prop="id"
|
|
prop="id"
|
|
label="编号"
|
|
label="编号"
|
|
min-width="60px"
|
|
min-width="60px"
|
|
|
|
+ align="center"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
- <el-table-column prop="name" label="声部" min-width="120px">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <copy-text>{{ scope.row.name }}</copy-text>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <el-table-column prop="subjectName" label="声部" align="center">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center" prop="orderNo" label="级别">
|
|
|
|
|
|
+ <el-table-column align="center" prop="degreeType" label="级别">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <copy-text>{{ scope.row.orderNo }}</copy-text>
|
|
|
|
|
|
+ {{
|
|
|
|
+ scope.row.degreeType === "GRADE" ? "专业考级" : "乐理考级"
|
|
|
|
+ }}/{{ degreeLevelCn[scope.row.level] }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column
|
|
|
|
- align="center"
|
|
|
|
- prop="transNo"
|
|
|
|
- label="报名金额"
|
|
|
|
- min-width="110px"
|
|
|
|
- >
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <el-tooltip placement="top-start">
|
|
|
|
- <div slot="content">{{ scope.row.transNo }}</div>
|
|
|
|
- </el-tooltip>
|
|
|
|
- <copy-text>{{ scope.row.transNo }}</copy-text>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <el-table-column align="center" prop="fee" label="报名金额">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center" prop="city" label="上传证书">
|
|
|
|
|
|
+ <el-table-column align="center" prop="credentials" label="上传证书">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <copy-text>{{ scope.row.city }}</copy-text>
|
|
|
|
|
|
+ {{ !scope.row.credentials ? "无需上传" : "需上传" }}
|
|
</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">
|
|
<el-button
|
|
<el-button
|
|
- v-if="$helpers.permission('degree/refund')"
|
|
|
|
|
|
+ v-if="$helpers.permission('degreeLevelFee/update')"
|
|
type="text"
|
|
type="text"
|
|
@click="onLevelSetting('update', scope.row)"
|
|
@click="onLevelSetting('update', scope.row)"
|
|
>修改</el-button
|
|
>修改</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
- v-if="$helpers.permission('degree/refund')"
|
|
|
|
|
|
+ v-if="$helpers.permission('degreeLevelFee/remove')"
|
|
@click="onDelete(scope.row)"
|
|
@click="onDelete(scope.row)"
|
|
type="text"
|
|
type="text"
|
|
>删除</el-button
|
|
>删除</el-button
|
|
@@ -145,16 +147,24 @@
|
|
import levelSettingAdd from "./model/levelSettingAdd";
|
|
import levelSettingAdd from "./model/levelSettingAdd";
|
|
import levelSettingUpdate from "./model/levelSettingUpdate";
|
|
import levelSettingUpdate from "./model/levelSettingUpdate";
|
|
import pagination from "@/components/Pagination/index";
|
|
import pagination from "@/components/Pagination/index";
|
|
-import { getTimes } from "@/utils";
|
|
|
|
|
|
+import {
|
|
|
|
+ degreeLevelFeePage,
|
|
|
|
+ degreeLevelFeeRemove,
|
|
|
|
+ degreeLevelCn,
|
|
|
|
+ degreeLevel
|
|
|
|
+} from "./levelManageApi";
|
|
export default {
|
|
export default {
|
|
components: { pagination, levelSettingAdd, levelSettingUpdate },
|
|
components: { pagination, levelSettingAdd, levelSettingUpdate },
|
|
name: "levelSetting",
|
|
name: "levelSetting",
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ degreeLevelCn,
|
|
|
|
+ degreeLevel,
|
|
searchForm: {
|
|
searchForm: {
|
|
subjectId: null,
|
|
subjectId: null,
|
|
degreeType: null,
|
|
degreeType: null,
|
|
- status: null
|
|
|
|
|
|
+ level: null,
|
|
|
|
+ credentials: null
|
|
},
|
|
},
|
|
tableList: [],
|
|
tableList: [],
|
|
pageInfo: {
|
|
pageInfo: {
|
|
@@ -178,30 +188,22 @@ export default {
|
|
},
|
|
},
|
|
onReSet() {
|
|
onReSet() {
|
|
// 重置搜索
|
|
// 重置搜索
|
|
-
|
|
|
|
- this.orderDate = null;
|
|
|
|
this.$refs.searchForm.resetFields();
|
|
this.$refs.searchForm.resetFields();
|
|
// this.$set(this.searchForm,'status','pay')
|
|
// this.$set(this.searchForm,'status','pay')
|
|
this.searchForm.status = 2;
|
|
this.searchForm.status = 2;
|
|
this.onSearch();
|
|
this.onSearch();
|
|
},
|
|
},
|
|
- getList() {
|
|
|
|
- let { orderDate, ...rest } = this.searchForm;
|
|
|
|
- let params = {
|
|
|
|
- ...rest,
|
|
|
|
- page: this.pageInfo.page,
|
|
|
|
- rows: this.pageInfo.limit,
|
|
|
|
- ...getTimes(orderDate, ["startTime", "endTime"])
|
|
|
|
- };
|
|
|
|
- // degreeQueryPage(params).then(res => {
|
|
|
|
- // let result = res.data;
|
|
|
|
- // if (res.code == 200) {
|
|
|
|
- // this.totalNumber = result.applyNum;
|
|
|
|
- // this.totalAmount = result.totalAmount;
|
|
|
|
- // this.tableList = result.rows;
|
|
|
|
- // this.pageInfo.total = result.total;
|
|
|
|
- // }
|
|
|
|
- // });
|
|
|
|
|
|
+ async getList() {
|
|
|
|
+ try {
|
|
|
|
+ let params = {
|
|
|
|
+ ...this.searchForm,
|
|
|
|
+ page: this.pageInfo.page,
|
|
|
|
+ rows: this.pageInfo.limit
|
|
|
|
+ };
|
|
|
|
+ const { data } = await degreeLevelFeePage(params);
|
|
|
|
+ this.tableList = data.rows || [];
|
|
|
|
+ this.pageInfo.total = data.total;
|
|
|
|
+ } catch {}
|
|
},
|
|
},
|
|
onLevelSetting(type, row) {
|
|
onLevelSetting(type, row) {
|
|
if (type === "update") {
|
|
if (type === "update") {
|
|
@@ -216,15 +218,15 @@ export default {
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
type: "warning"
|
|
type: "warning"
|
|
}).then(async () => {
|
|
}).then(async () => {
|
|
- // try {
|
|
|
|
- // await degreeRefund({
|
|
|
|
- // degreeRegistrationId: item.id
|
|
|
|
- // });
|
|
|
|
- // this.$message.success("退费成功");
|
|
|
|
- // this.getList();
|
|
|
|
- // } catch {
|
|
|
|
- // //
|
|
|
|
- // }
|
|
|
|
|
|
+ try {
|
|
|
|
+ await degreeLevelFeeRemove({
|
|
|
|
+ id: item.id
|
|
|
|
+ });
|
|
|
|
+ this.$message.success("删除成功");
|
|
|
|
+ this.getList();
|
|
|
|
+ } catch {
|
|
|
|
+ //
|
|
|
|
+ }
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|