Commit ebc9884f authored by 姬鋆屾's avatar 姬鋆屾

parent 1c6417e1
......@@ -9,10 +9,11 @@ export const timestampToTime = (timestamp, transLength) => {
}
let Y = date.getFullYear() + "-";
let M =
(date.getMonth() + 1 < 10
date.getMonth() + 1 < 10
? "0" + (date.getMonth() + 1)
: date.getMonth() + 1) + "-";
let D = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
: date.getMonth() + 1;
let D =
date.getDate() < 10 ? "-" + "0" + date.getDate() : "-" + date.getDate();
let h =
" " +
(date.getHours() < 10 ? "0" + date.getHours() : date.getHours()) +
......@@ -23,6 +24,8 @@ export const timestampToTime = (timestamp, transLength) => {
let s =
date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
switch (transLength) {
case 2:
return Y + M;
case 3:
return Y + M + D;
case 6:
......
......@@ -559,6 +559,11 @@ export default {
query.errorTimeEnd = undefined;
}
}
if (this.$route.name == "check/window/workman/perform/detail/list") {
query.yearmonth = timestampToTime(new Date(), 2);
query.year = timestampToTime(new Date(), 2).slice(0, 4);
query.month = timestampToTime(new Date(), 2).slice(5);
}
console.log({
...query,
...data,
......
......@@ -22,13 +22,23 @@
</template>
<script>
import {
timestampToTime,
getFirstDay,
getLastDay,
} from "@/assets/utils/dateFormat";
/** 表单弹出框模式需引入 */
import table from "@/assets/mixins/table";
export default {
name: "WindowWorkmanPerformDetailList",
mixins: [table],
created() {},
created() {
this.query.yearmonth = timestampToTime(new Date(), 2);
this.query.year = timestampToTime(new Date(), 2).slice(0, 4);
this.query.month = timestampToTime(new Date(), 2).slice(5);
console.log(this.query);
},
methods: {
/** 导出Excel */
doExport() {
......@@ -118,31 +128,31 @@ export default {
{ label: "所属大厅", prop: "salaName", formatter: this.formatter },
{
label: "工作纪律得分",
label: "工作纪律",
prop: "discipline",
formatter: this.formatter,
},
{
label: "服务规范得分",
label: "服务规范",
prop: "specification",
formatter: this.formatter,
},
{
label: "综合管理得分",
label: "综合管理",
prop: "management",
formatter: this.formatter,
},
{
label: "群众评议得分",
label: "群众评议",
prop: "evaluation",
formatter: this.formatter,
},
{
label: "工作效能得分",
label: "工作效能",
prop: "efficiency",
formatter: this.formatter,
},
......
......@@ -153,7 +153,8 @@ export default {
},
async getData() {
await this.$post(
this.type == 1 ? "/perform/dept/conf/list" : "/perform/staff/conf/list"
this.type == 1 ? "/perform/dept/conf/list" : "/perform/staff/conf/list",
{ page: 1, size: -1 }
).then((res) => {
if (res.code == 1) {
this.dataList = res.data.data;
......@@ -165,7 +166,6 @@ export default {
});
this.activeName == 2
? await this.$post("/window/owner/list").then((res) => {
console.log(res);
if (res.code == 1) {
this.tableData = res.data;
}
......
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