npmapps 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/app/snippet-generator-master.zip +0 -0
- package/app/xukmtof0kwy8zflvqn6h8chypsusvopw.upxs +0 -0
- package/package.json +1 -1
- package/app/components/attendanceCycle/index.vue +0 -131
- package/app/components/attendanceGroup/index.vue +0 -147
- package/app/components/attendancePersonnel/index.vue +0 -158
- package/app/components/companyCalendar/index.vue +0 -147
- package/app/components/shift/index.vue +0 -147
- package/app/components/shiftRotationSystem/index.vue +0 -147
- package/app/employeeSchedulingManagement/batchScheduling/index.vue +0 -401
- package/app/employeeSchedulingManagement/batchShiftChange/index.vue +0 -204
- package/app/employeeSchedulingManagement/data.js +0 -768
- package/app/employeeSchedulingManagement/index.vue +0 -436
- package/app/employeeSchedulingManagement/shiftChangeRecord/index.vue +0 -250
- package/app/employeeSchedulingManagement/shiftItem.vue +0 -107
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div
|
|
4
|
-
@dblclick="handleShowInput"
|
|
5
|
-
v-if="!showInput && !!shiftColorComputed"
|
|
6
|
-
:class="{tag: true}"
|
|
7
|
-
:style="`background-color: ${shiftColorComputed.color};`"
|
|
8
|
-
>
|
|
9
|
-
{{ shiftColorComputed.font }}
|
|
10
|
-
</div>
|
|
11
|
-
<el-select
|
|
12
|
-
v-model="value"
|
|
13
|
-
placeholder="请选择"
|
|
14
|
-
v-if="showInput"
|
|
15
|
-
@change="handleChange"
|
|
16
|
-
>
|
|
17
|
-
<el-option
|
|
18
|
-
v-for="item in shiftColor"
|
|
19
|
-
:key="item.shiftId"
|
|
20
|
-
:label="item.shiftName"
|
|
21
|
-
:value="item.shiftId"
|
|
22
|
-
>
|
|
23
|
-
</el-option>
|
|
24
|
-
</el-select>
|
|
25
|
-
</div>
|
|
26
|
-
</template>
|
|
27
|
-
<script>
|
|
28
|
-
export default {
|
|
29
|
-
props: {
|
|
30
|
-
scope: {
|
|
31
|
-
type: Object,
|
|
32
|
-
default: () => {},
|
|
33
|
-
},
|
|
34
|
-
shiftColor: {
|
|
35
|
-
type: Array,
|
|
36
|
-
default: () => [],
|
|
37
|
-
},
|
|
38
|
-
options: {
|
|
39
|
-
type: Array,
|
|
40
|
-
default: () => [],
|
|
41
|
-
},
|
|
42
|
-
isShiftChange: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: false,
|
|
45
|
-
},
|
|
46
|
-
columnItem: {
|
|
47
|
-
type: Object,
|
|
48
|
-
default: () => {},
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
data() {
|
|
52
|
-
return {
|
|
53
|
-
value: "",
|
|
54
|
-
showInput: false,
|
|
55
|
-
};
|
|
56
|
-
},
|
|
57
|
-
watch: {
|
|
58
|
-
isShiftChange(val) {
|
|
59
|
-
if (!val) {
|
|
60
|
-
this.showInput = false;
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
computed: {
|
|
65
|
-
shiftColorComputed() {
|
|
66
|
-
const { row, column } = this.scope;
|
|
67
|
-
const property = column.property || "";
|
|
68
|
-
const list = property.split("_") || [];
|
|
69
|
-
const key = list[1];
|
|
70
|
-
let shiftId;
|
|
71
|
-
if (key && row.shiftPlanDetails[key]) {
|
|
72
|
-
shiftId = row.shiftPlanDetails[key].shiftId;
|
|
73
|
-
this.value = shiftId;
|
|
74
|
-
const sc = this.shiftColor.find((item) => item.shiftId === shiftId);
|
|
75
|
-
if (sc) return sc;
|
|
76
|
-
}
|
|
77
|
-
return "";
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
methods: {
|
|
81
|
-
handleChange() {
|
|
82
|
-
const { row, column } = this.scope;
|
|
83
|
-
const property = column.property || "";
|
|
84
|
-
const list = property.split("_") || [];
|
|
85
|
-
const key = list[1];
|
|
86
|
-
if (key && row.shiftPlanDetails[key]) {
|
|
87
|
-
row.shiftPlanDetails[key].shiftId = this.value;
|
|
88
|
-
}
|
|
89
|
-
this.showInput = false;
|
|
90
|
-
},
|
|
91
|
-
handleShiftColor({ row, column }, keyName) {
|
|
92
|
-
|
|
93
|
-
},
|
|
94
|
-
handleShowInput() {
|
|
95
|
-
if (this.isShiftChange && this.columnItem.editFlag !== "0")
|
|
96
|
-
this.showInput = true;
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
};
|
|
100
|
-
</script>
|
|
101
|
-
|
|
102
|
-
<style scoped>
|
|
103
|
-
|
|
104
|
-
.hide {
|
|
105
|
-
display: none !important;
|
|
106
|
-
}
|
|
107
|
-
</style>
|