Update index.vue

木子李·De 3 years ago
parent 37ba2dc768
commit d73e54a2bd

@ -34,6 +34,7 @@
<footer> <footer>
{{ item.updateTime }} {{ item.updateTime }}
<div class="operation"> <div class="operation">
<el-button icon="el-icon-share" class="view" type="text" @click="share(item)" v-permission="'bigScreenManage:share'"/>
<el-button icon="el-icon-view" class="view" type="text" @click="viewDesign(item)" v-permission="'bigScreenManage:view'"/> <el-button icon="el-icon-view" class="view" type="text" @click="viewDesign(item)" v-permission="'bigScreenManage:view'"/>
<el-button icon="el-icon-edit" class="edit" type="text" @click="openDesign(item)" v-permission="'bigScreenManage:design'"/> <el-button icon="el-icon-edit" class="edit" type="text" @click="openDesign(item)" v-permission="'bigScreenManage:design'"/>
</div> </div>
@ -45,14 +46,16 @@
<div class="block"> <div class="block">
<el-pagination :total="totalCount" :page-sizes="[8, 20, 50, 100]" :page-size="params.pageSize" :current-page="params.pageNumber" layout="total, sizes, prev, pager, next, jumper" @size-change="handleSizeChange" @current-change="handleCurrentChange" /> <el-pagination :total="totalCount" :page-sizes="[8, 20, 50, 100]" :page-size="params.pageSize" :current-page="params.pageNumber" layout="total, sizes, prev, pager, next, jumper" @size-change="handleSizeChange" @current-change="handleCurrentChange" />
</div> </div>
<Share :visib="visibleForShareDialog" :reportCode="reportCodeForShareDialog" @handleClose="visibleForShareDialog = false" />
</div> </div>
</template> </template>
<script> <script>
import Share from '@/views/report/report/components/share'
import { reportPageList } from '@/api/report' import { reportPageList } from '@/api/report'
export default { export default {
name: 'Login', name: 'Login',
components: {}, components: {Share},
data() { data() {
return { return {
list: [], list: [],
@ -68,6 +71,9 @@ export default {
order: 'DESC', order: 'DESC',
sort: 'update_time', sort: 'update_time',
}, },
//
visibleForShareDialog: false,
reportCodeForShareDialog: '',
} }
}, },
mounted() {}, mounted() {},
@ -109,6 +115,11 @@ export default {
this.params.pageNumber = val this.params.pageNumber = val
this.queryByPage() this.queryByPage()
}, },
//
share(val) {
this.reportCodeForShareDialog = val.reportCode
this.visibleForShareDialog = true
},
openDesign(val) { openDesign(val) {
var routeUrl = this.$router.resolve({ var routeUrl = this.$router.resolve({
path: '/bigscreen/designer', path: '/bigscreen/designer',

Loading…
Cancel
Save