mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-22 01:06:45 +08:00
细节调整1
This commit is contained in:
@@ -670,6 +670,9 @@ export default {
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep .ant-upload.ant-upload-select-picture-card {
|
||||
border-radius: 50% !important;
|
||||
}
|
||||
//导出按钮icon
|
||||
.daochu {
|
||||
width: 16px;
|
||||
|
||||
@@ -76,6 +76,9 @@
|
||||
<UploadOutlined /> 一键生成讲师费
|
||||
</a-button>
|
||||
</div> -->
|
||||
<a-button class="resetbtn" @click="handleImport()" >
|
||||
<DownloadOutlined /> 导入
|
||||
</a-button>
|
||||
<a-button @click="handleExport()" class="resetbtn">
|
||||
<UploadOutlined /> 导出
|
||||
</a-button>
|
||||
@@ -270,6 +273,7 @@
|
||||
</a-modal>
|
||||
</div>
|
||||
<!-- <div> <ImageUpload/> </div> -->
|
||||
<ImportWork v-model:showWork="showWork" :url="'/importTeacherCourseRecord'" :title="title "></ImportWork>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="jsx">
|
||||
@@ -283,6 +287,7 @@ import {
|
||||
FolderAddOutlined,
|
||||
DownloadOutlined
|
||||
} from '@ant-design/icons-vue';
|
||||
import ImportWork from "../../components/project/ImportWork.vue";
|
||||
import { message } from "ant-design-vue";
|
||||
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||
import ProjectManagerOutTeacher from "@/components/project/ProjectManagerOutTeacher";
|
||||
@@ -301,6 +306,7 @@ export default {
|
||||
FolderAddOutlined,//图标--新增
|
||||
ProjectManager,
|
||||
ProjectManagerOutTeacher,
|
||||
ImportWork,
|
||||
},
|
||||
setup() {
|
||||
const formRef = ref();
|
||||
@@ -308,7 +314,9 @@ export default {
|
||||
const router = useRouter();
|
||||
const state = reactive({
|
||||
vf: false,
|
||||
showWork: false,
|
||||
moreid: 1,
|
||||
title:"导入外部授课记录",
|
||||
tableLoading: false,
|
||||
delTeacherId: null, //删除id确认
|
||||
userNoid: null, //详情工号确认
|
||||
@@ -761,6 +769,10 @@ export default {
|
||||
}
|
||||
const clearNonNumber=()=>{
|
||||
state.formParam.defaultteachingTime = state.formParam.defaultteachingTime.replace(/\D/g, '');
|
||||
}
|
||||
//导入功能
|
||||
const handleImport = () => {
|
||||
state.showWork = true
|
||||
}
|
||||
//导出功能
|
||||
const handleExport = () => {
|
||||
@@ -782,6 +794,7 @@ export default {
|
||||
...toRefs(state),
|
||||
rules,
|
||||
formRef,
|
||||
handleImport,
|
||||
clearNonNumber,
|
||||
managerChange,
|
||||
entryTypeList,
|
||||
|
||||
@@ -1017,7 +1017,7 @@ export default {
|
||||
cancel()
|
||||
state.teacherdialog = true;
|
||||
state.teacherdialogtitle = '新增讲师'
|
||||
// state.formParam.photo = state.formParam.photo === null ? 'https://p0.itc.cn/q_70/images01/20211013/f45d91616a364d6ea9c42a8db69734aa.png' : state.formParam.photo
|
||||
state.formParam.photo ='https://p0.itc.cn/q_70/images01/20211013/f45d91616a364d6ea9c42a8db69734aa.png'
|
||||
state.formParam.status = '1'
|
||||
state.vf = true
|
||||
}
|
||||
@@ -1193,7 +1193,6 @@ export default {
|
||||
state.log = true
|
||||
message.warning('讲师不能为空')
|
||||
return
|
||||
600000000000000000000000000000000
|
||||
}
|
||||
if (state.formParam.departId == null) {
|
||||
state.log = true
|
||||
|
||||
@@ -346,7 +346,7 @@
|
||||
</div>
|
||||
</a-modal>
|
||||
</div>
|
||||
<ImportWork v-model:showWork="showWork" :url="'/importTeacherCourseRecord'"></ImportWork>
|
||||
<ImportWork v-model:showWork="showWork" :url="'/importTeacherCourseRecord'" :title="title"></ImportWork>
|
||||
<!-- <div> <Upload/> </div> -->
|
||||
</div>
|
||||
</template>
|
||||
@@ -393,6 +393,7 @@ export default {
|
||||
const router = useRouter();
|
||||
const state = reactive({
|
||||
moreid: 1,
|
||||
title:'导入内部授课记录',
|
||||
vf: false,
|
||||
log: false,
|
||||
close: false,
|
||||
|
||||
@@ -89,16 +89,9 @@
|
||||
<UploadOutlined /> 一键生成讲师费
|
||||
</a-button>
|
||||
</div> -->
|
||||
<a-upload
|
||||
multiple
|
||||
:headers="headers"
|
||||
:show-upload-list="false"
|
||||
:before-upload="beforeUpload2"
|
||||
>
|
||||
<a-button class="resetbtn" @click="handleImport()" >
|
||||
<DownloadOutlined /> 导入
|
||||
</a-button>
|
||||
</a-upload>
|
||||
<a-button @click="handleExport()" class="resetbtn">
|
||||
<UploadOutlined /> 导出
|
||||
</a-button>
|
||||
@@ -391,7 +384,7 @@
|
||||
</a-button>
|
||||
</div>
|
||||
</a-drawer>
|
||||
<ImportWork v-model:showWork="showWork" :url="'/importTeacherCourseRecord'"></ImportWork>
|
||||
<ImportWork v-model:showWork="showWork" :url="'/importTeacherCourseRecord'" :title="title"></ImportWork>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
@@ -421,11 +414,13 @@
|
||||
UploadOutlined,//图标--导出
|
||||
DownloadOutlined,//图标-导入
|
||||
FolderAddOutlined,//图标--新增
|
||||
SearchTeacher
|
||||
SearchTeacher,
|
||||
ImportWork,
|
||||
},
|
||||
setup() {
|
||||
const formRef = ref();
|
||||
const state = reactive({
|
||||
title:'导入讲师费记录',
|
||||
teachingdialog:false,
|
||||
showWork: false,
|
||||
vf:true,
|
||||
|
||||
Reference in New Issue
Block a user