[参数项列表] 导入

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"/> <a-icon type="download"/>
{{$t('templateDownload')}} {{$t('templateDownload')}}
</div> </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'"> <div @click="handleDel" class="operator-text" v-has="'document:deleteBatch'">
<a-icon type="delete"/> <a-icon type="delete"/>
{{$t('BatchDelete')}} {{$t('BatchDelete')}}
@@ -98,11 +101,13 @@ import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
import addModel from './components/addModel' import addModel from './components/addModel'
import axios from 'axios' import axios from 'axios'
import { ACCESS_TOKEN } from '@/store/mutation-types' import { ACCESS_TOKEN } from '@/store/mutation-types'
import ImportFile from '@/components/ImportFile/index'
import Vue from 'vue' import Vue from 'vue'
export default { export default {
name: 'index', name: 'index',
components: { components: {
addModel, addModel,
ImportFile
}, },
data() { data() {
return { return {
@@ -117,13 +122,13 @@ export default {
dataSource: [], dataSource: [],
confirmLoading: false, confirmLoading: false,
url: { url: {
queryById: 'params/paramsInfo/queryById', queryById: 'params/paramsInfo/queryById', // 编辑 通过id进行查询
list: 'params/paramsInfo/page', list: 'params/paramsInfo/page', // 查询列表
add: 'params/paramsInfo/add', add: 'params/paramsInfo/add', // 添加 -- 提交
edit: 'params/paramsInfo/edit', edit: 'params/paramsInfo/edit', // 编辑 -- 提交
deleteBatch: 'params/paramsInfo/delete', deleteBatch: 'params/paramsInfo/delete', // 单个删除
deleteAll: 'params/paramsInfo/deleteBatch', deleteAll: 'params/paramsInfo/deleteBatch', // 批量删除
importZipUrl: 'params/paramsInfo/importParamsInfo', // 导入
}, },
total: 0, total: 0,
pageSize: 10, pageSize: 10,