后台展示 改为详情

This commit is contained in:
a0049873 2022-07-18 18:24:28 +08:00
parent fd32fd6769
commit 0ee999ed86
2 changed files with 21 additions and 18 deletions

View File

@ -120,7 +120,7 @@
>{{ $t("delete") }}</el-button >{{ $t("delete") }}</el-button
> >
<el-button type="text" size="small" @click="showDetail(scope.row)" <el-button type="text" size="small" @click="showDetail(scope.row)"
>展示</el-button >详情</el-button
> >
<el-button type="text" size="small" @click="showDocument(scope.row)" <el-button type="text" size="small" @click="showDocument(scope.row)"
>开发文档</el-button >开发文档</el-button
@ -303,15 +303,17 @@ export default {
} }
}, },
showDetail (val) { showDetail (val) {
console.log(val)
window.open(window.SITE_CONFIG.previewUrl + '#/details?id=' + val.id)
// this.addOrUpdateHandle(id) // this.addOrUpdateHandle(id)
this.addOrUpdateVisible = true // this.addOrUpdateVisible = true
this.disabled = false // this.disabled = false
this.$nextTick(() => { // this.$nextTick(() => {
this.$refs.addOrUpdate.UpdateState = false // this.$refs.addOrUpdate.UpdateState = false
this.$refs.addOrUpdate.dataFormShowDetails = val // this.$refs.addOrUpdate.dataFormShowDetails = val
this.$refs.addOrUpdate.init() // this.$refs.addOrUpdate.init()
}) // })
this.disabled = true // this.disabled = true
}, },
showDocument (val) { showDocument (val) {
window.open( window.open(

View File

@ -103,7 +103,7 @@
>{{ $t("delete") }}</el-button >{{ $t("delete") }}</el-button
> >
<el-button type="text" size="small" @click="showDetail(scope.row)" <el-button type="text" size="small" @click="showDetail(scope.row)"
>展示</el-button >详情</el-button
> >
<el-button type="text" size="small" @click="showDocument(scope.row)" <el-button type="text" size="small" @click="showDocument(scope.row)"
>开发文档</el-button >开发文档</el-button
@ -287,14 +287,15 @@ export default {
}) })
}, },
showDetail (val) { showDetail (val) {
this.addOrUpdateVisible = true window.open(window.SITE_CONFIG.previewUrl + '#/details?id=' + val.id)
this.disabled = false // this.addOrUpdateVisible = true
this.$nextTick(() => { // this.disabled = false
this.$refs.addOrUpdate.UpdateState = false // this.$nextTick(() => {
this.$refs.addOrUpdate.dataFormShowDetails = val // this.$refs.addOrUpdate.UpdateState = false
this.$refs.addOrUpdate.init() // this.$refs.addOrUpdate.dataFormShowDetails = val
}) // this.$refs.addOrUpdate.init()
this.disabled = true // })
// this.disabled = true
}, },
showDocument (val) { showDocument (val) {
console.log(val) console.log(val)