|
|
|
@ -88,25 +88,51 @@
|
|
|
|
|
<el-form-item class="btnClass"> |
|
|
|
|
<el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 查詢</el-button> |
|
|
|
|
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button> |
|
|
|
|
<el-button type="primary" plain v-hasPermi="['system:enterprise:create']" |
|
|
|
|
@click="push({ path: 'update' }) |
|
|
|
|
"> |
|
|
|
|
<Icon icon="ep:circle-plus" class="mr-5px" @click=" |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
plain |
|
|
|
|
v-hasPermi="['system:enterprise:create']" |
|
|
|
|
@click="push({ path: 'update' })" |
|
|
|
|
> |
|
|
|
|
<Icon |
|
|
|
|
icon="ep:circle-plus" |
|
|
|
|
class="mr-5px" |
|
|
|
|
@click=" |
|
|
|
|
push({ |
|
|
|
|
path: 'update', |
|
|
|
|
query: { |
|
|
|
|
id: scope.row.id |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
" /> 新增 |
|
|
|
|
" |
|
|
|
|
/> |
|
|
|
|
新增 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button type="success" plain @click="handleExport" :loading="exportLoading" v-hasPermi="['system:enterprise:export']"> |
|
|
|
|
<el-button |
|
|
|
|
type="success" |
|
|
|
|
plain |
|
|
|
|
@click="handleExport" |
|
|
|
|
:loading="exportLoading" |
|
|
|
|
v-hasPermi="['system:enterprise:export']" |
|
|
|
|
> |
|
|
|
|
<Icon icon="ep:download" class="mr-5px" /> 导出 |
|
|
|
|
</el-button> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
|
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true" :cell-style="{'text-align': 'left'}"> |
|
|
|
|
<el-table-column label="企业名称" align="left" fixed="left" prop="enterprisesName" width="200" /> |
|
|
|
|
<el-table |
|
|
|
|
v-loading="loading" |
|
|
|
|
:data="list" |
|
|
|
|
:stripe="true" |
|
|
|
|
:show-overflow-tooltip="true" |
|
|
|
|
:cell-style="{ 'text-align': 'left' }" |
|
|
|
|
> |
|
|
|
|
<el-table-column |
|
|
|
|
label="企业名称" |
|
|
|
|
align="left" |
|
|
|
|
fixed="left" |
|
|
|
|
prop="enterprisesName" |
|
|
|
|
width="200" |
|
|
|
|
/> |
|
|
|
|
<el-table-column label="专管员" align="left" prop="inviterName" fixed="left" /> |
|
|
|
|
<el-table-column label="企业所属区域" align="left" prop="region" fixed="left"> |
|
|
|
|
<template #default="scope"> |
|
|
|
@ -116,11 +142,7 @@
|
|
|
|
|
|
|
|
|
|
<el-table-column label="企业地址" align="left" prop="address" /> |
|
|
|
|
<el-table-column label="负责人姓名" align="left" prop="contactName" /> |
|
|
|
|
<el-table-column |
|
|
|
|
label="联系电话" |
|
|
|
|
align="center" |
|
|
|
|
prop="environmentalContactPhone" |
|
|
|
|
/> |
|
|
|
|
<el-table-column label="联系电话" align="center" prop="environmentalContactPhone" /> |
|
|
|
|
<el-table-column label="企业注册号" align="left" prop="registrationNumber" /> |
|
|
|
|
<el-table-column label="企业图文介绍" align="left" prop="introduction" /> |
|
|
|
|
<!-- <el-table-column label="企业成立时间" align="center" prop="establishmentDate" /> |
|
|
|
@ -134,7 +156,6 @@
|
|
|
|
|
/> |
|
|
|
|
<el-table-column label="操作" align="left" min-width="120px"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
|
|
|
|
|
<el-button |
|
|
|
|
link |
|
|
|
|
type="primary" |
|
|
|
@ -150,8 +171,15 @@
|
|
|
|
|
> |
|
|
|
|
详情 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button link type="danger" @click="handleDelete(scope.row.id)" v-hasPermi="['system:enterprise:delete']"> 删除 </el-button> |
|
|
|
|
<!-- |
|
|
|
|
<el-button |
|
|
|
|
link |
|
|
|
|
type="danger" |
|
|
|
|
@click="handleDelete(scope.row.id)" |
|
|
|
|
v-hasPermi="['system:enterprise:delete']" |
|
|
|
|
> |
|
|
|
|
删除 |
|
|
|
|
</el-button> |
|
|
|
|
<!-- |
|
|
|
|
<el-button link type="danger" @click="detailformRef(scope.row.id)"> 详情 </el-button> --> |
|
|
|
|
|
|
|
|
|
<!-- <router-link :to="'/enterprises/detailEnterprises/' + scope.row.type">--> |
|
|
|
@ -173,9 +201,7 @@
|
|
|
|
|
</section> |
|
|
|
|
</ContentWrap> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
@ -202,7 +228,7 @@ const queryParams = reactive({
|
|
|
|
|
region: undefined, |
|
|
|
|
enterprisesName: undefined, |
|
|
|
|
address: undefined, |
|
|
|
|
enterprisesStatus:undefined, |
|
|
|
|
enterprisesStatus: undefined, |
|
|
|
|
contactName: undefined, |
|
|
|
|
environmentalContactPhone: undefined, |
|
|
|
|
registrationNumber: undefined, |
|
|
|
@ -257,9 +283,6 @@ const { push } = useRouter() // 路由
|
|
|
|
|
// }) |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 删除按钮操作 */ |
|
|
|
|
const handleDelete = async (id: number) => { |
|
|
|
|
try { |
|
|
|
@ -293,11 +316,11 @@ onMounted(() => {
|
|
|
|
|
getList() |
|
|
|
|
}) |
|
|
|
|
</script> |
|
|
|
|
<style lang="css" > |
|
|
|
|
:deep(.el-card__body) { |
|
|
|
|
<style lang="css"> |
|
|
|
|
:deep(.el-card__body) { |
|
|
|
|
padding: 0 !important; |
|
|
|
|
} |
|
|
|
|
.formClass { |
|
|
|
|
} |
|
|
|
|
.formClass { |
|
|
|
|
display: grid; |
|
|
|
|
grid-template-columns: 1fr 1fr 1fr 1fr; |
|
|
|
|
grid-template-rows: 1fr 1fr; |
|
|
|
@ -309,5 +332,5 @@ onMounted(() => {
|
|
|
|
|
.btnClass { |
|
|
|
|
grid-column: span 2; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|