优化首次进入ui

feasure
lld 2026-03-11 18:20:52 +08:00
parent 0860028c87
commit a6b8858927
3 changed files with 9 additions and 10 deletions

View File

@ -64,14 +64,10 @@
{ {
"path": "control/index", "path": "control/index",
"style": { "style": {
"navigationBarTitleText": "控制中心", "navigationBarTitleText": "控制中心"
"usingComponents": {
"auto-page": "/pages/home/control/automatic",
"manual-page": "/pages/home/control/manual"
} }
} }
}
// ,
// { // {
// "path": "control/automatic", // "path": "control/automatic",
// "style": { // "style": {

View File

@ -566,9 +566,6 @@ export default {
refresh() { refresh() {
this.getAgriTerm(); this.getAgriTerm();
this.showFlag = !((store.getters && store.getters.name !== 'admin') && this.$auth.hasRole("test")) this.showFlag = !((store.getters && store.getters.name !== 'admin') && this.$auth.hasRole("test"))
this.$nextTick(() => {
this.getSwiperHeight(); //
});
}, },
getAgriTerm() { getAgriTerm() {
getAgriTerm(this.imei).then(response => { getAgriTerm(this.imei).then(response => {
@ -595,7 +592,9 @@ export default {
} }
}).catch(err => { }).catch(err => {
}).finally(() => { }).finally(() => {
this.$nextTick(() => {
this.getSwiperHeight(); //
});
}); });
}, },
// -------------------------------------------------- // --------------------------------------------------

View File

@ -62,6 +62,8 @@
</template> </template>
<script> <script>
import ManualPage from "./manual.vue"
import AutoPage from "./automatic.vue"
// //
const SENSOR_MAP = { const SENSOR_MAP = {
temp1: "201", temp2: "202", temp3: "203", temp4: "204", temp1: "201", temp2: "202", temp3: "203", temp4: "204",
@ -87,6 +89,8 @@ export default {
components: { components: {
ZPaging, ZPaging,
CustomRefresher, CustomRefresher,
ManualPage,
AutoPage,
}, },
data() { data() {
return { return {