Commit 0b65a66c by 田爽

政策法规链接问题

parent 4ffeacd7
......@@ -43,7 +43,7 @@
<el-form-item label='更新日期' prop='updateDate'>
<el-date-picker
clearable
v-model="updateDate"
type="datetimerange"
start-placeholder="开始日期"
......@@ -100,7 +100,7 @@
align="center"
label="最后编辑">
</el-table-column>
<el-table-column
prop="releasedate"
header-align="center"
......@@ -110,7 +110,7 @@
label="创建时间">
<template slot-scope="scope">
<div>{{ scope.row.releasedate.substring(0,10) }}</div>
</template>
</template>
</el-table-column>
<el-table-column
prop="updatedate"
......@@ -121,7 +121,7 @@
label="更新时间">
<template slot-scope="scope">
<div>{{ scope.row.updatedate && scope.row.updatedate.substring(0,10) }}</div>
</template>
</template>
</el-table-column>
<el-table-column
prop="auditor"
......@@ -157,7 +157,7 @@
</template>
</el-table-column>
</el-table>
<el-pagination
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
......@@ -303,13 +303,13 @@ export default {
method: 'post'
}).then(({data}) => {
if (data && data.code === 0) {
if (!item.directpath || item.directpath === null) {
// if (!item.directpath || item.directpath === null) {
ursStr = this.$store.state.config.urls + '/Knowledge/Statuteinfo?id=' + item.id + '&token=' + data.data
this.$set(this.urlsJson, item.title, ursStr)
} else {
ursStr = item.directpath + '&token=' + data.data
this.$set(this.urlsJson, item.title, ursStr)
}
// } else {
// ursStr = item.directpath + '&token=' + data.data
// this.$set(this.urlsJson, item.title, ursStr)
// }
}
})
},
......@@ -320,11 +320,11 @@ export default {
}).then(({data}) => {
console.log(data)
if (data && data.code === 0) {
if (!item.directpath || item.directpath === null) {
// if (!item.directpath || item.directpath === null) {
window.open(this.$store.state.config.urls + '/Knowledge/Statuteinfo?id=' + item.id + '&token=' + data.data, '_blank')
} else {
window.open(item.directpath + '&token=' + data.data, '_blank')
}
// } else {
// window.open(item.directpath + '&token=' + data.data, '_blank')
// }
} else {
this.$message.error('获取失败')
}
......
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