|
@@ -56,6 +56,13 @@
|
|
|
:disabled="selectionList.length != 1"
|
|
|
>复制新单</el-button
|
|
|
>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ size="small"
|
|
|
+ icon="el-icon-bottom"
|
|
|
+ @click="excelQuit = true"
|
|
|
+ >导入职工离职状态
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
<template slot-scope="{ row, index }" slot="menu">
|
|
|
<el-button type="text" size="small" @click.stop="editOpen(row, 1)">
|
|
@@ -130,6 +137,31 @@
|
|
|
温馨提示 第一次导入时请先下载模板
|
|
|
</p>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ title="导入数据"
|
|
|
+ append-to-body
|
|
|
+ :visible.sync="excelQuit"
|
|
|
+ width="555px"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ v-dialog-drag
|
|
|
+ >
|
|
|
+ <avue-form
|
|
|
+ :option="excelQuitOption"
|
|
|
+ v-model="excelQuitForm"
|
|
|
+ table-loading="excelLoading"
|
|
|
+ :upload-after="uploadAfterQuit"
|
|
|
+ class="schoolupload"
|
|
|
+ >
|
|
|
+ <template slot="excelTemplateQuit">
|
|
|
+ <el-button type="primary" @click="derivationQuit">
|
|
|
+ 点击下载<i class="el-icon-download el-icon--right"></i>
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </avue-form>
|
|
|
+ <p style="text-align: center;color: #DC0505">
|
|
|
+ 温馨提示 第一次导入时请先下载模板
|
|
|
+ </p>
|
|
|
+ </el-dialog>
|
|
|
</basic-container>
|
|
|
<details-page
|
|
|
v-if="!show"
|
|
@@ -168,8 +200,10 @@ export default {
|
|
|
},
|
|
|
option: {},
|
|
|
excelBox: false,
|
|
|
+ excelQuit: false,
|
|
|
excelLoading: false,
|
|
|
excelForm: {},
|
|
|
+ excelQuitForm: {},
|
|
|
excelOption: {
|
|
|
submitBtn: false,
|
|
|
emptyBtn: false,
|
|
@@ -194,6 +228,31 @@ export default {
|
|
|
action: "/api/blade-client/schoolteacher/import"
|
|
|
}
|
|
|
]
|
|
|
+ },
|
|
|
+ excelQuitOption: {
|
|
|
+ submitBtn: false,
|
|
|
+ emptyBtn: false,
|
|
|
+ column: [
|
|
|
+ {
|
|
|
+ label: "模板下载",
|
|
|
+ prop: "excelTemplateQuit",
|
|
|
+ formslot: true,
|
|
|
+ span: 24
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "模板上传",
|
|
|
+ prop: "excelFile",
|
|
|
+ type: "upload",
|
|
|
+ drag: true,
|
|
|
+ loadText: "模板上传中,请稍等",
|
|
|
+ span: 24,
|
|
|
+ propsHttp: {
|
|
|
+ res: "data"
|
|
|
+ },
|
|
|
+ tip: "请上传 .xls,.xlsx 标准格式文件",
|
|
|
+ action: "/api/blade-client/schoolteacher/importQuit"
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
};
|
|
|
},
|
|
@@ -299,6 +358,13 @@ export default {
|
|
|
}=${getToken()}`
|
|
|
);
|
|
|
},
|
|
|
+ derivationQuit() {
|
|
|
+ window.open(
|
|
|
+ `/api/blade-client/schoolteacher/export/quit?${
|
|
|
+ this.website.tokenHeader
|
|
|
+ }=${getToken()}`
|
|
|
+ );
|
|
|
+ },
|
|
|
//点击搜索按钮触发
|
|
|
searchChange(params, done) {
|
|
|
this.page.currentPage = 1;
|
|
@@ -390,6 +456,11 @@ export default {
|
|
|
this.onLoad(this.page, this.search);
|
|
|
done();
|
|
|
},
|
|
|
+ uploadAfterQuit(res, done, loading) {
|
|
|
+ this.excelQuit = false;
|
|
|
+ this.onLoad(this.page, this.search);
|
|
|
+ done();
|
|
|
+ },
|
|
|
copyDoc() {
|
|
|
this.selectionList.forEach(e => {
|
|
|
this.detailData = {
|