报工页面的项目选择器

This commit is contained in:
砂糖
2025-09-05 15:24:42 +08:00
parent 3f01c5eb48
commit be2c913979
10 changed files with 71 additions and 40 deletions

View File

@@ -3,7 +3,7 @@
// const API_URL = `http://${BASE_HOST}:10002` // const API_URL = `http://${BASE_HOST}:10002`
// const WS_URL = `ws://${BASE_HOST}:10001` // const WS_URL = `ws://${BASE_HOST}:10001`
const BASE_DOMAIN = '47.117.71.33:15219' const BASE_DOMAIN = '49.232.154.205:10006'
const CHAT_URL = `http://${BASE_DOMAIN}/chat` const CHAT_URL = `http://${BASE_DOMAIN}/chat`
const API_URL = `http://${BASE_DOMAIN}/api` const API_URL = `http://${BASE_DOMAIN}/api`
const WS_URL = `ws://${BASE_DOMAIN}/msg_gateway` const WS_URL = `ws://${BASE_DOMAIN}/msg_gateway`

View File

@@ -66,10 +66,18 @@ export default {
}, },
methods: { methods: {
getFixedSourceUrl(url) { getFixedSourceUrl(url) {
// 如果 url 以 http://47.117.71.33/api/object/ 开头,则替换为带端口的 console.log('替换头像', url)
if (typeof url === 'string' && url.startsWith('http://47.117.71.33/api/object/')) { // 如果 url 以 http://49.232.154.205/api/object/ 开头,则替换为带端口的
return url.replace('http://47.117.71.33/api/object/', 'http://47.117.71.33:15219/api/object/'); if (typeof url === 'string' && url.startsWith('http://49.232.154.205/api/object/')) {
console.log('替换1')
return url.replace('http://49.232.154.205/api/object/', 'http://49.232.154.205:10006/api/object/');
} }
else if (typeof url === 'string' && url.startsWith('http://47.117.71.33/api/object/')) {
console.log("替换2")
return url.replace('http://47.117.71.33/api/object/', 'http://49.232.154.205:10006/api/object/');
}
return url; return url;
}, },
errorHandle() { errorHandle() {

View File

@@ -120,7 +120,22 @@
} }
} }
}, },
"nativePlugins" : {}, "nativePlugins" : {
"Tuoyun-OpenIMSDK" : {
"__plugin_info__" : {
"name" : "OpenIM SDK",
"description" : "OpenIM由IM技术专家打造的基于 Go 实现的即时通讯IM项目从服务端到客户端SDK开源即时通讯IM整体解决方案可以轻松替代第三方IM云服务打造具备聊天、社交功能的app。",
"platforms" : "Android,iOS",
"url" : "https://ext.dcloud.net.cn/plugin?id=6577",
"android_package_name" : "com.fad.im",
"ios_bundle_id" : "com.fad.im",
"isCloud" : true,
"bought" : 1,
"pid" : "6577",
"parameters" : {}
}
}
},
"uniStatistics" : { "uniStatistics" : {
"enable" : false "enable" : false
} }

View File

