style(LDAP): 删掉无用代码
This commit is contained in:
parent
b60d296c85
commit
88429985c6
|
@ -72,29 +72,6 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
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() {
|
init() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.report = {};
|
this.report = {};
|
||||||
|
|
|
@ -129,29 +129,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
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() {
|
initBreadcrumb() {
|
||||||
if (this.reportId) {
|
if (this.reportId) {
|
||||||
this.result = this.$get("/performance/report/test/pro/info/" + this.reportId, res => {
|
this.result = this.$get("/performance/report/test/pro/info/" + this.reportId, res => {
|
||||||
|
|
|
@ -146,7 +146,7 @@
|
||||||
this.$refs.templateEdit.open(this.reportId, true);
|
this.$refs.templateEdit.open(this.reportId, true);
|
||||||
},
|
},
|
||||||
/*导出报告*/
|
/*导出报告*/
|
||||||
handleExport(name) {
|
/*handleExport(name) {
|
||||||
let html = this.getHtml();
|
let html = this.getHtml();
|
||||||
writer(`${name}.html`, html, 'utf-8');
|
writer(`${name}.html`, html, 'utf-8');
|
||||||
},
|
},
|
||||||
|
@ -169,7 +169,7 @@
|
||||||
</body>
|
</body>
|
||||||
</html>`
|
</html>`
|
||||||
return html
|
return html
|
||||||
},
|
},*/
|
||||||
handleSave() {
|
handleSave() {
|
||||||
let param = {};
|
let param = {};
|
||||||
this.buildParam(param);
|
this.buildParam(param);
|
||||||
|
|
Loading…
Reference in New Issue