Lxf pirms 2 gadiem
vecāks
revīzija
5ec7e407c8
2 mainītis faili ar 8 papildinājumiem un 7 dzēšanām
  1. 2
    2
      src/utils/mixins.js
  2. 6
    5
      src/views/luru/gongshi.vue

+ 2
- 2
src/utils/mixins.js Parādīt failu

@@ -112,7 +112,6 @@ export default {
},
// 获取操作记录
getOperation(){
console.log('2134e32df')
let time = store.state.luru.month.replace("年", "-").replace("月", "");
gongshimodel.getOperation({
month: time
@@ -122,8 +121,9 @@ export default {
// Message.error(res.data.msg);
} else {
store.dispatch('luru/set_state', res.data.status)
console.log("长度:",store.state.luru.gongshi.length)
// 获取工时管理数据
if (store.state.luru.lock_gongshi_getold) {
if (store.state.luru.lock_gongshi_getold&&store.state.luru.gongshi.length==0) {
let param = {
time: time,
type: 1,

+ 6
- 5
src/views/luru/gongshi.vue Parādīt failu

@@ -403,8 +403,6 @@ export default {
},
handleClear() {
console.log("清空数据");
this.set_lock_gongshi(false);
this.set_lock_gongshi_getold(false);
let time = this.month.replace("年", "-").replace("月", "");
gongshimodel.manhours({ time }).then((res) => {
if (res.data.code != 200) {
@@ -412,10 +410,13 @@ export default {
return;
} else {
this.$Message.success("清空成功");
this.set_lock_gongshi(false);
this.set_shengEnable(false);
this.set_lock_gongzi(false);
this.set_lock_gongshi_getold(false);
this.setGongshi([])
}
this.set_lock_gongshi(false);
this.set_shengEnable(false);
this.set_lock_gongzi(false);
// this.$refs.reflock.doClose();
});
},

Notiek ielāde…
Atcelt
Saglabāt