1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- import { downLoad2, renderSize } from '@/utils'
- export const workspaceOptions = {
- props: {
- tableData: {//数据
- type: Array,
- default: () => {
- return []
- }
- },
- queryParams: {//分页信息
- type: Object,
- default: () => {
- return {
- size: 10,
- current: 1,
- }
- }
- },
- },
- methods: {
- renderSize,
- handleClick(row,key) {
- if(key == 'name'){
- const router = this.$router.resolve({
- path: '/project/patentCollection',
- query: {
- id: row.id,
- }
- })
- window.open(router.href, '_blank');
- }
-
- },
- //操作列
- handleCommand(event, row) {
- var isLast = false
- if(event == 10){
- this.action={
- type:'1',
- id:row.id
- }
- if(this.tableData.length == 1){
- isLast = true
- }
- }
- if(event == 'e'){
- this.action={
- type:'2',
- id:row.id
- }
- }
- this.$emit('option', { option: event, row ,isLast:isLast})
- },
- },
- }
|