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

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