|
@@ -9,6 +9,31 @@
|
|
|
:hideMoney="true"
|
|
|
/>
|
|
|
<otherform :form="other" ref="other" />
|
|
|
+
|
|
|
+ <div v-for="(item,index) in conrseTypeList" :key="index" style="margin-bottom:30px">
|
|
|
+ <el-alert :title="getTypeName(item.courseType)" :closable="false" class="alert" type="info">
|
|
|
+ </el-alert>
|
|
|
+ <descriptions :column="2">
|
|
|
+ <descriptions-item label="原价:">
|
|
|
+ <el-input v-model="item.courseOriginalPrice" size='mini'></el-input>
|
|
|
+ </descriptions-item>
|
|
|
+ <descriptions-item label="现价:">
|
|
|
+ <el-input v-model="item.courseCurrentPrice" size='mini'></el-input>
|
|
|
+ </descriptions-item>
|
|
|
+ </descriptions>
|
|
|
+ </div>
|
|
|
+ <!-- <descriptions :column="2">
|
|
|
+ <descriptions-item label="原价:">{{
|
|
|
+
|
|
|
+ }}</descriptions-item>
|
|
|
+ <descriptions-item label="现价:">
|
|
|
+ <overflow-text
|
|
|
+ :text="auditDto.musicGroupName"
|
|
|
+ width="100%"
|
|
|
+ ></overflow-text>
|
|
|
+ </descriptions-item>
|
|
|
+ </descriptions> -->
|
|
|
+ <!-- -->
|
|
|
<el-table
|
|
|
:data="dataList"
|
|
|
:header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
@@ -39,13 +64,13 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="现价">
|
|
|
<template slot-scope="scope">
|
|
|
- <div >
|
|
|
+ <div>
|
|
|
<div
|
|
|
class="courseDiv"
|
|
|
v-for="(item, index) in scope.row.courseList"
|
|
|
:key="index"
|
|
|
>
|
|
|
- <el-input v-model="item.courseCurrentPrice"></el-input>
|
|
|
+ <el-input v-model="item.courseCurrentPrice" size='mini'></el-input>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -58,7 +83,7 @@
|
|
|
v-for="(item, index) in scope.row.courseList"
|
|
|
:key="index"
|
|
|
>
|
|
|
- <el-input v-model="item.courseOriginalPrice"></el-input>
|
|
|
+ <el-input v-model="item.courseOriginalPrice" size='mini'></el-input>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -67,10 +92,14 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import Vue from "vue";
|
|
|
import paymentCycle from "@/views/resetTeaming/modals/payment-cycle";
|
|
|
import otherform from "@/views/resetTeaming/modals/other";
|
|
|
import { getTimes } from "@/utils";
|
|
|
import { spanGroupMergeClassSplitClassAffirm } from "@/api/buildTeam";
|
|
|
+import {filterCourseType} from "@/constant"
|
|
|
+import descriptions from "@/components/Descriptions";
|
|
|
+Vue.use(descriptions);
|
|
|
export default {
|
|
|
props: [
|
|
|
"studentIds",
|
|
@@ -93,6 +122,7 @@ export default {
|
|
|
},
|
|
|
other: {},
|
|
|
dataList: [],
|
|
|
+ conrseTypeList: [],
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -216,7 +246,21 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
this.dataList = Object.values(data);
|
|
|
+ this.getNewClassType(this.dataList[0]?.courseList);
|
|
|
},
|
|
|
+ getNewClassType(arr) {
|
|
|
+ console.log(this.$options)
|
|
|
+ this.conrseTypeList = arr.map((item) => {
|
|
|
+ return {
|
|
|
+ courseType: item.courseType,
|
|
|
+ courseCurrentPrice: item.courseCurrentPrice,
|
|
|
+ courseOriginalPrice: item.courseOriginalPrice,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ },
|
|
|
+ getTypeName(type){
|
|
|
+ return filterCourseType[type]
|
|
|
+ }
|
|
|
},
|
|
|
};
|
|
|
</script>
|