|
@@ -31,27 +31,27 @@
|
|
|
|
|
|
<!-- 操作按钮区域 -->
|
|
<!-- 操作按钮区域 -->
|
|
<div class="table-operator">
|
|
<div class="table-operator">
|
|
- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
|
|
|
|
- <a-button type="primary" icon="download" @click="handleExportXls('导入并下载')">导出</a-button>
|
|
|
|
|
|
+ <a-button @click="handleAdd" type="primary" icon="plus">导入</a-button>
|
|
|
|
+ <!-- <a-button type="primary" icon="download" @click="handleExportXls('导入并下载')">导出</a-button>
|
|
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
|
|
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
|
|
<a-button type="primary" icon="import">导入</a-button>
|
|
<a-button type="primary" icon="import">导入</a-button>
|
|
- </a-upload>
|
|
|
|
|
|
+ </a-upload> -->
|
|
<!-- 高级查询区域 -->
|
|
<!-- 高级查询区域 -->
|
|
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
|
|
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
|
|
- <a-dropdown v-if="selectedRowKeys.length > 0">
|
|
|
|
|
|
+ <!-- <a-dropdown v-if="selectedRowKeys.length > 0">
|
|
<a-menu slot="overlay">
|
|
<a-menu slot="overlay">
|
|
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
|
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
|
</a-menu>
|
|
</a-menu>
|
|
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
|
|
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
|
|
- </a-dropdown>
|
|
|
|
|
|
+ </a-dropdown> -->
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- table区域-begin -->
|
|
<!-- table区域-begin -->
|
|
<div>
|
|
<div>
|
|
- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
|
|
|
|
|
|
+ <!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
|
|
<i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
|
|
<i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
|
|
<a style="margin-left: 24px" @click="onClearSelected">清空</a>
|
|
<a style="margin-left: 24px" @click="onClearSelected">清空</a>
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
|
|
|
|
<a-table
|
|
<a-table
|
|
ref="table"
|
|
ref="table"
|
|
@@ -63,7 +63,6 @@
|
|
:dataSource="dataSource"
|
|
:dataSource="dataSource"
|
|
:pagination="ipagination"
|
|
:pagination="ipagination"
|
|
:loading="loading"
|
|
:loading="loading"
|
|
- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
|
|
|
class="j-table-force-nowrap"
|
|
class="j-table-force-nowrap"
|
|
@change="handleTableChange">
|
|
@change="handleTableChange">
|
|
|
|
|
|
@@ -88,11 +87,12 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<span slot="action" slot-scope="text, record">
|
|
<span slot="action" slot-scope="text, record">
|
|
- <a @click="handleDetail(record)">详情</a>
|
|
|
|
- <a-divider type="vertical" />
|
|
|
|
|
|
+ <!-- <a @click="handleDetail(record)">详情</a> -->
|
|
|
|
+ <a @click="exportExcel(record)">下载</a>
|
|
|
|
+ <!-- <a-divider type="vertical" />
|
|
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
|
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
|
|
<a>删除</a>
|
|
<a>删除</a>
|
|
- </a-popconfirm>
|
|
|
|
|
|
+ </a-popconfirm> -->
|
|
<!-- <a @click="handleEdit(record)">编辑</a>
|
|
<!-- <a @click="handleEdit(record)">编辑</a>
|
|
|
|
|
|
<a-divider type="vertical" />
|
|
<a-divider type="vertical" />
|
|
@@ -125,6 +125,7 @@
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
import ProjectImportListModal from './modules/ProjectImportListModal'
|
|
import ProjectImportListModal from './modules/ProjectImportListModal'
|
|
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
|
|
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
|
|
|
|
+ import { getFileAccessHttpUrl, downloadFile } from '@/api/manage'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'ProjectImportListList',
|
|
name: 'ProjectImportListList',
|
|
@@ -206,6 +207,10 @@
|
|
fieldList.push({type:'string',value:'createBy',text:'导入人',dictCode:''})
|
|
fieldList.push({type:'string',value:'createBy',text:'导入人',dictCode:''})
|
|
fieldList.push({type:'datetime',value:'createTime',text:'导入日期'})
|
|
fieldList.push({type:'datetime',value:'createTime',text:'导入日期'})
|
|
this.superFieldList = fieldList
|
|
this.superFieldList = fieldList
|
|
|
|
+ },
|
|
|
|
+ exportExcel(record){
|
|
|
|
+ let url = getFileAccessHttpUrl(record.fileAddress);
|
|
|
|
+ downloadFile(url, record.fileName)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|