|
@@ -120,6 +120,7 @@
|
|
|
icon="el-icon-edit"
|
|
|
:loading="loading"
|
|
|
@click="handleBatchUpdate"
|
|
|
+ v-show="batchUpdateVisible"
|
|
|
>重新生成考勤数据</el-button>
|
|
|
</el-row>
|
|
|
<el-table ref="formTable" stripe :data="tableData" :height="tableHeight" style="width: 100%" v-loading="loading">
|
|
@@ -167,6 +168,7 @@ import Constant from "@/constant";
|
|
|
import workAttendanceApi from "@/api/business/workAttendance";
|
|
|
import companyPositionApi from "@/api/base/companyPosition";
|
|
|
import companyInfoApi from "@/api/base/companyInfo";
|
|
|
+import permissionApi from "@/api/sys/permission";
|
|
|
import SelectTree from "@/components/SelectTree";
|
|
|
|
|
|
import NProgress from "nprogress"; // progress bar
|
|
@@ -239,7 +241,8 @@ export default {
|
|
|
value: "id",
|
|
|
label: "name",
|
|
|
children: "children"
|
|
|
- }
|
|
|
+ },
|
|
|
+ batchUpdateVisible: false
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -277,6 +280,11 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ permissionApi.hasPermission("post","/business/workAttendance/batchUpdate")
|
|
|
+ .then(response=>{
|
|
|
+ this.batchUpdateVisible = response.data.result;
|
|
|
+ });
|
|
|
+
|
|
|
this.getCurrentMonthFirst();
|
|
|
this.loadTree();
|
|
|
},
|