Update index.vue

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

@ -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({

Loading…
Cancel
Save