|
|
|
@ -225,7 +225,7 @@
|
|
|
|
}"
|
|
|
|
}"
|
|
|
|
:show-file-list="false"
|
|
|
|
:show-file-list="false"
|
|
|
|
:action="action"
|
|
|
|
:action="action"
|
|
|
|
:on-sucess="importSuccess"
|
|
|
|
:on-success="importSuccess"
|
|
|
|
:file-list="fileList">
|
|
|
|
:file-list="fileList">
|
|
|
|
<Button type="primary">导入</Button>
|
|
|
|
<Button type="primary">导入</Button>
|
|
|
|
</el-upload>
|
|
|
|
</el-upload>
|
|
|
|
@ -297,7 +297,7 @@ import { show } from "@/api/system/customForm";
|
|
|
|
import * as XLSX from "xlsx";
|
|
|
|
import * as XLSX from "xlsx";
|
|
|
|
import { saveAs } from "file-saver";
|
|
|
|
import { saveAs } from "file-saver";
|
|
|
|
import { listdept } from "@/api/system/department"
|
|
|
|
import { listdept } from "@/api/system/department"
|
|
|
|
import {getToken} from "@/utils/auth";
|
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
|
|
|
|
|
|
|
|
|
import add from "./component/add.vue";
|
|
|
|
import add from "./component/add.vue";
|
|
|
|
import LxHeader from "@/components/LxHeader/index.vue";
|
|
|
|
import LxHeader from "@/components/LxHeader/index.vue";
|
|
|
|
@ -337,8 +337,14 @@ export default {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
|
|
importSuccess (response, file, fileList) {
|
|
|
|
importSuccess (response, file, fileList) {
|
|
|
|
console.log(response)
|
|
|
|
console.log(response)
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
type: 'success',
|
|
|
|
|
|
|
|
message: `成功导入${response.total}条,失败${response.fail}条`
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
this.$refs['xyTable'].getTableData(true)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
async toPrint (row,isChild = 0) {
|
|
|
|
async toPrint (row,isChild = 0) {
|
|
|
|
|