Merge remote-tracking branch 'remotes/origin/master' into minJeecg
# Conflicts: # env/.env.development # manifest.config.ts # src/manifest.json # src/pages/onlinePreview/detail.vue
This commit is contained in:
commit
48fca7f96f
5
env/.env.development
vendored
5
env/.env.development
vendored
@ -4,5 +4,6 @@ NODE_ENV = 'development'
|
||||
VITE_DELETE_CONSOLE = false
|
||||
# 是否开启sourcemap
|
||||
VITE_SHOW_SOURCEMAP = true
|
||||
VITE_SERVER_BASEURL = 'http://10.75.15.247:8080/jeecg-boot'
|
||||
#VITE_SERVER_BASEURL = 'https://szcx.zyyt.sinopec.com/jeecg-boot'
|
||||
#VITE_SERVER_BASEURL = 'http://10.75.15.249:8080/jeecg-boot'
|
||||
#VITE_SERVER_BASEURL = 'https://36.112.48.190/jeecg-boot'
|
||||
VITE_SERVER_BASEURL = 'https://szcx.zyyt.sinopec.com/jeecg-boot'
|
4
env/.env.production
vendored
4
env/.env.production
vendored
@ -4,6 +4,4 @@ NODE_ENV = 'development'
|
||||
VITE_DELETE_CONSOLE = true
|
||||
# 是否开启sourcemap
|
||||
VITE_SHOW_SOURCEMAP = false
|
||||
|
||||
#VITE_SERVER_BASEURL = 'https://36.112.48.190/jeecg-boot'
|
||||
VITE_SERVER_BASEURL = 'http://10.75.15.247:8080/jeecg-boot'
|
||||
VITE_SERVER_BASEURL = 'https://szcx.zyyt.sinopec.com/jeecg-boot'
|
||||
|
@ -17,8 +17,8 @@ export default defineManifestConfig({
|
||||
name: VITE_APP_TITLE,
|
||||
appid: VITE_UNI_APPID,
|
||||
description: '',
|
||||
versionName: '1.1.22',
|
||||
versionCode: '20250530',
|
||||
versionName: '2.0.0',
|
||||
versionCode: '20250603',
|
||||
transformPx: false,
|
||||
locale: VITE_FALLBACK_LOCALE, // 'zh-Hans'
|
||||
/* 5+App特有相关 */
|
||||
|
@ -2,8 +2,8 @@
|
||||
"name": "数智产销",
|
||||
"appid": "__UNI__9F097F0",
|
||||
"description": "",
|
||||
"versionName": "1.1.22",
|
||||
"versionCode": "20250530",
|
||||
"versionName": "2.0.0",
|
||||
"versionCode": "20250603",
|
||||
"transformPx": false,
|
||||
"app-plus": {
|
||||
"usingComponents": true,
|
||||
|
@ -86,7 +86,6 @@
|
||||
let loading = false
|
||||
|
||||
const queryLeave = (e) => {
|
||||
console.log('----', range.value)
|
||||
let param = {
|
||||
sysOrgCode: orgCode.value,
|
||||
begin: range.value[0],
|
||||
|
@ -17,7 +17,7 @@
|
||||
<wd-col :span="6">
|
||||
<view class="img">
|
||||
<image mode="aspectFit"
|
||||
:src="'https://36.112.48.190/jeecg-boot/sys/common/static/' + imgUrl"></image>
|
||||
:src="'https://szcx.zyyt.sinopec.com/jeecg-boot/sys/common/static/' + imgUrl"></image>
|
||||
</view>
|
||||
</wd-col>
|
||||
</wd-row>
|
||||
|
@ -34,7 +34,6 @@
|
||||
|
||||
const appStore = useAppStore()
|
||||
const dataSource = ref({})
|
||||
var ifH5 = false;
|
||||
|
||||
const onlinePreview = (url) => {
|
||||
uni.navigateTo({
|
||||
@ -50,9 +49,6 @@
|
||||
|
||||
onLoad((options) => {
|
||||
getData(options.data)
|
||||
//#ifdef H5 || MP-WEIXIN
|
||||
ifH5 = true;
|
||||
//#endif
|
||||
})
|
||||
</script>
|
||||
|
||||
|
@ -18,12 +18,13 @@
|
||||
<!-- 列表内容 -->
|
||||
<view v-for="(item, i) in list" :key="i">
|
||||
<wd-card :title="item.title" @click="getList(item.path)">
|
||||
<view class="card-content">
|
||||
<view class="card-content meta-info">
|
||||
<view class="meta-info">
|
||||
<wd-icon name="time" size="14px" color="#999"></wd-icon>
|
||||
<text class="meta-text">{{item.time}}</text>
|
||||
<wd-icon name="usergroup" size="14px" color="#999" style="margin-left: auto;"></wd-icon>
|
||||
<text class="meta-text">
|
||||
<wd-icon name="time" size="14px" :style="{ color: item.color }"></wd-icon>
|
||||
<text :style="{ color: item.color, marginLeft: '4px' }">{{ item.time }}</text>
|
||||
<wd-icon name="usergroup" size="14px"
|
||||
:style="{ color: item.color, marginLeft: 'auto'}"></wd-icon>
|
||||
<text :style="{ color: item.color, marginLeft: '4px' }">
|
||||
{{item.depart.length > 19 ? item.depart.substring(0, 18) + '...': item.depart}}</text>
|
||||
</view>
|
||||
</view>
|
||||
@ -54,7 +55,6 @@
|
||||
const list = ref([]) //文件列表
|
||||
const keyword = ref('') //查询绑定值
|
||||
const type = ref('') //绑定查询文件种类
|
||||
var ifH5 = false;
|
||||
|
||||
const getList = (e) => {
|
||||
loading = true;
|
||||
@ -118,7 +118,11 @@
|
||||
zdmc: formatSearchkey()
|
||||
}).then((res) => {
|
||||
if (res.success) {
|
||||
list.value = [...list.value, ...formatObj(res.result.records, 'zdmc', 'updateTime2', 'zbbm',
|
||||
const recordsWithColor = res.result.records.map(item => ({
|
||||
...item,
|
||||
color: DateDiff(item.updateTime2) // 假设 updateTime2 是时间字段
|
||||
}));
|
||||
list.value = [...list.value, ...formatObj(recordsWithColor, 'zdmc', 'updateTime2', 'zbbm',
|
||||
'sszd')]
|
||||
}
|
||||
loading = false
|
||||
@ -152,7 +156,11 @@
|
||||
flfgmc: formatSearchkey()
|
||||
}).then((res) => {
|
||||
if (res.success) {
|
||||
list.value = [...list.value, ...formatObj(res.result.records, 'flfgmc', 'updateTime2',
|
||||
const recordsWithColor = res.result.records.map(item => ({
|
||||
...item,
|
||||
color: DateDiff(item.updateTime2) // 假设 updateTime2 是时间字段
|
||||
}));
|
||||
list.value = [...list.value, ...formatObj(recordsWithColor, 'flfgmc', 'updateTime2',
|
||||
'fabubumen', 'mingcheng')]
|
||||
}
|
||||
loading = false
|
||||
@ -188,6 +196,21 @@
|
||||
list.value = []
|
||||
getList(1)
|
||||
}
|
||||
|
||||
const DateDiff = (time) => {
|
||||
var today = new Date();
|
||||
time = new Date(time);
|
||||
var days = parseInt((today - time) / 1000 / 60 / 60 / 24); //当前时间-更新时间
|
||||
if (days < 90) { //三个月内
|
||||
return '#ff0000'; // red
|
||||
} else if (days > 90 && days < 180) {
|
||||
return '#aa00ff'; // purple
|
||||
} else if (days > 180 && days < 365) {
|
||||
return '#00c861'; // green
|
||||
} else {
|
||||
return ''; // black
|
||||
}
|
||||
}
|
||||
|
||||
onReachBottom(() => {
|
||||
if (loading) return
|
||||
@ -198,9 +221,6 @@
|
||||
onLoad((options) => {
|
||||
type.value = options.title
|
||||
getList(1)
|
||||
//#ifdef H5 || MP-WEIXIN
|
||||
ifH5 = true;
|
||||
//#endif
|
||||
});
|
||||
</script>
|
||||
|
||||
@ -242,11 +262,6 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
|
||||
.meta-text {
|
||||
margin-left: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -76,10 +76,10 @@
|
||||
let insFlag = res.result.insFlag
|
||||
if (url) {
|
||||
if (isH5()) {
|
||||
fileUrl.value = 'https://36.112.48.190/preview/onlinePreview?url=' + encodeURIComponent(
|
||||
fileUrl.value = 'https://szcx.zyyt.sinopec.com/preview/onlinePreview?url=' + encodeURIComponent(
|
||||
Base64.encode(baseUrl + url))
|
||||
} else {
|
||||
fileUrl.value = 'https://36.112.48.190/preview/onlinePreview?url=' + encodeURIComponent(
|
||||
fileUrl.value = 'https://szcx.zyyt.sinopec.com/preview/onlinePreview?url=' + encodeURIComponent(
|
||||
new base64().encode(baseUrl + url))
|
||||
}
|
||||
} else if (/^-?\d+$/.test(quote) && !insFlag) {
|
||||
|
@ -1063,7 +1063,6 @@ export function disposeGridLayout(compName, chartOption, config, chartData) {
|
||||
chartOption.grid.bottom = 30;
|
||||
// #endif
|
||||
}
|
||||
console.log('---chartOption--',chartOption);
|
||||
return chartOption;
|
||||
}
|
||||
/**
|
||||
|
@ -9,7 +9,7 @@
|
||||
</route>
|
||||
<template>
|
||||
<PageLayout :navbarShow="false">
|
||||
<view class="nav">
|
||||
<view class="nav" >
|
||||
<view class="nav_box">
|
||||
<view class="weather_calender">
|
||||
<view class="position position-left">
|
||||
@ -103,6 +103,8 @@
|
||||
import {
|
||||
taskListApi
|
||||
} from '@/api/process'
|
||||
import { isH5 } from '@/utils/platform'
|
||||
|
||||
defineOptions({
|
||||
name: 'index',
|
||||
options: {
|
||||
@ -127,6 +129,7 @@
|
||||
const res = wx.getSystemInfoSync();
|
||||
const statusHeight = res.statusBarHeight; //状态栏高度
|
||||
const cusnavbarheight = (statusHeight + 30) + "px";
|
||||
|
||||
const goPage = (item) => {
|
||||
uni.navigateTo({
|
||||
url: `${item.path}?title=${item.text}`
|
||||
@ -138,7 +141,7 @@
|
||||
url: '/pages-process/approvalTabbar'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
const goToMyApplyProcess = () => {
|
||||
uni.navigateTo({
|
||||
url: '/pages-process/myApplyProcess'
|
||||
@ -287,6 +290,7 @@
|
||||
}
|
||||
|
||||
.scrollView {
|
||||
height: 110%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
|
@ -127,6 +127,17 @@
|
||||
uni.setStorageSync('logintime', Date.now()) //缓存登录时间
|
||||
router.pushTab({ path: HOME_PAGE })
|
||||
} else {
|
||||
res.message == '数据库中已存在该记录' ? res.message = '请使用统一身份账号登录' : res.message
|
||||
if (!res.success) {
|
||||
try {
|
||||
// 尝试解析 JSON(仅当 message 可能是 JSON 时)
|
||||
const response = JSON.parse(res.message);
|
||||
if (response.error_description === '用户名或密码错误') {
|
||||
res.message = '用户名或密码错误';
|
||||
}
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
toast.warning(res.message)
|
||||
}
|
||||
})
|
||||
|
@ -58,7 +58,6 @@ const init = () => {
|
||||
}
|
||||
const goPage = (item) => {
|
||||
let page = item.routeIndex
|
||||
console.log('-----------page------------', page)
|
||||
if (!page) {
|
||||
toast.info('该功能暂未实现')
|
||||
} else {
|
||||
|
@ -27,7 +27,7 @@
|
||||
onLoad((options) => {
|
||||
let Base64 = new base64();
|
||||
var url = baseUrl + JSON.parse(options.data);
|
||||
fileUrl = 'https://36.112.48.190/preview/onlinePreview?url=' + encodeURIComponent(Base64.encode(url))
|
||||
fileUrl = 'https://szcx.zyyt.sinopec.com/preview/onlinePreview?url=' + encodeURIComponent(Base64.encode(url))
|
||||
})
|
||||
</script>
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
onLoad((options) => {
|
||||
let url = JSON.parse(options.data)
|
||||
url = baseUrl + url;
|
||||
fileUrl = 'https://36.112.48.190/preview/onlinePreview?url=' + encodeURIComponent(Base64.encode(url))
|
||||
fileUrl = 'https://szcx.zyyt.sinopec.com/preview/onlinePreview?url=' + encodeURIComponent(Base64.encode(url))
|
||||
})
|
||||
</script>
|
||||
|
||||
|
@ -90,8 +90,8 @@
|
||||
|
||||
const jlData = ref([])
|
||||
|
||||
const sssjUrl = ref('wss://36.112.48.190/Gyk/websocket/')
|
||||
const jlByzc = ref('https://36.112.48.190/Gyk/sssj/GetJlByZc')
|
||||
const sssjUrl = ref('wss://szcx.zyyt.sinopec.com/Gyk/websocket/')
|
||||
const jlByzc = ref('https://szcx.zyyt.sinopec.com/Gyk/sssj/GetJlByZc')
|
||||
|
||||
//首先链接的地址要先拿在websocket在线调试去调试是否能连接通 不然下面的操作就不知道错误
|
||||
// 建立websocket
|
||||
|
@ -195,12 +195,7 @@
|
||||
<style lang="scss" scoped>
|
||||
//
|
||||
.avatar-area {
|
||||
/* #ifdef MP-WEIXIN */
|
||||
background-image: url('https://static.jeecg.com/upload/test/blue_1595818030310.png');
|
||||
/* #endif */
|
||||
/* #ifndef MP-WEIXIN */
|
||||
background-image: url('@/static/blue.png');
|
||||
/* #endif */
|
||||
background-image: url('@/static/backgroud.jpg');
|
||||
background-size: cover;
|
||||
height: 400upx;
|
||||
display: flex;
|
||||
|
BIN
src/static/backgroud.jpg
Normal file
BIN
src/static/backgroud.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 MiB |
Binary file not shown.
Before Width: | Height: | Size: 42 KiB |
@ -27909,7 +27909,6 @@ echartsProto._onframe = function () {
|
||||
// frame is executed immedietely after task reset.
|
||||
// this._coordSysMgr.update(ecModel, api);
|
||||
|
||||
// console.log('--- ec frame visual ---', remainTime);
|
||||
scheduler.performVisualTasks(ecModel);
|
||||
|
||||
renderSeries(this, this._model, api, 'remain');
|
||||
|
@ -323,7 +323,7 @@ export const getLocation = () => {
|
||||
success: function (position) {
|
||||
// 成功获取位置后请求地理编码
|
||||
uni.request({
|
||||
url: 'http://api.tianditu.gov.cn/geocoder',
|
||||
url: 'https://api.tianditu.gov.cn/geocoder',
|
||||
method: 'GET',
|
||||
data: {
|
||||
postStr: JSON.stringify({
|
||||
@ -394,7 +394,7 @@ function handleDefaultLocation() {
|
||||
function weatherRequest(params : { lat ?: number; lon ?: number; q ?: string }) {
|
||||
const store = useAppStore()
|
||||
uni.request({
|
||||
url: 'http://api.openweathermap.org/data/2.5/weather',
|
||||
url: 'https://api.openweathermap.org/data/2.5/weather',
|
||||
method: 'GET',
|
||||
data: {
|
||||
...params,
|
||||
@ -437,7 +437,7 @@ export const imgUrl = (url : string) => {
|
||||
* @returns {*}
|
||||
*/
|
||||
export function getFileAccessHttpUrl(avatar, subStr) {
|
||||
if (!subStr) subStr = 'http'
|
||||
if (!subStr) subStr = 'https'
|
||||
if (avatar && avatar.startsWith(subStr)) {
|
||||
return avatar;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user