优化后台

This commit is contained in:
2023-03-27 18:35:31 +08:00
parent 1339aa2fe4
commit a2087efdc9
28 changed files with 238 additions and 135 deletions

View File

@@ -23,7 +23,7 @@ const queryParams = ref({
province:''
})
// const subjectParams = ref({
// pageIndex:1,
// page:1,
// pageSize:100,
// })
const state_arr = ref([
@@ -77,7 +77,7 @@ function onSubmit() {
}
const onReset = () => {
queryParams.value = {
pageIndex:1,
page:1,
pageSize:10,
name:'',
status:'',
@@ -102,7 +102,7 @@ const handleSelectionChange = (val) => {
})
}
function handleCurrentChange(val) {
queryParams.value.pageIndex = val
queryParams.value.page = val
getAssistantList()
}
function handleSizeChange(val) {

View File

@@ -24,7 +24,7 @@ const queryParams = ref({
province:''
})
// const subjectParams = ref({
// pageIndex:1,
// page:1,
// pageSize:100,
// })
const state_arr = ref([
@@ -89,7 +89,7 @@ function onSubmit() {
}
const onReset = () => {
queryParams.value = {
pageIndex:1,
page:1,
pageSize:10,
name:'',
status:'',
@@ -114,7 +114,7 @@ const handleSelectionChange = (val) => {
})
}
function handleCurrentChange(val) {
queryParams.value.pageIndex = val
queryParams.value.page = val
getManagerList()
}
function handleSizeChange(val) {
@@ -146,17 +146,18 @@ async function delFunc(row) {
}
// 新增 & 编辑 相关
const dialogVisible = ref(false)
const mForm = ref({})
const mForm = ref({province: 0})
const mFormRef = ref(null)
const mFormRules = ref({
province: [{ required: true, message: '请选择管辖区域', trigger: 'blur' }],
user_id: [{ required: true, message: '请选择用户', trigger: 'blur' }]
})
function openDialog() {
mForm.value = {}
mForm.value = {province:0}
dialogVisible.value = true
}
function addOk() { // 添加主管
// console.log(mForm.value)
submitForm(mFormRef.value)
}
async function submitForm(formEl) {
@@ -254,8 +255,8 @@ async function remoteMethod(query) {
{{scope.row.province>-1?cityList[scope.row.province].name:'无'}}
</template>
</el-table-column>
<el-table-column align="center" label="域内市场助教" prop="assistant_num" />
<el-table-column align="center" label="域内市场学员" prop="student_num" />
<el-table-column align="center" min-width="150" label="域内市场助教" prop="assistant_num" />
<el-table-column align="center" min-width="150" label="域内市场学员" prop="student_num" />
<el-table-column align="center" label="课程订单" prop="course_num" />
<el-table-column align="center" label="佣金" prop="course_income" />
<el-table-column align="center" label="试卷订单" prop="exam_num" />
@@ -310,15 +311,6 @@ async function remoteMethod(query) {
</el-select>
</el-form-item>
<el-form-item label="用户ID" prop="user_id">
<!-- <el-select v-model="mForm.user_id" clearable placeholder="请选择">-->
<!-- <el-option-->
<!-- v-for="(item,index) in user_list"-->
<!-- :key="item.user_id"-->
<!-- :label="item.nickname"-->
<!-- :value="item.user_id"-->
<!-- />-->
<!-- </el-select>-->
<el-select
v-model="mForm.user_id"
filterable