优化代码
This commit is contained in:
@ -5,11 +5,7 @@
|
||||
</div>
|
||||
<!-- 搜索 -->
|
||||
<div ref="searchBox">
|
||||
<Search
|
||||
:searchArr="searchConfiger"
|
||||
@submit="onSearch"
|
||||
:key="pageData.keyCount"
|
||||
/>
|
||||
<Search :searchArr="searchConfiger" @submit="onSearch" :key="pageData.keyCount" />
|
||||
</div>
|
||||
<!-- 按钮组 -->
|
||||
<div class="content">
|
||||
@ -19,34 +15,18 @@
|
||||
<el-button type="primary">导出</el-button>
|
||||
<el-button type="danger">批量删除</el-button>
|
||||
<el-button type="primary" icon="CirclePlus">添加标签模型</el-button>
|
||||
<el-button type="primary" icon="CirclePlus" @click="drawerModel"
|
||||
>添加范围模型</el-button
|
||||
>
|
||||
<el-button type="primary" icon="CirclePlus" @click="personNum"
|
||||
>涉及人数</el-button
|
||||
>
|
||||
<el-button type="primary" icon="CirclePlus" @click="drawerModel">添加范围模型</el-button>
|
||||
<el-button type="primary" icon="CirclePlus" @click="personNum">涉及人数</el-button>
|
||||
</div>
|
||||
<el-input
|
||||
v-model="input2"
|
||||
style="max-width: 300px"
|
||||
placeholder="请输入关键字"
|
||||
>
|
||||
<template #append
|
||||
><el-button type="primary" icon="Search"></el-button
|
||||
></template>
|
||||
<el-input v-model="input2" style="max-width: 300px" placeholder="请输入关键字">
|
||||
<template #append><el-button type="primary" icon="Search"></el-button></template>
|
||||
</el-input>
|
||||
</div>
|
||||
<!-- 表格 -->
|
||||
<div class="tabBox">
|
||||
<MyTable
|
||||
:tableData="pageData.tableData"
|
||||
:tableColumn="pageData.tableColumn"
|
||||
:tableHeight="pageData.tableHeight"
|
||||
:key="pageData.keyCount"
|
||||
:tableConfiger="pageData.tableConfiger"
|
||||
:controlsWidth="pageData.controlsWidth"
|
||||
@chooseData="chooseData"
|
||||
>
|
||||
<MyTable :tableData="pageData.tableData" :tableColumn="pageData.tableColumn" :tableHeight="pageData.tableHeight"
|
||||
:key="pageData.keyCount" :tableConfiger="pageData.tableConfiger" :controlsWidth="pageData.controlsWidth"
|
||||
@chooseData="chooseData">
|
||||
<template #bkDj="{ row }">
|
||||
<DictTag :tag="false" :value="row.bkDj" :options="D_GS_BK_DJ" />
|
||||
</template>
|
||||
@ -69,39 +49,19 @@
|
||||
</template>
|
||||
<!-- 操作 -->
|
||||
<template #controls="{ row }">
|
||||
<el-button
|
||||
v-if="row.bkZt == '01' || row.bkZt == '03' || row.bkZt == '06'"
|
||||
size="small"
|
||||
@click="editControl('edit', row)"
|
||||
>编辑</el-button
|
||||
>
|
||||
<el-button
|
||||
v-if="row.bkZt == '01' || row.bkZt == '03' || row.bkZt == '06'"
|
||||
size="small"
|
||||
@click="openDetail(row)"
|
||||
>送审</el-button
|
||||
>
|
||||
<el-button size="small" @click="info('detail', row)"
|
||||
>详情</el-button
|
||||
>
|
||||
<el-button v-if="row.bkZt == '01' || row.bkZt == '03' || row.bkZt == '06'" size="small"
|
||||
@click="editControl('edit', row)">编辑</el-button>
|
||||
<el-button v-if="row.bkZt == '01' || row.bkZt == '03' || row.bkZt == '06'" size="small"
|
||||
@click="openDetail(row)">送审</el-button>
|
||||
<el-button size="small" @click="info('detail', row)">详情</el-button>
|
||||
</template>
|
||||
</MyTable>
|
||||
<Pages
|
||||
@changeNo="changeNo"
|
||||
@changeSize="changeSize"
|
||||
:tableHeight="pageData.tableHeight"
|
||||
:pageConfiger="{
|
||||
...pageData.pageConfiger,
|
||||
total: pageData.total
|
||||
}"
|
||||
></Pages>
|
||||
<Pages @changeNo="changeNo" @changeSize="changeSize" :tableHeight="pageData.tableHeight" :pageConfiger="{
|
||||
...pageData.pageConfiger,
|
||||
total: pageData.total
|
||||
}"></Pages>
|
||||
</div>
|
||||
<el-dialog
|
||||
v-model="dialogVisible"
|
||||
title="发起送审"
|
||||
width="500px"
|
||||
:before-close="handleClose"
|
||||
>
|
||||
<el-dialog v-model="dialogVisible" title="发起送审" width="500px" :before-close="handleClose">
|
||||
<span>是否要发起送审</span>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
@ -373,10 +333,12 @@ const tabHeightFn = () => {
|
||||
.el-loading-mask {
|
||||
background: rgba(0, 0, 0, 0.5) !important;
|
||||
}
|
||||
|
||||
.content {
|
||||
background-color: #fff;
|
||||
border-radius: 4px;
|
||||
padding-top: 10px;
|
||||
|
||||
.btns {
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
Reference in New Issue
Block a user