mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-18 07:16:46 +08:00
接口报错
This commit is contained in:
@@ -391,58 +391,13 @@
|
||||
<a-button class="drabtn" type="primary" @click="cancelTeachingDialog" :loading="buttonLoading">返回
|
||||
</a-button>
|
||||
</div>
|
||||
</a-drawer>
|
||||
<!--一键确认 -->
|
||||
<a-drawer v-model:visible="allFeedialog" placement="right" style="min-width:1666px"
|
||||
@closa="cancelallFeedialog" :maskClosable="true" width="60%" title="确认讲师费">
|
||||
<a-form layout="inline">
|
||||
<a-form-item class="select">
|
||||
<a-input v-model:value="searchall.name" style="width: 276px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入工号/讲师姓名进行检索" allowClear showSearch>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
<a-form-item class="select ">
|
||||
<div class="select addTimeBox">
|
||||
<div class="addTime" >创建时间:</div>
|
||||
<a-range-picker
|
||||
v-model:value="allsearchdate"
|
||||
style="width: 420px"
|
||||
format="YYYY-MM-DD"
|
||||
valueFormat="YYYY-MM-DD"
|
||||
separator="至"
|
||||
:placeholder="[' 开始时间', ' 结束时间']"
|
||||
/>
|
||||
</div>
|
||||
</a-form-item>
|
||||
<div style="display: flex; margin-bottom: 20px">
|
||||
<a-button @click="searchSubmitdrawer()" type="primary" class="resetbtn">查询 </a-button>
|
||||
<a-button class="resetbtn " @click="searchResetdrawer">重置</a-button>
|
||||
</div>
|
||||
</a-form>
|
||||
<a-table :header-cell-style="{ 'text-align': 'center' }" style="border: 1px solid #f2f6fe" :columns="column" :data-source="tableDatas" :scroll="{ x: 1500 }" :loading="tableLoadings" :pagination="false">
|
||||
<template #bodyCell="{ record, column }">
|
||||
|
||||
</template>
|
||||
</a-table>
|
||||
<div :style="{
|
||||
position: 'absolute',
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
width: '100%',
|
||||
borderTop: '1px solid #e9e9e9',
|
||||
padding: '10px 16px',
|
||||
background: '#fff',
|
||||
textAlign: 'right',
|
||||
zIndex: 1,
|
||||
}">
|
||||
<a-button class="drabtn" @click="cancelallFeedialog">取消</a-button>
|
||||
<a-button class="drabtn" type="primary" @click="cancelallFeedialog" :loading="buttonLoading">返回
|
||||
</a-button>
|
||||
</div>
|
||||
</a-drawer>
|
||||
<ImportWork v-model:showWork="showWork" :url="'/admin/export/exportTeacherExpense'" :title="title"></ImportWork>
|
||||
</div>
|
||||
<ConfirmLecturer v-model:visible="visibleConfirm" :name="'确认讲师费'" />
|
||||
<!-- 一键确认讲师费 -->
|
||||
<ConfirmLecturer :ids="selectsIds" v-model:visible="visibleConfirm" :name="'确认讲师费'" />
|
||||
<!-- 批量确认讲师费 -->
|
||||
<BatchLecturer @selectedRowKeys="selectedRowKeys" v-model:visible="allFeedialog" :name="'批量审批'" />
|
||||
</template>
|
||||
<script lang="jsx">
|
||||
import { reactive, toRefs, ref ,watch} from "vue";
|
||||
@@ -463,6 +418,7 @@
|
||||
// import {getProjSt} from "../../api/indexProjStu";
|
||||
// import AddTeacher from "../../components/drawers/project/AddTeacher"
|
||||
import ConfirmLecturer from "@/components/project/ConfirmLecturer"
|
||||
import BatchLecturer from "@/components/project/BatchLecturer"
|
||||
export default {
|
||||
name: "LecturerFee",
|
||||
components: {
|
||||
@@ -474,10 +430,12 @@
|
||||
SearchTeacher,
|
||||
ImportWork,
|
||||
ConfirmLecturer,
|
||||
BatchLecturer,
|
||||
},
|
||||
setup() {
|
||||
const formRef = ref();
|
||||
const state = reactive({
|
||||
selectsIds: [],
|
||||
visibleConfirm: false,
|
||||
title:'导入讲师费记录',
|
||||
allFeedialog:false,
|
||||
@@ -1142,35 +1100,15 @@ console.log( "讲师体系id" +val);
|
||||
const allFee=()=>{
|
||||
state.allFeedialog=true
|
||||
}
|
||||
const cancelallFeedialog= ()=>{
|
||||
state.allFeedialog=false
|
||||
}
|
||||
const searchResetdrawer=()=>{
|
||||
state.searchall={
|
||||
name:null,
|
||||
beginTime: null,
|
||||
endTime: null,
|
||||
pageNo: "1",
|
||||
pageSize: "10",
|
||||
}
|
||||
allFeeList()
|
||||
}
|
||||
const searchSubmitdrawer=()=>{
|
||||
allFeeList()
|
||||
}
|
||||
const allFeeList=()=>{
|
||||
state.tableLoadings=true
|
||||
let objA = { ...state.searchall };
|
||||
objA.beginTime = state.allsearchdate ? dayjs(state.allsearchdate[0]).format("YYYY-MM-DD") : "",
|
||||
objA.endTime = state.allsearchdate ? dayjs(state.allsearchdate[1]).format("YYYY-MM-DD") : "",
|
||||
getTeacherFeeList(objA)
|
||||
.then((res) => {
|
||||
tableDatas.value = res.data.data.records
|
||||
state.tableDataTotal = Number(res.data.data.total);
|
||||
state.tableLoadings=false
|
||||
})
|
||||
}
|
||||
allFeeList()
|
||||
const selectedRowKeys = (val) => {
|
||||
state.selectsIds = val;
|
||||
state.visibleConfirm = true;
|
||||
}
|
||||
watch(()=>state.visibleConfirm,(val)=>{
|
||||
if(!val){
|
||||
state.selectsIds = [];
|
||||
}
|
||||
})
|
||||
const tableDatas = ref([])
|
||||
const column = ref([
|
||||
{
|
||||
@@ -1431,9 +1369,7 @@ const column = ref([
|
||||
changetlevel,
|
||||
canceleditTeacherDialog,
|
||||
allFee,
|
||||
cancelallFeedialog,
|
||||
searchSubmitdrawer,
|
||||
searchResetdrawer,
|
||||
selectedRowKeys,
|
||||
column,
|
||||
tableDatas,
|
||||
handleformlevel,
|
||||
|
||||
Reference in New Issue
Block a user