Commit 12ed5973093325d7675a345fc44bd46266371e1d

Authored by 李宇
1 parent 33599f59

oss路径切换

Showing 27 changed files with 51 additions and 40 deletions
antis-ncc-admin/.env.development
@@ -2,7 +2,8 @@ @@ -2,7 +2,8 @@
2 2
3 VUE_CLI_BABEL_TRANSPILE_MODULES = true 3 VUE_CLI_BABEL_TRANSPILE_MODULES = true
4 # VUE_APP_BASE_API = 'https://erp.lvqianmeiye.com' 4 # VUE_APP_BASE_API = 'https://erp.lvqianmeiye.com'
5 -# VUE_APP_BASE_API = 'http://erp_test.lvqianmeiye.com'  
6 -VUE_APP_BASE_API = 'http://localhost:2011' 5 +VUE_APP_BASE_API = 'http://erp_test.lvqianmeiye.com'
7 # VUE_APP_BASE_API = 'http://localhost:2011' 6 # VUE_APP_BASE_API = 'http://localhost:2011'
  7 +# VUE_APP_BASE_API = 'http://localhost:2011'
  8 +VUE_APP_IMG_API = ''
8 VUE_APP_BASE_WSS = 'ws://192.168.110.45:2011/websocket' 9 VUE_APP_BASE_WSS = 'ws://192.168.110.45:2011/websocket'
antis-ncc-admin/.env.production
1 # 生产默认配置 1 # 生产默认配置
2 ENV = 'production' 2 ENV = 'production'
3 - 3 +VUE_APP_IMG_API = ''
4 VUE_APP_BASE_API = 'https://erp.lvqianmeiye.com' 4 VUE_APP_BASE_API = 'https://erp.lvqianmeiye.com'
5 VUE_APP_BASE_WSS = 'ws://lvqian.antissoft.com/api/message/websocket' 5 VUE_APP_BASE_WSS = 'ws://lvqian.antissoft.com/api/message/websocket'
antis-ncc-admin/src/views/lqHytkHytk/detail.vue
@@ -255,7 +255,7 @@ export default { @@ -255,7 +255,7 @@ export default {
255 props: [], 255 props: [],
256 data() { 256 data() {
257 return { 257 return {
258 - baseUrl: process.env.VUE_APP_BASE_API, 258 + baseUrl: process.env.VUE_APP_IMG_API,
259 loading: false, 259 loading: false,
260 visible: false, 260 visible: false,
261 dataForm: { 261 dataForm: {
antis-ncc-admin/src/views/lqHytkHytk/index.vue
@@ -176,6 +176,14 @@ @@ -176,6 +176,14 @@
176 </div> 176 </div>
177 </template> 177 </template>
178 </el-table-column> 178 </el-table-column>
  179 + <!-- 备注 -->
  180 + <el-table-column label="备注" show-overflow-tooltip>
  181 + <template slot-scope="scope">
  182 + <div class="remark-info">
  183 + <span class="text-nowrap">{{ scope.row.bz || '无' }}</span>
  184 + </div>
  185 + </template>
  186 + </el-table-column>
179 <el-table-column label="操作人" width="150" align="center" > 187 <el-table-column label="操作人" width="150" align="center" >
180 <template slot-scope="scope"> 188 <template slot-scope="scope">
181 <div class="referrer-info"> 189 <div class="referrer-info">
antis-ncc-admin/src/views/lqKdKdjlb/detail.vue
@@ -351,7 +351,7 @@ export default { @@ -351,7 +351,7 @@ export default {
351 props: [], 351 props: [],
352 data() { 352 data() {
353 return { 353 return {
354 - baseUrl: process.env.VUE_APP_BASE_API, 354 + baseUrl: process.env.VUE_APP_IMG_API,
355 loading: false, 355 loading: false,
356 visible: false, 356 visible: false,
357 dataForm: { 357 dataForm: {
antis-ncc-admin/src/views/lqReimbursementApplication copy/Form.vue
@@ -209,7 +209,7 @@ @@ -209,7 +209,7 @@
209 props: [], 209 props: [],
210 data() { 210 data() {
211 return { 211 return {
212 - baseUrl: process.env.VUE_APP_BASE_API, 212 + baseUrl: process.env.VUE_APP_IMG_API,
213 loading: false, 213 loading: false,
214 visible: false, 214 visible: false,
215 isDetail: false, 215 isDetail: false,
antis-ncc-admin/src/views/lqReimbursementApplication copy/detail.vue
@@ -164,7 +164,7 @@ export default { @@ -164,7 +164,7 @@ export default {
164 name: 'ReimbursementApplicationDetail', 164 name: 'ReimbursementApplicationDetail',
165 data() { 165 data() {
166 return { 166 return {
167 - baseUrl: process.env.VUE_APP_BASE_API, 167 + baseUrl: process.env.VUE_APP_IMG_API,
168 visible: false, 168 visible: false,
169 loading: false, 169 loading: false,
170 dataForm: {}, 170 dataForm: {},
antis-ncc-admin/src/views/lqReimbursementApplication/detail-dialog.vue
@@ -294,7 +294,7 @@ export default { @@ -294,7 +294,7 @@ export default {
294 name: 'DetailDialog', 294 name: 'DetailDialog',
295 data() { 295 data() {
296 return { 296 return {
297 - baseUrl: process.env.VUE_APP_BASE_API, 297 + baseUrl: process.env.VUE_APP_IMG_API,
298 visible: false, 298 visible: false,
299 loading: false, 299 loading: false,
300 approving: false, 300 approving: false,
antis-ncc-admin/src/views/lqXhHyhk/ServiceLogDialog.vue
@@ -150,7 +150,7 @@ export default { @@ -150,7 +150,7 @@ export default {
150 }, 150 },
151 data() { 151 data() {
152 return { 152 return {
153 - baseUrl: process.env.VUE_APP_BASE_API, 153 + baseUrl: process.env.VUE_APP_IMG_API,
154 visible: false, 154 visible: false,
155 loading: false, 155 loading: false,
156 feedbackList: [], 156 feedbackList: [],
antis-ncc-admin/src/views/lqXhHyhk/ServiceLogFormDialog.vue
@@ -92,7 +92,7 @@ export default { @@ -92,7 +92,7 @@ export default {
92 name: 'ServiceLogFormDialog', 92 name: 'ServiceLogFormDialog',
93 data() { 93 data() {
94 return { 94 return {
95 - baseUrl: process.env.VUE_APP_BASE_API, 95 + baseUrl: process.env.VUE_APP_IMG_API,
96 visible: false, 96 visible: false,
97 isEditMode: false, 97 isEditMode: false,
98 submitting: false, 98 submitting: false,
antis-ncc-admin/src/views/lqXhHyhk/detail.vue
@@ -267,7 +267,7 @@ export default { @@ -267,7 +267,7 @@ export default {
267 props: [], 267 props: [],
268 data() { 268 data() {
269 return { 269 return {
270 - baseUrl: process.env.VUE_APP_BASE_API, 270 + baseUrl: process.env.VUE_APP_IMG_API,
271 loading: false, 271 loading: false,
272 visible: false, 272 visible: false,
273 dataForm: { 273 dataForm: {
绿纤uni-app/common/config.js
@@ -45,7 +45,10 @@ function switchEnvironment(env) { @@ -45,7 +45,10 @@ function switchEnvironment(env) {
45 return false; 45 return false;
46 } 46 }
47 } 47 }
48 - 48 +// 获取图片基础地址
  49 +function getImgBaseUrl() {
  50 + return '';
  51 +}
49 // 导出配置 52 // 导出配置
50 export default { 53 export default {
51 ENV_CONFIG, 54 ENV_CONFIG,
@@ -53,7 +56,8 @@ export default { @@ -53,7 +56,8 @@ export default {
53 getCurrentConfig, 56 getCurrentConfig,
54 getApiBaseUrl, 57 getApiBaseUrl,
55 getEnvName, 58 getEnvName,
56 - switchEnvironment 59 + switchEnvironment,
  60 + getImgBaseUrl
57 }; 61 };
58 62
59 // 兼容旧版本 63 // 兼容旧版本
绿纤uni-app/pages/addServiceLog/addServiceLog.vue
@@ -111,7 +111,7 @@ @@ -111,7 +111,7 @@
111 logId: '', 111 logId: '',
112 isEditMode: false, 112 isEditMode: false,
113 isSubmitting: false, 113 isSubmitting: false,
114 - baseUrl: '', 114 + baseUrl: config.getImgBaseUrl(),
115 formData: { 115 formData: {
116 remark: '', 116 remark: '',
117 kjbRemark: '' 117 kjbRemark: ''
@@ -127,9 +127,6 @@ @@ -127,9 +127,6 @@
127 this.logId = options.logId || '' 127 this.logId = options.logId || ''
128 this.isEditMode = options.mode === 'edit' 128 this.isEditMode = options.mode === 'edit'
129 129
130 - // 初始化基础URL  
131 - this.baseUrl = config.getApiBaseUrl()  
132 -  
133 // 如果是编辑模式,加载现有数据 130 // 如果是编辑模式,加载现有数据
134 if (this.isEditMode && this.logId) { 131 if (this.isEditMode && this.logId) {
135 this.loadServiceLogDetail() 132 this.loadServiceLogDetail()
绿纤uni-app/pages/consume-detail/consume-detail.vue
@@ -243,7 +243,7 @@ @@ -243,7 +243,7 @@
243 data() { 243 data() {
244 return { 244 return {
245 newuserInfo: uni.getStorageSync('newuserInfo'), 245 newuserInfo: uni.getStorageSync('newuserInfo'),
246 - baseUrl: config.getApiBaseUrl(), 246 + baseUrl: config.getImgBaseUrl(),
247 loading: false, 247 loading: false,
248 error: '', 248 error: '',
249 consumeId: null, 249 consumeId: null,
绿纤uni-app/pages/lx-detail/lx-detail.vue
@@ -184,7 +184,7 @@ @@ -184,7 +184,7 @@
184 <view class="file-title">收据文件</view> 184 <view class="file-title">收据文件</view>
185 <view class="file-list"> 185 <view class="file-list">
186 <view @click="previewSignature(lxData.scwj,index)" v-for="(file, index) in lxData.scwj" :key="index" class="file-item"> 186 <view @click="previewSignature(lxData.scwj,index)" v-for="(file, index) in lxData.scwj" :key="index" class="file-item">
187 - <text class="file-icon">??️</text> 187 + <text class="file-icon">🖼️</text>
188 <text class="file-name">{{ file.name || '未知文件' }}</text> 188 <text class="file-name">{{ file.name || '未知文件' }}</text>
189 </view> 189 </view>
190 </view> 190 </view>
@@ -193,7 +193,7 @@ @@ -193,7 +193,7 @@
193 <view class="file-title">其他文件</view> 193 <view class="file-title">其他文件</view>
194 <view class="file-list"> 194 <view class="file-list">
195 <view @click="previewSignature(lxData.f_FileUrl,index)" v-for="(file, index) in lxData.f_FileUrl" :key="index" class="file-item"> 195 <view @click="previewSignature(lxData.f_FileUrl,index)" v-for="(file, index) in lxData.f_FileUrl" :key="index" class="file-item">
196 - <text class="file-icon">??️</text> 196 + <text class="file-icon">🖼️</text>
197 <text class="file-name">{{ file.name || '未知文件' }}</text> 197 <text class="file-name">{{ file.name || '未知文件' }}</text>
198 </view> 198 </view>
199 </view> 199 </view>
@@ -297,7 +297,7 @@ @@ -297,7 +297,7 @@
297 data() { 297 data() {
298 return { 298 return {
299 newuserInfo: uni.getStorageSync('newuserInfo'), 299 newuserInfo: uni.getStorageSync('newuserInfo'),
300 - baseUrl:config.getApiBaseUrl(), 300 + baseUrl:config.getImgBaseUrl(),
301 loading: false, 301 loading: false,
302 error: '', 302 error: '',
303 lxId: null, 303 lxId: null,
@@ -916,8 +916,12 @@ @@ -916,8 +916,12 @@
916 } 916 }
917 917
918 .file-name { 918 .file-name {
  919 + // width: 300rpx;
919 font-size: 26rpx; 920 font-size: 26rpx;
920 color: #2e7d32; 921 color: #2e7d32;
  922 + overflow: hidden;
  923 + text-overflow: ellipsis;
  924 + white-space: nowrap;
921 } 925 }
922 926
923 /* 操作按钮样式 */ 927 /* 操作按钮样式 */
绿纤uni-app/pages/lx/lx.vue
@@ -452,7 +452,7 @@ @@ -452,7 +452,7 @@
452 return { 452 return {
453 iskh:true, 453 iskh:true,
454 issubmitOrder:true, 454 issubmitOrder:true,
455 - baseUrl: config.getApiBaseUrl(), 455 + baseUrl: config.getImgBaseUrl(),
456 // 表单数据 456 // 表单数据
457 formData: { 457 formData: {
458 kdhy: '', 458 kdhy: '',
绿纤uni-app/pages/member-consume/member-consume - 副本.vue
@@ -269,7 +269,7 @@ @@ -269,7 +269,7 @@
269 data() { 269 data() {
270 return { 270 return {
271 issubmitOrder: true, 271 issubmitOrder: true,
272 - baseUrl: config.getApiBaseUrl(), 272 + baseUrl: config.getImgBaseUrl(),
273 // 表单数据 273 // 表单数据
274 formData: { 274 formData: {
275 hy: '', 275 hy: '',
绿纤uni-app/pages/member-consume/member-consume copy.vue
@@ -343,7 +343,7 @@ @@ -343,7 +343,7 @@
343 data() { 343 data() {
344 return { 344 return {
345 issubmitOrder: true, 345 issubmitOrder: true,
346 - baseUrl: config.getApiBaseUrl(), 346 + baseUrl: config.getImgBaseUrl(),
347 // 表单数据 347 // 表单数据
348 formData: { 348 formData: {
349 hy: '', 349 hy: '',
绿纤uni-app/pages/member-consume/member-consume.vue
@@ -348,7 +348,7 @@ @@ -348,7 +348,7 @@
348 iskh:true, 348 iskh:true,
349 appointmentId: null, 349 appointmentId: null,
350 issubmitOrder: true, 350 issubmitOrder: true,
351 - baseUrl: config.getApiBaseUrl(), 351 + baseUrl: config.getImgBaseUrl(),
352 // 表单数据 352 // 表单数据
353 formData: { 353 formData: {
354 hy: '', 354 hy: '',
绿纤uni-app/pages/purchase-detail/purchase-detail.vue
@@ -196,7 +196,7 @@ @@ -196,7 +196,7 @@
196 // 预览文件 196 // 预览文件
197 previewFile(file) { 197 previewFile(file) {
198 if (file.url) { 198 if (file.url) {
199 - const baseUrl = config.getApiBaseUrl() 199 + const baseUrl = config.getImgBaseUrl()
200 const fullUrl = file.url.startsWith('http') ? file.url : `${baseUrl}${file.url}` 200 const fullUrl = file.url.startsWith('http') ? file.url : `${baseUrl}${file.url}`
201 201
202 // 如果是图片,使用预览图片功能 202 // 如果是图片,使用预览图片功能
绿纤uni-app/pages/refund-detail/refund-detail.vue
@@ -230,7 +230,7 @@ @@ -230,7 +230,7 @@
230 data() { 230 data() {
231 return { 231 return {
232 newuserInfo: uni.getStorageSync('newuserInfo'), 232 newuserInfo: uni.getStorageSync('newuserInfo'),
233 - baseUrl: config.getApiBaseUrl(), 233 + baseUrl: config.getImgBaseUrl(),
234 loading: false, 234 loading: false,
235 error: '', 235 error: '',
236 refundId: null, 236 refundId: null,
@@ -793,6 +793,9 @@ @@ -793,6 +793,9 @@
793 color: #2e7d32; 793 color: #2e7d32;
794 font-weight: 500; 794 font-weight: 500;
795 margin-bottom: 4rpx; 795 margin-bottom: 4rpx;
  796 + overflow: hidden;
  797 + text-overflow: ellipsis;
  798 + white-space: nowrap;
796 } 799 }
797 800
798 .file-size { 801 .file-size {
绿纤uni-app/pages/reimbursement-audit-detail/reimbursement-audit-detail.vue
@@ -141,7 +141,7 @@ @@ -141,7 +141,7 @@
141 purchaseRecords: [], 141 purchaseRecords: [],
142 reimbursementId: null, 142 reimbursementId: null,
143 storeOptions: [], 143 storeOptions: [],
144 - baseUrl: config.getApiBaseUrl(), 144 + baseUrl: config.getImgBaseUrl(),
145 approving: false, 145 approving: false,
146 rejecting: false 146 rejecting: false
147 } 147 }
绿纤uni-app/pages/reimbursement-detail/reimbursement-detail - 副本.vue
@@ -123,7 +123,7 @@ @@ -123,7 +123,7 @@
123 purchaseRecords: [], 123 purchaseRecords: [],
124 reimbursementId: null, 124 reimbursementId: null,
125 storeOptions: [], 125 storeOptions: [],
126 - baseUrl: config.getApiBaseUrl() 126 + baseUrl: config.getImgBaseUrl()
127 } 127 }
128 }, 128 },
129 129
绿纤uni-app/pages/reimbursement-detail/reimbursement-detail.vue
@@ -261,7 +261,7 @@ @@ -261,7 +261,7 @@
261 purchaseRecords: [], 261 purchaseRecords: [],
262 reimbursementId: null, 262 reimbursementId: null,
263 storeOptions: [], 263 storeOptions: [],
264 - baseUrl: config.getApiBaseUrl(), 264 + baseUrl: config.getImgBaseUrl(),
265 userInfo: null, // 当前登录用户信息 265 userInfo: null, // 当前登录用户信息
266 // 审批操作表单 266 // 审批操作表单
267 approvalForm: { 267 approvalForm: {
绿纤uni-app/pages/serviceDiary/serviceDiary.vue
@@ -86,7 +86,7 @@ @@ -86,7 +86,7 @@
86 consumeId: '', 86 consumeId: '',
87 memberName: '', 87 memberName: '',
88 logList: [], 88 logList: [],
89 - baseUrl: '' 89 + baseUrl: config.getImgBaseUrl()
90 } 90 }
91 }, 91 },
92 onLoad(options) { 92 onLoad(options) {
@@ -94,9 +94,6 @@ @@ -94,9 +94,6 @@
94 this.consumeId = options.consumeId || '' 94 this.consumeId = options.consumeId || ''
95 this.memberName = decodeURIComponent(options.memberName || '未知会员') 95 this.memberName = decodeURIComponent(options.memberName || '未知会员')
96 96
97 - // 初始化基础URL  
98 - this.baseUrl = config.getApiBaseUrl()  
99 -  
100 // 加载服务日志数据 97 // 加载服务日志数据
101 // this.loadServiceLogs() 98 // this.loadServiceLogs()
102 }, 99 },
绿纤uni-app/pages/serviceDiary/serviceDiaryuser.vue
@@ -98,7 +98,7 @@ @@ -98,7 +98,7 @@
98 userid: '', 98 userid: '',
99 memberName: '', 99 memberName: '',
100 logList: [], 100 logList: [],
101 - baseUrl: '', 101 + baseUrl:config.getImgBaseUrl(),
102 // 分页相关 102 // 分页相关
103 currentPage: 1, 103 currentPage: 1,
104 pageSize: 10, 104 pageSize: 10,
@@ -112,10 +112,7 @@ @@ -112,10 +112,7 @@
112 // 获取传递的参数 112 // 获取传递的参数
113 this.userid = options.userid || '' 113 this.userid = options.userid || ''
114 this.memberName = decodeURIComponent(options.memberName || '未知会员') 114 this.memberName = decodeURIComponent(options.memberName || '未知会员')
115 -  
116 - // 初始化基础URL  
117 - this.baseUrl = config.getApiBaseUrl()  
118 - 115 +
119 // 加载服务日志数据 116 // 加载服务日志数据
120 // this.loadServiceLogs() 117 // this.loadServiceLogs()
121 }, 118 },
绿纤uni-app/pages/transferCard/transferCard.vue
@@ -133,7 +133,7 @@ @@ -133,7 +133,7 @@
133 data() { 133 data() {
134 return { 134 return {
135 isSubmitting: true, 135 isSubmitting: true,
136 - baseUrl: config.getApiBaseUrl(), 136 + baseUrl: config.getImgBaseUrl(),
137 137
138 // 表单数据 138 // 表单数据
139 formData: { 139 formData: {