修改了对应bug

This commit is contained in:
chenze 2024-08-30 12:10:49 +08:00
parent da43d00487
commit 0aef53eaad
3 changed files with 21 additions and 20 deletions

View File

@ -23,22 +23,6 @@
</a-form>
</div>
<a-tabs default-active-key="1" @change="callback">
<a-tab-pane key="1" tab="维修人员">
<a-table
size="default"
ref="table"
rowKey="id"
:columns="columns"
:data-source="workerData"
>
<span slot="status" slot-scope="text">
{{ text | statusFilter }}
</span>
<span slot="action" slot-scope="text, record">
<a v-if="editEnabel" @click="handleView(record.id)">详情</a>
</span>
</a-table>
</a-tab-pane>
<a-tab-pane key="2" tab="网格区域" force-render>
<a-table
size="default"
@ -71,6 +55,23 @@
</span>
</a-table>
</a-tab-pane>
<a-tab-pane key="1" tab="维修人员">
<a-table
size="default"
ref="table"
rowKey="id"
:columns="columns"
:data-source="workerData"
>
<span slot="status" slot-scope="text">
{{ text | statusFilter }}
</span>
<span slot="action" slot-scope="text, record">
<a v-if="editEnabel" @click="handleView(record.id)">详情</a>
</span>
</a-table>
</a-tab-pane>
</a-tabs>
</a-card>
</template>

View File

@ -29,7 +29,7 @@
<span slot="action" slot-scope="text, record">
<a v-if="editEnabel" @click="handleEdit(record)">编辑</a>
<a-divider type="vertical" />
<a v-if="editEnabel" @click="dataModal(record.id)"><a-icon type="bars" />门牌</a>
<a v-if="editEnabel" @click="dataModal(record.id)"><a-icon type="bars" />楼层</a>
<a-divider type="vertical" />
<a v-if="removeEnable" @click="delByIds([record.id])">删除</a>
</span>

View File

@ -4,7 +4,7 @@
<a-form layout="inline">
<a-row :gutter="48">
<a-col :md="5" :sm="15">
<a-form-item label="名称">
<a-form-item label="设备类别">
<a-input placeholder="请输入名称" v-model="queryParam.name" />
</a-form-item>
</a-col>
@ -81,11 +81,11 @@ export default {
//
columns: [
{
title: '名称',
title: '设备类别',
dataIndex: 'name'
},
{
title: '负责人',
title: '派单员',
dataIndex: 'staffName'
},
{