mirror of
https://gitee.com/anji-plus/report.git
synced 2026-03-20 09:38:35 +08:00
Update index.vue
This commit is contained in:
@@ -62,6 +62,7 @@
|
|||||||
<el-table-column prop="updateTime" label="更新时间" />
|
<el-table-column prop="updateTime" label="更新时间" />
|
||||||
<el-table-column label="操作" width="200px" align="center">
|
<el-table-column label="操作" width="200px" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
<el-button type="text" @click="share(scope.row)" v-permission="'bigScreenManage:share'">分享</el-button>
|
||||||
<el-button type="text" @click="preview(scope.row)" v-permission="'bigScreenManage:view'">预览</el-button>
|
<el-button type="text" @click="preview(scope.row)" v-permission="'bigScreenManage:view'">预览</el-button>
|
||||||
<el-button type="text" @click="design(scope.row)" v-permission="'bigScreenManage:design'">设计</el-button>
|
<el-button type="text" @click="design(scope.row)" v-permission="'bigScreenManage:design'">设计</el-button>
|
||||||
<el-button type="text" @click="showAddReportModel(scope.row)" v-permission="'reportManage:update'">编辑</el-button>
|
<el-button type="text" @click="showAddReportModel(scope.row)" v-permission="'reportManage:update'">编辑</el-button>
|
||||||
@@ -144,6 +145,7 @@
|
|||||||
<el-button type="primary" @click="UserConfirm">保存</el-button>
|
<el-button type="primary" @click="UserConfirm">保存</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<Share :visib="visibleForShareDialog" :reportCode="reportCodeForShareDialog" @handleClose="visibleForShareDialog = false" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -152,10 +154,11 @@ import { dataDictionary } from '@/api/common'
|
|||||||
import { getToken } from '@/utils/auth'
|
import { getToken } from '@/utils/auth'
|
||||||
import { reportPageList, addReport, editReport, delReport } from '@/api/report'
|
import { reportPageList, addReport, editReport, delReport } from '@/api/report'
|
||||||
import Dictionary from '@/components/Dictionary/index'
|
import Dictionary from '@/components/Dictionary/index'
|
||||||
|
import Share from '@/views/report/report/components/share'
|
||||||
var typeData
|
var typeData
|
||||||
export default {
|
export default {
|
||||||
name: 'Report',
|
name: 'Report',
|
||||||
components: { Dictionary },
|
components: { Dictionary, Share },
|
||||||
filters: {
|
filters: {
|
||||||
filterPushType(val) {
|
filterPushType(val) {
|
||||||
for (var i = 0; i < typeData.dictionaryGroupOptions.length; i++) {
|
for (var i = 0; i < typeData.dictionaryGroupOptions.length; i++) {
|
||||||
@@ -204,6 +207,10 @@ export default {
|
|||||||
headers: {
|
headers: {
|
||||||
Authorization: getToken(),
|
Authorization: getToken(),
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 分享
|
||||||
|
visibleForShareDialog: false,
|
||||||
|
reportCodeForShareDialog: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -270,6 +277,11 @@ export default {
|
|||||||
this.reportCodeDisable = true
|
this.reportCodeDisable = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 分享
|
||||||
|
share(val) {
|
||||||
|
this.reportCodeForShareDialog = val.reportCode
|
||||||
|
this.visibleForShareDialog = true
|
||||||
|
},
|
||||||
// 预览
|
// 预览
|
||||||
preview(val) {
|
preview(val) {
|
||||||
var routeUrl = this.$router.resolve({
|
var routeUrl = this.$router.resolve({
|
||||||
|
|||||||
Reference in New Issue
Block a user