#
whycq
2023-12-28 410593e3cbd8084cde43610bde5d2089b105980f
#
2个文件已修改
38 ■■■■ 已修改文件
Monitor-APP/manifest.json 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Monitor-APP/pages/home/home.vue 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Monitor-APP/manifest.json
@@ -2,8 +2,8 @@
    "name" : "Monitor-APP",
    "appid" : "__UNI__CA903B7",
    "description" : "",
    "versionName" : "1.0.1",
    "versionCode" : "100",
    "versionName" : "20231228_A",
    "versionCode" : 100,
    "transformPx" : false,
    /* 5+App特有相关 */
    "app-plus" : {
Monitor-APP/pages/home/home.vue
@@ -317,6 +317,13 @@
        <view style="color: #FFF;position: fixed;bottom: 10px;left: 10px;" v-show="timeOut">
            连接超时: {{times}} s
        </view>
        <!-- 版本号 -->
        <!-- #ifdef APP-PLUS -->
        <view class="version">
            当前版本:{{version}}
        </view>
        <!-- #endif -->
    </view>
</template>
<!-- {"msg":"操作成功","code":200,"data":[{"title":"全板出库","workNo":7460,"staNo":110,"sourceStaNo":null,"locNo":null,"sourceLocNo":"0807102","matDtos":[{"matNo":"50460834","maknx":"200x60桌面","count":26.0}],"emptyMk":false,"ioType":101}]} -->
@@ -326,6 +333,7 @@
    export default {
        data() {
            return {
                version: '1231313',
                newModeClass: 'slide-top',
                errorBoardShow: false,
                carInfo: [],
@@ -510,7 +518,7 @@
            that.baseCrnId = BaseCrnId
            this.getVersion()
            this.getDate2()
            setTimeout(() => {
                this.getShuttle()
@@ -551,8 +559,22 @@
                this.initPieChart()
                this.getOther()
            }, 600000)
            // #ifdef APP-PLUS
                setTimeout(()=>{
                    plus.runtime.restart()
                },28800000)
            // #endif
        },
        methods: {
            getVersion() {
                let that = this
                plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
                    that.version = wgtinfo.version //客户端版本号
                })
            },
            getShuttleTest() {
                let res = ycqdata.infoData2.data
                this.shuttleInfoModel(res)
@@ -1097,7 +1119,15 @@
<style>
    /* @import url("../../static/css/common.css"); */
    @import url("home.css");
    /* 版本号 */
    .version {
        min-width: 100rpx;
        position: fixed;
        right: 20rpx;
        bottom: 10rpx;
        font-size: .1rem;
        color: #909399;
    }
    /* 列 */
    .flex-col {
        display: flex;