|
@@ -38,10 +38,10 @@
|
|
|
|
|
|
|
|
|
<div>
|
|
|
- <a-upload style="margin-right: 20px;" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
|
|
|
- <a-button type="primary" icon="import">导入</a-button>
|
|
|
+ <a-upload style="margin-right: 20px;" v-if="isColse" name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
|
|
|
+ <a-button type="primary" icon="import" >导入</a-button>
|
|
|
</a-upload>
|
|
|
- <a-button type="primary" icon="download" @click="handleExportXls('员工排班信息')" >导出</a-button>
|
|
|
+ <a-button type="primary" v-if="isColse" icon="download" @click="handleExportXls('员工排班信息')" >导出</a-button>
|
|
|
<a-button @click="handleAddts()" type="primary" icon="plus" v-has="'UserShift:add'" v-if="isColse" style="margin-left: 20px;">调整</a-button>
|
|
|
<a-tabs default-active-key="2" @change="callback">
|
|
|
<a-tab-pane key="2" tab="按班次上下班">
|
|
@@ -68,7 +68,7 @@
|
|
|
<span v-for='(d,i) in tpdata' style="margin-left: -5px;" :slot="d" slot-scope="text, record, index">
|
|
|
<span >
|
|
|
<a-tag color="blue" v-if="text=='休'">{{text.substring(0,1)}}</a-tag>
|
|
|
- <a-tag color="red" v-if="text=='法'">{{text.substring(0,1)}}</a-tag>
|
|
|
+ <a-tag color="red" v-if="text=='法'">{{text.substring(0,1)}}</a-tag>
|
|
|
<a-tag color="#87d068" v-if="text!=''&&text!=null&&text!='法'&&text!='休'">{{text.substring(0,1)}}</a-tag>
|
|
|
</span>
|
|
|
</span>
|