style(LDAP): 删掉无用代码

This commit is contained in:
wenyann 2020-08-19 10:45:40 +08:00
parent b60d296c85
commit 88429985c6
3 changed files with 2 additions and 48 deletions

View File

@ -72,29 +72,6 @@
},
methods: {
handleExport(name) {
let html = this.getHtml();
writer(`${name}.html`, html, 'utf-8');
},
getHtml() {
const template = this.$refs.resume.innerHTML
let html = `<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>html</title>
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<style>${ResumeCss}</style>
</head>
<body>
<div style="margin:0 auto;width:1200px">
${template}
</div>
</body>
</html>`
return html
},
init() {
this.loading = true;
this.report = {};

View File

@ -129,29 +129,6 @@
}
},
methods: {
exports(name) {
let html = this.getHtml();
writer(`${name}.html`, html, 'utf-8');
},
getHtml() {
const template = this.$refs.resume.innerHTML
let html = `<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>html</title>
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<style></style>
</head>
<body>
<div style="margin:0 auto;width:1200px">
${template}
</div>
</body>
</html>`
return html
},
initBreadcrumb() {
if (this.reportId) {
this.result = this.$get("/performance/report/test/pro/info/" + this.reportId, res => {

View File

@ -146,7 +146,7 @@
this.$refs.templateEdit.open(this.reportId, true);
},
/*导出报告*/
handleExport(name) {
/*handleExport(name) {
let html = this.getHtml();
writer(`${name}.html`, html, 'utf-8');
},
@ -169,7 +169,7 @@
</body>
</html>`
return html
},
},*/
handleSave() {
let param = {};
this.buildParam(param);