|
@@ -1,4 +1,4 @@
|
|
- <!-- -->
|
|
|
|
|
|
+<!-- -->
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
<!-- <h2> class="m-container"
|
|
<!-- <h2> class="m-container"
|
|
@@ -158,12 +158,19 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align="center" label="巡查项目是否异常">
|
|
<el-table-column align="center" label="巡查项目是否异常">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- {{ scope.row.conclusionStatus ?'否':'是'}}
|
|
|
|
|
|
+ {{ scope.row.conclusionStatus ? "否" : "是" }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center" prop="subject" label="巡查时间" width="103px">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="subject"
|
|
|
|
+ label="巡查时间"
|
|
|
|
+ width="103px"
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- {{ dayjs(scope.row.planStart).format("YYYY-MM-DD HH:mm") }}~{{ dayjs(scope.row.planEnd).format("HH:mm") }}
|
|
|
|
|
|
+ {{ dayjs(scope.row.planStart).format("YYYY-MM-DD HH:mm") }}~{{
|
|
|
|
+ dayjs(scope.row.planEnd).format("HH:mm")
|
|
|
|
+ }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -276,7 +283,7 @@
|
|
label="处理方式"
|
|
label="处理方式"
|
|
prop="memo"
|
|
prop="memo"
|
|
:rules="[
|
|
:rules="[
|
|
- { required: true, message: '请输入处理方式', trigger: 'blur' },
|
|
|
|
|
|
+ { required: true, message: '请输入处理方式', trigger: 'blur' }
|
|
]"
|
|
]"
|
|
>
|
|
>
|
|
<el-input type="textarea" v-model.trim="handleForm.memo"></el-input>
|
|
<el-input type="textarea" v-model.trim="handleForm.memo"></el-input>
|
|
@@ -303,6 +310,18 @@ import { getTimes } from "@/utils";
|
|
import { Export } from "@/utils/downLoadFile";
|
|
import { Export } from "@/utils/downLoadFile";
|
|
import gpsLoction from "@/views/teamDetail/componentCourse/gpsLocation";
|
|
import gpsLoction from "@/views/teamDetail/componentCourse/gpsLocation";
|
|
import { getErrInspectionData } from "../api";
|
|
import { getErrInspectionData } from "../api";
|
|
|
|
+
|
|
|
|
+/** 获取当前月 */
|
|
|
|
+const getCurrentMonth = () => {
|
|
|
|
+ return [
|
|
|
|
+ dayjs()
|
|
|
|
+ .startOf("month")
|
|
|
|
+ .format("YYYY-MM-DD"),
|
|
|
|
+ dayjs()
|
|
|
|
+ .endOf("month")
|
|
|
|
+ .format("YYYY-MM-DD")
|
|
|
|
+ ];
|
|
|
|
+};
|
|
export default {
|
|
export default {
|
|
props: ["searchType"],
|
|
props: ["searchType"],
|
|
components: { pagination, LookDetail, gpsLoction },
|
|
components: { pagination, LookDetail, gpsLoction },
|
|
@@ -319,8 +338,8 @@ export default {
|
|
// musicGroupId: null,
|
|
// musicGroupId: null,
|
|
conclusionStatus: null,
|
|
conclusionStatus: null,
|
|
cooperationOrganId: null,
|
|
cooperationOrganId: null,
|
|
- createTimer: [],
|
|
|
|
- hasDealTime:null
|
|
|
|
|
|
+ createTimer: getCurrentMonth(),
|
|
|
|
+ hasDealTime: null
|
|
},
|
|
},
|
|
tableList: [],
|
|
tableList: [],
|
|
pageInfo: {
|
|
pageInfo: {
|
|
@@ -328,15 +347,15 @@ export default {
|
|
limit: 10, // 限制显示条数
|
|
limit: 10, // 限制显示条数
|
|
page: 1, // 当前页
|
|
page: 1, // 当前页
|
|
total: 0, // 总条数
|
|
total: 0, // 总条数
|
|
- page_size: [10, 20, 40, 50], // 选择限制显示条数
|
|
|
|
|
|
+ page_size: [10, 20, 40, 50] // 选择限制显示条数
|
|
},
|
|
},
|
|
handleStatus: false,
|
|
handleStatus: false,
|
|
handleForm: {
|
|
handleForm: {
|
|
id: null,
|
|
id: null,
|
|
- memo: null,
|
|
|
|
|
|
+ memo: null
|
|
},
|
|
},
|
|
tableStatus: false,
|
|
tableStatus: false,
|
|
- gpsVisible: false,
|
|
|
|
|
|
+ gpsVisible: false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
async mounted() {
|
|
async mounted() {
|
|
@@ -355,7 +374,6 @@ export default {
|
|
await this.$store.dispatch("setBranchs");
|
|
await this.$store.dispatch("setBranchs");
|
|
await this.$store.dispatch("setOrganRole");
|
|
await this.$store.dispatch("setOrganRole");
|
|
|
|
|
|
-
|
|
|
|
// 乐团列表 {只查询进行中的乐团}
|
|
// 乐团列表 {只查询进行中的乐团}
|
|
// await getTeamList({ musicGroupStatus: 'PROGRESS', rows: 9999 }).then(res => {
|
|
// await getTeamList({ musicGroupStatus: 'PROGRESS', rows: 9999 }).then(res => {
|
|
// if(res.code == 200) {
|
|
// if(res.code == 200) {
|
|
@@ -378,7 +396,7 @@ export default {
|
|
page: this.pageInfo.page,
|
|
page: this.pageInfo.page,
|
|
rows: this.pageInfo.limit,
|
|
rows: this.pageInfo.limit,
|
|
searchType: this.searchType,
|
|
searchType: this.searchType,
|
|
- ...getTimes(createTimer, ["startTime", "endTime"]),
|
|
|
|
|
|
+ ...getTimes(createTimer, ["startTime", "endTime"])
|
|
};
|
|
};
|
|
const res = await getErrInspectionData(params);
|
|
const res = await getErrInspectionData(params);
|
|
this.tableList = res.data.rows;
|
|
this.tableList = res.data.rows;
|
|
@@ -396,7 +414,7 @@ export default {
|
|
onGPS(row) {
|
|
onGPS(row) {
|
|
this.activeRow = {
|
|
this.activeRow = {
|
|
schoolLongitudeLatitude: row.schoolGps,
|
|
schoolLongitudeLatitude: row.schoolGps,
|
|
- signOutLongitudeLatitude: row.submitedGps,
|
|
|
|
|
|
+ signOutLongitudeLatitude: row.submitedGps
|
|
};
|
|
};
|
|
this.gpsVisible = true;
|
|
this.gpsVisible = true;
|
|
},
|
|
},
|
|
@@ -408,8 +426,8 @@ export default {
|
|
fileName: "巡查结果.xls",
|
|
fileName: "巡查结果.xls",
|
|
method: "get",
|
|
method: "get",
|
|
params: {
|
|
params: {
|
|
- planId: row.id,
|
|
|
|
- },
|
|
|
|
|
|
+ planId: row.id
|
|
|
|
+ }
|
|
},
|
|
},
|
|
"您确定导出巡查结果?"
|
|
"您确定导出巡查结果?"
|
|
);
|
|
);
|
|
@@ -421,7 +439,7 @@ export default {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
// 合作单位
|
|
// 合作单位
|
|
- await queryByOrganId({ organId: value }).then((res) => {
|
|
|
|
|
|
+ await queryByOrganId({ organId: value }).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.cooperationList = res.data;
|
|
this.cooperationList = res.data;
|
|
}
|
|
}
|
|
@@ -433,6 +451,7 @@ export default {
|
|
},
|
|
},
|
|
onReSet() {
|
|
onReSet() {
|
|
this.$refs["searchForm"].resetFields();
|
|
this.$refs["searchForm"].resetFields();
|
|
|
|
+ this.searchForm.createTimer = getCurrentMonth();
|
|
this.pageInfo.page = 1;
|
|
this.pageInfo.page = 1;
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
@@ -442,7 +461,7 @@ export default {
|
|
this.handleStatus = true;
|
|
this.handleStatus = true;
|
|
},
|
|
},
|
|
onHandleSubmit(formName) {
|
|
onHandleSubmit(formName) {
|
|
- this.$refs[formName].validate(async (valid) => {
|
|
|
|
|
|
+ this.$refs[formName].validate(async valid => {
|
|
if (valid) {
|
|
if (valid) {
|
|
console.log(this.handleForm);
|
|
console.log(this.handleForm);
|
|
try {
|
|
try {
|
|
@@ -456,17 +475,17 @@ export default {
|
|
},
|
|
},
|
|
handleClose(formName) {
|
|
handleClose(formName) {
|
|
this.$refs[formName].resetFields();
|
|
this.$refs[formName].resetFields();
|
|
- },
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
filters: {
|
|
filters: {
|
|
statusFormat(value) {
|
|
statusFormat(value) {
|
|
let template = ["未提交", "正常", "异常"];
|
|
let template = ["未提交", "正常", "异常"];
|
|
return template[value];
|
|
return template[value];
|
|
- },
|
|
|
|
- },
|
|
|
|
|
|
+ }
|
|
|
|
+ }
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
-<style lang='scss' scoped>
|
|
|
|
|
|
+<style lang="scss" scoped>
|
|
::v-deep .el-dialog__body {
|
|
::v-deep .el-dialog__body {
|
|
// padding: 10px 20px;
|
|
// padding: 10px 20px;
|
|
}
|
|
}
|