提交 54e264c4 作者: wk

工人端项目权限

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