|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<!-- 设备列表 -->
|
|
<!-- 设备列表 -->
|
|
<div class="devicePage flex-col">
|
|
<div class="devicePage flex-col">
|
|
- <s-header :name="sys ? sys.title : $t('public.sysName')" :noback="false"></s-header>
|
|
|
|
|
|
+ <s-header :name="sys ? sys.title : $t('device.managementCenter')" :noback="true"></s-header>
|
|
<div class="listBox">
|
|
<div class="listBox">
|
|
<van-list v-model:loading="loading" v-model:error="error" :error-text="$t('public.requestFailed')"
|
|
<van-list v-model:loading="loading" v-model:error="error" :error-text="$t('public.requestFailed')"
|
|
:finished="finished" :finished-text="$t('public.noMore')" offset="300" :immediate-check="false" @load="onLoad">
|
|
:finished="finished" :finished-text="$t('public.noMore')" offset="300" :immediate-check="false" @load="onLoad">
|
|
@@ -130,8 +130,11 @@
|
|
<!-- <span class="txt5 o-ptb-10 kBordBott l-flex-RC"><span>远程开门:</span>
|
|
<!-- <span class="txt5 o-ptb-10 kBordBott l-flex-RC"><span>远程开门:</span>
|
|
<van-button type="primary">开门</van-button>
|
|
<van-button type="primary">开门</van-button>
|
|
</span> -->
|
|
</span> -->
|
|
- <span class="txt1 o-ptb-8">{{ item.fullName }}</span>
|
|
|
|
- <div>
|
|
|
|
|
|
+
|
|
|
|
+ <!-- 设备地址 -->
|
|
|
|
+ <!-- <span class="txt1 o-ptb-8">{{ item.fullName }}</span> -->
|
|
|
|
+ <!-- 定位: -->
|
|
|
|
+ <!-- <div>
|
|
<span v-if="item.latitude" class="txt5 o-ptb-8 kBordBott l-flex-RC">
|
|
<span v-if="item.latitude" class="txt5 o-ptb-8 kBordBott l-flex-RC">
|
|
<span class="info1">{{
|
|
<span class="info1">{{
|
|
$t("device.position") }}:</span>
|
|
$t("device.position") }}:</span>
|
|
@@ -139,7 +142,17 @@
|
|
$t("device.view")
|
|
$t("device.view")
|
|
}}</van-button>
|
|
}}</van-button>
|
|
</span>
|
|
</span>
|
|
|
|
+ </div> -->
|
|
|
|
+
|
|
|
|
+ <!-- 定位: -->
|
|
|
|
+ <div>
|
|
|
|
+ <span v-if="item.latitude" class="txt5 o-ptb-8 kBordBott l-flex-RC">
|
|
|
|
+ <span class="info1">{{ $t("device.position") }}:</span>
|
|
|
|
+ <a class="clickable-link o-ptb-8" @click="viewPosiClk(item)">{{ item.fullName }}</a>
|
|
|
|
+ </span>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+
|
|
<van-row class="layer5 o-ptb-8 kBordBott" justify="space-between"
|
|
<van-row class="layer5 o-ptb-8 kBordBott" justify="space-between"
|
|
v-if="(item.machineType == '0' || item.machineType == null) && item.equimentType != 'POP320'">
|
|
v-if="(item.machineType == '0' || item.machineType == null) && item.equimentType != 'POP320'">
|
|
<van-col class="word5">{{ $t("device.furnaceHeadTemperature") }}:{{
|
|
<van-col class="word5">{{ $t("device.furnaceHeadTemperature") }}:{{
|
|
@@ -189,9 +202,11 @@
|
|
{{ $t("device.wasteWater") }}:{{ Format_calcuDecial(item.wasteWater) }}%
|
|
{{ $t("device.wasteWater") }}:{{ Format_calcuDecial(item.wasteWater) }}%
|
|
</van-col>
|
|
</van-col>
|
|
</van-row>
|
|
</van-row>
|
|
|
|
+ <!-- 一键补料 -->
|
|
<span class="txt5 o-ptb-8 kBordBott l-flex-RC"><span>{{ $t("device.oneKeyFeed") }}:</span>
|
|
<span class="txt5 o-ptb-8 kBordBott l-flex-RC"><span>{{ $t("device.oneKeyFeed") }}:</span>
|
|
- <van-button @click="replenishmentClk(item)" type="primary">{{ $t("device.replenishment") }}
|
|
|
|
- </van-button>
|
|
|
|
|
|
+ <!-- <van-button @click="replenishmentClk(item)" type="primary">{{ $t("device.replenishment") }}
|
|
|
|
+ </van-button> -->
|
|
|
|
+ <a class="replenishment o-ptb-8" @click="replenishmentClk(item)">{{ $t("device.replenishment") }}</a>
|
|
</span>
|
|
</span>
|
|
</template>
|
|
</template>
|
|
<span class="info1 o-ptb-8 kBordBott">{{ $t("device.lastRefreshTime") }}:{{
|
|
<span class="info1 o-ptb-8 kBordBott">{{ $t("device.lastRefreshTime") }}:{{
|
|
@@ -405,6 +420,7 @@ export default {
|
|
|
|
|
|
// 点击查看定位
|
|
// 点击查看定位
|
|
const viewPosiClk = (row) => {
|
|
const viewPosiClk = (row) => {
|
|
|
|
+ console.log("row 是 >>>", row);
|
|
if (row.latitude) {
|
|
if (row.latitude) {
|
|
router.push({
|
|
router.push({
|
|
path: "viewPosition",
|
|
path: "viewPosition",
|
|
@@ -418,11 +434,12 @@ export default {
|
|
Toast(`${t("device.noPosition")}!!!`);
|
|
Toast(`${t("device.noPosition")}!!!`);
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
+
|
|
// 点击补料
|
|
// 点击补料
|
|
const replenishmentClk = (row) => {
|
|
const replenishmentClk = (row) => {
|
|
- console.log("row", row);
|
|
|
|
|
|
+ console.log("row >>>", row);
|
|
Api_getReplenishment({ equipmentId: row.id }).then((res) => {
|
|
Api_getReplenishment({ equipmentId: row.id }).then((res) => {
|
|
- console.log("res", res);
|
|
|
|
|
|
+ console.log("res >>>", res);
|
|
// Toast(res.data.message);
|
|
// Toast(res.data.message);
|
|
Dialog.alert({
|
|
Dialog.alert({
|
|
message: t('device.sentSuccessfully'),
|
|
message: t('device.sentSuccessfully'),
|