瀏覽代碼

eslint fix

master
wa1k3r 4 年之前
父節點
當前提交
03ee4d9a11
共有 17 個檔案被更改,包括 1884 行新增890 行删除
  1. +2
    -2
      public/index.html
  2. +1
    -2
      src/App.vue
  3. +11
    -0
      src/services/back.js
  4. +1
    -1
      src/views/components_web/distWork/distWork.vue
  5. +1
    -0
      src/views/components_web/head/email.vue
  6. +1
    -1
      src/views/components_web/newProj/newProj.vue
  7. +9
    -9
      src/views/components_web/projSetting/projSetting.vue
  8. +1
    -1
      src/views/components_web/user/selectUser.vue
  9. +78
    -33
      src/views/components_web/workLine/workLine.vue
  10. +8
    -7
      src/views/login/index.vue
  11. +4
    -1
      src/views/main_web/cloud.vue
  12. +2
    -0
      src/views/main_web/index/index.vue
  13. +24
    -23
      src/views/main_web/projnotice.vue
  14. +443
    -340
      src/views/main_web/recycle.vue
  15. +1295
    -467
      src/views/main_web/workspace.vue
  16. +2
    -2
      src/views/manage_company/project.vue
  17. +1
    -1
      src/views/manage_company/setting.vue

+ 2
- 2
public/index.html 查看文件

@@ -6,11 +6,11 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>LOCKING | 云建筑</title>
<link rel="stylesheet" type="text/css" href="/static/css/element_chanage.css" >
<!-- <link rel="stylesheet" type="text/css" href="/static/css/element_chanage.css" >
<link rel="stylesheet" type="text/css" href="/static/css/iconfont.css" >
<link rel="stylesheet" type="text/css" href="/static/css/iconfont2.css" >
<link rel="stylesheet" type="text/css" href="/static/css/iconfont3.css" >
<link rel="stylesheet" type="text/css" href="/static/css/main.css" >
<link rel="stylesheet" type="text/css" href="/static/css/main.css" > -->
<script src="/static/js/velocity.min.1.5.0.js"></script>
<!-- <script src=".static/js/jquery-1.11.2.min.js"></script> -->
<script src="/static/js/jquery-2.1.1.min.js"></script>


+ 1
- 2
src/App.vue 查看文件

@@ -140,5 +140,4 @@ export default {
},
},
};
</script>
<style></style>
</script>

+ 11
- 0
src/services/back.js 查看文件

@@ -0,0 +1,11 @@
/**
* 模拟客户端back server
* 目前还不知道back的API及具体实现,暂时先抑制代码报错
*/

const back = {

}


export default back;

+ 1
- 1
src/views/components_web/distWork/distWork.vue 查看文件

@@ -1055,7 +1055,7 @@
this.isShowStaffList = true;
var data={listUser:[]};
data.listUser=this.listManagerUser;
; this.setFolderPerm(data);
this.setFolderPerm(data);
this.selectedUser =data.listUser;
this.selectedManageUser = [];


+ 1
- 0
src/views/components_web/head/email.vue 查看文件

