持续优化
This commit is contained in:
parent
8e853a51be
commit
e7c6081ea6
@ -241,7 +241,7 @@ async function enterVerifyDialog() { // 审核提交
|
|||||||
const status = transferStateFromVerify(verifyForm.value.is_pass)
|
const status = transferStateFromVerify(verifyForm.value.is_pass)
|
||||||
// console.log(status)
|
// console.log(status)
|
||||||
const res = await api.verifyCourse({
|
const res = await api.verifyCourse({
|
||||||
course_id:verifyForm.value.course_id,
|
course_id:parseInt(course_id.value),
|
||||||
status
|
status
|
||||||
})
|
})
|
||||||
if(res.code === 0) {
|
if(res.code === 0) {
|
||||||
@ -251,6 +251,7 @@ async function enterVerifyDialog() { // 审核提交
|
|||||||
})
|
})
|
||||||
// closeVerifyVisibleDialog()
|
// closeVerifyVisibleDialog()
|
||||||
// getCourseList()
|
// getCourseList()
|
||||||
|
verifyVisible.value = false
|
||||||
getCourseInfo()
|
getCourseInfo()
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
@ -192,7 +192,7 @@ function selectFunc(row, index) {
|
|||||||
<div v-html="getExercisesName(scope.row)"></div>
|
<div v-html="getExercisesName(scope.row)"></div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="left" label="创建者" min-width="150" prop="teacher_id" />
|
<el-table-column align="left" label="分值" min-width="150" prop="score" />
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="gva-pagination">
|
<div class="gva-pagination">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
|
@ -34,6 +34,7 @@ const dealTypeList = ref([
|
|||||||
},
|
},
|
||||||
])
|
])
|
||||||
const deal_types = ref([])
|
const deal_types = ref([])
|
||||||
|
const std_price_arr = ['balance','consume']
|
||||||
// 生命周期
|
// 生命周期
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
queryParams.value.id = parseInt(route.params.user_id)
|
queryParams.value.id = parseInt(route.params.user_id)
|
||||||
@ -47,6 +48,15 @@ async function getDealMoneyList() {
|
|||||||
tableData.value = res.data.records
|
tableData.value = res.data.records
|
||||||
total.value = res.data.total
|
total.value = res.data.total
|
||||||
console.log(res.data)
|
console.log(res.data)
|
||||||
|
for(let item of tableData.value) {
|
||||||
|
for(let prop in item) {
|
||||||
|
if(std_price_arr.includes(prop)) {
|
||||||
|
// console.log(111)
|
||||||
|
item[prop] = Number((item[prop]/100).toFixed(2))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function onSubmit() {
|
function onSubmit() {
|
||||||
|
@ -285,7 +285,8 @@ function delet_func(item) {
|
|||||||
<div v-html="getExercisesName(scope.row)"></div>
|
<div v-html="getExercisesName(scope.row)"></div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="left" label="创建者" min-width="150" prop="teacher_id" />
|
<el-table-column align="left" label="分值" prop="score" />
|
||||||
|
<!-- <el-table-column align="left" label="创建者" min-width="150" prop="teacher_id" /> -->
|
||||||
<el-table-column align="left" label="创建时间" min-width="150" >
|
<el-table-column align="left" label="创建时间" min-width="150" >
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
{{formatDate(scope.row.CreatedAt)}}
|
{{formatDate(scope.row.CreatedAt)}}
|
||||||
|
@ -66,10 +66,10 @@ async function getFinanceInfo() {
|
|||||||
</div>
|
</div>
|
||||||
<div class="total-box">
|
<div class="total-box">
|
||||||
<div class="tb-item">
|
<div class="tb-item">
|
||||||
今日收益:{{financeInfo.today_income}}
|
今日收益:{{financeInfo.today_income/100}}
|
||||||
</div>
|
</div>
|
||||||
<div class="tb-item">
|
<div class="tb-item">
|
||||||
累计总收益:{{financeInfo.total_income}}
|
累计总收益:{{financeInfo.total_income/100}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -40,6 +40,7 @@ const content = ref(null)
|
|||||||
const exam_types = ref([])
|
const exam_types = ref([])
|
||||||
const exam_ids = ref([])
|
const exam_ids = ref([])
|
||||||
import cityList from '@/utils/city.json';
|
import cityList from '@/utils/city.json';
|
||||||
|
console.log(cityList)
|
||||||
// const cityList = ref([])
|
// const cityList = ref([])
|
||||||
// 生命周期
|
// 生命周期
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
@ -232,10 +233,10 @@ async function integralOperationFunc(type,row) { // 冻结 解冻
|
|||||||
<el-form-item label="所属区域">
|
<el-form-item label="所属区域">
|
||||||
<el-select v-model="queryParams.province" filterable placeholder="请选择">
|
<el-select v-model="queryParams.province" filterable placeholder="请选择">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in cityList"
|
v-for="(item,i) in cityList"
|
||||||
:key="item.ProID"
|
:key="item.province"
|
||||||
:label="item.name"
|
:label="item.province"
|
||||||
:value="item.ProID"
|
:value="i"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -25,7 +25,7 @@ const form = ref({status:'1'})
|
|||||||
const lbtType_options = ref([
|
const lbtType_options = ref([
|
||||||
{
|
{
|
||||||
label:'首页',
|
label:'首页',
|
||||||
value:'1'
|
value:1
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
const rules = ref({
|
const rules = ref({
|
||||||
|
@ -23,8 +23,8 @@ const brokerageFormRules = ref({
|
|||||||
exam_assistant_teacher:[{ required: true, message: '请输入助教推荐老师佣金', trigger: 'blur'},
|
exam_assistant_teacher:[{ required: true, message: '请输入助教推荐老师佣金', trigger: 'blur'},
|
||||||
{ type: 'number', message: '请输入正确的格式' }],
|
{ type: 'number', message: '请输入正确的格式' }],
|
||||||
reward_first:[{ required: true, message: '请输入测试第一名佣金占比', trigger: 'blur' }],
|
reward_first:[{ required: true, message: '请输入测试第一名佣金占比', trigger: 'blur' }],
|
||||||
reward_second:[{ required: true, message: '请输入测试第二名佣金占比', trigger: 'blur' }],
|
// reward_second:[{ required: true, message: '请输入测试第二名佣金占比', trigger: 'blur' }],
|
||||||
reward_third:[{ required: true, message: '请输入测试第三名佣金占比', trigger: 'blur' }],
|
// reward_third:[{ required: true, message: '请输入测试第三名佣金占比', trigger: 'blur' }],
|
||||||
course_assistant:[{ required: true, message: '请输入助教佣金占比', trigger: 'blur' }],
|
course_assistant:[{ required: true, message: '请输入助教佣金占比', trigger: 'blur' }],
|
||||||
course_manage:[{ required: true, message: '请输入主管佣金占比', trigger: 'blur' }],
|
course_manage:[{ required: true, message: '请输入主管佣金占比', trigger: 'blur' }],
|
||||||
course_teacher:[{ required: true, message: '请输入教师佣金占比', trigger: 'blur' }],
|
course_teacher:[{ required: true, message: '请输入教师佣金占比', trigger: 'blur' }],
|
||||||
@ -32,7 +32,7 @@ const brokerageFormRules = ref({
|
|||||||
course_assistant_teacher:[{ required: true, message: '请输入助教推荐老师佣金占比', trigger: 'blur' }],
|
course_assistant_teacher:[{ required: true, message: '请输入助教推荐老师佣金占比', trigger: 'blur' }],
|
||||||
})
|
})
|
||||||
const brokerageFormRef = ref(null)
|
const brokerageFormRef = ref(null)
|
||||||
const std_percent_arr = ['course_assistant','course_manage','course_teacher','course_assistant_assistant','course_assistant_teacher']
|
const std_percent_arr = ['course_assistant','course_manage','course_teacher','course_assistant_assistant','course_assistant_teacher','reward_first']
|
||||||
// 方法
|
// 方法
|
||||||
async function getBrokerage() {
|
async function getBrokerage() {
|
||||||
const res = await api.getBrokerage()
|
const res = await api.getBrokerage()
|
||||||
@ -98,12 +98,12 @@ async function saveData() {
|
|||||||
<el-form-item label="测试第一名奖金分佣(%)" prop="reward_first">
|
<el-form-item label="测试第一名奖金分佣(%)" prop="reward_first">
|
||||||
<el-input type="number" v-model.number="brokerageForm.reward_first" placeholder="请输入测试第一名奖金分佣佣金" autocomplete="off" />
|
<el-input type="number" v-model.number="brokerageForm.reward_first" placeholder="请输入测试第一名奖金分佣佣金" autocomplete="off" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="测试第二名奖金分佣(%)" prop="reward_second">
|
<!-- <el-form-item label="测试第二名奖金分佣(%)" prop="reward_second">
|
||||||
<el-input type="number" v-model.number="brokerageForm.reward_second" placeholder="请输入测试第二名奖金分佣佣金" autocomplete="off" />
|
<el-input type="number" v-model.number="brokerageForm.reward_second" placeholder="请输入测试第二名奖金分佣佣金" autocomplete="off" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="测试第三名奖金分佣(%)" prop="reward_third">
|
<el-form-item label="测试第三名奖金分佣(%)" prop="reward_third">
|
||||||
<el-input type="number" v-model.number="brokerageForm.reward_third" placeholder="请输入测试第三名奖金分佣佣金" autocomplete="off" />
|
<el-input type="number" v-model.number="brokerageForm.reward_third" placeholder="请输入测试第三名奖金分佣佣金" autocomplete="off" />
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
<el-form-item>课程佣金设置</el-form-item>
|
<el-form-item>课程佣金设置</el-form-item>
|
||||||
<el-form-item label="助教(%)" prop="course_assistant">
|
<el-form-item label="助教(%)" prop="course_assistant">
|
||||||
<el-input type="number" v-model.number="brokerageForm.course_assistant" placeholder="请输入助教佣金占比" autocomplete="off" />
|
<el-input type="number" v-model.number="brokerageForm.course_assistant" placeholder="请输入助教佣金占比" autocomplete="off" />
|
||||||
|
@ -11,6 +11,7 @@ import {formatDate} from '@/utils/format'
|
|||||||
import {ref,onMounted,provide } from 'vue'
|
import {ref,onMounted,provide } from 'vue'
|
||||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||||
import { useRouter, useRoute } from 'vue-router'
|
import { useRouter, useRoute } from 'vue-router'
|
||||||
|
import cityList from '@/utils/city.json';
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
// 变量
|
// 变量
|
||||||
@ -129,7 +130,7 @@ function toDealDetail(type) {
|
|||||||
<div class="dib-row">
|
<div class="dib-row">
|
||||||
<div class="dib-item">
|
<div class="dib-item">
|
||||||
<div class="di-left">区域:</div>
|
<div class="di-left">区域:</div>
|
||||||
<div class="di-right">{{teacherInfo.province}}</div>
|
<div class="di-right">{{cityList[teacherInfo.province]?.province}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dib-item">
|
<div class="dib-item">
|
||||||
<div class="di-left">提交时间:</div>
|
<div class="di-left">提交时间:</div>
|
||||||
|
@ -82,7 +82,7 @@ function toDealDetail(type) {
|
|||||||
身份:学员
|
身份:学员
|
||||||
</div>
|
</div>
|
||||||
<div class="bb-item">
|
<div class="bb-item">
|
||||||
邀请人数:105人
|
邀请人数:{{userManageInfo.invite_num}}人
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user