From f3c73a86f00061125e1946125c2f7499064a5708 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: 星期二, 21 十月 2025 14:51:05 +0800
Subject: [PATCH] 修改新增
---
src/views/build/conpanyFunctionConsult/companyInfo/overview/index.vue | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/src/views/build/conpanyFunctionConsult/companyInfo/overview/index.vue b/src/views/build/conpanyFunctionConsult/companyInfo/overview/index.vue
index 6491f6e..0dc909b 100644
--- a/src/views/build/conpanyFunctionConsult/companyInfo/overview/index.vue
+++ b/src/views/build/conpanyFunctionConsult/companyInfo/overview/index.vue
@@ -8,6 +8,7 @@
plain
icon="Plus"
@click="openDialog('add',{})"
+ v-hasPermi="['companyInfo:overview:add']"
>新增</el-button>
</el-form-item>
<el-form-item label="企业名称:" v-if="data.isAdmin" style="margin-left: 20px">
@@ -42,10 +43,9 @@
<el-form-item v-if="data.isAdmin">
<el-button type="primary" style="margin-left: 30px" @click="searchClick">查询</el-button>
<el-button plain @click="reset">重置</el-button>
-
</el-form-item>
<el-form-item>
- <el-button type="primary" style="margin-left: 15px" icon="Upload" @click="exportData">导入</el-button>
+ <el-button type="primary" style="margin-left: 15px" icon="Upload" @click="exportData" v-hasPermi="['companyInfo:overview:add']">导入</el-button>
</el-form-item>
</el-form>
</div>
@@ -65,8 +65,8 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" >
<template #default="scope">
<el-button link type="primary" @click="openDialog('review',scope.row)" >查看</el-button>
- <el-button link type="primary" @click="openDialog('edit',scope.row)" >编辑</el-button>
- <el-button link type="danger" @click="handleDelete(scope.row)" >删除</el-button>
+ <el-button link type="primary" @click="openDialog('edit',scope.row)" v-hasPermi="['companyInfo:overview:edit']">编辑</el-button>
+ <el-button link type="danger" @click="handleDelete(scope.row)" v-hasPermi="['companyInfo:overview:del']">删除</el-button>
</template>
</el-table-column>
</el-table>
@@ -356,11 +356,6 @@
formData.append('file', file.raw)
})
formData.append('companyId',data.isAdmin ? state.form.companyId : data.queryParams.companyId)
- // const param = {
- // file: formData,
- // companyId: data.isAdmin ? state.form.companyId : data.queryParams.companyId
- // }
- console.log('form',formData)
const res = await uploadInOverview(formData)
if(res.code == 200){
ElMessage({
--
Gitblit v1.9.2