|
@@ -40,10 +40,10 @@
|
|
|
</view>
|
|
|
<image class="icon-more" src="/static/images/icon-more.png"></image>
|
|
|
<text class="role">{{nowPermissionName}}</text>
|
|
|
- </view>
|
|
|
- <!-- <view class="sys-setting">
|
|
|
- <text class="func-text">系统设置</text>
|
|
|
- <image class="icon-more" src="/static/images/icon-more.png"></image>
|
|
|
+ </view>
|
|
|
+ <!-- <view class="sys-setting">
|
|
|
+ <text class="func-text">系统设置</text>
|
|
|
+ <image class="icon-more" src="/static/images/icon-more.png"></image>
|
|
|
</view> -->
|
|
|
<view class="suggestions-feedback-btn" @click="feedbackFunc">
|
|
|
<text class="func-text">建议与反馈</text>
|
|
@@ -71,18 +71,18 @@
|
|
|
</scroll-view>
|
|
|
<button class="journal-ok" @click="journalOk">确定</button>
|
|
|
</view>
|
|
|
- </tm-modal>
|
|
|
- <tm-modal v-if="ifshowVersionInfo">
|
|
|
- <view class="journal">
|
|
|
- <view class="journal-title">
|
|
|
- <text>{{versionData.versionNo}}</text>
|
|
|
- <text>{{versionData.versionDate}}</text>
|
|
|
- </view>
|
|
|
- <scroll-view scroll-y="true" class="journal-content">
|
|
|
- {{versionData.versionContent}}
|
|
|
- </scroll-view>
|
|
|
- <button class="journal-ok" @click="ifshowVersionInfo = false">确定</button>
|
|
|
- </view>
|
|
|
+ </tm-modal>
|
|
|
+ <tm-modal v-if="ifshowVersionInfo">
|
|
|
+ <view class="journal">
|
|
|
+ <view class="journal-title">
|
|
|
+ <text>{{versionData.versionNo}}</text>
|
|
|
+ <text>{{versionData.versionDate}}</text>
|
|
|
+ </view>
|
|
|
+ <scroll-view scroll-y="true" class="journal-content">
|
|
|
+ {{versionData.versionContent}}
|
|
|
+ </scroll-view>
|
|
|
+ <button class="journal-ok" @click="ifshowVersionInfo = false">确定</button>
|
|
|
+ </view>
|
|
|
</tm-modal>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -90,15 +90,15 @@
|
|
|
<script>
|
|
|
export default {
|
|
|
data() {
|
|
|
- return {
|
|
|
+ return {
|
|
|
ifshowVersionInfo:false,
|
|
|
showJournal: false,
|
|
|
- version: '0.5.3',
|
|
|
- versionData: {
|
|
|
- versionNo: '',
|
|
|
- versionId: '',
|
|
|
- versionDate: '',
|
|
|
- versionContent: ''
|
|
|
+ version: '0.5.3',
|
|
|
+ versionData: {
|
|
|
+ versionNo: '',
|
|
|
+ versionId: '',
|
|
|
+ versionDate: '',
|
|
|
+ versionContent: ''
|
|
|
},
|
|
|
journalData: {
|
|
|
logId: '',
|
|
@@ -198,11 +198,67 @@
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/role-switching/role-switching'
|
|
|
});
|
|
|
- },
|
|
|
- feedbackFunc(){
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/suggestionsFeedback/suggestionsFeedback'
|
|
|
- });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created: function() {
|
|
|
+ this.$store.dispatch({
|
|
|
+ type: 'home/commActions',
|
|
|
+ payload: {
|
|
|
+ key: 'getuser',
|
|
|
+ }
|
|
|
+ }).then((data) => {
|
|
|
+ if (data) {
|
|
|
+ uni.setStorageSync('permissions', data.permissions);
|
|
|
+ uni.setStorageSync('nowPermission', data.nowPermission);
|
|
|
+ this.code=data.code;
|
|
|
+ this.name=data.name;
|
|
|
+ this.nowPermission=data.nowPermission;
|
|
|
+ this.dep=data.dep;
|
|
|
+ this.depManager=data.depManager;
|
|
|
+ this.hospName=data.hospName;
|
|
|
+ let current=this.pemissionList.find(item => item.permission == data.nowPermission);
|
|
|
+ this.nowPermissionName=current.name;
|
|
|
+ this.totalTodo=data.permissions.reduce(function(total,currentValue){
|
|
|
+ return total+currentValue.todoNum;
|
|
|
+ },0);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.$store.dispatch({
|
|
|
+ type: 'home/commActions',
|
|
|
+ payload: {
|
|
|
+ key: 'getVersionLog',
|
|
|
+ data: {versionNo: this.version}
|
|
|
+ }
|
|
|
+ }).then((data) => {
|
|
|
+ if (data) {
|
|
|
+ if(!data.logId) {
|
|
|
+ this.showJournal = false;
|
|
|
+ } else {
|
|
|
+ this.showJournal = true;
|
|
|
+ this.journalData = data;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ logOut() {
|
|
|
+ this.$store.dispatch({
|
|
|
+ type: 'home/commActions',
|
|
|
+ payload: {
|
|
|
+ key: 'logout',
|
|
|
+ }
|
|
|
+ }).then((data)=>{
|
|
|
+ if(data){
|
|
|
+ uni.redirectTo({
|
|
|
+ url: `/pages/login/login?hospSign=${uni.getStorageSync('hospSign')}`
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ feedbackFunc(){
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/suggestionsFeedback/suggestionsFeedback'
|
|
|
+ });
|
|
|
},
|
|
|
journalOk() {
|
|
|
this.showJournal = false;
|
|
@@ -216,21 +272,21 @@
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- },
|
|
|
- showVersionInfo(){
|
|
|
- this.$store.dispatch({
|
|
|
- type: 'home/commActions',
|
|
|
- payload: {
|
|
|
- key: 'getThisVersionInfo',
|
|
|
- data: {
|
|
|
- versionNo: this.version,
|
|
|
- }
|
|
|
- }
|
|
|
- }).then(data=>{
|
|
|
- // console.log({'getThisVersionInfo':data});
|
|
|
- this.versionData = data;
|
|
|
- this.ifshowVersionInfo = true;
|
|
|
- });
|
|
|
+ },
|
|
|
+ showVersionInfo(){
|
|
|
+ this.$store.dispatch({
|
|
|
+ type: 'home/commActions',
|
|
|
+ payload: {
|
|
|
+ key: 'getThisVersionInfo',
|
|
|
+ data: {
|
|
|
+ versionNo: this.version,
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).then(data=>{
|
|
|
+ // console.log({'getThisVersionInfo':data});
|
|
|
+ this.versionData = data;
|
|
|
+ this.ifshowVersionInfo = true;
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -445,16 +501,16 @@
|
|
|
// width: 725rpx;
|
|
|
// margin-left: 25rpx;
|
|
|
// background: #FFFFFF;
|
|
|
- // }
|
|
|
- .suggestions-feedback-btn {
|
|
|
+ // }
|
|
|
+ .suggestions-feedback-btn {
|
|
|
height: 100rpx;
|
|
|
width: 725rpx;
|
|
|
margin-left: 25rpx;
|
|
|
background: #FFFFFF;
|
|
|
- // border-bottom: 0.62rpx solid #DADEE6;
|
|
|
- .func-text {
|
|
|
-
|
|
|
- }
|
|
|
+ // border-bottom: 0.62rpx solid #DADEE6;
|
|
|
+ .func-text {
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
.func-text {
|
|
|
font-size: 22.5rpx;
|
|
@@ -506,4 +562,4 @@
|
|
|
color: #666E80;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|