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:
lagos 2025-06-04 11:21:52 +08:00
commit 48fca7f96f
21 changed files with 67 additions and 51 deletions

View File

@ -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
View File

@ -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'

View File

@ -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特有相关 */

View File

@ -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,

View File

@ -86,7 +86,6 @@
let loading = false
const queryLeave = (e) => {
console.log('----', range.value)
let param = {
sysOrgCode: orgCode.value,
begin: range.value[0],

View File

@ -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>

View File

@ -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>

View File

@ -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
@ -189,6 +197,21 @@
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
pageNo++
@ -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;
}
}
}

View File

@ -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) {

View File

@ -1063,7 +1063,6 @@ export function disposeGridLayout(compName, chartOption, config, chartData) {
chartOption.grid.bottom = 30;
// #endif
}
console.log('---chartOption--',chartOption);
return chartOption;
}
/**

View File

@ -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}`
@ -287,6 +290,7 @@
}
.scrollView {
height: 110%;
display: flex;
flex-direction: column;
min-height: 0;

View File

@ -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)
}
})

View File

@ -58,7 +58,6 @@ const init = () => {
}
const goPage = (item) => {
let page = item.routeIndex
console.log('-----------page------------', page)
if (!page) {
toast.info('该功能暂未实现')
} else {

View File

@ -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>

View File

@ -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>

View File

@ -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

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

View File

@ -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');

View File

@ -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 {