Browse Source

2023-11-7

master
guoxing 2 years ago
parent
commit
1cdad97b3e
  1. 4
      supervise-organizational-ui/src/views/organizational/userManageList.vue
  2. 36
      supervise-uniapp/App.vue
  3. 2
      supervise-uniapp/common/config.js
  4. 17
      supervise-uniapp/pages/index/DataAssembleList2.vue

4
supervise-organizational-ui/src/views/organizational/userManageList.vue

@ -36,9 +36,9 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" width="380px" align="center"> <el-table-column label="操作" width="380px" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="setRole(scope.row)" type="primary" size="mini"> <!-- <el-button @click="setRole(scope.row)" type="primary" size="mini">
设置角色 设置角色
</el-button> </el-button> -->
<el-button @click="initPwd(scope.row)" type="danger" size="mini"> <el-button @click="initPwd(scope.row)" type="danger" size="mini">
初始化密码 初始化密码
</el-button> </el-button>

36
supervise-uniapp/App.vue

@ -4,9 +4,9 @@
globalData: { globalData: {
// wxSilentLoginURL: "https://supervise.yxtsoft.com/portal/v1/wxuser/wxSilentLogin", // wxSilentLoginURL: "https://supervise.yxtsoft.com/portal/v1/wxuser/wxSilentLogin",
// wxSilentLoginURL: "https://supervise.yxtsoft.com/api/portal/v1/wxuser/wxSilentLogin",// // wxSilentLoginURL: "https://supervise.yxtsoft.com/api/portal/v1/wxuser/wxSilentLogin",//
wxSilentLoginURL: "http://192.168.1.103:7009/v1/app/wxuser/wxSilentLogin", wxSilentLoginURL: "http://192.168.1.104:7009/v1/app/wxuser/wxSilentLogin",
wxAuthLoginURL: "https://supervise.yxtsoft.com/api/portal/v1/wxuser/wxAuthLogin", wxAuthLoginURL: "https://supervise.yxtsoft.com/api/portal/v1/wxuser/wxAuthLogin",
SilentLoginURL: "https://supervise.yxtsoft.com/api/portal/v1/wxuser/SilentLogin",// SilentLoginURL: "https://supervise.yxtsoft.com/api/portal/v1/wxuser/SilentLogin", //
token: "", token: "",
isLogin: false, isLogin: false,
sid: "", sid: "",
@ -25,15 +25,41 @@
console.log("》》》》", 22222222222); console.log("》》》》", 22222222222);
const updateManager = uni.getUpdateManager();
updateManager.onCheckForUpdate(function(res) {
//
console.log(res.hasUpdate);
});
updateManager.onUpdateReady(function(res) {
uni.showModal({
title: '更新提示',
content: '新版本已经准备好,是否重启应用?',
success(res) {
if (res.confirm) {
// applyUpdate
updateManager.applyUpdate();
}
}
});
});
updateManager.onUpdateFailed(function(res) {
//
});
// // // //
// console.log('Webkey', '59970402d1c3f7dc1efff17d4dfcff21') // console.log('Webkey', '59970402d1c3f7dc1efff17d4dfcff21')
}, },
onShow: function() { onShow: function() {
}, },
onHide: function() { onHide: function() {
console.log("onHide》》》》", "onHide"); console.log("onHide》》》》", "onHide");
wx.clearStorage() wx.clearStorage()
}, },
methods: { methods: {

2
supervise-uniapp/common/config.js

@ -8,7 +8,7 @@
module.exports = { module.exports = {
// baseUrl: 'http://jg.yyundong.com',// 测试 // baseUrl: 'http://jg.yyundong.com',// 测试
// baseUrl: 'https://supervise.yxtsoft.com/reportwxmpapi',//正式 // baseUrl: 'https://supervise.yxtsoft.com/reportwxmpapi',//正式
baseUrl: 'http://192.168.1.103:7009', baseUrl: 'http://192.168.1.104:7009',
// baseUrl: 'http://192.168.1.110:8112', // baseUrl: 'http://192.168.1.110:8112',
tokenName: "Authorization", // 请求头中token的名字,与服务器端对应 tokenName: "Authorization", // 请求头中token的名字,与服务器端对应
loginTimeoutCode: "5001", // 登录超时或失效的情况下,服务器端返回的错误码 loginTimeoutCode: "5001", // 登录超时或失效的情况下,服务器端返回的错误码

17
supervise-uniapp/pages/index/DataAssembleList2.vue

@ -31,13 +31,15 @@
<view class="item" :class="{'item2':index==dataList.length-1}"> <view class="item" :class="{'item2':index==dataList.length-1}">
<view class="item-name">{{item.projectName}}</view> <view class="item-name">{{item.projectName}}</view>
<text class="item-num" v-show="item.isReport=='2'">当日无数据</text>
<view> <view v-show="item.isReport=='1'">
<text class="item-num" :class="{'item-num2':item.state=='2'}">{{item.pledgeRatePercent}}%</text> <text class="item-num" :class="{'item-num2':item.state=='2'}">{{item.pledgeRatePercent}}%</text>
<text class="item-num">/ {{item.bankPledgeRate}}%</text> <text class="item-num">/ {{item.bankPledgeRate}}%</text>
</view> </view>
<image src="../../static/baseIcon/zy.png" style="width: 15px;height: 15px;" mode="aspectFill"> <image v-show="item.isReport=='1'" src="../../static/baseIcon/zy.png" style="width: 15px;height: 15px;" mode="aspectFill">
</image> </image>
</view> </view>
@ -137,9 +139,14 @@
itemClick(item) { itemClick(item) {
console.log('itemClick', item) console.log('itemClick', item)
console.log('orderDate', this.params.orderDate) console.log('orderDate', this.params.orderDate)
uni.navigateTo({
url: '../index/RegulatoryReporting?projectSid=' + item.projectSid + "&orderDate=" + this.params.orderDate if(item.isReport=='1'){
}); uni.navigateTo({
url: '../index/RegulatoryReporting?projectSid=' + item.projectSid + "&orderDate=" + this.params.orderDate
});
}
} }
} }
} }

Loading…
Cancel
Save