|
@@ -78,11 +78,11 @@
|
|
|
</div>
|
|
|
|
|
|
<div>
|
|
|
- <a-table bordered :data-source="dataSource" :loading="loading" :columns="columns" :scroll="{ x:500,y:450}" :pagination="ipagination"
|
|
|
+ <a-table bordered :data-source="dataSource" :loading="loading" :columns="columns" :scroll="{ x:1500,y:500}" :pagination="ipagination"
|
|
|
@change="handleTableChange">
|
|
|
<template v-for='(dayobject,i) in days' :slot="dayobject.day.getDate()" style="color: #ff6b81">
|
|
|
<div style="height: 35px;">
|
|
|
- <div style="text-align: center;margin-top: -10px;margin-left: 10px;">
|
|
|
+ <div style="text-align: center;margin-top: -13px;margin-left: 10px;">
|
|
|
<p>{{dayobject.day.getDate()}}</p>
|
|
|
<div style="margin-top: -10px;">
|
|
|
<p v-if='dayobject.day.getDay()==0'>日</p>
|
|
@@ -96,8 +96,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
<span v-for='(d,i) in tpdata' style="margin-left: -11px;" :slot="d" slot-scope="text, record, index">
|
|
|
<a-dropdown :trigger="['click']">
|
|
|
<a-tag closable @close="(e) => log(e,d,record)" color="blue" v-if="text=='休息'" @click="UserType(d,record,index)">{{text}}</a-tag>
|
|
@@ -116,7 +115,11 @@
|
|
|
</a-dropdown>
|
|
|
|
|
|
</span>
|
|
|
-
|
|
|
+ <template slot="names" slot-scope="text, record, index">
|
|
|
+ <div style="height: 27px;">
|
|
|
+ {{text}}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</a-table>
|
|
|
</div>
|
|
|
|
|
@@ -685,6 +688,9 @@
|
|
|
title: '名称',
|
|
|
dataIndex: 'realname',
|
|
|
width: '80px',
|
|
|
+ scopedSlots: {
|
|
|
+ customRender: 'names'
|
|
|
+ },
|
|
|
fixed: 'left'
|
|
|
})
|
|
|
for (var i = 1; i <= moth.getDate(); i++) {
|