Commit 5f194040 authored by renjintao's avatar renjintao

userupdata

parent 05ddc09a
...@@ -1914,6 +1914,6 @@ export default { ...@@ -1914,6 +1914,6 @@ export default {
authority:'权限', authority:'权限',
whour:'可用工日', whour:'可用工日',
whourpd:'可用工时/天', whourpd:'可用工时/天',
joindate:'加盟日' joindate:'加入日期'
} }
} }
...@@ -90,44 +90,49 @@ export default { ...@@ -90,44 +90,49 @@ export default {
key: "userId", key: "userId",
title: this.l("userId"), title: this.l("userId"),
align: "left", align: "left",
width: 150,
slot: 'userId' slot: 'userId'
}, },
{ {
key: "role", key: "role",
title: this.l("role"), title: this.l("role"),
align: "center", align: "center",
width: 180,
slot: 'role' slot: 'role'
}, },
{ {
key: "status", key: "status",
title: this.l("status"), title: this.l("status"),
align: "center", align: "center",
width: 150,
slot: 'status' slot: 'status'
}, },
{ {
key: "joindate", key: "joindate",
title: this.l("joindate"), title: this.l("joindate"),
align: "center", align: "center",
width: 180,
slot: 'joindate' slot: 'joindate'
}, },
{ {
key: "whour", key: "whour",
title: this.l("whour"), title: this.l("whour"),
align: "right", align: "right",
width: 200, width: 150,
slot: 'whour' slot: 'whour'
}, },
{ {
key: "whourpd", key: "whourpd",
title: this.l("whourpd"), title: this.l("whourpd"),
align: "right", align: "right",
width: 200, width: 150,
slot: 'whourpd' slot: 'whourpd'
}, },
{ {
key: "authority", key: "authority",
title: this.l("authority"), title: this.l("authority"),
align: "center", align: "center",
width: 200,
slot: 'authority' slot: 'authority'
}, },
...@@ -135,7 +140,6 @@ export default { ...@@ -135,7 +140,6 @@ export default {
key: "note", key: "note",
title: this.l("note"), title: this.l("note"),
align: "left", align: "left",
high: true,
slot: 'note' slot: 'note'
}, },
{ {
...@@ -187,6 +191,9 @@ export default { ...@@ -187,6 +191,9 @@ export default {
if (el.authority == 1) { if (el.authority == 1) {
this.authorityCount = 1 this.authorityCount = 1
} }
if (el.joindate && el.joindate.length >= 10) {
el.joindate = el.joindate.substr(0, 10)
}
}) })
} }
...@@ -266,10 +273,15 @@ export default { ...@@ -266,10 +273,15 @@ export default {
this.$Message.error("请选择人员角色"); this.$Message.error("请选择人员角色");
return; return;
} }
if (this.cur.joindate == null || this.cur.joindate == '') {
this.$Message.error("请选择人员加入日期");
return;
}
if (this.cur.authority == null || this.cur.authority == '') { if (this.cur.authority == null || this.cur.authority == '') {
this.$Message.error("请选择人员权限"); this.$Message.error("请选择人员权限");
return; return;
} }
this.getTime(this.cur.joindate)
if (this.cur.id && this.cur.id != '') { //人员修改 if (this.cur.id && this.cur.id != '') { //人员修改
Api.update(this.cur).then((r) => { Api.update(this.cur).then((r) => {
this.disabled = false; this.disabled = false;
...@@ -310,7 +322,8 @@ export default { ...@@ -310,7 +322,8 @@ export default {
"-" + "-" +
this.p(d.getMonth() + 1) + this.p(d.getMonth() + 1) +
"-" + "-" +
this.p(d.getDate()) this.p(d.getDate()) +
" 00:00:01";
return resDate; return resDate;
}, },
p(s) { p(s) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment