flx:修改
This commit is contained in:
parent
b10a6dd639
commit
6850d543f7
@ -3,10 +3,11 @@
|
||||
// export const BASE_URL = "http://42.180.188.17:11211/"
|
||||
//export const BASE_URL = "http://192.168.8.100:10000"
|
||||
//export const BASE_URL = "http://106.13.16.28:10000"
|
||||
export const BASE_URL = "http://219.147.96.219:9809" // 包头
|
||||
// export const BASE_URL = "http://219.147.96.219:9809" // 包头
|
||||
|
||||
// export const BASE_URL = process.env.NODE_ENV === 'development' ? "http://192.168.34.221:9111" : "http://jxj.zhgdyun.com:18000" // 包头
|
||||
// export const BASE_URL = process.env.NODE_ENV === 'development' ? "http://192.168.34.221:9111" : "http://219.147.96.219:9809" // 包头线上地址(正式)
|
||||
export const BASE_URL = process.env.NODE_ENV === 'development' ? "http://192.168.34.221:9111" : "http://192.168.3.9:39809" // 包头线上地址(内网)
|
||||
//是否已显示未登录弹窗
|
||||
let showNoLoginTip = false
|
||||
|
||||
|
||||
11
main.js
11
main.js
@ -88,8 +88,9 @@ export function createApp() {
|
||||
// app.config.globalProperties.url_config = 'http://182.90.224.237:51234/' //雄哥内网穿透地址
|
||||
// app.config.globalProperties.url_config = 'http://jxj.zhgdyun.com:61212/' //杰哥内网穿透地址
|
||||
// app.config.globalProperties.url_config = 'http://192.168.34.221:28888/' //郭圣雄本地
|
||||
app.config.globalProperties.url_config = 'http://192.168.34.221:9111/' //郭圣雄本地
|
||||
app.config.globalProperties.work_url = 'http://192.168.34.133:5173' // 工作流地址
|
||||
// app.config.globalProperties.url_config = 'http://192.168.34.221:9111/' //郭圣雄本地
|
||||
app.config.globalProperties.url_config = 'http://101.43.164.214:11000/' //包头映射
|
||||
app.config.globalProperties.work_url = 'http://192.168.34.133:5173/wflowApp/#/' // 工作流地址
|
||||
// app.config.globalProperties.url_config = 'http://182.90.224.237:51234/' //郭圣雄本地
|
||||
// app.config.globalProperties.url_config = 'http://192.168.34.155:19111/' //彭洁本地
|
||||
// app.config.globalProperties.work_url = 'http://47.93.215.234:19997' // 工作流线上地址(弃用)
|
||||
@ -138,8 +139,10 @@ export function createApp() {
|
||||
} else {
|
||||
// 生产环境
|
||||
console.log('生产环境')
|
||||
app.config.globalProperties.url_config = "http://219.147.96.219:9809/" // 包头(正式)
|
||||
app.config.globalProperties.work_url = "http://219.147.96.219:19997" // 包头工作流线上地址(正式)
|
||||
app.config.globalProperties.url_config = "http://192.168.3.9:39809/" // 包头(内网)
|
||||
app.config.globalProperties.work_url = "http://192.168.3.9:39809/wflowApp/#/" // 包头工作流线上地址(内网)
|
||||
// app.config.globalProperties.url_config = "http://219.147.96.219:9809/" // 包头(正式)
|
||||
// app.config.globalProperties.work_url = "http://219.147.96.219:19997" // 包头工作流线上地址(正式)
|
||||
// app.config.globalProperties.url_config = "http://jxj.zhgdyun.com:18000/" // 包头
|
||||
// app.config.globalProperties.work_url = "http://jxj.zhgdyun.com:18004" // 包头工作流线上地址
|
||||
// app.config.globalProperties.url_config = 'http://10.168.1.105:11111/' // 线上地址
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
"name" : "智慧工地系统",
|
||||
"appid" : "__UNI__4AA4101",
|
||||
"description" : "",
|
||||
"versionName" : "1.3.2",
|
||||
"versionCode" : 132,
|
||||
"versionName" : "1.3.3",
|
||||
"versionCode" : 133,
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
@ -36,10 +36,10 @@
|
||||
"VideoPlayer" : {},
|
||||
"Bluetooth" : {},
|
||||
"SQLite" : {},
|
||||
"Push" : {},
|
||||
"FaceID" : {},
|
||||
"Fingerprint" : {},
|
||||
"Maps" : {}
|
||||
"Maps" : {},
|
||||
"Push" : {}
|
||||
},
|
||||
/* 应用发布信息 */
|
||||
"distribute" : {
|
||||
@ -192,7 +192,8 @@
|
||||
"maps" : {}
|
||||
},
|
||||
"router" : {
|
||||
"mode" : "hash"
|
||||
"mode" : "hash",
|
||||
"base" : "/app/"
|
||||
},
|
||||
"optimization" : {
|
||||
"gpuAccelerated" : true, // 启用GPU加速
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
<view class="alarm_main" :style="{paddingTop: (mobileTopHeight + 90) * 1.5 + 'rpx'}">
|
||||
<view class="alarm_main" :style="{paddingTop: (mobileTopHeight + 90) * 1.8 + 'rpx'}">
|
||||
<!-- <view class="alarm-item" v-for="(item,index) in listData" :key="index" @click="goHiidden()"> -->
|
||||
<view class="alarm-item" v-for="(item,index) in listData" :key="index">
|
||||
<view class="item-bottom">
|
||||
@ -54,7 +54,7 @@
|
||||
<!-- <view class="header-info">未戴安全帽</view> -->
|
||||
<!-- <view class="header-info">{{}}</view> -->
|
||||
<view class="header-info">
|
||||
{{ item.alarmType ? showType[item.alarmType].value : '' }}
|
||||
{{ item.alarmType ? (item.alarmType <= showType.length ? showType[item.alarmType].value : '') : '' }}
|
||||
</view>
|
||||
<view class="logo">
|
||||
<image src="/static/aiWarn/aiWarn.png"></image>
|
||||
@ -106,6 +106,7 @@
|
||||
import {
|
||||
GetDateStr
|
||||
} from "@/static/js/util.js"
|
||||
import dayjs from 'dayjs';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@ -157,7 +158,7 @@
|
||||
userInfo: {},
|
||||
personTypeIndex: 0,
|
||||
searchForm: {
|
||||
personType: 1, //1、施工人员 2、管理人员
|
||||
personType: '', //1、施工人员 2、管理人员
|
||||
attendanceDate: ''
|
||||
},
|
||||
}
|
||||
@ -208,12 +209,14 @@
|
||||
methods: {
|
||||
|
||||
changeDate(e) {
|
||||
this.searchForm.attendanceDate = e.target.value
|
||||
console.log(e)
|
||||
this.searchForm.attendanceDate = e.detail.value
|
||||
this.pageNo = 1
|
||||
this.getListData()
|
||||
},
|
||||
changePersonType(e) {
|
||||
this.personTypeIndex = e.target.value
|
||||
console.log(e)
|
||||
this.personTypeIndex = e.detail.value
|
||||
this.searchForm.personType = this.showType[this.personTypeIndex].id
|
||||
this.pageNo = 1
|
||||
this.getListData()
|
||||
@ -227,8 +230,8 @@
|
||||
projectSn: this.projectSn,
|
||||
pageNo: this.pageNo,
|
||||
pageSize: this.pageSize,
|
||||
startTime: this.searchForm.attendanceDate,
|
||||
endTime: this.searchForm.attendanceDate,
|
||||
startTime: dayjs(this.searchForm.attendanceDate).format('YYYY-MM-DD') + ' 00:00:00',
|
||||
endTime: dayjs(this.searchForm.attendanceDate).format('YYYY-MM-DD') + ' 23:59:59',
|
||||
alarmType: this.searchForm.personType,
|
||||
isPushed: 1
|
||||
},
|
||||
@ -247,7 +250,14 @@
|
||||
}
|
||||
// console.log('--------')
|
||||
// this.listData = res.result.records
|
||||
this.listData = [...this.listData, ...res.result.records]
|
||||
const resultList = res.result.records.map(item => {
|
||||
return {
|
||||
...item,
|
||||
imageUrl: this.url_config.includes("http") ? this.url_config + 'image/' + item.imageUrl : item.imageUrl,
|
||||
}
|
||||
})
|
||||
console.log('resultList', resultList)
|
||||
this.listData = [...this.listData, ...resultList]
|
||||
uni.hideLoading() //关闭加载中
|
||||
}
|
||||
}
|
||||
|
||||
@ -78,6 +78,7 @@
|
||||
pxToRpx,
|
||||
dateformat
|
||||
} from "@/utils/tool.js";
|
||||
import dayjs from "dayjs";
|
||||
export default {
|
||||
components: {
|
||||
uCharts,
|
||||
|
||||
@ -62,7 +62,7 @@
|
||||
}, {
|
||||
id: 2,
|
||||
urlImage: thematicActivitie,
|
||||
appName: "监造日报",
|
||||
appName: "监造周报",
|
||||
appPath: '/project/purchasingManage/supervisionDaily'
|
||||
}]
|
||||
};
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
<view class="fixedheader">
|
||||
<headers :showBack="true">
|
||||
<view class="headerName">
|
||||
监造日报
|
||||
监造周报
|
||||
</view>
|
||||
<view class="right" @click="screenData()">
|
||||
<image class="scancode" src="@/static/bthgIcon/screen.png" mode=""></image>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user