Commit bb990564 authored by 赵啸非's avatar 赵啸非

修改自动考核

parent 79f3de97
...@@ -51,6 +51,7 @@ export const encodeURI = (data) => { ...@@ -51,6 +51,7 @@ export const encodeURI = (data) => {
* @returns {string} val 解析后的结果 * @returns {string} val 解析后的结果
*/ */
export function formatterDate(time) { export function formatterDate(time) {
console.log(time)
if (!time) return '--'; if (!time) return '--';
let date = new Date(Number(time)); let date = new Date(Number(time));
let Y = date.getFullYear() + '-'; let Y = date.getFullYear() + '-';
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
}}</el-col }}</el-col
> >
<el-col :span="8" <el-col :span="8"
>异常时间:{{ formatterDate(form.appealTime)}}</el-col >异常时间:{{ formatterDate(form.errorTime)}}</el-col
> >
<el-col :span="8" <el-col :span="8"
>上下班时间:{{ >上下班时间:{{
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<el-row> <el-row>
<el-col :span="10" <el-col :span="10"
>实际打卡时间:{{ >实际打卡时间:{{
formatterDate(form.appealTime) formatterDate(form.actualAttendTime)
}}</el-col }}</el-col
> >
<el-col :span="9" <el-col :span="9"
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<el-row> <el-row>
<el-col :span="8" <el-col :span="8"
>加分/扣分时间:{{ >加分/扣分时间:{{
formatterDate(form.appealTime) formatterDate(form.deductTime)
}}</el-col }}</el-col
> >
<el-col :span="8" <el-col :span="8"
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
}}</el-col }}</el-col
> >
<el-col :span="8" <el-col :span="8"
>核查时间:{{ formatterDate(form.appealTime) }}</el-col >核查时间:{{ formatterDate(form.checkTime) }}</el-col
> >
</el-row> </el-row>
</div> </div>
...@@ -147,10 +147,10 @@ ...@@ -147,10 +147,10 @@
}}</el-col }}</el-col
> >
<el-col :span="8" <el-col :span="8"
>处理人员{{dict['updateUserId'][form.updateUserId]}}</el-col >处理人员{{util_formatter('updateUserId',form.updateUserId+"")}}</el-col
> >
<el-col :span="8" <el-col :span="8"
>处理时间: {{ formatterDate(form.appealTime) }}</el-col >处理时间: {{ formatterDate(form.updateTime) }}</el-col
> >
</el-row> </el-row>
<el-row> <el-row>
...@@ -502,6 +502,13 @@ export default { ...@@ -502,6 +502,13 @@ export default {
}, },
methods: { methods: {
util_formatter(key, val) {
try {
return this.dict[key][val];
} catch (error) {
return val;
}
},
formatterDate, formatterDate,
// 下载附件 // 下载附件
hanldeDownloadFile(val) { hanldeDownloadFile(val) {
......
...@@ -32,7 +32,7 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID ...@@ -32,7 +32,7 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
OapiV2UserGetbymobileResponse rsp = client.execute(req, getToken()); OapiV2UserGetbymobileResponse rsp = client.execute(req, getToken());
log.info("OapiV2UserGetbymobileResponse:{}", rsp.getBody()); log.info("OapiV2UserGetbymobileResponse:{}", rsp.getBody());
if (rsp.getErrcode() == 0) { if (rsp.getErrcode() == 0) {
return Rest.ok(rsp.getResult().getUserid()); return Rest.ok("成功",rsp.getResult().getUserid());
} else { } else {
return Rest.fail(String.format("code:%s,msg:%s", rsp.getErrcode(), rsp.getErrmsg())); return Rest.fail(String.format("code:%s,msg:%s", rsp.getErrcode(), rsp.getErrmsg()));
} }
......
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