Browse Source

修改值班人员顶部按钮被遮盖无法点击等问题

wangqin
刘朋 9 months ago
parent
commit
51a9d9378d
  1. 135
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/index.vue

135
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/index.vue

@ -34,75 +34,85 @@
</ButtonGradient>
</div>
<InputSearch style="width: 402px;" :formList="searchFormList" :formConfigOptions="{ labelWidth: '72px' }"
<InputSearch
style="width: 402px;"
:formList="searchFormList"
:formConfigOptions="{ labelWidth: '72px' }"
placeholder="请输入姓名、电话,回车搜索"
type="input"
:params="params"
@handleSearch="handleSearch" />
</div>
<!-- <ElEmpty v-if="!data.length && !isFirst" description="暂无数据" style="width: 100%;height: 100%;position: absolute;" /> -->
<div v-if="!data.length && !isFirst" class="no-data" style="position: absolute">暂无数据</div>
<SpecialTable v-else :columns="columns" :data="data" class="body">
<template #title-DateDuty>
<div class="special-title">
值班中心
</div>
</template>
<template #content-date="{ data }">
<div class="item">
<img src="@screen/images/form/calendar.svg" />
{{ data.date }}
</div>
</template>
<template #content-organizationName="{ data }">
<div class="parent">
<div class="body">
<ElEmpty v-if="!data.length && !isFirst" description="暂无数据" style="width: 100%;height: 100%;position: absolute;" />
<!-- <div v-if="!data.length && !isFirst" class="no-data" style="position: absolute">暂无数据</div> -->
<SpecialTable v-else :columns="columns" :data="data" class="body">
<template #title-DateDuty>
<div class="special-title">
值班中心
</div>
</template>
<template #content-date="{ data }">
<div class="item">
<img src="@screen/images/form/location.svg" />
{{ data['organizationName'] }}
<img src="@screen/images/form/calendar.svg" />
{{ data.date }}
</div>
</div>
</template>
<template #content-dayShift="{ data }">
<div class="item-parent" v-if="data.dayShift && data.dayShift.length">
<div class="item" v-for="item in data.dayShift">
<img src="@screen/images/form/people.svg" />
{{ item.name }}
</template>
<template #content-organizationName="{ data }">
<div class="parent">
<div class="item">
<img src="@screen/images/form/location.svg" />
{{ data['organizationName'] }}
</div>
</div>
</div>
<div class="no-data" v-else>
无值班人员
</div>
</template>
<template #content-graveyardShift="{ data }">
<div class="item-parent" v-if="data.graveyardShift && data.graveyardShift.length">
<div class="item" v-for="item in data.graveyardShift">
<img src="@screen/images/form/people.svg" />
{{ item.name }}
</template>
<template #content-dayShift="{ data }">
<div class="item-parent" v-if="data.dayShift && data.dayShift.length">
<div class="item" v-for="(item,index) in data.dayShift" :key="index" >
<img src="@screen/images/form/people.svg" />
{{ item.name }}
</div>
</div>
</div>
<div class="no-data" v-else>
无值班人员
</div>
</template>
<template #operation-content="{ data }">
<ButtonGradient class="operate-button" @click.native="handleModifyDutyInformationTable(true, data)">
<template #prefix>
<img src="@screen/images/form/edit.svg" />
</template>
修改
</ButtonGradient>
<ButtonGradient class="operate-button" @click.native="handleOperateRecord(true, data)">
<template #prefix>
<img src="@screen/images/form/record.svg" />
</template>
记录
</ButtonGradient>
<ButtonGradient class="operate-button" @click.native="handleDelete(data)">
<template #prefix>
<img src="@screen/images/form/delete.svg" />
</template>
删除
</ButtonGradient>
</template>
</SpecialTable>
<div class="no-data" v-else>
无值班人员
</div>
</template>
<template #content-graveyardShift="{ data }">
<div class="item-parent" v-if="data.graveyardShift && data.graveyardShift.length">
<div class="item" v-for="(item,index) in data.graveyardShift" :key="index">
<img src="@screen/images/form/people.svg" />
{{ item.name }}
</div>
</div>
<div class="no-data" v-else>
无值班人员
</div>
</template>
<template #operation-content="{ data }">
<ButtonGradient class="operate-button" @click.native="handleModifyDutyInformationTable(true, data)">
<template #prefix>
<img src="@screen/images/form/edit.svg" />
</template>
修改
</ButtonGradient>
<ButtonGradient class="operate-button" @click.native="handleOperateRecord(true, data)">
<template #prefix>
<img src="@screen/images/form/record.svg" />
</template>
记录
</ButtonGradient>
<ButtonGradient class="operate-button" @click.native="handleDelete(data)">
<template #prefix>
<img src="@screen/images/form/delete.svg" />
</template>
删除
</ButtonGradient>
</template>
</SpecialTable>
</div>
<OperateRecord :visible="operateRecordVisible" @close="handleOperateRecord(false)" :data="dialogData" />
@ -174,6 +184,7 @@ export default {
modifyDutyInformationTableVisible: false,
dialogData: null,
isFirst: true,
params: "name",
}
},
created() {

Loading…
Cancel
Save