修改了人员绩效的页面

This commit is contained in:
chenze 2024-08-08 16:13:30 +08:00
parent 6fe0274bb3
commit 56b91dd996

View File

@ -17,27 +17,43 @@
</a-row> </a-row>
</a-form> </a-form>
</div> </div>
<div class="table-operator"> <a-tabs default-active-key="1" @change="callback">
<a-button v-if="addEnable" type="primary" icon="plus" @click="$refs.modal.add()">新建</a-button> <a-tab-pane key="1" tab="维修人员">
</div> <s-table
<s-table size="default"
size="default" ref="table"
ref="table" rowKey="id"
rowKey="id" :columns="columns"
:columns="columns" :data="loadData"
:data="loadData" >
>
<span slot="status" slot-scope="text"> <span slot="status" slot-scope="text">
{{ text | statusFilter }} {{ text | statusFilter }}
</span> </span>
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">
<a v-if="editEnabel" @click="handleView(record.id)">详情</a> <a v-if="editEnabel" @click="handleView(record.id)">详情</a>
<a-divider type="vertical" /> <a-divider type="vertical" />
<!-- <a v-if="editEnabel" @click="handleEdit(record)">指派</a>-->
<!-- <a-divider type="vertical" />-->
<a v-if="editEnabel" @click="handleComplete(record)">完成</a>
</span> </span>
</s-table> </s-table>
</a-tab-pane>
<a-tab-pane key="2" tab="楼层负责人" force-render>
<s-table
size="default"
ref="table"
rowKey="id"
:columns="floorColumns"
:data="loadData"
>
<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>
<!-- <a v-if="editEnabel" @click="handleEdit(record)">指派</a>-->
<!-- <a-divider type="vertical" />-->
</span>
</s-table>
</a-tab-pane>
</a-tabs>
</a-card> </a-card>
</template> </template>
@ -67,6 +83,51 @@ export default {
advanced: false, advanced: false,
// //
queryParam: {}, queryParam: {},
floorColumns: [
{
title: '楼层负责人',
dataIndex: 'userName'
},
{
title: '所属楼层',
dataIndex: 'typeName'
},
{
title: '工单总数',
dataIndex: 'repairDeviceName'
},
{
title: '已完成',
dataIndex: 'status'
},
{
title: '未解决',
dataIndex: 'repairLevel'
},
{
title: '处理中',
dataIndex: 'userName'
},
{
title: '好评数量好评率',
dataIndex: 'repairTime'
},
{
title: '中评数量中评率',
dataIndex: 'repairTime'
},
{
title: '差评数量差评率',
dataIndex: 'repairTime'
},
{
title: '操作',
width: '200px',
dataIndex: 'action',
scopedSlots: { customRender: 'action' }
}
],
// //
columns: [ columns: [
{ {
@ -137,6 +198,10 @@ export default {
created () { created () {
}, },
methods: { methods: {
callback(){
},
handleAdd () { handleAdd () {
this.$refs.modal.add() this.$refs.modal.add()
}, },