@@ -1046,6 +1046,7 @@
</template>
<script>
const $ = window.jQuery;
export default {
data() {
return {


+ 1
- 1
src/views/components_web/newProj/newProj.vue 查看文件

@@ -1282,7 +1282,7 @@
coverUploadSuccess: function(file) {
this.uploadCoverTimes = this.uploadCoverTimes + 1;
this.newProjData.projectData.showImgUrl = file.filePath;
this.coverSrc = this.imgSrc + file.filePath;;
this.coverSrc = this.imgSrc + file.filePath;
if (this.uploadCoverTimes > 1) {
this.arryUnUseCover.push(file.filePath);
}


+ 9
- 9
src/views/components_web/projSetting/projSetting.vue 查看文件

@@ -599,15 +599,15 @@
return dept.listUser.length > 0;
});
},
listNoSelectDeptUserComputed: function () {
for (var i = 0; i < this.listDept.length; i++) {
for (var j = 0; j < this.listUsers.length; j++) {
if (this.listDept[i].userID == this.listUsers[j]) {
return this.listDept[i];
}
}
}
},
// listNoSelectDeptUserComputed: function () {
// for (var i = 0; i < this.listDept.length; i++) {
// for (var j = 0; j < this.listUsers.length; j++) {
// if (this.listDept[i].userID == this.listUsers[j]) {
// return this.listDept[i];
// }
// }
// }
// },
/**
* 过滤后的已选择负责人列表
*/


+ 1
- 1
src/views/components_web/user/selectUser.vue 查看文件

@@ -34,7 +34,7 @@
},
selectArray: {
type: Array,
default: []
default: () => []
},
titleName: {
type: String,


+ 78
- 33
src/views/components_web/workLine/workLine.vue 查看文件

@@ -2,10 +2,10 @@
<div>
<div
:class="
isShowRightManager == true
? 'AnimatedRightIn flex_right_pain'
: 'flex_right_pain'
"
isShowRightManager == true
? 'AnimatedRightIn flex_right_pain'
: 'flex_right_pain'
"
>
<!-- 新申请 -->
<div class="flex_right_pain_body_box">
@@ -45,12 +45,14 @@
</ul>
</div>
</div>
<div style="text-align:center">
<div style="text-align: center">
<div>
<span class="yiyun_yinyongname nostyle"></span>
</div>
<div class="btn_double">
<button type="button" class="btn_doubleItem">解除文件交换关系</button>
<button type="button" class="btn_doubleItem">
解除文件交换关系
</button>
</div>
<div class="btn_double">
<button type="button" class="btn_doubleItem">取消申请</button>
@@ -70,24 +72,34 @@
type="button"
class="yiyuntitle nowFolderName shadowbtn"
@click="hideWorklinkPage()"
>回到工作</button>
>
回到工作
</button>
</div>
</div>
</div>
<!-- 我的文件面板 -->
<section :class="'yiyun_warpBar bg_color_company bottomBloder ' + workheight">
<section
:class="'yiyun_warpBar bg_color_company bottomBloder ' + workheight"
>
<div :class="'yiyun_warpContent worklinkHeight'" v-show="isShowworklink">
<div class="yiyun-rows overflowinit">
<!-- 我的文件title -->
<div class="yiyun_file_box">
<div class="yiyun_Headtitle_center" style="overflow:hidden">
<div class="yiyun_Headtitle_center" style="overflow: hidden">
<div class="yiyun-col-12 worktitlebox overflowinit">
<button type="button" class="yiyuntitle myFolderName">
<!-- <button type="button" class="yiyuntitle myFolderName" @click="hideWorklinkPage()"> -->
我的工作链
</button>
</div>
<div :class="listUserFolders.length<8?'worklink linkcenter':'worklink linkstart'">
<div
:class="
listUserFolders.length < 8
? 'worklink linkcenter'
: 'worklink linkstart'
"
>
<div
class="yuandian"
v-for="(myfolder, index) in listUserFolders"
@@ -104,35 +116,55 @@
@click="showNewAppManagement(from)"
>
<i class="leftline"></i>
<span class="worllistt2" :title="from.folderName">{{from.folderName}}</span>
<span class="worllistt2" :title="from.folderName">{{
from.folderName
}}</span>
</div>
</div>
<div class="enterLine" v-if="myfolder.listsShareFrom[1].length > 0">
<div
class="enterLine"
v-if="myfolder.listsShareFrom[1].length > 0"
>
<i class="el-icon-caret-bottom bottomenter"></i>
</div>
</div>
<div class="conterpoint">
<button
type="button"
:class="myfolder.folderName == nowFolderName? 'currworkbutton ': 'workbutton'"
:class="
myfolder.folderName == nowFolderName
? 'currworkbutton '
: 'workbutton'
"
@click="goFolderAndBack(index)"
:title="myfolder.folderName"
>{{ myfolder.folderName }}</button>
<i class="linkline workend" v-if="index < listUserFolders.length - 1"></i>
>
{{ myfolder.folderName }}
</button>
<i
class="linkline workend"
v-if="index < listUserFolders.length - 1"
></i>
</div>
<!-- 移出按钮 -->
<div class="bottomlist" v-if="myfolder.listsShareFrom[0].length > 0">
<div
class="bottomlist"
v-if="myfolder.listsShareFrom[0].length > 0"
>
<div class="leftlin2"></div>
<div class="outPoint">
<div
type="button"
class="linkBtn2 leftlinebox"
:key="indexShare"
v-for="(share, indexShare) in myfolder.listsShareFrom[0]"
v-for="(share, indexShare) in myfolder
.listsShareFrom[0]"
@click="showNewAppManagement(share)"
>
<i class="leftline"></i>
<span class="worllistt2" :title="share.folderName">{{share.folderName}}</span>
<span class="worllistt2" :title="share.folderName">{{
share.folderName
}}</span>
</div>
<div class="outLine">
<i class="el-icon-caret-bottom bottomenter"></i>
@@ -154,23 +186,36 @@
<div class="yiyun-col-8 worktitlebox overflowinit">
<i
class="icon iconfont icon_small-icon_small_shouqi workbtn anniuweizhi rota180 drakbg"
v-show="!isShowworklink && listUserFolders.length > 1 && nowFolderIndex!= 0"
v-show="
!isShowworklink &&
listUserFolders.length > 1 &&
nowFolderIndex != 0
"
@click="previousFolder"
></i>
<button
type="button"
v-show="!isShowworklink"
class="yiyuntitle nowFolderName curbtn"
>{{ nowFolderName }}</button>
>
{{ nowFolderName }}
</button>
<div class="worklinkBtngroup">
<button
type="button"
v-for="(currFolder, index) in listUserFolders"
v-if="index > nowFolderIndex && currFolder.folderName != nowFolderName && !isShowworklink"
:key="index"
@click="nowFolderClick(index)"
class="yiyuntitle sectitle"
>{{ currFolder.folderName }}</button>
<template v-for="(currFolder, index) in listUserFolders">
<button
type="button"
v-if="
index > nowFolderIndex &&
currFolder.folderName != nowFolderName &&
!isShowworklink
"
:key="index"
@click="nowFolderClick(index)"
class="yiyuntitle sectitle"
>
{{ currFolder.folderName }}
</button>
</template>
</div>
<i
class="icon font_family icon-icon_shezhi-jihuo rota90 workbtn workderct"
@@ -202,13 +247,13 @@ export default {
listUserFolders: Array,
nowFolderIndex: Number,
nowFolderName: String,
isShowlink: Boolean
isShowlink: Boolean,
},
data() {
return {
isShowRightManager: false,
isShowworklink: false,
workheight: "" //工作链高度
workheight: "", //工作链高度
};
},
methods: {
@@ -264,14 +309,14 @@ export default {
goFolderAndBack(index) {
this.$emit("goFolderAndBack", index);
this.hideWorklinkPage();
}
},
},
watch: {
isShowlink(data) {
if (data == false) {
this.hideWorklinkPage();
}
}
}
},
},
};
</script>

