fix: 测试计划报告导出html目录功能无效
This commit is contained in:
parent
b295fd6c26
commit
6e6d83681c
|
@ -4,7 +4,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
"build": "export NODE_OPTIONS=--max_old_space_size=4096 && vue-cli-service build",
|
"build": "vue-cli-service build",
|
||||||
"build-win": "SET NODE_OPTIONS=--max_old_space_size=4096 && vue-cli-service build",
|
"build-win": "SET NODE_OPTIONS=--max_old_space_size=4096 && vue-cli-service build",
|
||||||
"lint": "vue-cli-service lint"
|
"lint": "vue-cli-service lint"
|
||||||
},
|
},
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<test-plan-load-report v-if="loadEnable" :is-db="isDb" :share-id="shareId" :is-share="isShare" :is-template="isTemplate" :report="report" :plan-id="planId"/>
|
<test-plan-load-report v-if="loadEnable" :is-db="isDb" :share-id="shareId" :is-share="isShare" :is-template="isTemplate" :report="report" :plan-id="planId"/>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-main>
|
</el-main>
|
||||||
<test-plan-report-navigation-bar/>
|
<test-plan-report-navigation-bar :is-template="isTemplate"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,9 @@ import MsDrawer from "@/business/components/common/components/MsDrawer";
|
||||||
export default {
|
export default {
|
||||||
name: "TestPlanReportNavigationBar",
|
name: "TestPlanReportNavigationBar",
|
||||||
components: {MsDrawer},
|
components: {MsDrawer},
|
||||||
|
props: {
|
||||||
|
isTemplate: Boolean,
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
asideHidden: true,
|
asideHidden: true,
|
||||||
|
@ -50,10 +53,14 @@ export default {
|
||||||
watch: {
|
watch: {
|
||||||
activeName() {
|
activeName() {
|
||||||
let url = new URL(window.location.href);
|
let url = new URL(window.location.href);
|
||||||
|
if (this.isTemplate) {
|
||||||
|
window.location.href = window.location.href.split('#')[0] + '#' + this.activeName;
|
||||||
|
} else {
|
||||||
window.location.href = url.origin + '#' + this.activeName;
|
window.location.href = url.origin + '#' + this.activeName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
|
@ -20,7 +20,7 @@ export default {
|
||||||
/*color: white;*/
|
/*color: white;*/
|
||||||
color: #783887;
|
color: #783887;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
border: 0px;
|
border: 0px !important;
|
||||||
/*border-radius: 42%;*/
|
/*border-radius: 42%;*/
|
||||||
/*margin-left: 4px;*/
|
/*margin-left: 4px;*/
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue