|
|
|
@ -35,8 +35,7 @@ |
|
|
|
v-for="(item, index) in resourceList" |
|
|
|
:key="index" |
|
|
|
:label="item.resourceDesc" |
|
|
|
:value="item.resourceId" |
|
|
|
> |
|
|
|
:value="item.resourceId"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
@ -112,6 +111,7 @@ |
|
|
|
highlight-current-row |
|
|
|
ref="scheduleTable" |
|
|
|
@row-dblclick="warnCancelScheduleConfirm" |
|
|
|
:row-style="controlRowStyle" |
|
|
|
v-loading="dataListLoading" |
|
|
|
style="margin-top: -20px; width: 955px;"> |
|
|
|
<el-table-column |
|
|
|
@ -1159,6 +1159,19 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
/*控制单行的背景颜色*/ |
|
|
|
controlRowStyle({row, rowIndex}){ |
|
|
|
let colorStyle = row.colorStyle; |
|
|
|
//区分不同的样式对应不同的颜色 |
|
|
|
if(colorStyle == 'firstColor'){ |
|
|
|
return "background-color: #FF00FF"; |
|
|
|
}else if(colorStyle == 'secondColor'){ |
|
|
|
return "background-color: #0000CD"; |
|
|
|
}else if(colorStyle == 'thirdColor'){ |
|
|
|
return "background-color: #FFD700"; |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
created() { |
|
|
|
//执行查询休息时间数据 |
|
|
|
|