+ 8
- 7
src/views/login/index.vue 查看文件

@@ -229,6 +229,7 @@
</style>
<script>
import BtnSmsCode from "@/components/BtnSmsCode/BtnSmsCode.vue";
import back from '@/services/back';
// import { platform, PLATFORM_TYPE } from "@/utils/access";

export default {
@@ -484,13 +485,13 @@ export default {

// 客户端启动服务
if (thisApp.isClient) {
// var userName = sessionStorage.userName;
// back.startService(
// sessionStorage.userId,
// sessionStorage.companyId,
// userName,
// this.pwd
// );
var userName = sessionStorage.userName;
back.startService(
sessionStorage.userId,
sessionStorage.companyId,
userName,
this.pwd
);
if (thisApp.isRemember) {
thisApp.$cookie.set("remember", true, { expires: 7 });
thisApp.$cookie.set("account", thisApp.account, { expires: 7 });


+ 4
- 1
src/views/main_web/cloud.vue 查看文件

@@ -341,8 +341,11 @@
import officeview from "../components/officeview/officeview.vue";
import imageview from "../components/imageview/imageview.vue";
// import BMapComponent from "../components/map/bmap";
import back from '@/services/back';
Vue.use(fileUploader);
const $ = window.jQuery;
const Velocity = window.Velocity;
export default {
elNew: "#newFolder",
data() {
@@ -382,7 +385,7 @@
isBottomNewFolder: false, //底部弹框
isAddCollaborator: false, //添加协作人弹窗
activeName: "1",
isBottomNewFolder: false,
// isBottomNewFolder: false,
activeName1: "1",
ischeckAll: false, //是否是全部选中
deptList: [], // 项目协作人列表


+ 2
- 0
src/views/main_web/index/index.vue 查看文件

@@ -209,6 +209,8 @@ import commonJs from "@/common/webCommon";
import DistWork from "@/views/components_web/distWork/distWork";
import NewProj from "@/views/components_web/newProj/newProj";
import ProjSetting from "@/views/components_web/projSetting/projSetting";
const BMap = window.BMap;
const Velocity = window.Velocity;
export default {
elNew: "#new", //样式ID,用于动画
components: {


+ 24
- 23
src/views/main_web/projnotice.vue 查看文件

@@ -235,30 +235,31 @@
fileClick: function (file) {
if (this.isClient)
{
// 客户端打开文件
// todo 客户端打开文件
debugger;
this.setFileModify(file);
var archid = file.archID;
var filename = file.archName + "." + file.extension;
var folderID = file.folderID;
var type = "open";
this.$axios({
method: "get",
url: encodeURI(
process.env.API_HOST +
"projects/project/" +
folder.projID
)
})
.then(response => {
if (response.data != null) {
// 设置项目信息
var projName = response.data.projName;
back.openFile(archid, filename, folderID, type,projName);
}
})
.catch(error => {
console.log(error);
});
// var archid = file.archID;
// var filename = file.archName + "." + file.extension;
// var folderID = file.folderID;
// var type = "open";
// this.$axios({
// method: "get",
// url: encodeURI(
// process.env.API_HOST +
// "projects/project/" +
// folder.projID
// )
// })
// .then(response => {
// if (response.data != null) {
// // 设置项目信息
// var projName = response.data.projName;
// back.openFile(archid, filename, folderID, type,projName);
// }
// })
// .catch(error => {
// console.log(error);
// });
}else if(file.extension=='png'||file.extension=='jpg'||file.extension=='bmp'||file.extension=='gif'||file.extension=='jpeg'){
window.open(this.imgSrc+file.alias,'_blank');


+ 443
- 340
src/views/main_web/recycle.vue 查看文件

@@ -11,211 +11,284 @@
<div class="listfilewarp1">
<div class="layout_content2">
<!-- 文件大box -->
<div class="juzhongtext" v-if="isShowRecycleTip"> 回收站暂时没有文件!</div>
<section class="yiyun_section_warp list_fileBox"
v-if="!isShowRecycleTip"
v-for="(folder, index) in filesList"
:key="index">
<div class="yinyong_warpBox hidescollbar" @click="clickYinyongWarpBox()">
<div class="yiyun_section_top" id="bignav">
<!-- 系统时间 -->
<div class="section_item fl section_item_aside_fl ">
<h3 class="yiyuntitle">{{ folder.folderName }}</h3>
</div>
<!-- 右侧操作栏 -->
<div class="section_item fr section_item_aside_fr">
<div class="fr ml-10">
<el-button @click="clearRecycle(folder)">清空</el-button>
<div class="juzhongtext" v-if="isShowRecycleTip">
回收站暂时没有文件!
</div>
<template v-if="!isShowRecycleTip">
<section
class="yiyun_section_warp list_fileBox"
v-for="(folder, index) in filesList"
:key="index"
>
<div
class="yinyong_warpBox hidescollbar"
@click="clickYinyongWarpBox()"
>
<div class="yiyun_section_top" id="bignav">
<!-- 系统时间 -->
<div class="section_item fl section_item_aside_fl">
<h3 class="yiyuntitle">{{ folder.folderName }}</h3>
</div>
<div class="fifle_search fr">
<!-- <el-input placeholder="搜索我的文件" prefix-icon="icon font_family icon-icon_sousuo searchsize" class="el-input_mini"
v-model="searchMyFile"></el-input> -->
<!-- 右侧操作栏 -->
<div class="section_item fr section_item_aside_fr">
<div class="fr ml-10">
<el-button @click="clearRecycle(folder)">清空</el-button>
</div>
<div class="fifle_search fr">
<!-- <el-input placeholder="搜索我的文件" prefix-icon="icon font_family icon-icon_sousuo searchsize" class="el-input_mini" v-model="searchMyFile"></el-input> -->
</div>
</div>
</div>
</div>
<div class="clear"></div>
<!-- 应用列表(缩略图) -->
<div class="yiyun_row_recyle_warp">
<div v-for="file in folder.listArchive"
:key="file.archID"
@contextmenu.prevent="rightShowMenu($event, file)">
<div class="yiyun_wenjian_list">
<div :class="'defultImage-mid ' + file.extension +'-mid'" v-if="
file.extension != 'jpg' &&
<div class="clear"></div>
<!-- 应用列表(缩略图) -->
<div class="yiyun_row_recyle_warp">
<div
v-for="file in folder.listArchive"
:key="file.archID"
@contextmenu.prevent="rightShowMenu($event, file)"
>
<div class="yiyun_wenjian_list">
<div
:class="'defultImage-mid ' + file.extension + '-mid'"
v-if="
file.extension != 'jpg' &&
file.extension != 'png' &&
file.extension != 'bmp' &&
file.extension != 'gif' &&
file.extension != 'jpeg'"></div>
<div class="defultImage-mid img_bg-mid" v-if="
file.extension == 'jpg' ||
file.extension != 'jpeg'
"
></div>
<div
class="defultImage-mid img_bg-mid"
v-if="
file.extension == 'jpg' ||
file.extension == 'png' ||
file.extension == 'bmp' ||
file.extension == 'gif' ||
file.extension == 'jpeg'">
<div class="file_Imgbox-mid">
<img v-lazy="imgSrc + file.alias" alt="" class="file_Img" />
file.extension == 'jpeg'
"
>
<div class="file_Imgbox-mid">
<img
v-lazy="imgSrc + file.alias"
alt=""
class="file_Img"
/>
</div>
</div>
<div class="top_optionBar">
<el-dropdown>
<span class="el-dropdown-link">
<i
class="icon iconfont icon_small-icon_small_wenjianshezhi settingIcon"
></i>
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item
><span
@click="downLoadMyFile(file)"
v-if="
file.extension != 'map' &&
file.extension != 'supermap'
"
>下载</span
></el-dropdown-item
>
<el-dropdown-item divided
><span @click="returnMyFile(file)"
>放回原处</span
></el-dropdown-item
>
<el-dropdown-item divided
><span @click="delMyFile(file)"
>彻底删除</span
></el-dropdown-item
>
</el-dropdown-menu>
</el-dropdown>
</div>
<strong class="yiyunwenjian_name" :title="file.archName">
{{ file.archName }}
</strong>
<span class="yiyunwenjian_infodesc">我的文件</span>
</div>
<div class="top_optionBar">
<el-dropdown>
<span class="el-dropdown-link">
<i class="icon iconfont icon_small-icon_small_wenjianshezhi settingIcon"></i>
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item><span @click="downLoadMyFile(file)" v-if="file.extension !='map' && file.extension !='supermap' ">下载</span></el-dropdown-item>
<el-dropdown-item divided><span @click="returnMyFile(file)">放回原处</span></el-dropdown-item>
<el-dropdown-item divided><span @click="delMyFile(file)">彻底删除</span></el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
<strong class="yiyunwenjian_name" :title="file.archName">
{{file.archName}}
</strong>
<span class="yiyunwenjian_infodesc">我的文件</span>
</div>
</div>
<!--删除的文件分组 start-->
<div class="yiyun_wenjian_list"
v-for="foldergroup in folder.listFoldergroup"
:key="foldergroup.folderGroupID"
@contextmenu.prevent="rightFoldergroupShowMenu($event, foldergroup)"
@click="clickFoldergroup(foldergroup)">
<div class="defultImage-mid foldernew-mid" >
</div>
<strong class="yiyunwenjian_name" >
{{foldergroup.folderGroupName}}
<!--删除的文件分组 start-->
<div
class="yiyun_wenjian_list"
v-for="foldergroup in folder.listFoldergroup"
:key="foldergroup.folderGroupID"
@contextmenu.prevent="
rightFoldergroupShowMenu($event, foldergroup)
"
@click="clickFoldergroup(foldergroup)"
>
<div class="defultImage-mid foldernew-mid"></div>
<strong class="yiyunwenjian_name">
{{ foldergroup.folderGroupName }}
</strong>
<!-- <strong class="yiyunwenjian_name">{{foldergroup.childCount}}个项目</strong> -->
</div>
<!--删除的文件分组 end-->
</div>
<div class="clear"></div>
<div class="yiyun_line_border"></div>
<!-- 右键文件菜单 -->
<div
v-show="rightMenuvisible"
:style="{ left: left + 'px', top: top + 'px' }"
class="contextmenu"
>
<ul class="rightMenu">
<li
@click="downLoadMyFile(BtnRightFile)"
v-if="
BtnRightFile.extension != 'map' &&
BtnRightFile.extension != 'supermap'
"
>
下载
</li>
<li @click="returnMyFile(BtnRightFile)">放回原处</li>
<li @click="delMyFile(BtnRightFile)">彻底删除</li>
</ul>
</div>
<!-- 右键文件分组菜单 -->
<div
v-show="rightFoldergroupMenuvisible"
:style="{ left: left + 'px', top: top + 'px' }"
class="contextmenu"
>
<ul class="rightMenu">
<!-- <li @click="downLoadMyFoldergroup()">下载</li> -->
<li @click="returnMyFoldergroup()">放回原处</li>
<li @click="delMyFoldergroup()">彻底删除</li>
</ul>
</div>
</div>
<div class="clear"></div>
<div class="yiyun_line_border"></div>
<!-- 右键文件菜单 -->
<div v-show="rightMenuvisible" :style="{ left: left + 'px', top: top + 'px' }" class="contextmenu">
<ul class="rightMenu">
<li @click="downLoadMyFile(BtnRightFile)" v-if="BtnRightFile.extension !='map' && BtnRightFile.extension !='supermap' ">下载</li>
<li @click="returnMyFile(BtnRightFile)">放回原处</li>
<li @click="delMyFile(BtnRightFile)">彻底删除</li>
</ul>
</div>
<!-- 右键文件分组菜单 -->
<div v-show="rightFoldergroupMenuvisible" :style="{ left: left + 'px', top: top + 'px' }" class="contextmenu">
<ul class="rightMenu">
<!-- <li @click="downLoadMyFoldergroup()">下载</li> -->
<li @click="returnMyFoldergroup()">放回原处</li>
<li @click="delMyFoldergroup()">彻底删除</li>
</ul>
</div>
</div>
</section>
</section>
</template>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
imgSrc: process.env.API_HOST + "archives/cover?path=",
filesList: [],
projId: sessionStorage.projId,
userId: sessionStorage.userId,
BtnRightFile: "", //右键文件对象
top: 0,
left: 0,
rightMenuvisible: false,
isShowRecycleTip:false,
/*********分组菜单 ***************/
rightFoldergroupMenuvisible:false,
btnRightFoldergroup:{},
};
export default {
data() {
return {
imgSrc: process.env.API_HOST + "archives/cover?path=",
filesList: [],
projId: sessionStorage.projId,
userId: sessionStorage.userId,
BtnRightFile: "", //右键文件对象
top: 0,
left: 0,
rightMenuvisible: false,
isShowRecycleTip: false,
/*********分组菜单 ***************/
rightFoldergroupMenuvisible: false,
btnRightFoldergroup: {},
};
},
mounted: function () {
this.listFiles();
},
methods: {
/**
* 获取当前工作下文件
*/
listFiles: function () {
var thisApp = this;
thisApp.rightMenuvisible = false;
thisApp
.$axios({
method: "get",
url: encodeURI(
process.env.API_HOST + "folders/resource/recycle/" + thisApp.userId
),
})
.then((response) => {
thisApp.filesList = response.data.data;
if (thisApp.filesList.length > 0) {
thisApp.isShowRecycleTip = false;
} else {
thisApp.isShowRecycleTip = true;
}
})
.catch((error) => {
console.log(error);
});
},
mounted: function () {
this.listFiles();
/**
* 下载文件
* item:文件对象
*/
downLoadMyFile: function (item) {
if (item.alias != null) {
var url = process.env.API_HOST + "archives/download/" + item.archID;
var iframe = document.createElement("iframe");
iframe.style.display = "none";
iframe.src = url;
document.body.appendChild(iframe);
}
},
methods: {
/**
* 获取当前工作下文件
*/
listFiles: function () {
var thisApp = this;
thisApp.rightMenuvisible = false;
thisApp.$axios({
method: "get",
/**
* 还原文件
* file:源数据
*/
returnMyFile: function (file) {
var thisApp = this;
file.deleted = 0;
this.$axios({
method: "put",
url: encodeURI(
process.env.API_HOST +
"archives/update/restore/" +
file.archID +
"/" +
sessionStorage.userId
),
data: file,
})
.then(function (response) {
if (response.data.state == 1) {
thisApp.$notify({
title: "恭喜您",
message: response.data.message,
type: "success",
offset: 100,
duration: 2500,
});
thisApp.listFiles();
}
})
.catch(function (error) {
console.log(error);
});
},
/**
* 删除我的文件
* file:源数据
*/
delMyFile: function (file) {
var thisApp = this;
this.$confirm("您正在删除 " + file.archName + " 文件是否继续?", "", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios({
method: "delete",
url: encodeURI(
process.env.API_HOST + "folders/resource/recycle/" + thisApp.userId
)
})
.then(response => {
thisApp.filesList = response.data.data;
if(thisApp.filesList.length>0){
thisApp.isShowRecycleTip=false;
}else{
thisApp.isShowRecycleTip=true;
}
})
.catch(error => {
console.log(error);
});
},
/**
* 下载文件
* item:文件对象
*/
downLoadMyFile: function (item) {
if (item.alias != null) {
var url = process.env.API_HOST + "archives/download/" + item.archID;
var iframe = document.createElement("iframe");
iframe.style.display = "none";
iframe.src = url;
document.body.appendChild(iframe);
}
},
/**
* 还原文件
* file:源数据
*/
returnMyFile: function (file) {
var thisApp = this;
file.deleted = 0;
this.$axios({
method: "put",
url: encodeURI(process.env.API_HOST + "archives/update/restore/"+file.archID+'/'+sessionStorage.userId),
data: file
})
.then(function (response) {
if (response.data.state == 1) {
thisApp.$notify({
title: "恭喜您",
message: response.data.message,
type: "success",
offset: 100,
duration: 2500
});
thisApp.listFiles();
}
process.env.API_HOST +
"folders/resource/recycle/" +
file.archID +
"/" +
sessionStorage.userId
),
})
.catch(function (error) {
console.log(error);
});
},
/**
* 删除我的文件
* file:源数据
*/
delMyFile: function (file) {
var thisApp = this;
this.$confirm("您正在删除 " + file.archName + " 文件是否继续?", "", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.$axios({
method: "delete",
url: encodeURI(process.env.API_HOST + "folders/resource/recycle/" +file.archID+'/'+sessionStorage.userId),
})
.then(function (response) {
if (response.data.state == 1) {
thisApp.$notify({
@@ -223,7 +296,7 @@
message: response.data.message,
type: "success",
offset: 100,
duration: 2500
duration: 2500,
});
thisApp.listFiles();
}
@@ -231,149 +304,165 @@
.catch(function (error) {
console.log(error);
});
}).catch(()=>{
thisApp.$notify({
title: "温馨提示",
message: "已取消操作",
type: "info",
offset: 100,
duration: 2500
});
})
.catch(() => {
thisApp.$notify({
title: "温馨提示",
message: "已取消操作",
type: "info",
offset: 100,
duration: 2500,
});
});
},
/**
* 清空
*/
clearRecycle: function (currFileList) {
if (currFileList.length <= 0) {
return;
}
var listFolder=[];
listFolder.push(currFileList);
var data= {userId:sessionStorage.userId,listFolder:listFolder};
var thisApp = this;
this.$confirm("您正在进行清空操作,是否继续?", "", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
},
/**
* 清空
*/
clearRecycle: function (currFileList) {
if (currFileList.length <= 0) {
return;
}
var listFolder = [];
listFolder.push(currFileList);
var data = { userId: sessionStorage.userId, listFolder: listFolder };
var thisApp = this;
this.$confirm("您正在进行清空操作,是否继续?", "", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
this.$axios({
method: "delete",
url: encodeURI(
process.env.API_HOST + "folders/resource/recycle/listarch"
),
data: data
})
.then(response => {
method: "delete",
url: encodeURI(
process.env.API_HOST + "folders/resource/recycle/listarch"
),
data: data,
})
.then((response) => {
if (response.data.state == 1) {
thisApp.$notify({
title: "恭喜您",
message: "清空成功!",
type: "success",
offset: 100,
duration: 2500
duration: 2500,
});
thisApp.listFiles();
}
})
.catch(error => {
.catch((error) => {
console.log(error);
});
}).catch(()=>{
thisApp.$notify({
title: "温馨提示",
message: "已取消操作",
type: "info",
offset: 100,
duration: 2500
});
})
.catch(() => {
thisApp.$notify({
title: "温馨提示",
message: "已取消操作",
type: "info",
offset: 100,
duration: 2500,
});
});
},
/**
* 右键文件
*/
rightShowMenu: function (e, file) {
const menuMinWidth = 10;
const offsetLeft = this.$el.getBoundingClientRect().left; // container margin left
const offsetWidth = this.$el.offsetWidth; // container width
const maxLeft = offsetWidth - menuMinWidth; // left boundary
const left = e.clientX - offsetLeft; // 15: margin right
if (left > maxLeft) {
this.left = maxLeft;
} else {
this.left = left;
}
this.left = e.clientX; // fix 位置bug
this.top = e.clientY; // fix 位置bug
this.rightMenuvisible = true;
this.rightFoldergroupMenuvisible = false;
this.BtnRightFile = file;
},
/**
* 关闭右键
*/
closeShowMenu: function () {
this.rightMenuvisible = false;
},
/******* 右键文件分组菜单 *********/
clickYinyongWarpBox:function(){
this.rightMenuvisible = false;
this.rightFoldergroupMenuvisible = false;
},
/**
* 单机分组
*/
clickFoldergroup:function(foldergroup){
this.rightFoldergroupMenuvisible = false;
},
/**
* 右键文件分组
*/
rightFoldergroupShowMenu: function (e, foldergroup){
const menuMinWidth = 10;
const offsetLeft = this.$el.getBoundingClientRect().left; // container margin left
const offsetWidth = this.$el.offsetWidth; // container width
const maxLeft = offsetWidth - menuMinWidth; // left boundary
const left = e.clientX - offsetLeft; // 15: margin right
if (left > maxLeft) {
this.left = maxLeft;
} else {
this.left = left;
}
this.left = e.clientX; // fix 位置bug
this.top = e.clientY; // fix 位置bug
this.rightMenuvisible = false;
this.rightFoldergroupMenuvisible = true;
this.btnRightFoldergroup = foldergroup;
},
/**
* 下载
*/
downLoadMyFoldergroup(){
this.rightFoldergroupMenuvisible = false;
},
/**
* 返回原处
*/
returnMyFoldergroup(){
this.rightFoldergroupMenuvisible = false;
this.$confirm("您确定要还原 " + this.btnRightFoldergroup.folderGroupName + " 文件夹,是否继续?", "", {
},
/**
* 右键文件
*/
rightShowMenu: function (e, file) {
const menuMinWidth = 10;
const offsetLeft = this.$el.getBoundingClientRect().left; // container margin left
const offsetWidth = this.$el.offsetWidth; // container width
const maxLeft = offsetWidth - menuMinWidth; // left boundary
const left = e.clientX - offsetLeft; // 15: margin right
if (left > maxLeft) {
this.left = maxLeft;
} else {
this.left = left;
}
this.left = e.clientX; // fix 位置bug
this.top = e.clientY; // fix 位置bug
this.rightMenuvisible = true;
this.rightFoldergroupMenuvisible = false;
this.BtnRightFile = file;
},
/**
* 关闭右键
*/
closeShowMenu: function () {
this.rightMenuvisible = false;
},
/******* 右键文件分组菜单 *********/
clickYinyongWarpBox: function () {
this.rightMenuvisible = false;
this.rightFoldergroupMenuvisible = false;
},
/**
* 单机分组
*/
clickFoldergroup: function (foldergroup) {
this.rightFoldergroupMenuvisible = false;
},
/**
* 右键文件分组
*/
rightFoldergroupShowMenu: function (e, foldergroup) {
const menuMinWidth = 10;
const offsetLeft = this.$el.getBoundingClientRect().left; // container margin left
const offsetWidth = this.$el.offsetWidth; // container width
const maxLeft = offsetWidth - menuMinWidth; // left boundary
const left = e.clientX - offsetLeft; // 15: margin right
if (left > maxLeft) {
this.left = maxLeft;
} else {
this.left = left;
}
this.left = e.clientX; // fix 位置bug
this.top = e.clientY; // fix 位置bug
this.rightMenuvisible = false;
this.rightFoldergroupMenuvisible = true;
this.btnRightFoldergroup = foldergroup;
},
/**
* 下载
*/
downLoadMyFoldergroup() {
this.rightFoldergroupMenuvisible = false;
},
/**
* 返回原处
*/
returnMyFoldergroup() {
this.rightFoldergroupMenuvisible = false;
this.$confirm(
"您确定要还原 " +
this.btnRightFoldergroup.folderGroupName +
" 文件夹,是否继续?",
"",
{
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
type: "warning",
}
)
.then(() => {
this.$axios({
method: "get",
url: encodeURI(process.env.API_HOST + "folders/recycle/update/" +this.btnRightFoldergroup.folderGroupID+'/'+sessionStorage.userId),
})
.then(response=> {
method: "get",
url: encodeURI(
process.env.API_HOST +
"folders/recycle/update/" +
this.btnRightFoldergroup.folderGroupID +
"/" +
sessionStorage.userId
),
})
.then((response) => {
if (response.data.state == 1) {
this.$notify({
title: "恭喜您",
message: response.data.message,
type: "success",
offset: 100,
duration: 2500
duration: 2500,
});
this.rightFoldergroupMenuvisible = false;
this.listFiles();
@@ -382,38 +471,52 @@
.catch(function (error) {
console.log(error);
});
}).catch(()=>{
this.$notify({
title: "温馨提示",
message: "已取消操作",
type: "info",
offset: 100,
duration: 2500
});
})
.catch(() => {
this.$notify({
title: "温馨提示",
message: "已取消操作",
type: "info",
offset: 100,
duration: 2500,
});
});
},
/**
* 彻底删除
*/
delMyFoldergroup:function(){
this.rightFoldergroupMenuvisible =false
this.$confirm("您正在彻底删除 " + this.btnRightFoldergroup.folderGroupName + " 文件夹,是否继续?", "", {
},
/**
* 彻底删除
*/
delMyFoldergroup: function () {
this.rightFoldergroupMenuvisible = false;
this.$confirm(
"您正在彻底删除 " +
this.btnRightFoldergroup.folderGroupName +
" 文件夹,是否继续?",
"",
{
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
type: "warning",
}
)
.then(() => {
this.$axios({
method: "delete",
url: encodeURI(process.env.API_HOST + "folders/recycle/delete/" +this.btnRightFoldergroup.folderGroupID+'/'+sessionStorage.userId),
})
.then(response => {
method: "delete",
url: encodeURI(
process.env.API_HOST +
"folders/recycle/delete/" +
this.btnRightFoldergroup.folderGroupID +
"/" +
sessionStorage.userId
),
})
.then((response) => {
if (response.data.state == 1) {
this.$notify({
title: "恭喜您",
message: response.data.message,
type: "success",
offset: 100,
duration: 2500
duration: 2500,
});
this.rightFoldergroupMenuvisible = false;
this.listFiles();
@@ -422,28 +525,28 @@
.catch(function (error) {
console.log(error);
});
}).catch(()=>{
this.$notify({
title: "温馨提示",
message: "已取消删除",
type: "info",
offset: 100,
duration: 2500
});
});
},
})
.catch(() => {
this.$notify({
title: "温馨提示",
message: "已取消删除",
type: "info",
offset: 100,
duration: 2500,
});
});
},
watch: {
rightMenuvisiblerightMenuvisible(value) {
if (value) {
document.body.addEventListener("click", this.closeShowMenu);
} else {
document.body.removeEventListener("click", this.closeShowMenu);
}
},
watch: {
rightMenuvisiblerightMenuvisible(value) {
if (value) {
document.body.addEventListener("click", this.closeShowMenu);
} else {
document.body.removeEventListener("click", this.closeShowMenu);
}
}
};
},
},
};
</script>
<style></style>

+ 1295
- 467
src/views/main_web/workspace.vue
文件差異過大導致無法顯示
查看文件


+ 2
- 2
src/views/manage_company/project.vue 查看文件

@@ -786,7 +786,7 @@
thisApp.$notify({
title: "温馨提示",
type: "error",
message: response.data.message,
message: '', // response.data.message,
offset: 100,
duration: 5000
});
@@ -876,7 +876,7 @@
thisApp.$notify({
title: "温馨提示",
type: "error",
message: response.data.message,
message: '', // response.data.message,
offset: 100,
duration: 5000
});


+ 1
- 1
src/views/manage_company/setting.vue 查看文件

@@ -923,7 +923,7 @@
currentCompany: {}, // 当前企业信息
CompanyInfo: "", // 企业总体信息
industryOptions: [], // 行业信息
imgSrc: process.env.API_HOST + "archives/head?path=",
// imgSrc: process.env.API_HOST + "archives/head?path=",
chunkUploadUrl: process.env.API_HOST + "webupload/chunks",
uploadTypeOther: 5, // 除12345以为其他数字为其它,企业图片存入企业其它目录5
uploadCompId: sessionStorage.companyId,


Loading…
取消
儲存