kokiy.github.io's People
kokiy.github.io's Issues
commit
333
exporttable() {
this.axios({
method: "get",
url: this.baseUrls + "api/pcadmin/hr/entry/export",
responseType: "blob",
})
.then((response) => {
const content = response.data;
const blob = new Blob([content]);
const time = this.timestampToTime(new Date().getTime() / 1000);
const fileName = time + ".xlsx";
if ("download" in document.createElement("a")) {
// 非IE下载
const elink = document.createElement("a");
elink.download = fileName;
elink.style.display = "none";
elink.href = URL.createObjectURL(blob);
document.body.appendChild(elink);
elink.click();
URL.revokeObjectURL(elink.href); // 释放URL 对象
document.body.removeChild(elink);
} else {
// IE10+下载
navigator.msSaveBlob(blob, fileName);
}
// eslint-disable-next-line handle-callback-err
})
.catch((error) => {});
}
12
123
vscode 笔记
// 将设置放入此文件中以覆盖默认设置
{
"editor.fontSize": 16,
"editor.fontWeight": "100",
"editor.wordWrap": "off",
"editor.tabSize": 2,
"editor.scrollBeyondLastLine": false,
"editor.cursorStyle": "line-thin",
"editor.formatOnSave": true,
"workbench.fontAliasing": "antialiased",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.autoSave": "onWindowChange",
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.cursorStyle": "line",
"git.enableSmartCommit": true,
"sync.gist": "1a94facc45b93e2247278345a41930ab",
"workbench.startupEditor": "newUntitledFile",
"emmet.showExpandedAbbreviation": "inMarkupAndStylesheetFilesOnly",
"terminal.integrated.shell.osx": "/bin/zsh",
"javascript.updateImportsOnFileMove.enabled": "never",
"typescript.updateImportsOnFileMove.enabled": "never",
"editor.find.seedSearchStringFromSelection": false,
"vsicons.dontShowNewVersionMessage": true,
"workbench.settings.editor": "json",
"workbench.iconTheme": "vscode-icons",
"explorer.confirmDragAndDrop": false,
"files.exclude": {
"**/.DS_Store": false,
"**/.hg": false,
"**/.svn": false,
"**/CVS": false
},
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/.umi": true,
"build/": true,
"temp/": true,
"library/": true,
"**/*.anim": true
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"workbench.colorTheme": "One Dark Pro",
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"files.associations": {
"*.tpl": "html",
".huskyrc": "json",
".sequelizerc": "javascript"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"explorer.confirmDelete": false,
"typescript.format.semicolons": "remove",
"prettier.semi": false,
"[nginx]": {
"editor.defaultFormatter": "ahmadalli.vscode-nginx-conf"
},
"[less]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"wxmlConfig.onSaveFormat": true,
"wxmlConfig.tagNoActiveArr": [
"view",
"button",
"text",
"icon",
"image",
"navigator",
"block",
"input",
"label",
"template",
"form",
"camera",
"textarea"
],
"security.workspace.trust.untrustedFiles": "newWindow"
}
23
22
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.