讲师管理bug

This commit is contained in:
zhangsir
2024-12-31 16:12:27 +08:00
parent c0db544735
commit 0c02b82b5b
5 changed files with 21 additions and 13 deletions

View File

@@ -81,9 +81,9 @@
</a-form> </a-form>
<div style="width: 100%;"></div> <div style="width: 100%;"></div>
<div style="display: flex; margin-bottom: 20px"> <div style="display: flex; margin-bottom: 20px">
<a-button @click="addTeacher()" type="primary" class="langbtn"> <!-- <a-button @click="addTeacher()" type="primary" class="langbtn">
<div class="search"></div> 添加授课记录 <div class="search"></div> 添加授课记录
</a-button> </a-button> -->
<!-- <div style="margin-left: 20px ;"> <!-- <div style="margin-left: 20px ;">
<a-button @click="addTeacher()" class="langbtn"> <a-button @click="addTeacher()" class="langbtn">
<UploadOutlined /> 一键生成讲师费 <UploadOutlined /> 一键生成讲师费

View File

@@ -65,9 +65,9 @@
<div class="search"></div> 新增讲师 <div class="search"></div> 新增讲师
</a-button> </a-button>
<div> <div>
<a-button @click="handleExport()" class="resetbtn"> <!-- <a-button @click="handleExport()" class="resetbtn">
<UploadOutlined /> 导出 <UploadOutlined /> 导出
</a-button> </a-button> -->
</div> </div>
</div> </div>
<!-- 表格 --> <!-- 表格 -->

View File

@@ -94,13 +94,13 @@
</a-form> </a-form>
<div style="width: 100%;"></div> <div style="width: 100%;"></div>
<div style="display: flex; margin-bottom: 20px"> <div style="display: flex; margin-bottom: 20px">
<a-button @click="addTeacher()" type="primary" class="langbtn"> <!-- <a-button @click="addTeacher()" type="primary" class="langbtn">
<div class="search"></div> 添加授课记录 <div class="search"></div> 添加授课记录
</a-button> </a-button> -->
<!-- <a-upload multiple :headers="headers" :show-upload-list="false" :before-upload="beforeUpload2"> --> <!-- <a-upload multiple :headers="headers" :show-upload-list="false" :before-upload="beforeUpload2"> -->
<a-button class="resetbtn" @click="handleImport()"> <!-- <a-button class="resetbtn" @click="handleImport()">
<DownloadOutlined /> 导入 <DownloadOutlined /> 导入
</a-button> </a-button> -->
<!-- </a-upload> --> <!-- </a-upload> -->
<a-button @click="handleExport()" class="resetbtn"> <a-button @click="handleExport()" class="resetbtn">
<UploadOutlined /> 导出 <UploadOutlined /> 导出
@@ -291,7 +291,7 @@
/> />
授课/课程日期 : 授课/课程日期 :
</template> </template>
<a-date-picker class="draitem" v-model:value="teachingDate" style="width:100%" format="YYYY-MM-DD HH:mm" <a-date-picker :locale="locale" class="draitem" v-model:value="teachingDate" style="width:100%" format="YYYY-MM-DD HH:mm"
:show-time="{ format: 'HH:mm' }" type="datetime" placeholder="请选择课程日期" /> :show-time="{ format: 'HH:mm' }" type="datetime" placeholder="请选择课程日期" />
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -502,6 +502,8 @@ import {
DownloadOutlined DownloadOutlined
} from '@ant-design/icons-vue'; } from '@ant-design/icons-vue';
import dayjs from "dayjs"; import dayjs from "dayjs";
import locale from 'ant-design-vue/es/date-picker/locale/zh_CN';
import 'dayjs/locale/zh-cn';
// import Editor from "@/components/project/Editor"; // import Editor from "@/components/project/Editor";
import ProjectManager from "@/components/project/ProjectManagerNew"; import ProjectManager from "@/components/project/ProjectManagerNew";
import { message } from "ant-design-vue"; import { message } from "ant-design-vue";
@@ -1521,7 +1523,8 @@ export default {
// searchTimeChange, // searchTimeChange,
cancelTeachingDialog, cancelTeachingDialog,
// editTimeChange, // editTimeChange,
scoreChange scoreChange,
locale
} }
}, },
}; };

View File

@@ -346,7 +346,7 @@
/> />
授课/课程日期 : 授课/课程日期 :
</template> </template>
<a-date-picker class="draitem" v-model:value="teachingDate" style="width:100%" :show-time="{ format: 'HH:mm' }" format="YYYY-MM-DD HH:mm" valueFormat="YYYY-MM-DD HH:mm" <a-date-picker :locale="locale" class="draitem" v-model:value="teachingDate" style="width:100%" :show-time="{ format: 'HH:mm' }" format="YYYY-MM-DD HH:mm" valueFormat="YYYY-MM-DD HH:mm"
placeholder="请选择课程日期" @select="handleSelect" /> placeholder="请选择课程日期" @select="handleSelect" />
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -575,6 +575,8 @@
import { reactive, toRefs, ref ,watch,onMounted} from "vue"; import { reactive, toRefs, ref ,watch,onMounted} from "vue";
import { message } from "ant-design-vue"; import { message } from "ant-design-vue";
import dayjs from "dayjs"; import dayjs from "dayjs";
import locale from 'ant-design-vue/es/date-picker/locale/zh_CN';
import 'dayjs/locale/zh-cn';
import { import {
DownOutlined, DownOutlined,
UpOutlined, UpOutlined,
@@ -1874,6 +1876,7 @@ const column = ref([
scoreNumber, scoreNumber,
clearPayableExpense, clearPayableExpense,
payExpense, payExpense,
locale,
} }
}, },
}; };

View File

@@ -10,7 +10,7 @@
v-on:keydown.enter="enterPressHadlerSearch"/> v-on:keydown.enter="enterPressHadlerSearch"/>
</a-form-item> </a-form-item>
<a-form-item class="select " > <a-form-item class="select " >
<a-date-picker picker="month" style="width: 235px; height: 40px; border-radius: 8px" v-model:value="searchdate" <a-date-picker :locale="locale" picker="month" style="width: 235px; height: 40px; border-radius: 8px" v-model:value="searchdate"
:placeholder="[ '请选择汇总周期']" @change="searchTimeChange" format="YYYY-MM" valueFormat="YYYY-MM" :placeholder="[ '请选择汇总周期']" @change="searchTimeChange" format="YYYY-MM" valueFormat="YYYY-MM"
v-on:keydown.enter="enterPressHadlerSearch" /> v-on:keydown.enter="enterPressHadlerSearch" />
</a-form-item > </a-form-item >
@@ -171,6 +171,8 @@
<MonthlyStatistics v-model:visible="opendrawer" :id="drawerId" ></MonthlyStatistics> <MonthlyStatistics v-model:visible="opendrawer" :id="drawerId" ></MonthlyStatistics>
</template> </template>
<script lang="jsx"> <script lang="jsx">
import locale from 'ant-design-vue/es/date-picker/locale/zh_CN';
import 'dayjs/locale/zh-cn';
import { reactive, toRefs, ref, watch,onMounted } from "vue"; import { reactive, toRefs, ref, watch,onMounted } from "vue";
import { message } from "ant-design-vue"; import { message } from "ant-design-vue";
import dayjs from "dayjs"; import dayjs from "dayjs";
@@ -823,7 +825,7 @@ export default {
columnstableDetailList, columnstableDetailList,
columnstableFeeList, columnstableFeeList,
searchResetPrevious, searchResetPrevious,
locale,
} }
}, },
}; };