|
@@ -2,7 +2,7 @@
|
|
import { onMounted, ref, getCurrentInstance } from 'vue'
|
|
import { onMounted, ref, getCurrentInstance } from 'vue'
|
|
import Search from '@/components/icon/search.vue'
|
|
import Search from '@/components/icon/search.vue'
|
|
import Warning from '@/components/icon/warning.vue'
|
|
import Warning from '@/components/icon/warning.vue'
|
|
-import { get, _delete } from '../../../utils/request'
|
|
|
|
|
|
+import { get, _delete, downLoad} from '../../../utils/request'
|
|
|
|
|
|
const { proxy } = getCurrentInstance()
|
|
const { proxy } = getCurrentInstance()
|
|
const tableData = ref([])
|
|
const tableData = ref([])
|
|
@@ -60,12 +60,26 @@ const getTeamList = () => {
|
|
}
|
|
}
|
|
// 团队管理列表导出
|
|
// 团队管理列表导出
|
|
function exportManageTeamList() {
|
|
function exportManageTeamList() {
|
|
- get('http://81.68.234.235:8032/pdf-tech/vppTeam/exportManageTeamList', {
|
|
|
|
- teamId: teamId.value,
|
|
|
|
- keyword: queryString.value
|
|
|
|
- }).then((res) => {
|
|
|
|
- console.log(res)
|
|
|
|
- })
|
|
|
|
|
|
+ let teamIds = teamId.value
|
|
|
|
+ let searchs = search.value
|
|
|
|
+ downLoad('http://81.68.234.235:8032/pdf-tech/vppTeam/exportManageTeamList?teamId='+
|
|
|
|
+ teamFilterSelect.value +
|
|
|
|
+ '&' +
|
|
|
|
+ 'keyword=' +
|
|
|
|
+ searchs).then((res) => {
|
|
|
|
+ let url = window.URL.createObjectURL(new Blob([res.data], { type: '.xlsx' }))
|
|
|
|
+ let a= document.createElement('a')
|
|
|
|
+ a.style.display = 'none'
|
|
|
|
+ a.href = url
|
|
|
|
+ // 自定义文件名
|
|
|
|
+ a.setAttribute('download', `团队.xlsx`)
|
|
|
|
+ document.body.appendChild(a)
|
|
|
|
+ // 下载文件
|
|
|
|
+ a.click()
|
|
|
|
+ // 释放内存
|
|
|
|
+ url = window.URL.revokeObjectURL(url)
|
|
|
|
+ document.body.removeChild(a)
|
|
|
|
+ })
|
|
}
|
|
}
|
|
// 删除
|
|
// 删除
|
|
function handleDelete() {
|
|
function handleDelete() {
|
|
@@ -218,38 +232,8 @@ onMounted(() => {
|
|
<el-table-column label="Operate" min-width="10%">
|
|
<el-table-column label="Operate" min-width="10%">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
-<<<<<<< HEAD
|
|
|
|
- <router-link
|
|
|
|
- :to="{
|
|
|
|
- name: 'EditManageTeam',
|
|
|
|
- params: {
|
|
|
|
- flag: 'edit',
|
|
|
|
- teamId: scope.row.id,
|
|
|
|
- teamName: scope.row.name,
|
|
|
|
- teamDescription: scope.row.description,
|
|
|
|
- licenseAmount: scope.row.licenseAmount,
|
|
|
|
- },
|
|
|
|
- }"
|
|
|
|
- >
|
|
|
|
- <div
|
|
|
|
- class="
|
|
|
|
- w-61px
|
|
|
|
- h-20px
|
|
|
|
- border-1 border-[#1460F3]
|
|
|
|
- rounded-4px
|
|
|
|
- text-center text-14px
|
|
|
|
- leading-20px
|
|
|
|
- text-[#1460F3]
|
|
|
|
- cursor-pointer
|
|
|
|
- mb-8px
|
|
|
|
- "
|
|
|
|
- >
|
|
|
|
- Edit
|
|
|
|
- </div>
|
|
|
|
-=======
|
|
|
|
<router-link :to="{ name: 'EditManageTeam', params: { flag: 'edit', teamInfo: scope.row } }">
|
|
<router-link :to="{ name: 'EditManageTeam', params: { flag: 'edit', teamInfo: scope.row } }">
|
|
<div class="w-61px h-20px border-1 border-[#1460F3] rounded-4px text-center text-14px leading-20px text-[#1460F3] cursor-pointer mb-8px">Edit</div>
|
|
<div class="w-61px h-20px border-1 border-[#1460F3] rounded-4px text-center text-14px leading-20px text-[#1460F3] cursor-pointer mb-8px">Edit</div>
|
|
->>>>>>> develop_wzl
|
|
|
|
</router-link>
|
|
</router-link>
|
|
<div
|
|
<div
|
|
class="
|
|
class="
|