|
@@ -68,6 +68,15 @@
|
|
|
@click="handleBatchDelete"
|
|
@click="handleBatchDelete"
|
|
|
>删除选中项</el-button
|
|
>删除选中项</el-button
|
|
|
>
|
|
>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ plain
|
|
|
|
|
+ icon="el-icon-edit"
|
|
|
|
|
+ :loading="loading"
|
|
|
|
|
+ @click="handleBatchUpdate"
|
|
|
|
|
+ v-show="batchUpdateVisible"
|
|
|
|
|
+ >重新生成考勤数据</el-button>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-table
|
|
<el-table
|
|
|
:data="tableData"
|
|
:data="tableData"
|
|
@@ -157,19 +166,28 @@
|
|
|
:title="modalTitle"
|
|
:title="modalTitle"
|
|
|
@close="onDetailModalClose"
|
|
@close="onDetailModalClose"
|
|
|
></workSchedule-company>
|
|
></workSchedule-company>
|
|
|
|
|
+ <workSchedule-update
|
|
|
|
|
+ v-if="showModal2"
|
|
|
|
|
+ title="更新考勤记录"
|
|
|
|
|
+ :multipleSelection="multipleSelection"
|
|
|
|
|
+ @close="showModal2=false"
|
|
|
|
|
+ ></workSchedule-update>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
import Constant from "@/constant";
|
|
import Constant from "@/constant";
|
|
|
import WorkScheduleDetail from "./workSchedule-detail";
|
|
import WorkScheduleDetail from "./workSchedule-detail";
|
|
|
import WorkScheduleCompany from "./workSchedule-company";
|
|
import WorkScheduleCompany from "./workSchedule-company";
|
|
|
|
|
+import WorkScheduleUpdate from "./workSchedule-update";
|
|
|
import workScheduleApi from "@/api/base/workSchedule";
|
|
import workScheduleApi from "@/api/base/workSchedule";
|
|
|
import NProgress from "nprogress"; // progress bar
|
|
import NProgress from "nprogress"; // progress bar
|
|
|
import "nprogress/nprogress.css"; // progress bar style
|
|
import "nprogress/nprogress.css"; // progress bar style
|
|
|
import companyInfoApi from "@/api/base/companyInfo";
|
|
import companyInfoApi from "@/api/base/companyInfo";
|
|
|
import SelectTree from "@/components/SelectTree";
|
|
import SelectTree from "@/components/SelectTree";
|
|
|
|
|
+import permissionApi from "@/api/sys/permission";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+ name: "baseWorkScheduleList",
|
|
|
data() {
|
|
data() {
|
|
|
var self = this;
|
|
var self = this;
|
|
|
|
|
|
|
@@ -213,6 +231,8 @@ export default {
|
|
|
label: "name",
|
|
label: "name",
|
|
|
children: "children"
|
|
children: "children"
|
|
|
},
|
|
},
|
|
|
|
|
+ batchUpdateVisible: false,
|
|
|
|
|
+ showModal2: false
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -224,6 +244,11 @@ export default {
|
|
|
self.companyResult = jsonData.data;
|
|
self.companyResult = jsonData.data;
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+ permissionApi.hasPermission("post","/business/workScheduleReport/batchUpdate")
|
|
|
|
|
+ .then(response=>{
|
|
|
|
|
+ this.batchUpdateVisible = response.data.result;
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
changePage(pageIndex) {
|
|
changePage(pageIndex) {
|
|
@@ -358,7 +383,17 @@ export default {
|
|
|
if (refreshed) {
|
|
if (refreshed) {
|
|
|
this.changePage(this.pageIndex);
|
|
this.changePage(this.pageIndex);
|
|
|
}
|
|
}
|
|
|
- },
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ handleBatchUpdate() {
|
|
|
|
|
+ var self = this;
|
|
|
|
|
+
|
|
|
|
|
+ if(this.multipleSelection.length==0){
|
|
|
|
|
+ self.$message.warning("请先选择考勤班次!");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ this.showModal2 = true;
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
mounted: function () {
|
|
mounted: function () {
|
|
|
this.changePage(1);
|
|
this.changePage(1);
|
|
@@ -366,6 +401,7 @@ export default {
|
|
|
components: {
|
|
components: {
|
|
|
"workSchedule-detail": WorkScheduleDetail,
|
|
"workSchedule-detail": WorkScheduleDetail,
|
|
|
"workSchedule-company": WorkScheduleCompany,
|
|
"workSchedule-company": WorkScheduleCompany,
|
|
|
|
|
+ "workSchedule-update": WorkScheduleUpdate,
|
|
|
"el-select-tree": SelectTree
|
|
"el-select-tree": SelectTree
|
|
|
},
|
|
},
|
|
|
};
|
|
};
|