|
|
|
@ -113,6 +113,16 @@ |
|
|
|
style="width: 100px; height: 80px"/></span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
width="120" |
|
|
|
fixed="right" |
|
|
|
label="操作"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a type="text" size="small" @click="jumpBM(scope.row)">跳转BenchMark</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<!-- <el-table-column--> |
|
|
|
<!-- fixed="right"--> |
|
|
|
<!-- header-align="center"--> |
|
|
|
@ -369,7 +379,7 @@ |
|
|
|
deleteProjectFile, |
|
|
|
getFileContentList, |
|
|
|
downLoadProjectFile, |
|
|
|
getProjectUserRole, |
|
|
|
getProjectPartNowBm, |
|
|
|
} from "@/api/project/project.js" |
|
|
|
import { |
|
|
|
getNodeAuthority, // 获取节点权限 |
|
|
|
@ -1350,6 +1360,27 @@ |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
jumpBM(row){ |
|
|
|
if (this.$router.resolve(`/sampleManagement-technicalSpecificationList`).resolved.name === '404'){ |
|
|
|
this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',}); |
|
|
|
}else { |
|
|
|
let inData={ |
|
|
|
site:row.site, |
|
|
|
testPartNo:row.orderRef2 |
|
|
|
} |
|
|
|
getProjectPartNowBm(inData).then(({data}) => { |
|
|
|
//区分请求成功和失败的状况 |
|
|
|
if (data && data.code == 0) { |
|
|
|
if(data.rows==null||data.rows.length==0){ |
|
|
|
this.$alert('该物料没有benchmark', '警告', {confirmButtonText: '确定',}); |
|
|
|
} |
|
|
|
this.$router.push({name:`sampleManagement-technicalSpecificationList`,params:{nowCodeNo:data.rows[0].nowBm},}) |
|
|
|
} else { |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
activated() { |
|
|
|
|
|
|
|
|