Compare commits

...

2 Commits

Author SHA1 Message Date
qsh a2adf2ce20 sc 3 months ago
qsh e5418f4019 tj 3 months ago
  1. 4
      src/plugins/cache/index.js
  2. 12
      src/views/Pers/Employee/Comp/DialogEmployee.vue
  3. 2
      src/views/Pers/Employee/index.vue

@ -26,7 +26,7 @@ const sessionCache = {
let storage = storageStr ? JSON.parse(storageStr) : {} let storage = storageStr ? JSON.parse(storageStr) : {}
return storage[key] return storage[key]
}, },
remove(key) { delete(key) {
if (!sessionStorage) { if (!sessionStorage) {
return null return null
} }
@ -62,7 +62,7 @@ const localCache = {
let storage = storageStr ? JSON.parse(storageStr) : {} let storage = storageStr ? JSON.parse(storageStr) : {}
return storage[key] return storage[key]
}, },
remove(key) { delete(key) {
if (!localStorage) { if (!localStorage) {
return null return null
} }

@ -114,6 +114,17 @@
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item label="离职日期" prop="retireDate">
<el-date-picker
v-model="formData.retireDate"
type="date"
format="YYYY-MM-DD"
value-format="YYYY-MM-DD"
placeholder="选择日期时间"
/>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
@ -230,6 +241,7 @@ const resetForm = () => {
remark: '', remark: '',
status: CommonStatusEnum.ENABLE, status: CommonStatusEnum.ENABLE,
hireDate: formatDate(new Date(), 'YYYY-MM-DD'), hireDate: formatDate(new Date(), 'YYYY-MM-DD'),
retireDate: undefined,
attendanceSettingId: undefined, attendanceSettingId: undefined,
instanceIds: [] instanceIds: []
} }

@ -30,7 +30,7 @@
<el-table v-loading="loading" :data="tableList" border stripe> <el-table v-loading="loading" :data="tableList" border stripe>
<el-table-column type="index" width="50" /> <el-table-column type="index" width="50" />
<el-table-column label="用户姓名" prop="name" /> <el-table-column label="姓名" prop="name" />
<el-table-column label="职位" prop="post" /> <el-table-column label="职位" prop="post" />
<el-table-column label="手机号码" prop="mobile" width="120" /> <el-table-column label="手机号码" prop="mobile" width="120" />
<el-table-column label="考勤方案" prop="attendanceSettingName" /> <el-table-column label="考勤方案" prop="attendanceSettingName" />

Loading…
Cancel
Save