Commit f4fa16c1 by wangchunyang

人员时间格式处理

parent 0bef0175
......@@ -87,6 +87,7 @@
<script>
import { getDmUserList, syncDmUsersByOffice, saveDmUser } from '@/api/key-dm-user'
import UserSelector from './userSelector.vue'
import { normalizeVisitTimeValue } from '@/view/key-person/key_dm_conf/dates.js'
export default {
name: 'key-dm-user-index',
......@@ -177,7 +178,7 @@ export default {
const params = { office_code: this.officeCode }
this.$Modal.confirm({
title: '确认同步',
content: '将同步本机构及下属机构的用户,已存在的记录会被更新(不覆盖 null 值),是否继续?',
content: '将同步本机构及下属机构的用户,已存在的记录会被更新,是否继续?',
onOk: () => {
this.loading = true
syncDmUsersByOffice(params).then(ret => {
......@@ -211,6 +212,7 @@ export default {
this.$refs.editForm.validate(valid => {
// no strict validation here, just save
this.editModal.saving = true
this.editModal.form.in_work_time = this.editModal.form.in_work_time ? normalizeVisitTimeValue(this.editModal.form.in_work_time) : null
saveDmUser(this.editModal.form).then(ret => {
if (ret.data && ret.data.errcode === 0) {
this.$Message.success('保存成功')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论