소스 검색

修复附件上传url+类型+color

ming 2 달 전
부모
커밋
b292cb483d

+ 1 - 1
src/pages/business/common/projectMange/record/details.vue

@@ -70,7 +70,7 @@
         <view class="content-area-center mb10">
           <view class="content-area-center-top">附件 </view>
           <view v-for="(file, index) in JSON.parse(item.reportFile)" :key="index" style="font-size:12px">
-            <uni-link :href="file.url" text="file.url" style="color:#333">{{file.name}}</uni-link>
+            <uni-link :href="file.url" text="file.url" style="color:rgba(0,0,0,.7)">{{file.name}}</uni-link>
           </view>
       
         </view>

+ 3 - 2
src/pages/business/common/projectMange/write/components/template1.vue

@@ -74,7 +74,7 @@
       <uni-file-picker limit="100" 
 					@select='selectUpload' 
 					:auto-upload='false' 
-					file-extname='png,git,pdf,docx,doc,xls,xlsx,ppt,pptx,txt,zip,rar,7z,gz,bz2,tar,tgz,tbz,txz,apk,ipa,mp3,mp4,avi,flv,rmvb,wmv,mkv,mov,wma,aac,m4a,amr,ogg,flac,wav,amr,ape,m4r,aac,ac3,dts,m4b,m4p,m4v,mp2,mpe,mpeg,mpg,mpv,ogv,rm,swf,vob,wmv,3gp,3g2,asf,asx,avi,flv,m2ts,m4v,mkv,mov,mp4,mpg,mpeg,rm,swf,vob,wmv,3gp,3g2,asf,asx,avi,' 
+					file-extname='git,pdf,docx,doc,xls,xlsx,ppt,pptx,txt,zip,rar,7z,gz,bz2,tar,tgz,tbz,txz,apk,ipa,mp3,mp4,avi,flv,rmvb,wmv,mkv,mov,wma,aac,m4a,amr,ogg,flac,wav,amr,ape,m4r,aac,ac3,dts,m4b,m4p,m4v,mp2,mpe,mpeg,mpg,mpv,ogv,rm,swf,vob,wmv,3gp,3g2,asf,asx,avi,flv,m2ts,m4v,mkv,mov,mp4,mpg,mpeg,rm,swf,vob,wmv,3gp,3g2,asf,asx,avi,' 
 					file-mediatype="all" 
 		  >
         <u-button class="mt20" type="primary" style="width: 100px; height: 25px"  icon="plus" size="mini"  shape="circle"> 点击上传 </u-button>
@@ -218,6 +218,7 @@ import avatarList from "../../components/avatarList.vue";
 import { systemStores } from "@/store/modules/index";
 /*----------------------------------公共方法引入-----------------------------------*/
 import { storageSystem } from "@/utils/storage"; // 公共方法引用
+import config from "@/config";
 /*----------------------------------公共变量-----------------------------------*/
 const { proxy } = getCurrentInstance();
 const systemStore = systemStores();
@@ -383,7 +384,7 @@ function selectUpload(e) {
 	console.log('上传:', e)
     e.tempFilePaths.forEach((item,index) => {
       uni.uploadFile({
-        url: 'http://172.16.120.165:801/dev-api/service-file/upload', 
+        url: config.baseUrl+'/service-file/upload', 
         filePath: item,
         name: 'file',
         success: (uploadFileRes) => {