|
@@ -5,8 +5,10 @@
|
|
|
<div slot="header" class="clearfix">
|
|
<div slot="header" class="clearfix">
|
|
|
<span style="font-weight: bolder">作业状态</span>
|
|
<span style="font-weight: bolder">作业状态</span>
|
|
|
</div>
|
|
</div>
|
|
|
- <el-table :data="jobTicket" :header-cell-style="{'text-align':'center'}"
|
|
|
|
|
- :cell-style="{'text-align':'center'}"
|
|
|
|
|
|
|
+ <el-table
|
|
|
|
|
+ :data="jobTicket"
|
|
|
|
|
+ :header-cell-style="{ 'text-align': 'center' }"
|
|
|
|
|
+ :cell-style="{ 'text-align': 'center' }"
|
|
|
>
|
|
>
|
|
|
<el-table-column label="作业编号" prop="ticketCode">
|
|
<el-table-column label="作业编号" prop="ticketCode">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -27,77 +29,85 @@
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
- <el-row style="margin-top:10px;height:620px;overflow-y:auto">
|
|
|
|
|
- <el-col :span="6" style="height:1000px">
|
|
|
|
|
- <el-card class="box-card1" >
|
|
|
|
|
|
|
+ <el-row style="margin-top: 10px; height: 620px; overflow-y: auto">
|
|
|
|
|
+ <el-col :span="6" style="height: 1000px">
|
|
|
|
|
+ <el-card class="box-card1">
|
|
|
<div slot="header" class="clearfix">
|
|
<div slot="header" class="clearfix">
|
|
|
<span style="font-weight: bolder">人员状态</span>
|
|
<span style="font-weight: bolder">人员状态</span>
|
|
|
</div>
|
|
</div>
|
|
|
<el-table :data="lockUserList">
|
|
<el-table :data="lockUserList">
|
|
|
- <el-table-column label="上锁人" prop="userName">
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
|
+ <el-table-column label="上锁人" prop="userName"> </el-table-column>
|
|
|
<el-table-column label="状态" align="center" prop="jobStatus">
|
|
<el-table-column label="状态" align="center" prop="jobStatus">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<div
|
|
<div
|
|
|
class="box"
|
|
class="box"
|
|
|
style="
|
|
style="
|
|
|
- width: 30px;
|
|
|
|
|
- height: 30px;
|
|
|
|
|
- border: 1px solid black;
|
|
|
|
|
- background-color: white;
|
|
|
|
|
- margin: 0 auto;
|
|
|
|
|
- "
|
|
|
|
|
|
|
+ width: 30px;
|
|
|
|
|
+ height: 30px;
|
|
|
|
|
+ border: 1px solid black;
|
|
|
|
|
+ background-color: white;
|
|
|
|
|
+ margin: 0 auto;
|
|
|
|
|
+ "
|
|
|
>
|
|
>
|
|
|
<span
|
|
<span
|
|
|
- v-if="scope.row.jobStatus==0||scope.row.jobStatus==1||scope.row.jobStatus==2||scope.row.jobStatus==3"
|
|
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ scope.row.jobStatus == 0 ||
|
|
|
|
|
+ scope.row.jobStatus == 1 ||
|
|
|
|
|
+ scope.row.jobStatus == 2 ||
|
|
|
|
|
+ scope.row.jobStatus == 3
|
|
|
|
|
+ "
|
|
|
></span>
|
|
></span>
|
|
|
<!-- 显示错号 -->
|
|
<!-- 显示错号 -->
|
|
|
<span
|
|
<span
|
|
|
- v-else-if="scope.row.jobStatus==4"
|
|
|
|
|
|
|
+ v-else-if="scope.row.jobStatus == 4"
|
|
|
style="font-size: 20px; line-height: 30px"
|
|
style="font-size: 20px; line-height: 30px"
|
|
|
- >🔒</span
|
|
|
|
|
|
|
+ >🔒</span
|
|
|
>
|
|
>
|
|
|
<!-- 显示对号 -->
|
|
<!-- 显示对号 -->
|
|
|
<span
|
|
<span
|
|
|
- v-else-if="scope.row.jobStatus==5"
|
|
|
|
|
|
|
+ v-else-if="scope.row.jobStatus == 5"
|
|
|
style="font-size: 20px; line-height: 30px"
|
|
style="font-size: 20px; line-height: 30px"
|
|
|
- >✓</span
|
|
|
|
|
|
|
+ >✓</span
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
- <el-card>
|
|
|
|
|
|
|
+ <el-card class="box-cardgsr">
|
|
|
<el-table :data="colockUserList">
|
|
<el-table :data="colockUserList">
|
|
|
- <el-table-column label="共锁人" prop="userName">
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
|
+ <el-table-column label="共锁人" prop="userName"> </el-table-column>
|
|
|
<el-table-column label="状态" align="center" prop="jobStatus">
|
|
<el-table-column label="状态" align="center" prop="jobStatus">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<div
|
|
<div
|
|
|
class="box"
|
|
class="box"
|
|
|
style="
|
|
style="
|
|
|
- width: 30px;
|
|
|
|
|
- height: 30px;
|
|
|
|
|
- border: 1px solid black;
|
|
|
|
|
- background-color: white;
|
|
|
|
|
- margin: 0 auto;
|
|
|
|
|
- "
|
|
|
|
|
|
|
+ width: 30px;
|
|
|
|
|
+ height: 30px;
|
|
|
|
|
+ border: 1px solid black;
|
|
|
|
|
+ background-color: white;
|
|
|
|
|
+ margin: 0 auto;
|
|
|
|
|
+ "
|
|
|
>
|
|
>
|
|
|
<span
|
|
<span
|
|
|
- v-if="scope.row.jobStatus==0||scope.row.jobStatus==1||scope.row.jobStatus==2||scope.row.jobStatus==3"
|
|
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ scope.row.jobStatus == 0 ||
|
|
|
|
|
+ scope.row.jobStatus == 1 ||
|
|
|
|
|
+ scope.row.jobStatus == 2 ||
|
|
|
|
|
+ scope.row.jobStatus == 3
|
|
|
|
|
+ "
|
|
|
></span>
|
|
></span>
|
|
|
<!-- 显示错号 -->
|
|
<!-- 显示错号 -->
|
|
|
<span
|
|
<span
|
|
|
- v-else-if="scope.row.jobStatus==4"
|
|
|
|
|
|
|
+ v-else-if="scope.row.jobStatus == 4"
|
|
|
style="font-size: 20px; line-height: 30px"
|
|
style="font-size: 20px; line-height: 30px"
|
|
|
- >🔒</span
|
|
|
|
|
|
|
+ >🔒</span
|
|
|
>
|
|
>
|
|
|
<!-- 显示对号 -->
|
|
<!-- 显示对号 -->
|
|
|
<span
|
|
<span
|
|
|
- v-else-if="scope.row.jobStatus==5"
|
|
|
|
|
|
|
+ v-else-if="scope.row.jobStatus == 5"
|
|
|
style="font-size: 20px; line-height: 30px"
|
|
style="font-size: 20px; line-height: 30px"
|
|
|
- >✓</span
|
|
|
|
|
|
|
+ >✓</span
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -106,7 +116,7 @@
|
|
|
</el-card>
|
|
</el-card>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
- <el-card class="box-card2" >
|
|
|
|
|
|
|
+ <el-card class="box-card2">
|
|
|
<div slot="header" class="clearfix">
|
|
<div slot="header" class="clearfix">
|
|
|
<span style="font-weight: bolder">隔离点状态</span>
|
|
<span style="font-weight: bolder">隔离点状态</span>
|
|
|
</div>
|
|
</div>
|
|
@@ -119,33 +129,32 @@
|
|
|
<div
|
|
<div
|
|
|
class="box"
|
|
class="box"
|
|
|
style="
|
|
style="
|
|
|
- width: 30px;
|
|
|
|
|
- height: 30px;
|
|
|
|
|
- border: 1px solid black;
|
|
|
|
|
- background-color: white;
|
|
|
|
|
- margin: 0 auto;
|
|
|
|
|
- "
|
|
|
|
|
|
|
+ width: 30px;
|
|
|
|
|
+ height: 30px;
|
|
|
|
|
+ border: 1px solid black;
|
|
|
|
|
+ background-color: white;
|
|
|
|
|
+ margin: 0 auto;
|
|
|
|
|
+ "
|
|
|
>
|
|
>
|
|
|
- <span v-if="scope.row.pointStatus==0" style=""></span>
|
|
|
|
|
|
|
+ <span v-if="scope.row.pointStatus == 0" style=""></span>
|
|
|
<!-- 显示错号 -->
|
|
<!-- 显示错号 -->
|
|
|
<span
|
|
<span
|
|
|
- v-else-if="scope.row.pointStatus==1"
|
|
|
|
|
- style="font-size: 20px; line-height: 30px;"
|
|
|
|
|
- >🔒</span
|
|
|
|
|
|
|
+ v-else-if="scope.row.pointStatus == 1"
|
|
|
|
|
+ style="font-size: 20px; line-height: 30px"
|
|
|
|
|
+ >🔒</span
|
|
|
>
|
|
>
|
|
|
<!-- 显示对号 -->
|
|
<!-- 显示对号 -->
|
|
|
<span
|
|
<span
|
|
|
- v-else-if="scope.row.pointStatus==2"
|
|
|
|
|
- style="font-size: 20px; line-height: 30px;"
|
|
|
|
|
- >✓</span
|
|
|
|
|
|
|
+ v-else-if="scope.row.pointStatus == 2"
|
|
|
|
|
+ style="font-size: 20px; line-height: 30px"
|
|
|
|
|
+ >✓</span
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="挂锁名称" prop="lockName">
|
|
<el-table-column label="挂锁名称" prop="lockName">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="锁具" prop="locksetName">
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
|
+ <el-table-column label="锁具" prop="locksetName"> </el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -154,45 +163,48 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import { getJobPlayTicketInfo } from '@/api/mes/jobplay/jobplay'
|
|
|
|
|
|
|
+import { getJobPlayTicketInfo } from "@/api/mes/jobplay/jobplay";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
- name: 'jobPlayDetail',
|
|
|
|
|
- dicts: ['ticket_type', 'ticket_status'],
|
|
|
|
|
|
|
+ name: "jobPlayDetail",
|
|
|
|
|
+ dicts: ["ticket_type", "ticket_status"],
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
jobTicket: [],
|
|
jobTicket: [],
|
|
|
lockUserList: [],
|
|
lockUserList: [],
|
|
|
colockUserList: [],
|
|
colockUserList: [],
|
|
|
- ticketPointsList: []
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ ticketPointsList: [],
|
|
|
|
|
+ };
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
- this.getJobPlayInfo()
|
|
|
|
|
|
|
+ this.getJobPlayInfo();
|
|
|
},
|
|
},
|
|
|
|
|
+ // mounted() {
|
|
|
|
|
+ // setInterval(() => {
|
|
|
|
|
+ // this.getJobPlayInfo();
|
|
|
|
|
+ // }, 5000);
|
|
|
|
|
+ // },
|
|
|
methods: {
|
|
methods: {
|
|
|
getJobPlayInfo() {
|
|
getJobPlayInfo() {
|
|
|
- const ticketId = this.$route.query.ticketId
|
|
|
|
|
- getJobPlayTicketInfo(ticketId).then(res => {
|
|
|
|
|
- console.log(res, '作业执行详细信息')
|
|
|
|
|
- this.jobTicket = [res.data.jobTicket].map(item => ({
|
|
|
|
|
|
|
+ const ticketId = this.$route.query.ticketId;
|
|
|
|
|
+ getJobPlayTicketInfo(ticketId).then((res) => {
|
|
|
|
|
+ console.log(res, "作业执行详细信息");
|
|
|
|
|
+ this.jobTicket = [res.data.jobTicket].map((item) => ({
|
|
|
...item,
|
|
...item,
|
|
|
lockKeyName: res.data.lockKeyName,
|
|
lockKeyName: res.data.lockKeyName,
|
|
|
- colockKeyName: res.data.colockKeyName
|
|
|
|
|
- }))
|
|
|
|
|
- this.lockUserList = res.data.lockUserList
|
|
|
|
|
- this.colockUserList = res.data.colockUserList
|
|
|
|
|
- this.ticketPointsList = res.data.ticketPointsList
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ colockKeyName: res.data.colockKeyName,
|
|
|
|
|
+ }));
|
|
|
|
|
+ this.lockUserList = res.data.lockUserList;
|
|
|
|
|
+ this.colockUserList = res.data.colockUserList;
|
|
|
|
|
+ this.ticketPointsList = res.data.ticketPointsList;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
|
-
|
|
|
|
|
.text {
|
|
.text {
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
}
|
|
}
|
|
@@ -208,7 +220,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.clearfix:after {
|
|
.clearfix:after {
|
|
|
- clear: both
|
|
|
|
|
|
|
+ clear: both;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.box-card {
|
|
.box-card {
|
|
@@ -220,7 +232,11 @@ export default {
|
|
|
width: 400px;
|
|
width: 400px;
|
|
|
margin: 15px;
|
|
margin: 15px;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+.box-cardgsr {
|
|
|
|
|
+ width: 400px;
|
|
|
|
|
+ height: auto;
|
|
|
|
|
+ margin: 15px;
|
|
|
|
|
+}
|
|
|
.box-card2 {
|
|
.box-card2 {
|
|
|
width: 780px;
|
|
width: 780px;
|
|
|
margin: 15px;
|
|
margin: 15px;
|