[参数项列表] 导入

This commit is contained in:
zhaomeijing
2022-04-29 10:47:24 +08:00
parent 644f6031c1
commit 2d3a9a9fde
@@ -52,6 +52,9 @@
<a-icon type="download"/>
{{$t('templateDownload')}}
</div>
<div class="operator-text" v-has="'document:importZip'">
<ImportFile :url="url" :isTrue="false" :accept="'.zip'"/>
</div>
<div @click="handleDel" class="operator-text" v-has="'document:deleteBatch'">
<a-icon type="delete"/>
{{$t('BatchDelete')}}
@@ -98,11 +101,13 @@ import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
import addModel from './components/addModel'
import axios from 'axios'
import { ACCESS_TOKEN } from '@/store/mutation-types'
import ImportFile from '@/components/ImportFile/index'
import Vue from 'vue'
export default {
name: 'index',
components: {
addModel,
ImportFile
},
data() {
return {
@@ -117,13 +122,13 @@ export default {
dataSource: [],
confirmLoading: false,
url: {
queryById: 'params/paramsInfo/queryById',
list: 'params/paramsInfo/page',
add: 'params/paramsInfo/add',
edit: 'params/paramsInfo/edit',
deleteBatch: 'params/paramsInfo/delete',
deleteAll: 'params/paramsInfo/deleteBatch',
queryById: 'params/paramsInfo/queryById', // 编辑 通过id进行查询
list: 'params/paramsInfo/page', // 查询列表
add: 'params/paramsInfo/add', // 添加 -- 提交
edit: 'params/paramsInfo/edit', // 编辑 -- 提交
deleteBatch: 'params/paramsInfo/delete', // 单个删除
deleteAll: 'params/paramsInfo/deleteBatch', // 批量删除
importZipUrl: 'params/paramsInfo/importParamsInfo', // 导入
},
total: 0,
pageSize: 10,