unknown 4 år sedan
förälder
incheckning
55cfdb8688
3 ändrade filer med 73 tillägg och 11 borttagningar
  1. +10
    -0
      public/static/css/main.css
  2. +61
    -11
      src/views/components_web/newProj/newProj.vue
  3. +2
    -0
      src/views/manage_company/user/index.vue

+ 10
- 0
public/static/css/main.css Visa fil

@@ -3657,6 +3657,16 @@ button:focus {
bottom: 4px;
left: 10px;
}
.listUpdateBtn.editCoverBtn{
width: 40px;
height: 20px;
border-radius: 4px !important;
border: 0.5px solid rgba(227, 227, 227, 1);
line-height: 20px;
bottom: 10px;
font-size: 12px;
background-color: #fff;
}
.listUpdateBtn .webuploader-pick{
width: 80px;
height: 20px;


+ 61
- 11
src/views/components_web/newProj/newProj.vue Visa fil

@@ -107,11 +107,26 @@
<div class="clear"></div>
<div class="yiyun_col-6">
<div class="pageImgBox">
<img :src="coverSrc" alt="" />
<file-Uploader :mutiple="false" :label="uploadLabel" :auto="true" accept="image" ref="webUploadlist"
:btn-id="filePicker" :companyId="uploadCompId" :typeId="uploadTypeCover" @upload-success="coverUploadSuccess"
<img :src="coverSrc | resolveAvator" alt="" />
<!-- <file-Uploader
:mutiple="false"
:label="uploadLabel"
:auto="true"
accept="image"
ref="webUploadlist"
:btn-id="filePicker"
:companyId="uploadCompId"
:typeId="uploadTypeCover"
@upload-success="coverUploadSuccess"
:url="chunkUploadUrl" class="listUpdateBtn">
</file-Uploader>
</file-Uploader> -->
<file-uploader
:on-success="coverUploadSuccess"
class="listUpdateBtn editCoverBtn"
>
<span>编辑</span>
</file-uploader>
<span class="faceBtn" @click="setSystemCoverRandom">使用随机封面</span>
</div>
</div>
@@ -550,6 +565,9 @@
<script>
import * as templateService from '@/services/template';
import { wrapOssProtocol, getFileUrl } from "@/services/oss";
import FileUploader from "@/components/file-uploader";
export default {
props: {
isNewProj: {
@@ -557,6 +575,16 @@
default: false
}
},
filters:{
resolveCover(imgSrc){
if(this.imgList.includes(imgSrc)){
return imgSrc
}
const imgsrc=getFileUrl(imgSrc);
return imgsrc
}
},
data() {
return {
imgSrc: process.env.API_HOST + 'archives/cover?path=',
@@ -596,6 +624,18 @@
"listProjProp": [],
"userId": "",
}, // 新建项目
imgList:[
'static\img\faceImg\face01.png',
'static\img\faceImg\face02.png',
'static\img\faceImg\face03.png',
'static\img\faceImg\face04.png',
'static\img\faceImg\face05.png',
'static\img\faceImg\face06.png',
'static\img\faceImg\face07.png',
'static\img\faceImg\face08.png',
'static\img\faceImg\face09.png',
'static\img\faceImg\face10.png',
],
listTempProp: [],
listProjProp: [],
checked: false,
@@ -655,7 +695,7 @@
},
},
components: {},
components: {FileUploader,},
created: function() {
},
@@ -1302,13 +1342,23 @@
* 封面上传成功时
*/
coverUploadSuccess: function(file) {
this.uploadCoverTimes = this.uploadCoverTimes + 1;
this.newProjData.projectData.showImgUrl = file.filePath;
this.coverSrc = this.imgSrc + file.filePath;
if (this.uploadCoverTimes > 1) {
this.arryUnUseCover.push(file.filePath);
}
const filePath = wrapOssProtocol(file.ossUrl);
this.coverSrc = filePath;
this.newProjData.projectData.showImgUrl=filePath;
//this.coverSrc = filePath;
// this.uploadCoverTimes = this.uploadCoverTimes + 1;
// this.newProjData.projectData.showImgUrl = file.filePath;
// if (this.uploadCoverTimes > 1) {
// this.arryUnUseCover.push(file.filePath);
// }
// console.log(this.coverSrc)
},
/**
* 修改封面
*/
/**
* 设置负责人
*/


+ 2
- 0
src/views/manage_company/user/index.vue Visa fil

@@ -2307,8 +2307,10 @@ export default {
*/
headPicUploadSuccess: function (file) {
const filePath = wrapOssProtocol(file.ossUrl);
//console.log(filePath)
if (this.eidit == true) {
this.currentUser.headImgUrl = filePath;
}
if (this.currentPain == 3) {
this.newUser.headImgUrl = filePath;


Laddar…
Avbryt
Spara