Commit b129b26b authored by jiaxu.yan's avatar jiaxu.yan

feat(init): 修改车型审查报告页面

parent c76ddbf8
...@@ -83,7 +83,7 @@ export function selectDictLabel(datas, value) { ...@@ -83,7 +83,7 @@ export function selectDictLabel(datas, value) {
} }
var actions = [] var actions = []
Object.keys(datas).some(key => { Object.keys(datas).some(key => {
if (datas[key].value === '' + value) { if (datas[key].value == '' + value) {
actions.push(datas[key].label) actions.push(datas[key].label)
return true return true
} }
...@@ -108,7 +108,7 @@ export function selectDictLabels(datas, value, separator) { ...@@ -108,7 +108,7 @@ export function selectDictLabels(datas, value, separator) {
Object.keys(value.split(currentSeparator)).some(val => { Object.keys(value.split(currentSeparator)).some(val => {
var match = false var match = false
Object.keys(datas).some(key => { Object.keys(datas).some(key => {
if (datas[key].value === '' + temp[val]) { if (datas[key].value == '' + temp[val]) {
actions.push(datas[key].label + currentSeparator) actions.push(datas[key].label + currentSeparator)
match = true match = true
} }
...@@ -138,7 +138,7 @@ export function sprintf(str) { ...@@ -138,7 +138,7 @@ export function sprintf(str) {
// 转换字符串,undefined,null等转化为"" // 转换字符串,undefined,null等转化为""
export function parseStrEmpty(str) { export function parseStrEmpty(str) {
if (!str || str === 'undefined' || str === 'null') { if (!str || str == 'undefined' || str == 'null') {
return '' return ''
} }
return str return str
...@@ -148,7 +148,7 @@ export function parseStrEmpty(str) { ...@@ -148,7 +148,7 @@ export function parseStrEmpty(str) {
export function mergeRecursive(source, target) { export function mergeRecursive(source, target) {
for (var p in target) { for (var p in target) {
try { try {
if (target[p].constructor === Object) { if (target[p].constructor == Object) {
source[p] = mergeRecursive(source[p], target[p]) source[p] = mergeRecursive(source[p], target[p])
} else { } else {
source[p] = target[p] source[p] = target[p]
...@@ -180,7 +180,7 @@ export function handleTree(data, id, parentId, children) { ...@@ -180,7 +180,7 @@ export function handleTree(data, id, parentId, children) {
for (let d of data) { for (let d of data) {
let parentId = d[config.parentId] let parentId = d[config.parentId]
if (childrenListMap[parentId] === null) { if (childrenListMap[parentId] == null) {
childrenListMap[parentId] = [] childrenListMap[parentId] = []
} }
nodeIds[d[config.id]] = d nodeIds[d[config.id]] = d
...@@ -189,7 +189,7 @@ export function handleTree(data, id, parentId, children) { ...@@ -189,7 +189,7 @@ export function handleTree(data, id, parentId, children) {
for (let d of data) { for (let d of data) {
let parentId = d[config.parentId] let parentId = d[config.parentId]
if (nodeIds[parentId] === null) { if (nodeIds[parentId] == null) {
tree.push(d) tree.push(d)
} }
} }
......
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
<el-button type="success" @click="handleDetail()" <el-button type="success" @click="handleDetail()"
>查看审查问卷</el-button >查看审查问卷</el-button
> >
<el-button type="success">查看审查报告</el-button> <el-button type="success" @click="goReport()">查看审查报告</el-button>
<el-button type="success">查看企业留档文件</el-button> <el-button type="success">查看企业留档文件</el-button>
<el-button type="success">查看车企文件库</el-button> <el-button type="success">查看车企文件库</el-button>
<el-button v-if="!isSysReview" type="success" <el-button v-if="!isSysReview" type="success"
...@@ -150,6 +150,9 @@ export default { ...@@ -150,6 +150,9 @@ export default {
/* 跳转到问卷详情*/ /* 跳转到问卷详情*/
handleDetail() { handleDetail() {
this.$router.push({ path: '/processing/review-questionnaire' }) this.$router.push({ path: '/processing/review-questionnaire' })
},
goReport() {
this.$router.push({ path: '/processing/vehicleEvaluation' })
} }
} }
} }
......
<template>
<div class="content">
<iframe
:src="'http://storage.xuetangx.com/public_assets/xuetangx/PDF/PlayerAPI_v1.0.6.pdf'"
frameborder="0"
style="width: 100%; height: 100%"
></iframe>
</div>
</template>
<script>
export default {
name: 'Index'
}
</script>
<style scoped>
.content {
height: 100%;
width: 100%;
position: absolute;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment