Commit ed7b7171 authored by mzx's avatar mzx

feat(标准库管理): pdf地址修改

parent 2f933351
......@@ -93,7 +93,6 @@
label="测试场景"
prop="testScenario"
min-width="200"
sortable
align="left"
>
</el-table-column>
......
<template>
<el-dialog
:visible.sync="dialogManger.dialogVisible"
:title="modelTitle"
title="修改"
width="1200"
append-to-body
destroy-on-close
......@@ -130,11 +130,11 @@ export default {
}
}
},
computed: {
modelTitle() {
return this.dialogManger.dialogEditId ? '编辑标准' : '新增标准'
}
},
// computed: {
// modelTitle() {
// return this.dialogManger.dialogEditId ? '编辑标准' : '新增标准'
// }
// },
watch: {
'dialogManger.dialogEditId'(newValue) {
this.model.fetch(
......
......@@ -43,7 +43,13 @@
label="标准名称"
min-width="200"
align="left"
/>
>
<template slot-scope="scope">
<div class="font-color" @click="downPdf(scope.row)">
{{ scope.row.name }}
</div>
</template>
</el-table-column>
<el-table-column
prop="standardStatus"
label="标准状态"
......@@ -163,6 +169,10 @@ export default {
})
},
methods: {
downPdf(row) {
console.log('row', row)
window.open(process.env.VUE_APP_IMAGE_API + row.file)
},
viewTemplate() {
// this.$router.push({
// path: '/processing/reviewReport'
......@@ -199,7 +209,7 @@ export default {
<style scoped>
.font-color {
text-decoration: underline;
color: #1890ff;
color: #1a6fd7;
cursor: pointer;
}
</style>
......@@ -93,7 +93,6 @@
label="测试类型"
prop="testType"
min-width="200"
sortable
align="left"
>
</el-table-column>
......
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