Update index.vue

木子李·De 3 years ago
parent 32681285ae
commit 114cf5ab00

@ -62,6 +62,7 @@
<el-table-column prop="updateTime" label="更新时间" />
<el-table-column label="操作" width="200px" align="center">
<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="design(scope.row)" v-permission="'bigScreenManage:design'"></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>
</div>
</el-dialog>
<Share :visib="visibleForShareDialog" :reportCode="reportCodeForShareDialog" @handleClose="visibleForShareDialog = false" />
</div>
</template>
@ -152,10 +154,11 @@ import { dataDictionary } from '@/api/common'
import { getToken } from '@/utils/auth'
import { reportPageList, addReport, editReport, delReport } from '@/api/report'
import Dictionary from '@/components/Dictionary/index'
import Share from '@/views/report/report/components/share'
var typeData
export default {
name: 'Report',
components: { Dictionary },
components: { Dictionary, Share },
filters: {
filterPushType(val) {
for (var i = 0; i < typeData.dictionaryGroupOptions.length; i++) {
@ -204,6 +207,10 @@ export default {
headers: {
Authorization: getToken(),
},
//
visibleForShareDialog: false,
reportCodeForShareDialog: '',
}
},
@ -270,6 +277,11 @@ export default {
this.reportCodeDisable = true
}
},
//
share(val) {
this.reportCodeForShareDialog = val.reportCode
this.visibleForShareDialog = true
},
//
preview(val) {
var routeUrl = this.$router.resolve({

Loading…
Cancel
Save