Commit ed7b7171 authored by mzx's avatar mzx

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

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