标准比对--比对页面点击标准号、标准名称应跳转至详情页
This commit is contained in:
@@ -646,7 +646,6 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击查看
|
// 点击查看
|
||||||
handlePreview(data) {
|
handlePreview(data) {
|
||||||
debugger
|
|
||||||
let routeUrl = this.$router.resolve({
|
let routeUrl = this.$router.resolve({
|
||||||
name: "OtherStandardDetails",
|
name: "OtherStandardDetails",
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
+17
-1
@@ -60,13 +60,18 @@
|
|||||||
width="180"
|
width="180"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div><span>{{ scope.row.standSort }} {{ scope.row.standNumber }}</span> <span v-if="scope.row.standYear">-{{ scope.row.standYear }}</span></div>
|
<a class="table-jump"
|
||||||
|
@click="handlePreview(scope.row)">{{ scope.row.standNumber }}</a>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="standName"
|
prop="standName"
|
||||||
label="标准/政策名称"
|
label="标准/政策名称"
|
||||||
>
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a class="table-jump"
|
||||||
|
@click="handlePreview(scope.row)">{{ scope.row.standName }}</a>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="interpretationTime"
|
prop="interpretationTime"
|
||||||
@@ -322,6 +327,17 @@ export default {
|
|||||||
this.$store.getters.userInfo.configContent = pageSize
|
this.$store.getters.userInfo.configContent = pageSize
|
||||||
this.queryStandAndLaws()
|
this.queryStandAndLaws()
|
||||||
},
|
},
|
||||||
|
//点击查看详情
|
||||||
|
handlePreview(item) {
|
||||||
|
let routeUrl = this.$router.resolve({
|
||||||
|
name: 'OtherStandardDetails',
|
||||||
|
params: {
|
||||||
|
id: item.standId,
|
||||||
|
pageType: 'INLAND_STAND'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
window.open(routeUrl.href, '_blank')
|
||||||
|
},
|
||||||
queryStandAndLaws () {
|
queryStandAndLaws () {
|
||||||
this.sarProject.current = this.page
|
this.sarProject.current = this.page
|
||||||
this.sarProject.size = this.pageSize
|
this.sarProject.size = this.pageSize
|
||||||
|
|||||||
@@ -11,19 +11,19 @@
|
|||||||
<div v-show="heightShow" class="transition-box">
|
<div v-show="heightShow" class="transition-box">
|
||||||
<p class="transition-box-p">
|
<p class="transition-box-p">
|
||||||
<label class="transition-box-label">标准号:</label>
|
<label class="transition-box-label">标准号:</label>
|
||||||
<span class="transition-box-span">{{ this.$route.query.item.cid }}</span>
|
<span class="transition-box-span" @click="handlePreview($route.query.item)">{{ $route.query.item.cid }}</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="transition-box-p">
|
<p class="transition-box-p">
|
||||||
<label class="transition-box-label">标准名称:</label>
|
<label class="transition-box-label">标准名称:</label>
|
||||||
<span class="transition-box-span">{{ this.$route.query.item.cname || '-' }}</span>
|
<span class="transition-box-span">{{ $route.query.item.cname || '-' }}</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="transition-box-p">
|
<p class="transition-box-p">
|
||||||
<label class="transition-box-label">上传时间:</label>
|
<label class="transition-box-label">上传时间:</label>
|
||||||
<span class="transition-box-span">{{ this.$route.query.item.endTime || '-' }}</span>
|
<span class="transition-box-span">{{ $route.query.item.endTime || '-' }}</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="transition-box-p">
|
<p class="transition-box-p">
|
||||||
<label class="transition-box-label">征求意见周期:</label>
|
<label class="transition-box-label">征求意见周期:</label>
|
||||||
<span class="transition-box-span" v-if="this.$route.query.item.startTime && this.$route.query.item.endTime">{{ this.$route.query.item.startTime + ' ~ ' + this.$route.query.item.endTime}}</span>
|
<span class="transition-box-span" v-if="$route.query.item.startTime && $route.query.item.endTime">{{ $route.query.item.startTime + ' ~ ' + $route.query.item.endTime}}</span>
|
||||||
<span class="transition-box-span" v-else>-</span>
|
<span class="transition-box-span" v-else>-</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -166,6 +166,21 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
//点击查看
|
||||||
|
handlePreview(data) {
|
||||||
|
console.log(data);
|
||||||
|
return
|
||||||
|
let routeUrl = this.$router.resolve({
|
||||||
|
name: "OtherStandardDetails",
|
||||||
|
params: {
|
||||||
|
id: data.id,
|
||||||
|
pageType: data.standType
|
||||||
|
}
|
||||||
|
});
|
||||||
|
window.open(routeUrl.href, "_blank");
|
||||||
|
},
|
||||||
|
|
||||||
// 获取详情信息列表
|
// 获取详情信息列表
|
||||||
getList() {
|
getList() {
|
||||||
this.spinShow = true
|
this.spinShow = true
|
||||||
|
|||||||
Reference in New Issue
Block a user