提交 54e264c4 作者: wk

工人端项目权限

父级 e11c0c1f
......@@ -29,7 +29,7 @@
<image src="../../static/ic-sjzg.png" class="image" @click="linkToData"></image>
<text class="text" @click="linkToData">数据智管</text>
<image src="../../static/ic-rqyy.png" class="rq-image"></image>
<text class="text">本周人气最佳:{{mostUsed.app_name}}</text>
<text class="text">本周人气最佳:{{mostUsed.app_name||"暂无"}}</text>
</view>
<view class="app-content">
<v-tabs :tabs="tabs" :scroll="true" :value="current" @change="tabChange"></v-tabs>
......@@ -95,8 +95,7 @@
this.statusBarHeight = info.statusBarHeight
this.role = getApp().globalData.userInfo.identity.code
if (this.role == 'WORKER') {
this.orgName = getApp().globalData.userInfo.currentProject.projectName
uni.setStorageSync("org_no", getApp().globalData.userInfo.user.org_no)
this.orgName = uni.getStorageSync("org_name")
}
this.getAppGroup()
this.getMostUsed()
......
......@@ -14,7 +14,7 @@
<view class="menu-item" v-for="(item,index) in selList" :key="index">
<view class="logo-content">
<image
:src="'https://release-console.oss-cn-hangzhou.aliyuncs.com/intecons/uniimage/'+item.ydt_logo+'.png'"
:src="item.ydt_logo"
class="logo"></image>
<image src="../../../static/delete-ic.png" class="del" @click="toDel(index)"></image>
</view>
......@@ -30,9 +30,7 @@
<view class="app-list">
<view class="menu-item" v-for="(app,appIndex) in item.data" :key="appIndex">
<view class="logo-content">
<image
:src="'https://release-console.oss-cn-hangzhou.aliyuncs.com/intecons/uniimage/'+app.ydt_logo+'.png'"
class="logo"></image>
<image :src="app.ydt_logo" class="logo"></image>
<image src="../../../static/add-ic.png" class="del" @click="toAdd(app,index,appIndex)">
</image>
</view>
......@@ -124,7 +122,6 @@
if (this.selList.length == 4) {
this.$toast.showToast("常用应用最多设置4个")
} else {
item.ydt_logo = item.logo
this.selList.push(item)
this.apps[this.current].list[index].data.splice(appIndex, 1)
}
......
......@@ -53,8 +53,7 @@
<view :class="isLineVisil(index)?'app-name-left':'app-name-right'">
{{nameLengthDeal(app.app_name)}}
</view>
<image class="app-logo"
:src="'https://release-console.oss-cn-hangzhou.aliyuncs.com/intecons/uniimage/'+app.ydt_logo+'.png'">
<image class="app-logo" :src="app.ydt_logo">
</image>
<view class="line" v-if="isLineVisil(index)"></view>
</view>
......@@ -453,6 +452,8 @@
this.project_id = this.userInfo.worker.projectId
this.getGoodsList()
this.getMyScore()
uni.setStorageSync("org_no", this.userInfo.user.org_no)
uni.setStorageSync("org_name", this.userInfo.currentProject.projectName)
}
}
this.getNews()
......
......@@ -25,7 +25,9 @@
<view class="line"></view>
<view class="item">
<view class="item-name">项目地址:</view>
<view class="item-value" style="width: 488rpx;">{{project.province}}{{project.city}}{{project.area}}
<view class="item-value"
style="width: 488rpx;display: flex;flex-direction: column;align-items: flex-end;">
{{project.province}}{{project.city}}{{project.area}}
</view>
</view>
<view class="line"></view>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
Please register or to comment