|
@@ -27,8 +27,7 @@
|
|
|
<spectaculars ref="spectaculars" />
|
|
|
<!-- 巡检计划 -->
|
|
|
<patrolScheme ref="patrolScheme" />
|
|
|
-
|
|
|
- <workorder v-if="showWorkrder" :isHome="true" />
|
|
|
+ <workorder ref="workroder" v-if="showWorkrder" :isHome="true" />
|
|
|
<view style="height: calc(16.533vw + env(safe-area-inset-bottom) / 2);" />
|
|
|
</view>
|
|
|
</template>
|
|
@@ -67,7 +66,7 @@ export default {
|
|
|
let userMsg = uni.getStorageSync("userMsg");
|
|
|
this.sitename = `${userMsg.sitename} - ${userMsg.name}`
|
|
|
try {
|
|
|
- this.showWorkrder = uni.getStorageSync('authList')['工单']['工单'].name == "workorder"
|
|
|
+ this.showWorkrder = uni.getStorageSync('authList')['工单']['工单'].name == "workorder";
|
|
|
} catch (error) {
|
|
|
this.showWorkrder = false
|
|
|
}
|
|
@@ -77,9 +76,10 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
renderData() {
|
|
|
- this.$refs.notice.getList();
|
|
|
+ this.$refs.notice.getList(true);
|
|
|
this.$refs.spectaculars.getDetail();
|
|
|
this.$refs.patrolScheme.getDetail();
|
|
|
+ this.$refs.workroder.getlist(true);
|
|
|
},
|
|
|
getWeather() {
|
|
|
this.$Http.basic({
|