|
@@ -84,23 +84,35 @@
|
|
custom-class="modal"
|
|
custom-class="modal"
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
>
|
|
>
|
|
- <info-history :formdata="trackDate" />
|
|
+ <info-history :formdata="trackDate"/>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="消缺历史"
|
|
|
|
+ v-model="history"
|
|
|
|
+ width="1400px"
|
|
|
|
+ height="800px"
|
|
|
|
+ custom-class="modal"
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
+ >
|
|
|
|
+ <History :formdata="trackDate"/>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import InfoHistory from "./infotrack2.vue";
|
|
import InfoHistory from "./infotrack2.vue";
|
|
|
|
+import History from "./healthTab4History.vue";
|
|
import ComTable from "@com/coms/table/table.vue";
|
|
import ComTable from "@com/coms/table/table.vue";
|
|
import SvgIcon from "../../components/coms/icon/svg-icon.vue";
|
|
import SvgIcon from "../../components/coms/icon/svg-icon.vue";
|
|
import { warn } from "@vue/runtime-core";
|
|
import { warn } from "@vue/runtime-core";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
- components: { InfoHistory, ComTable, SvgIcon },
|
|
+ components: { InfoHistory, ComTable, SvgIcon ,History},
|
|
data() {
|
|
data() {
|
|
const that = this;
|
|
const that = this;
|
|
return {
|
|
return {
|
|
|
|
+ history:false,
|
|
stations: [], // 场站
|
|
stations: [], // 场站
|
|
windturbines: [], // 风机
|
|
windturbines: [], // 风机
|
|
station: "",
|
|
station: "",
|
|
@@ -111,21 +123,25 @@ export default {
|
|
column: [
|
|
column: [
|
|
{
|
|
{
|
|
name: "场站",
|
|
name: "场站",
|
|
|
|
+ width:'120px',
|
|
field: "wfname",
|
|
field: "wfname",
|
|
is_light: false,
|
|
is_light: false,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: "风机编号",
|
|
name: "风机编号",
|
|
|
|
+ width:'100px',
|
|
field: "wtid",
|
|
field: "wtid",
|
|
is_light: false,
|
|
is_light: false,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: "任务开始时间",
|
|
name: "任务开始时间",
|
|
|
|
+ width:'150px',
|
|
field: "operationdate",
|
|
field: "operationdate",
|
|
is_light: false,
|
|
is_light: false,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: "任务接受时间",
|
|
name: "任务接受时间",
|
|
|
|
+ width:'150px',
|
|
field: "departuretime",
|
|
field: "departuretime",
|
|
is_light: false,
|
|
is_light: false,
|
|
},
|
|
},
|
|
@@ -141,14 +157,21 @@ export default {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: "操作",
|
|
name: "操作",
|
|
|
|
+ width:'170px',
|
|
field: "",
|
|
field: "",
|
|
is_num: false,
|
|
is_num: false,
|
|
is_light: false,
|
|
is_light: false,
|
|
template() {
|
|
template() {
|
|
- return "<el-button type='text' style='cursor: pointer;'>消缺跟踪</el-button>";
|
|
+ return "<el-button type='text' style='cursor: pointer;' value='gz'>消缺跟踪</el-button> <el-button type='text' style='cursor: pointer;' value='ls'>消缺历史</el-button>";
|
|
},
|
|
},
|
|
click(e, row) {
|
|
click(e, row) {
|
|
- that.onClickTrack(row);
|
|
+ if('gz' == event.target.getAttribute("value")){
|
|
|
|
+ that.onClickTrack(row);
|
|
|
|
+ }
|
|
|
|
+ if('ls' == event.target.getAttribute("value")){
|
|
|
|
+ that.requestTrack(row);
|
|
|
|
+ that.history = true;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
},
|
|
},
|
|
],
|
|
],
|
|
@@ -171,6 +194,7 @@ export default {
|
|
// 消缺跟踪
|
|
// 消缺跟踪
|
|
onClickTrack(row) {
|
|
onClickTrack(row) {
|
|
this.requestTrack(row);
|
|
this.requestTrack(row);
|
|
|
|
+ this.dialogVisible = true;
|
|
},
|
|
},
|
|
// 历史查询
|
|
// 历史查询
|
|
onClickHistory(row) {
|
|
onClickHistory(row) {
|
|
@@ -255,7 +279,6 @@ export default {
|
|
success(res) {
|
|
success(res) {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
that.trackDate = res.data;
|
|
that.trackDate = res.data;
|
|
- that.dialogVisible = true;
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
});
|
|
});
|