Merge branch 'master' of http://47.122.43.22:3000/ykx/lm-safe-app
This commit is contained in:
		
						commit
						6e5505d889
					
				@ -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
 | 
			
		||||
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
{
 | 
			
		||||
    "name" : "连锰矿山安全",
 | 
			
		||||
    "name" : "双控安全Beta",
 | 
			
		||||
    "appid" : "__UNI__A6AA052",
 | 
			
		||||
    "description" : "连锰矿山安全app",
 | 
			
		||||
    "versionName" : "1.0.0",
 | 
			
		||||
 | 
			
		||||
@ -144,9 +144,9 @@
 | 
			
		||||
				noticeTotal: 0,
 | 
			
		||||
				lists: [],
 | 
			
		||||
				banners: [
 | 
			
		||||
					'../../static/banner02.png',
 | 
			
		||||
					'../../static/banner03.png',
 | 
			
		||||
					'../../static/banner04.png'
 | 
			
		||||
					'../../static/banner5.jpg',
 | 
			
		||||
					'../../static/banner6.jpg',
 | 
			
		||||
					'../../static/banner7.png'
 | 
			
		||||
				],
 | 
			
		||||
				currentBanner: 0,
 | 
			
		||||
				text: '',
 | 
			
		||||
 | 
			
		||||
@ -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)
 | 
			
		||||
 | 
			
		||||
@ -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
									
								
							
							
						
						
									
										
											BIN
										
									
								
								static/40—40.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 2.3 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								static/banner5.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								static/banner5.jpg
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 101 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								static/banner6.jpg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								static/banner6.jpg
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 98 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								static/banner7.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								static/banner7.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 312 KiB  | 
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 3.0 KiB  | 
@ -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 || ''
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user