This commit is contained in:
yunkexin 2024-06-05 14:34:18 +08:00
parent 66d4660500
commit 18b324482e
7 changed files with 35 additions and 35 deletions

View File

@ -125,7 +125,7 @@ if (process.env.CUSTOM_PLATFORM === "dev") {
},
uni_app_web_url: "",
uni_app_web_api_url: APP_ENV === 'release' ? "http://xmmhe.com" : "http://47.122.43.22",
uni_app_web_source_url: APP_ENV === 'release' ? "http://xmmhe.com:7199" : "http://47.122.43.22:3199",
uni_app_web_source_url: APP_ENV === 'release' ? "http://xmmhe.com:7199" : "http://47.122.43.22:7199",
uni_app_web_local_api_url: APP_ENV === 'release' ? "http://xmmhe.com" : "http://47.122.43.22" //打包测试: 47.122.43.22 开发可 localhost
}

View File

@ -1,5 +1,5 @@
{
"name" : "连锰矿山安全",
"name" : "矿山安全Beta",
"appid" : "__UNI__A6AA052",
"description" : "连锰矿山安全app",
"versionName" : "1.0.0",
@ -39,7 +39,7 @@
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
],
"abiFilters" : [ "armeabi-v7a" ,"arm64-v8a"]
"abiFilters" : [ "armeabi-v7a", "arm64-v8a" ]
},
/* ios */
"ios" : {
@ -106,13 +106,13 @@
/* */
"quickapp" : {},
/* */
"mp-weixin" : {
"appid" : "wxdf9daae309e2a840",
"setting" : {
"urlCheck" : false
},
"usingComponents" : true
},
"mp-weixin" : {
"appid" : "wxdf9daae309e2a840",
"setting" : {
"urlCheck" : false
},
"usingComponents" : true
},
"mp-alipay" : {
"usingComponents" : true
},

View File

@ -132,7 +132,7 @@
</view>
</view>
</view>
<view v-if="this.localMintype.length !== 0">
<view>
<view class="per-title">
<!-- <view :class="chooseIndex === true? 'personal-choose':'personal'" @click="changePerIndex">个人绩效</view> -->
<view class="tissue-choose">组织绩效</view>
@ -229,7 +229,7 @@
<script>
import {
// getChartData,
getChartData,
// getStandardScore,
getRiskLevel,
getClassActive,
@ -515,26 +515,26 @@
const startTime = uni.$u.timeFormat(new Date(y, m, d), 'yyyy-mm-dd')
const endTime = uni.$u.timeFormat(new Date(), 'yyyy-mm-dd')
// let json = initFilter(orgId, User.NAME, "", "", "", startTime, endTime);
// const res = await getChartData(json)
// if (res.IsSuccessful) {
// this.chartData = res.Data
// const preLineChartData = (res.Data?.groupDataLine || []).splice(-6, 6)
// const lineChartConfig = {
// categories: preLineChartData.map(i => i.MONTHStr.split('')[1]),
// series: [{
// name: "",
// data: preLineChartData.map(i => i.FINISH_RATE)
// },
// {
// name: "",
// data: preLineChartData.map(i => i.NORMAL_FINISH_RATE)
// }
// ]
// }
// this.lineChartData = JSON.parse(JSON.stringify(lineChartConfig));
// this.tableData = res.Data?.groupData || []
// }
let json = initFilter(orgId, User.NAME, "", "", "", startTime, endTime);
const res = await getChartData(json)
if (res.IsSuccessful) {
this.chartData = res.Data
const preLineChartData = (res.Data?.groupDataLine || []).splice(-6, 6)
const lineChartConfig = {
categories: preLineChartData.map(i => i.MONTHStr.split('年')[1]),
series: [{
name: "完成率",
data: preLineChartData.map(i => i.FINISH_RATE)
},
{
name: "及时完成率",
data: preLineChartData.map(i => i.NORMAL_FINISH_RATE)
}
]
}
this.lineChartData = JSON.parse(JSON.stringify(lineChartConfig));
this.tableData = res.Data?.groupData || []
}
// this.getStandard()
this.getRiskLevel()
// this.getClassActive()
@ -741,7 +741,7 @@
const orgId = uni.getStorageSync('orgId')
let json = initFilter(
orgId,
'30',
'',
"NUM",
);
const res = await getDangerTotal(json)

View File

@ -8,7 +8,7 @@ export function toLogin(params) {
uni.setStorageSync('accessToken', access_token)
uni.setStorageSync('refreshToken', refreshToken)
uni.setStorageSync('orgId', orgId)
uni.setStorageSync('Tenant', Tenant)
uni.setStorageSync('Tenant', '01')
request.post('/PF/Login/Login', {
Parameter1: username,
Parameter2: password,

BIN
static/40—40.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -12,7 +12,7 @@ export default {
// const user = uni.getStorageSync('loginUserVerify')
// const RootOrgId = uni.getStorageSync('RootOrgId')
const appInfoData = uni.getStorageSync('appInfo')
const tenant = '01'//uni.getStorageSync('Tenant') ||
const tenant = uni.getStorageSync('Tenant') || '01' //uni.getStorageSync('Tenant') ||
const userId = appInfoData?.User?.ID || ''
const userName = appInfoData?.User?.NAME || ''
const orgId = appInfoData?.User?.ORG_ID || ''