@@ -66,10 +66,13 @@ export default {
}, },
methods: { methods: {
getFixedSourceUrl: function(url) { getFixedSourceUrl: function(url) {
// 如果 url 以 http://47.117.71.33/api/object/ 开头,则替换为带端口的 // 如果 url 以 http://49.232.154.205/api/object/ 开头,则替换为带端口的
if (typeof url === 'string' && url.startsWith('http://47.117.71.33/api/object/')) { if (typeof url === 'string' && url.startsWith('http://49.232.154.205/api/object/')) {
return url.replace('http://47.117.71.33/api/object/', 'http://47.117.71.33:15219/api/object/'); return url.replace('http://49.232.154.205/api/object/', 'http://49.232.154.205:10006/api/object/');
} }
else if (typeof url === 'string' && url.startsWith('http://47.117.71.33/api/object/')) {
return url.replace('http://47.117.71.33/api/object/', 'http://49.232.154.205:10006/api/object/');
}
return url; return url;
}, },
downloadFile: function() { downloadFile: function() {

View File

@@ -1,6 +1,6 @@
<template> <template>
<view class="media_message_container" @click="clickMediaItem"> <view class="media_message_container" @click="clickMediaItem">
<u--image <u-image
@load="onLoaded" @load="onLoaded"
:showLoading="true" :showLoading="true"
width="120" width="120"
@@ -21,7 +21,7 @@
</view> </view>
</view> </view>
</template> </template>
</u--image> </u-image>
</view> </view>
</template> </template>
@@ -39,7 +39,7 @@ export default {
computed: { computed: {
getImgUrl() { getImgUrl() {
if (!this.message || !this.message.pictureElem) { if (!this.message || !this.message.pictureElem) {
return ''; return '';
} }
@@ -61,8 +61,12 @@ export default {
}, },
methods: { methods: {
getFixedSourceUrl(url) { getFixedSourceUrl(url) {
if (typeof url === 'string' && url.startsWith('http://47.117.71.33/api/object/')) { // 如果 url 以 http://49.232.154.205/api/object/ 开头,则替换为带端口的
return url.replace('http://47.117.71.33/api/object/', 'http://47.117.71.33:15219/api/object/'); if (typeof url === 'string' && url.startsWith('http://49.232.154.205/api/object/')) {
return url.replace('http://49.232.154.205/api/object/', 'http://49.232.154.205:10006/api/object/');
}
else if (typeof url === 'string' && url.startsWith('http://47.117.71.33/api/object/')) {
return url.replace('http://47.117.71.33/api/object/', 'http://49.232.154.205:10006/api/object/');
} }
return url; return url;
}, },

View File

@@ -37,10 +37,14 @@ export default {
}, },
methods: { methods: {
getFixedSourceUrl(url) { getFixedSourceUrl(url) {
// 如果 url 以 http://47.117.71.33/api/object/ 开头,则替换为带端口的 // 如果 url 以 http://49.232.154.205/api/object/ 开头,则替换为带端口的
if (typeof url === 'string' && url.startsWith('http://47.117.71.33/api/object/')) { // 或者 url 以 http://47.117.71.33/api/object/ 开头也替换为http://49.232.154.205:10006/api/object/
return url.replace('http://47.117.71.33/api/object/', 'http://47.117.71.33:15219/api/object/'); if (typeof url === 'string' && url.startsWith('http://49.232.154.205/api/object/')) {
return url.replace('http://49.232.154.205/api/object/', 'http://49.232.154.205:10006/api/object/');
} }
else if (typeof url === 'string' && url.startsWith('http://47.117.71.33/api/object/')) {
return url.replace('http://47.117.71.33/api/object/', 'http://49.232.154.205:10006/api/object/');
}
return url; return url;
}, },
playVoice() { playVoice() {

View File

@@ -63,11 +63,11 @@ export default {
title: "应用更新", title: "应用更新",
icon: require("static/images/profile_menu_about.png"), icon: require("static/images/profile_menu_about.png"),
}, },
{ // {
idx: 5, // idx: 5,
title: '测试推送', // title: '测试推送',
icon: require("static/images/profile_menu_about.png") // icon: require("static/images/profile_menu_about.png")
}, // },
{ {
idx: 6, idx: 6,
title: "清除缓存", title: "清除缓存",

View File

@@ -92,11 +92,9 @@
<view class="form-item"> <view class="form-item">
<view class="form-label">请选择项目</view> <view class="form-label">请选择项目</view>
<uni-data-select <oa-project-select
v-model="form.projectId" v-model="form.projectId"
:localdata="projectList"
placeholder="请选择项目" placeholder="请选择项目"
@change="handleProjectChange"
></uni-data-select> ></uni-data-select>
</view> </view>
@@ -472,17 +470,6 @@ export default {
this.getList(); this.getList();
}, },
// 项目选择变化处理
handleProjectChange(value) {
console.log('项目选择变化:', value);
this.form.projectId = value;
// 获取选中的项目信息
const selectedProject = this.projectList.find(p => p.value === value);
if (selectedProject) {
console.log('选中的项目:', selectedProject);
}
}
} }
} }
</script> </script>

View File

@@ -72,7 +72,7 @@ function checkUpdate(forceCheck = false) {
const localVersion = plus.runtime.version; const localVersion = plus.runtime.version;
const localWgtVersion = uni.getStorageSync('wgtVersion') || localVersion; const localWgtVersion = uni.getStorageSync('wgtVersion') || localVersion;
uni.request({ uni.request({
url: 'http://47.117.71.33:11295/fadapp-update/version.json?t=' + Date.now(), url: 'http://49.232.154.205:10900/fadapp-update/version.json?t=' + Date.now(),
success: (res) => { success: (res) => {
const remoteVersion = res.data.version; const remoteVersion = res.data.version;
const wgtUrl = res.data.wgtUrl; const wgtUrl = res.data.wgtUrl;
@@ -89,7 +89,7 @@ function checkUpdate(forceCheck = false) {
cancelText: '取消', cancelText: '取消',
success: (res) => { success: (res) => {
if (res.confirm) { if (res.confirm) {
const downloadUrl = `http://47.117.71.33:11295/fadapp-update/fad${remoteVersion}.apk`; const downloadUrl = `http://49.232.154.205:10900/fadapp-update/fad${remoteVersion}.apk`;
// #ifdef APP-PLUS // #ifdef APP-PLUS
plus.runtime.openURL(downloadUrl); plus.runtime.openURL(downloadUrl);
// #endif // #endif

View File

@@ -18,3 +18,13 @@
## 4.6.1 ## 4.6.1
+ 优化部分展示 + 优化部分展示
+ 修改权限失效的bug + 修改权限失效的bug
## 4.7.0
+ 新增采购进度应用
+ 新增入库记录应用
+ 新增出库记录应用
+ 线上营销增加收信次数,发薪次数的展示
## 4.7.1
+ 修改路径替换规则
+ 修改更新地址