Commit 2e738180 authored by 黄奎's avatar 黄奎

11

parent fe329500
......@@ -2,7 +2,8 @@
<div class="flexOne">
<div class="myDocumentsNav">
<div class="fr" v-if='!isChildFiles'>
<el-input class='w200' :placeholder="$t('pub.pleaseImport')" v-model="msg.ShareName" prefix-icon="el-icon-search"></el-input>
<el-input class='w200' :placeholder="$t('pub.pleaseImport')" v-model="msg.ShareName"
prefix-icon="el-icon-search"></el-input>
<input type="button" class="hollowFixedBtn" @click='getList()' :value="$t('pub.searchBtn')" />
</div>
</div>
......@@ -45,7 +46,7 @@
<th width="200">{{$t('objFill.v101.administrative.fenxiangrqi')}}</th>
<th width="200">{{$t('system.table_operation')}}</th>
</tr>
<tr v-for="(item,index) in list" @mouseover="enterTr(index)" @mouseleave="leaveTr">
<tr v-for="(item,index) in list" @mouseover="enterTr(index)" @mouseleave="leaveTr" :key="index">
<td v-if="item.shareFileType==1">
<div @click="getNextLevel(item)" style="cursor: pointer; display: inline-block;">
<div :class="['fileIcon', item.icons]"></div>
......@@ -65,28 +66,37 @@
<div v-if='item.shareType==2'>
{{item|reciveFormat(item)}}
</div>
<div v-if='item.shareType==3&&item.recive.length<=3' >
<div v-if='item.shareType==3&&item.recive.length<=3'>
<span v-for="i in item.recive" style="margin-right: 10px;">
<img style="vertical-align: sub; width: 14px; height: 14px; border-radius: 7px;" v-if="!i.userPhoto" src="../../assets/img/litheader.png" alt="">
<img style="vertical-align: sub; width: 14px; height: 14px; border-radius: 7px;" v-else :src="i.userPhoto" alt="" :onerror="defaultImg">
<img style="vertical-align: sub; width: 14px; height: 14px; border-radius: 7px;" v-if="!i.userPhoto"
src="../../assets/img/litheader.png" alt="">
<img style="vertical-align: sub; width: 14px; height: 14px; border-radius: 7px;" v-else
:src="i.userPhoto" alt="" :onerror="defaultImg">
{{i.userName}}
</span>
</div>
<div v-if='item.shareType==3&&item.recive.length>3' >
<div v-if='item.shareType==3&&item.recive.length>3'>
<span v-if='!item.isOpen' v-for="i in filterArr(item.recive,3)" style="margin:5px 10px 5px 0; display: inline-block;" >
<img style="vertical-align: sub; width: 14px; height: 14px; border-radius: 7px;" v-if="!i.userPhoto" src="../../assets/img/litheader.png" alt="">
<img style="vertical-align: sub; width: 14px; height: 14px; border-radius: 7px;" v-else :src="i.userPhoto" alt="" :onerror="defaultImg">
<span v-if='!item.isOpen' v-for="i in filterArr(item.recive,3)"
style="margin:5px 10px 5px 0; display: inline-block;">
<img style="vertical-align: sub; width: 14px; height: 14px; border-radius: 7px;" v-if="!i.userPhoto"
src="../../assets/img/litheader.png" alt="">
<img style="vertical-align: sub; width: 14px; height: 14px; border-radius: 7px;" v-else
:src="i.userPhoto" alt="" :onerror="defaultImg">
{{i.userName}}
</span>
<span v-if='item.isOpen' v-for="i in item.recive" style="margin:5px 10px 5px 0; display: inline-block;" >
<img style="vertical-align: sub; width: 14px; height: 14px; border-radius: 7px;" v-if="!i.userPhoto" src="../../assets/img/litheader.png" alt="">
<img style="vertical-align: sub; width: 14px; height: 14px; border-radius: 7px;" v-else :src="i.userPhoto" alt="" :onerror="defaultImg">
<span v-if='item.isOpen' v-for="i in item.recive" style="margin:5px 10px 5px 0; display: inline-block;">
<img style="vertical-align: sub; width: 14px; height: 14px; border-radius: 7px;" v-if="!i.userPhoto"
src="../../assets/img/litheader.png" alt="">
<img style="vertical-align: sub; width: 14px; height: 14px; border-radius: 7px;" v-else
:src="i.userPhoto" alt="" :onerror="defaultImg">
{{i.userName}}
</span>
<span v-if='!item.isOpen' style="color: #2AAEF2; cursor: pointer;" @click="item.isOpen=true">{{$t('objFill.v101.administrative.deng')}}{{item.recive.length}}{{$t('hotel.hotel_people')}}</span>
<span v-if='item.isOpen' style="color: #2AAEF2; cursor: pointer;" @click="item.isOpen=!true">{{$t('fnc.shouqi')}}</span>
<span v-if='!item.isOpen' style="color: #2AAEF2; cursor: pointer;"
@click="item.isOpen=true">{{$t('objFill.v101.administrative.deng')}}{{item.recive.length}}{{$t('hotel.hotel_people')}}</span>
<span v-if='item.isOpen' style="color: #2AAEF2; cursor: pointer;"
@click="item.isOpen=!true">{{$t('fnc.shouqi')}}</span>
</div>
</td>
<td>{{item.shareStatus=='1'?$t('pub.normalSel'):$t('pub.cancelBtn')}}</td>
......@@ -97,17 +107,20 @@
<el-tooltip class="item" effect="dark" :content="$t('objFill.xz')" placement="top-start">
<el-button type="primary" icon="el-icon-download" @click='downloadOne(item)'></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('objFill.v101.administrative.xiugaifenx')" placement="top-start">
<el-tooltip class="item" effect="dark" :content="$t('objFill.v101.administrative.xiugaifenx')"
placement="top-start">
<el-button type="primary" icon="el-icon-share" @click='updateShareOneDialog(item)'></el-button>
</el-tooltip>
<el-tooltip v-if="item.shareStatus=='1'" class="item" effect="dark" :content="$t('objFill.v101.administrative.quxiaofenx')" placement="top-start">
<el-tooltip v-if="item.shareStatus=='1'" class="item" effect="dark"
:content="$t('objFill.v101.administrative.quxiaofenx')" placement="top-start">
<el-button type="warning" icon='iconfont icon-quxiao1' @click='changeShareType(item)'></el-button>
</el-tooltip>
<el-tooltip v-if="item.shareStatus=='2'" class="item" effect="dark" :content="$t('objFill.v101.administrative.huifufenx')" placement="top-start">
<el-tooltip v-if="item.shareStatus=='2'" class="item" effect="dark"
:content="$t('objFill.v101.administrative.huifufenx')" placement="top-start">
<el-button type="primary" icon='iconfont icon-huifu' @click='changeShareType(item)'></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('system.table_delete')" placement="top-start">
<el-button type="danger" icon="el-icon-delete" @click='deleteShareFile(item)' ></el-button>
<el-button type="danger" icon="el-icon-delete" @click='deleteShareFile(item)'></el-button>
</el-tooltip>
</el-button-group>
</td>
......@@ -115,14 +128,16 @@
</tbody>
</table>
<el-dialog custom-class='w400' :title="dialogTitle" :visible.sync="outerVisible" center :before-close="closeChangeMachie">
<el-dialog custom-class='w400' :title="dialogTitle" :visible.sync="outerVisible" center
:before-close="closeChangeMachie">
<el-form :model="addFileMsg" :rules="rules" ref="addFileMsg" label-width="80px">
<el-form-item :label="$t('objFill.v101.administrative.wenjianmc')" prop="FolderName">
<el-input type="text" maxLength='50' v-model='addFileMsg.FolderName'></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<input type="button" class="hollowFixedBtn" :value="$t('pub.cancelBtn')" @click="outerVisible = false,addFileMsg.FolderName=''" />
<input type="button" class="hollowFixedBtn" :value="$t('pub.cancelBtn')"
@click="outerVisible = false,addFileMsg.FolderName=''" />
<input type="button" class="normalBtn" :value="$t('pub.sureBtn')" @click="submitForm('addFileMsg')" />
</div>
</el-dialog>
......@@ -140,7 +155,8 @@
</el-dialog>
<el-dialog custom-class='w400' :title="dialogTitle2" :visible.sync="outerVisible2" center>
<el-tree :data="fileTreeList" :props="defaultProps" :check-strictly='true' @check-change="handleNodeChange" node-key="Id" show-checkbox accordion ref="tree">
<el-tree :data="fileTreeList" :props="defaultProps" :check-strictly='true' @check-change="handleNodeChange"
node-key="Id" show-checkbox accordion ref="tree">
</el-tree>
<div slot="footer" class="dialog-footer">
<input type="button" class="hollowFixedBtn" :value="$t('pub.cancelBtn')" @click="outerVisible2=false" />
......@@ -170,16 +186,8 @@
</div>
<div v-show='shareMsg.shareType==1' class="myDocumentShareDiv">
<div class="myDocumentShareTree">
<el-tree
:data="departmentList"
ref="treeDepartmentList"
node-key="DepartmentId"
:check-strictly='true'
show-checkbox
:render-after-expand="false"
:props="defaultProps2"
@check-change="DepartmentListNodeChange"
>
<el-tree :data="departmentList" ref="treeDepartmentList" node-key="DepartmentId" :check-strictly='true'
show-checkbox :render-after-expand="false" :props="defaultProps2" @check-change="DepartmentListNodeChange">
</el-tree>
</div>
<div class="myDocumentShareObject">
......@@ -192,16 +200,8 @@
</div>
<div v-show='shareMsg.shareType==2' class="myDocumentShareDiv">
<div class="myDocumentShareTree">
<el-tree
:data="roleList"
ref="treeRole"
node-key="DepartmentId"
:check-strictly='true'
show-checkbox
:render-after-expand="false"
:props="defaultProps1"
@check-change="roleListNodeChange"
>
<el-tree :data="roleList" ref="treeRole" node-key="DepartmentId" :check-strictly='true' show-checkbox
:render-after-expand="false" :props="defaultProps1" @check-change="roleListNodeChange">
</el-tree>
</div>
<div class="myDocumentShareObject">
......@@ -214,16 +214,8 @@
</div>
<div v-show='shareMsg.shareType==3' class="myDocumentShareDiv">
<div class="myDocumentShareTree">
<el-tree
:data="menberList"
ref="treeMenber"
node-key="DepartmentId"
:check-strictly='true'
show-checkbox
:render-after-expand="false"
:props="defaultProps3"
@check-change="MenberListNodeChange"
>
<el-tree :data="menberList" ref="treeMenber" node-key="DepartmentId" :check-strictly='true' show-checkbox
:render-after-expand="false" :props="defaultProps3" @check-change="MenberListNodeChange">
</el-tree>
</div>
<div class="myDocumentShareObject">
......@@ -253,9 +245,11 @@
<div slot="footer" class="dialog-footer">
<input type="button" class="normalBtn" :value="$t('pub.closeSel')" @click="outerVisible4=false" />
</div>
</el-dialog >
<div v-if='audioIsShow' style="position: fixed; bottom: 100px; right: 20px; z-index: 999; border:1px solid #ccc; padding: 10px; background: #eee;">
<i class="el-icon-circle-close-outline" style="float: right; cursor: pointer;" @click="audioIsShow=false,audioPath=''"></i>
</el-dialog>
<div v-if='audioIsShow'
style="position: fixed; bottom: 100px; right: 20px; z-index: 999; border:1px solid #ccc; padding: 10px; background: #eee;">
<i class="el-icon-circle-close-outline" style="float: right; cursor: pointer;"
@click="audioIsShow=false,audioPath=''"></i>
<p style="font-size: 12px; margin: 0 0 10px 0;">{{audioName}}</p>
<audio :src="audioPath" controls="controls">
Your browser does not support the audio tag.
......@@ -274,40 +268,39 @@
<el-dialog custom-class='w400' :title="$t('objFill.v101.administrative.yasuoxz')" :visible.sync="yzmVisible" center>
<p>
<span>{{$t('objFill.yanzhengma')}} : </span>
<el-input class='w150' type="text" :placeholder="$t('objFill.qingshuruyzm')" v-model="picLyanzhengma"></el-input>
<input type="button" @click="createCode" class="DocumentLoadVerification" v-model="checkCode"/>
<el-input class='w150' type="text" :placeholder="$t('objFill.qingshuruyzm')" v-model="picLyanzhengma">
</el-input>
<input type="button" @click="createCode" class="DocumentLoadVerification" v-model="checkCode" />
</p>
<div slot="footer" class="dialog-footer">
<input type="button" class="hollowFixedBtn" :value="$t('pub.cancelBtn')" @click="yzmVisible=false" />
<input type="button" class="normalBtn" :value="$t('pub.sureBtn')" @click="downloadTotal()" />
</div>
</el-dialog >
</el-dialog>
<a target="_blank" style="display:none" id="blankLink"></a>
</div>
</template>
<script>
// let browserMD5File = require('browser-md5-file');
export default {
data() {
return {
code:'',
picLyanzhengma:'',
checkCode:'',
code: '',
picLyanzhengma: '',
checkCode: '',
yzmVisible: false,
initialIndex:0,
picObj:[],
picIsShow:false,
audioIsShow:false,
initialIndex: 0,
picObj: [],
picIsShow: false,
audioIsShow: false,
outerVisible4: false,
dialogTitle4: '',
moviePath:'',
audioPath:'',
picPath:'',
audioName:'',
leftLoadCount:0,
moviePath: '',
audioPath: '',
picPath: '',
audioName: '',
leftLoadCount: 0,
headers: {
'Content-Type': 'application/octet-stream'
},
......@@ -330,8 +323,8 @@
label: 'DepartmentName',
disabled: "Disabled"
},
NavList:[],
isChildFiles:false,
NavList: [],
isChildFiles: false,
defaultImg: 'this.src="' + require('../../assets/img/litheader.png') + '"',
outerVisible: false,
dialogTitle: '',
......@@ -348,10 +341,10 @@
saveMsg: [],
msg: {
pageIndex: '1',
pageSize:'9999',
ShareName:''
pageSize: '9999',
ShareName: ''
},
nextMsg:{
nextMsg: {
ParentId: '0',
FolderName: '',
},
......@@ -372,7 +365,7 @@
fileIds: [],
targetIds: '',
folderIds: [],
shareId:0
shareId: 0
},
//返回数据
curIndex: -1,
......@@ -382,81 +375,81 @@
WjId: [],
WjjId: [],
arr: [],
departmentList:[],
ckdDepartmentList:[],
ckdDepartmentListId:[],
roleList:[],
ckdRoleList:[],
ckdRoleListId:[],
menberList:[],
ckdMenberList:[],
ckdMenberListId:[],
nextList:[],
crtData:{},
departmentList: [],
ckdDepartmentList: [],
ckdDepartmentListId: [],
roleList: [],
ckdRoleList: [],
ckdRoleListId: [],
menberList: [],
ckdMenberList: [],
ckdMenberListId: [],
nextList: [],
crtData: {},
shareTypes: {
t1: this.$t('admin.admin_Department'),
t2: this.$t('admin.admin_Post'),
t3: this.$t('fnc.zdchengyuan'),
},
rules: { //表单验证
FolderName: [{
required: true,
message: this.$t('objFill.v101.administrative.qingshurwjjmc') ,
message: this.$t('objFill.v101.administrative.qingshurwjjmc'),
trigger: 'blur'
}]
},
rules1: { //表单验证
FileName: [{
required: true,
message: this.$t('objFill.v101.administrative.qingsrwjmc') ,
message: this.$t('objFill.v101.administrative.qingsrwjmc'),
trigger: 'blur'
}]
},
shareTypes:{
t1: this.$t('admin.admin_Department'),
t2: this.$t('admin.admin_Post'),
t3: this.$t('fnc.zdchengyuan'),
}
}
},
filters: {
FileSizeFormat(value) {
if(value == null||value=='0') {
if (value == null || value == '0') {
return '-'
}
if(value != null) {
if(value / 1024 < 1) { //kb
if (value != null) {
if (value / 1024 < 1) { //kb
return value + 'KB'
}
if(value / 1024 > 1 && value / (1024 * 1024) < 1) { //mb
return(value / 1024).toFixed(2) + 'M'
if (value / 1024 > 1 && value / (1024 * 1024) < 1) { //mb
return (value / 1024).toFixed(2) + 'M'
}
if(value / (1024 * 1024) > 1) { //G
return(value / (1024 * 1024)).toFixed(2) + 'G'
if (value / (1024 * 1024) > 1) { //G
return (value / (1024 * 1024)).toFixed(2) + 'G'
}
}
},
shareTypeFormat(value){
if(value==1){
shareTypeFormat(value) {
console.log("shareTypes", this.shareTypes);
if (value == 1) {
return this.shareTypes.t1
}
if(value==2){
if (value == 2) {
return this.shareTypes.t2
}
if(value==3){
if (value == 3) {
return this.shareTypes.t3
}
},
reciveFormat(value){
if(value.shareType==1||value.shareType==2){
if(value.recive!=null){
reciveFormat(value) {
if (value.shareType == 1 || value.shareType == 2) {
if (value.recive != null) {
return value.recive.join(',')
}else{
} else {
return ''
}
}
}
},
methods: {
// 图片验证码
createCode(){
createCode() {
//先清空验证码的输入
this.code = "";
this.checkCode = "";
......@@ -464,64 +457,80 @@
//验证码的长度
var codeLength = 4;
//随机数
var random = new Array(0,1,2,3,4,5,6,7,8,9,'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
for(var i = 0; i < codeLength; i++) {
var random = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L',
'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');
for (var i = 0; i < codeLength; i++) {
//取得随机数的索引(0~35)
var index = Math.floor(Math.random()*36);
var index = Math.floor(Math.random() * 36);
//根据索引取得随机数加到code上
this.code += random[index];
}
//把code值赋给验证码
this.checkCode = this.code;
},
analyzeItem(obj){
let typeArr=[
{stringArr:'GIF|JPG|JPEG|PNG|BMP',type:1},
{stringArr:'MP3|OGG|AU|AIFF|VQF',type:2},
{stringArr:'AVI|WMV|MPEG|MP4|MOV|MKV|FLV|F4V|M4V|RMVB|RM|3GP|DAT|TS|MTS|VOB',type:3},
{stringArr:'DOCX|DOC|XLSX|XLS|PPT|PPTX',type:4},
{stringArr:'PDF',type:5},
analyzeItem(obj) {
let typeArr = [{
stringArr: 'GIF|JPG|JPEG|PNG|BMP',
type: 1
},
{
stringArr: 'MP3|OGG|AU|AIFF|VQF',
type: 2
},
{
stringArr: 'AVI|WMV|MPEG|MP4|MOV|MKV|FLV|F4V|M4V|RMVB|RM|3GP|DAT|TS|MTS|VOB',
type: 3
},
{
stringArr: 'DOCX|DOC|XLSX|XLS|PPT|PPTX',
type: 4
},
{
stringArr: 'PDF',
type: 5
},
]
let fileTypeNumber; // 判断文件预览类型; 1 图片,2音频,3视频,4,office,, 5 PDF , 6 txt default其他
let fileType=obj.FileUrl.substring(obj.FileUrl.lastIndexOf('.')+1,obj.FileUrl.length).toUpperCase()
typeArr.forEach(x=>{
if(x.stringArr.indexOf(fileType)!='-1')
{
fileTypeNumber=x.type
let fileType = obj.FileUrl.substring(obj.FileUrl.lastIndexOf('.') + 1, obj.FileUrl.length).toUpperCase()
typeArr.forEach(x => {
if (x.stringArr.indexOf(fileType) != '-1') {
fileTypeNumber = x.type
}
})
switch (fileTypeNumber){
switch (fileTypeNumber) {
case 1:
this.list.forEach(item=>{
if(item.shareFileType==2){
let fileType=item.fileName.substring(item.fileName.lastIndexOf('.')+1,item.fileName.length).toUpperCase()
if('GIF|JPG|JPEG|PNG|BMP'.indexOf(fileType)!=-1){
this.list.forEach(item => {
if (item.shareFileType == 2) {
if (item.fileName && item.fileName != '') {
let fileType = item.fileName.substring(item.fileName.lastIndexOf('.') + 1, item.fileName.length)
.toUpperCase()
if ('GIF|JPG|JPEG|PNG|BMP'.indexOf(fileType) != -1) {
this.picObj.push(item.FileUrl)
}
}
}
})
this.picObj.forEach((x,i)=>{
if(x==obj.FileUrl){
this.initialIndex=i
this.picObj.forEach((x, i) => {
if (x == obj.FileUrl) {
this.initialIndex = i
return false
}
})
this.picIsShow=true
this.picIsShow = true
//this.picPath=obj.FilePath
break;
case 2:
this.audioIsShow=true
this.audioName=obj.fileName
this.audioPath=obj.FileUrl
this.audioIsShow = true
this.audioName = obj.fileName
this.audioPath = obj.FileUrl
break;
case 3:
this.outerVisible4=true
this.dialogTitle4=obj.fileName
this.moviePath=obj.FileUrl
this.outerVisible4 = true
this.dialogTitle4 = obj.fileName
this.moviePath = obj.FileUrl
break;
case 4:
window.open("https://view.officeapps.live.com/op/view.aspx?src="+obj.FileUrl)
window.open("https://view.officeapps.live.com/op/view.aspx?src=" + obj.FileUrl)
break;
case 5:
this.previewPDF(obj.FileUrl)
......@@ -532,54 +541,68 @@
}
},
analyzeItemInside(obj){
let typeArr=[
{stringArr:'GIF|JPG|JPEG|PNG|BMP',type:1},
{stringArr:'MP3|OGG|AU|AIFF|VQF',type:2},
{stringArr:'AVI|WMV|MPEG|MP4|MOV|MKV|FLV|F4V|M4V|RMVB|RM|3GP|DAT|TS|MTS|VOB',type:3},
{stringArr:'DOCX|DOC|XLSX|XLS|PPT|PPTX',type:4},
{stringArr:'PDF',type:5},
analyzeItemInside(obj) {
let typeArr = [{
stringArr: 'GIF|JPG|JPEG|PNG|BMP',
type: 1
},
{
stringArr: 'MP3|OGG|AU|AIFF|VQF',
type: 2
},
{
stringArr: 'AVI|WMV|MPEG|MP4|MOV|MKV|FLV|F4V|M4V|RMVB|RM|3GP|DAT|TS|MTS|VOB',
type: 3
},
{
stringArr: 'DOCX|DOC|XLSX|XLS|PPT|PPTX',
type: 4
},
{
stringArr: 'PDF',
type: 5
},
]
let fileTypeNumber; // 判断文件预览类型; 1 图片,2音频,3视频,4,office,, 5 PDF , 6 txt default其他
let fileType=obj.FilePath.substring(obj.FilePath.lastIndexOf('.')+1,obj.FilePath.length).toUpperCase()
typeArr.forEach(x=>{
if(x.stringArr.indexOf(fileType)!='-1')
{
fileTypeNumber=x.type
let fileType = obj.FilePath.substring(obj.FilePath.lastIndexOf('.') + 1, obj.FilePath.length).toUpperCase()
typeArr.forEach(x => {
if (x.stringArr.indexOf(fileType) != '-1') {
fileTypeNumber = x.type
}
})
switch (fileTypeNumber){
switch (fileTypeNumber) {
case 1:
this.nextList.forEach(item=>{
if(item.DataType==2){
let fileType=item.FolderName.substring(item.FolderName.lastIndexOf('.')+1,item.FolderName.length).toUpperCase()
if('GIF|JPG|JPEG|PNG|BMP'.indexOf(fileType)!=-1){
this.nextList.forEach(item => {
if (item.DataType == 2) {
let fileType = item.FolderName.substring(item.FolderName.lastIndexOf('.') + 1, item.FolderName
.length).toUpperCase()
if ('GIF|JPG|JPEG|PNG|BMP'.indexOf(fileType) != -1) {
this.picObj.push(item.FilePath)
}
}
})
this.picObj.forEach((x,i)=>{
if(x==obj.FilePath){
this.initialIndex=i
this.picObj.forEach((x, i) => {
if (x == obj.FilePath) {
this.initialIndex = i
return false
}
})
this.picIsShow=true
this.picIsShow = true
//this.picPath=obj.FilePath
break;
case 2:
this.audioIsShow=true
this.audioName=obj.FolderName
this.audioPath=obj.FilePath
this.audioIsShow = true
this.audioName = obj.FolderName
this.audioPath = obj.FilePath
break;
case 3:
this.outerVisible4=true
this.dialogTitle4=obj.FolderName
this.moviePath=obj.FilePath
this.outerVisible4 = true
this.dialogTitle4 = obj.FolderName
this.moviePath = obj.FilePath
break;
case 4:
window.open("https://view.officeapps.live.com/op/view.aspx?src="+obj.FilePath)
window.open("https://view.officeapps.live.com/op/view.aspx?src=" + obj.FilePath)
break;
case 5:
this.previewPDF(obj.FilePath)
......@@ -590,29 +613,29 @@
}
},
filterArr(obj,length){
return obj.slice(0,length)
filterArr(obj, length) {
return obj.slice(0, length)
},
changeShareType(obj){
let _message=''
let shareId=[]
changeShareType(obj) {
let _message = ''
let shareId = []
shareId.push(obj.shareId)
if(obj.shareStatus==1){
_message=this.$t('objFill.v101.administrative.shifouquxiaofenx')
}else{
_message=this.$t('objFill.v101.administrative.shifouhuiffx')
if (obj.shareStatus == 1) {
_message = this.$t('objFill.v101.administrative.shifouquxiaofenx')
} else {
_message = this.$t('objFill.v101.administrative.shifouhuiffx')
}
this.$confirm(_message, this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning'
}).then(() => {
obj.shareStatus=obj.shareStatus==1?2:1
obj.shareStatus = obj.shareStatus == 1 ? 2 : 1
this.apipost('user_cloud_update_file_share_status', {
shareId:shareId,
shareId: shareId,
shareStatus: obj.shareStatus
}, res => {
if(res.data.resultCode == 1) {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.getList()
} else {
......@@ -626,55 +649,56 @@
dowloadSingle() {
let objKey = [];
this.list.forEach(item => {
if(item.DataType == 2) {
for(let i = 0; i < this.notFileList.length; i++) {
if(this.notFileList[i] == item.Id) {
if (item.DataType == 2) {
for (let i = 0; i < this.notFileList.length; i++) {
if (this.notFileList[i] == item.Id) {
let reg = /^http(s)?:\/\/(.*?)\//
this.downloadFileRename(item.FilePath.replace(reg,''),item.FolderName);
this.downloadFileRename(item.FilePath.replace(reg, ''), item.FolderName);
}
}
}
})
},
downloadOne(obj){
if(obj.shareFileType==1){
this.yzmVisible=true
downloadOne(obj) {
if (obj.shareFileType == 1) {
this.yzmVisible = true
this.createCode()
this.fileList=[]
this.notFileList=[]
this.fileList = []
this.notFileList = []
this.fileList.push(obj.FileId)
}
if(obj.shareFileType==2){
if (obj.shareFileType == 2) {
let reg = /^http(s)?:\/\/(.*?)\//
let dom = document.querySelector("#blankLink")
dom.href = obj.FileUrl
dom.click()
return
this.downloadFileRename(obj.FileUrl.replace(reg,''),obj.fileName);
this.downloadFileRename(obj.FileUrl.replace(reg, ''), obj.fileName);
}
},
downloadTotal() {
if(this.picLyanzhengma.toLocaleUpperCase()==this.checkCode){
this.yzmVisible=false
if (this.picLyanzhengma.toLocaleUpperCase() == this.checkCode) {
this.yzmVisible = false
this.$message.info(this.$t('objFill.v101.administrative.wenjianysqdd'))
this.apipost('user_cloud_GetPackageFile', {
FolderIdStr: this.fileList,
FileIdStr: this.notFileList
}, res => {
if(res.data.resultCode == 1) {
if (res.data.resultCode == 1) {
const link = document.createElement('a');
let _loadUrl = this.domainManager().DomainUrl;
link.href = _loadUrl+res.data.data;
link.href = _loadUrl + res.data.data;
document.body.appendChild(link);
link.click();
this.apipost('user_cloud_DelPackageFile',{Path:link.href},res=>{
},err=>{})
}else{
this.apipost('user_cloud_DelPackageFile', {
Path: link.href
}, res => {}, err => {})
} else {
this.$message.error(res.data.message)
}
}, err => {})
}else{
} else {
this.$message.error(this.$t('objFill.v101.administrative.yanzhnegmcw'))
}
},
......@@ -685,7 +709,7 @@
this.curIndex = -1;
},
checkedAll() {
if(this.isCkedAll == true) {
if (this.isCkedAll == true) {
this.fileList = []
this.notFileList = []
} else {
......@@ -698,7 +722,7 @@
}
},
ckeckedOne() {
if(this.fileList.length + this.notFileList.length < this.allLength) {
if (this.fileList.length + this.notFileList.length < this.allLength) {
this.isCkedAll = false
} else {
this.isCkedAll = true
......@@ -710,7 +734,7 @@
},
addFiles() {
this.apipost('user_cloud_AddFolder', this.addFileMsg, res => {
if(res.data.resultCode == 1) {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.getList()
this.outerVisible = false
......@@ -722,7 +746,7 @@
}, err => {})
},
deleteFiles() {
this.$confirm(this.$t('objFill.v101.administrative.shancwjfxzwjjbs')+'?', this.$t('tips.tips'), {
this.$confirm(this.$t('objFill.v101.administrative.shancwjfxzwjjbs') + '?', this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning'
......@@ -731,7 +755,7 @@
FolderIdStr: this.fileList,
FileIdStr: this.notFileList
}, res => {
if(res.data.resultCode == 1) {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.getList()
} else {
......@@ -751,7 +775,7 @@
this.apipost('user_cloud_delete_file_share', {
shareId: obj.shareId,
}, res => {
if(res.data.resultCode == 1) {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.getList()
} else {
......@@ -768,12 +792,12 @@
this.outerVisible2 = true
},
handleNodeChange(data, checked) {
if(checked) {
if (checked) {
this.arr.push(data.Id)
this.$refs.tree.setCheckedKeys([data.Id]);
this.MoveMsg.FolderId = data.Id;
} else {
if(this.arr.length == 1) {
if (this.arr.length == 1) {
this.arr = []
this.MoveMsg.FolderId = '0'
} else {
......@@ -786,7 +810,7 @@
this.MoveMsg.FolderIdStr = this.fileList
this.MoveMsg.FileIdStr = this.notFileList
this.apipost('user_cloud_BatchFolderMove', this.MoveMsg, res => {
if(res.data.resultCode == 1) {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.outerVisible2 = false;
this.getList()
......@@ -796,72 +820,72 @@
}, err => {})
},
updateShareOneDialog(obj) {
// let resetArr=obj.TargetIds.split(',')
// this.outerVisible3 = true
// this.dialogTitle3 = this.$t('objFill.v101.administrative.fenxwjwjj')
// this.shareMsg.shareId = obj.shareId;
// if(obj.shareType==1){ //文件夹
// this.fileList=[]
// this.notFileList=[]
// this.fileList.push(obj.Id)
// }
// if(obj.shareType==2){ //文件
// this.fileList=[]
// this.notFileList=[]
// this.notFileList.push(obj.Id)
// }
// if(obj.shareType==1){ //部门
// this.shareMsg.shareType=1
// //let departMentArr=resetArr
// this.$refs.treeDepartmentList.setCheckedKeys(resetArr);
// }
// if(obj.shareType==2){ //岗位
// this.shareMsg.shareType=2
// this.$refs.treeRole.setCheckedKeys(resetArr);
// }
// if(obj.shareType==3){ //员工
// this.shareMsg.shareType=3
// this.$refs.treeMenber.setCheckedKeys(resetArr);
// }
// let resetArr=obj.TargetIds.split(',')
// this.outerVisible3 = true
// this.dialogTitle3 = this.$t('objFill.v101.administrative.fenxwjwjj')
// this.shareMsg.shareId = obj.shareId;
// if(obj.shareType==1){ //文件夹
// this.fileList=[]
// this.notFileList=[]
// this.fileList.push(obj.Id)
// }
// if(obj.shareType==2){ //文件
// this.fileList=[]
// this.notFileList=[]
// this.notFileList.push(obj.Id)
// }
// if(obj.shareType==1){ //部门
// this.shareMsg.shareType=1
// //let departMentArr=resetArr
// this.$refs.treeDepartmentList.setCheckedKeys(resetArr);
// }
// if(obj.shareType==2){ //岗位
// this.shareMsg.shareType=2
// this.$refs.treeRole.setCheckedKeys(resetArr);
// }
// if(obj.shareType==3){ //员工
// this.shareMsg.shareType=3
// this.$refs.treeMenber.setCheckedKeys(resetArr);
// }
this.getDepartment()
this.getRole()
this.getMenber()
this.crtData=obj
this.crtData = obj
},
loadRightData(){
let obj=this.crtData
let resetArr=obj.TargetIds.split(',')
loadRightData() {
let obj = this.crtData
let resetArr = obj.TargetIds.split(',')
this.outerVisible3 = true
this.dialogTitle3 = this.$t('objFill.v101.administrative.fenxwjwjj')
this.shareMsg.shareId = obj.shareId;
if(obj.shareType==1){ //文件夹
this.fileList=[]
this.notFileList=[]
if (obj.shareType == 1) { //文件夹
this.fileList = []
this.notFileList = []
this.fileList.push(obj.Id)
}
if(obj.shareType==2){ //文件
this.fileList=[]
this.notFileList=[]
if (obj.shareType == 2) { //文件
this.fileList = []
this.notFileList = []
this.notFileList.push(obj.Id)
}
if(obj.shareType==1){ //部门
this.shareMsg.shareType=1
if (obj.shareType == 1) { //部门
this.shareMsg.shareType = 1
//let departMentArr=resetArr
let that=this
let that = this
this.$nextTick(() => {
this.$refs.treeDepartmentList.setCheckedKeys(resetArr);
});
}
if(obj.shareType==2){ //岗位
this.shareMsg.shareType=2
let that=this
if (obj.shareType == 2) { //岗位
this.shareMsg.shareType = 2
let that = this
this.$nextTick(() => {
this.$refs.treeRole.setCheckedKeys(resetArr);
});
}
if(obj.shareType==3){ //员工
this.shareMsg.shareType=3
let that=this
if (obj.shareType == 3) { //员工
this.shareMsg.shareType = 3
let that = this
this.$nextTick(() => {
that.$refs.treeMenber.setCheckedKeys(resetArr);
});
......@@ -876,57 +900,60 @@
this.getMenber()
},
//按照集团分享
shareGroup(){
this.shareMsg.shareType=4;
},
shareDeparment(){
this.shareMsg.shareType=1
this.ckdRoleList=[]
this.ckdRoleListId=[]
this.ckdMenberList=[]
this.ckdMenberListId=[]
},
shareRole(){
this.shareMsg.shareType=2
this.ckdDepartmentList=[]
this.ckdDepartmentListId=[]
this.ckdMenberList=[]
this.ckdMenberListId=[]
},
shareMenber(){
this.shareMsg.shareType=3
this.ckdDepartmentList=[]
this.ckdDepartmentListId=[]
this.ckdRoleList=[]
this.ckdRoleListId=[]
shareGroup() {
this.shareMsg.shareType = 4;
},
shareDeparment() {
this.shareMsg.shareType = 1
this.ckdRoleList = []
this.ckdRoleListId = []
this.ckdMenberList = []
this.ckdMenberListId = []
},
shareRole() {
this.shareMsg.shareType = 2
this.ckdDepartmentList = []
this.ckdDepartmentListId = []
this.ckdMenberList = []
this.ckdMenberListId = []
},
shareMenber() {
this.shareMsg.shareType = 3
this.ckdDepartmentList = []
this.ckdDepartmentListId = []
this.ckdRoleList = []
this.ckdRoleListId = []
},
getDepartment() { //部门
this.apipost('app_get_GetCompanyDepartmentListTree', {}, res => {
if(res.data.resultCode == 1) {
if (res.data.resultCode == 1) {
this.departmentList = res.data.data
return true
}else{
} else {
return false
}
this.loadRightData()
}, err => {})
},
DepartmentListNodeChange(data,checked){
if(checked){
this.ckdDepartmentList.push({name:data.DepartmentName,id:data.DepartmentId})
DepartmentListNodeChange(data, checked) {
if (checked) {
this.ckdDepartmentList.push({
name: data.DepartmentName,
id: data.DepartmentId
})
this.ckdDepartmentListId.push(data.DepartmentId)
}
if(!checked){
if(this.ckdDepartmentList.findIndex(item => item.id === data.DepartmentId)!=-1){
if (!checked) {
if (this.ckdDepartmentList.findIndex(item => item.id === data.DepartmentId) != -1) {
this.ckdDepartmentList.splice(this.ckdDepartmentList.findIndex(item => item.id === data.DepartmentId), 1)
}
if(this.ckdDepartmentListId.findIndex(item => item === data.DepartmentId)!=-1){
if (this.ckdDepartmentListId.findIndex(item => item === data.DepartmentId) != -1) {
this.ckdDepartmentListId.splice(this.ckdDepartmentListId.findIndex(item => item === data.DepartmentId), 1)
}
}
},
deleteDepartment(id){
deleteDepartment(id) {
this.ckdDepartmentList.splice(this.ckdDepartmentList.findIndex(item => item.id === id), 1)
this.ckdDepartmentListId.splice(this.ckdDepartmentListId.findIndex(item => item === id), 1) //删除相同id
this.$refs.treeDepartmentList.setCheckedKeys(this.ckdDepartmentListId);
......@@ -934,30 +961,33 @@
getRole() { //岗位
this.apipost('WorkFlow_get_GetCompanyDepartMentPost', {}, res => {
if(res.data.resultCode == 1) {
if (res.data.resultCode == 1) {
this.roleList = res.data.data
return true
}else{
} else {
return false
}
this.loadRightData()
}, err => {})
},
roleListNodeChange(data,checked){
if(data.Type == 2 &&checked){
this.ckdRoleList.push({name:data.DepartmentName,id:data.DepartmentId})
roleListNodeChange(data, checked) {
if (data.Type == 2 && checked) {
this.ckdRoleList.push({
name: data.DepartmentName,
id: data.DepartmentId
})
this.ckdRoleListId.push(data.DepartmentId)
}
if(data.Type == 2 &&!checked){
if(this.ckdRoleList.findIndex(item => item.id === data.DepartmentId)!=-1){
if (data.Type == 2 && !checked) {
if (this.ckdRoleList.findIndex(item => item.id === data.DepartmentId) != -1) {
this.ckdRoleList.splice(this.ckdRoleList.findIndex(item => item.id === data.DepartmentId), 1)
}
if(this.ckdRoleListId.findIndex(item => item === data.DepartmentId)!=-1){
if (this.ckdRoleListId.findIndex(item => item === data.DepartmentId) != -1) {
this.ckdRoleListId.splice(this.ckdRoleListId.findIndex(item => item === data.DepartmentId), 1) //删除相同id
}
}
},
deleteRole(id){
deleteRole(id) {
this.ckdRoleList.splice(this.ckdRoleList.findIndex(item => item.id === id), 1)
this.ckdRoleListId.splice(this.ckdRoleListId.findIndex(item => item === id), 1)
//删除相同id
......@@ -965,61 +995,64 @@
},
getMenber() { //员工
let that=this
let that = this
this.apipost('WorkFlow_get_GetCompanyDepartMentEmployee', {}, res => {
if(res.data.resultCode == 1) {
if (res.data.resultCode == 1) {
this.menberList = res.data.data
}
this.loadRightData()
}, err => {})
},
MenberListNodeChange(data,checked){
if(data.Type == 2 &&checked){
this.ckdMenberList.push({name:data.DepartmentName,id:data.DepartmentId})
MenberListNodeChange(data, checked) {
if (data.Type == 2 && checked) {
this.ckdMenberList.push({
name: data.DepartmentName,
id: data.DepartmentId
})
this.ckdMenberListId.push(data.DepartmentId)
}
if(data.Type == 2 &&!checked){
if(this.ckdMenberList.findIndex(item => item.id === data.DepartmentId)!=-1){
if (data.Type == 2 && !checked) {
if (this.ckdMenberList.findIndex(item => item.id === data.DepartmentId) != -1) {
this.ckdMenberList.splice(this.ckdMenberList.findIndex(item => item.id === data.DepartmentId), 1)
}
if(this.ckdMenberListId.findIndex(item => item === data.DepartmentId)!=-1){
if (this.ckdMenberListId.findIndex(item => item === data.DepartmentId) != -1) {
this.ckdMenberListId.splice(this.ckdMenberListId.findIndex(item => item === data.DepartmentId), 1) //删除相同id
}
}
},
deleteMenber(id){
deleteMenber(id) {
this.ckdMenberList.splice(this.ckdMenberList.findIndex(item => item.id === id), 1)
this.ckdMenberListId.splice(this.ckdMenberListId.findIndex(item => item === id), 1) //删除相同id
this.$refs.treeMenber.setCheckedKeys(this.ckdMenberListId);
},
saveShareDocument(){
saveShareDocument() {
let targetIds = []
if(this.shareMsg.shareType==1){
targetIds=this.ckdDepartmentListId
}else if(this.shareMsg.shareType==2){
targetIds=this.ckdRoleListId
}else{
targetIds=this.ckdMenberListId
if (this.shareMsg.shareType == 1) {
targetIds = this.ckdDepartmentListId
} else if (this.shareMsg.shareType == 2) {
targetIds = this.ckdRoleListId
} else {
targetIds = this.ckdMenberListId
}
this.shareMsg.targetIds = targetIds.join(",")
if(this.shareMsg.shareType==4){
if (this.shareMsg.shareType == 4) {
let userInfo = this.getLocalStorage();
this.shareMsg.targetIds = userInfo.RB_Group_id;
}
//this.shareMsg.fileIds=this.notFileList
//this.shareMsg.folderIds=this.fileList
this.apipost('user_cloud_update_file_share_target',this.shareMsg,res=>{
if(res.data.resultCode == 1) {
this.outerVisible3=false
this.apipost('user_cloud_update_file_share_target', this.shareMsg, res => {
if (res.data.resultCode == 1) {
this.outerVisible3 = false
this.$message.success(res.data.message)
this.getList()
}else{
} else {
this.$message.error(res.data.message)
}
},err=>{})
}, err => {})
},
updateFiles(obj) {
......@@ -1037,7 +1070,7 @@
},
saveUpdateFile() {
this.apipost('user_cloud_UpdateFile', this.updateFileMsg, res => {
if(res.data.resultCode == 1) {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.outerVisible = false;
this.getList()
......@@ -1048,19 +1081,23 @@
},
getList() {
this.apipost('user_cloud_mye_share', this.msg, res => {
if(res.data.resultCode == 1) {
res.data.data.pageData.forEach(item=>{
if(item.shareFileType==1){
item.icons=this.loadFileICON('')
if (res.data.resultCode == 1) {
res.data.data.pageData.forEach(item => {
if (item.shareFileType == 1) {
item.icons = this.loadFileICON('')
}
if(item.shareFileType==2){
let fileType=item.fileName.substring(item.fileName.lastIndexOf('.')+1,item.fileName.length).toLowerCase()
item.icons=this.loadFileICON(fileType)
if (item.shareFileType == 2) {
if (item.fileName && item.fileName != '') {
let fileType = item.fileName.substring(item.fileName.lastIndexOf('.') + 1, item.fileName
.length).toLowerCase()
item.icons = this.loadFileICON(fileType)
}
}
})
this.list = res.data.data.pageData.map(x=>{
x['isOpen']=false
this.list = res.data.data.pageData.map(x => {
x['isOpen'] = false
return x
})
this.NavigationList = res.data.data.Navigation
......@@ -1070,38 +1107,45 @@
getNextLevel(obj) {
this.nextMsg.ParentId = obj.FileId
this.getNextLevelList()
this.NavList.push({name:obj.fileName,id:obj.FileId})
this.isChildFiles=true
this.NavList.push({
name: obj.fileName,
id: obj.FileId
})
this.isChildFiles = true
},
getNextLevelTree(obj) {
this.nextMsg.ParentId = obj.Id
this.getNextLevelList()
this.NavList.push({name:obj.FolderName,id:obj.Id})
this.isChildFiles=true
this.NavList.push({
name: obj.FolderName,
id: obj.Id
})
this.isChildFiles = true
},
getNavTree(obj,index){
getNavTree(obj, index) {
this.nextMsg.ParentId = obj.id
this.getNextLevelList()
this.NavList=this.NavList.slice(0,index+1)
this.NavList = this.NavList.slice(0, index + 1)
},
resGetList(){
resGetList() {
this.isChildFiles=false;
this.NavList=[]
this.isChildFiles = false;
this.NavList = []
this.getlist()
},
getNextLevelList(){
getNextLevelList() {
this.apipost('user_cloud_GetFolderList', this.nextMsg, res => {
if(res.data.resultCode == 1) {
if (res.data.resultCode == 1) {
this.nextList = res.data.data.data
this.nextList.forEach(item=>{
if(item.DataType==0){
item.icons=this.loadFileICON('')
this.nextList.forEach(item => {
if (item.DataType == 0) {
item.icons = this.loadFileICON('')
}
if(item.DataType==2){
let fileType=item.FolderName.substring(item.FolderName.lastIndexOf('.')+1,item.FolderName.length).toLowerCase()
item.icons=this.loadFileICON(fileType)
if (item.DataType == 2) {
let fileType = item.FolderName.substring(item.FolderName.lastIndexOf('.') + 1, item.FolderName
.length).toLowerCase()
item.icons = this.loadFileICON(fileType)
}
})
}
......@@ -1109,14 +1153,14 @@
},
getTreeList() {
this.apipost('user_cloud_GetFolderTreeList', {}, res => {
if(res.data.resultCode == 1) {
if (res.data.resultCode == 1) {
this.fileTreeList = res.data.data
} else {}
}, err => {})
},
submitForm(addMsg) { //提交创建、修改表单
this.$refs[addMsg].validate((valid) => {
if(valid) {
if (valid) {
this.addFiles()
} else {
return false;
......@@ -1129,73 +1173,89 @@
},
},
mounted() {
let userInfo=this.getLocalStorage();
let userInfo = this.getLocalStorage();
this.getList()
},
created(){
created() {
this.createCode()
}
}
</script>
<style>
.myDocumentShareDiv{
.myDocumentShareDiv {
max-height: 400px;
overflow: auto;
}
.myDocumentShareDiv::-webkit-scrollbar,.myDocumentShareTree::-webkit-scrollbar,.myDocumentShareObject::-webkit-scrollbar{
.myDocumentShareDiv::-webkit-scrollbar,
.myDocumentShareTree::-webkit-scrollbar,
.myDocumentShareObject::-webkit-scrollbar {
/*滚动条整体样式*/
width: 4px;
/*高宽分别对应横竖滚动条的尺寸*/
height: 1px;
}
.myDocumentShareDiv::-webkit-scrollbar-thumb,.myDocumentShareTree::-webkit-scrollbar-thumb,.myDocumentShareObject::-webkit-scrollbar-thumb{
}
.myDocumentShareDiv::-webkit-scrollbar-thumb,
.myDocumentShareTree::-webkit-scrollbar-thumb,
.myDocumentShareObject::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 4px;
-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
background: #c9c9c9;
}
.myDocumentShareDiv::-webkit-scrollbar-track,.myDocumentShareTree::-webkit-scrollbar-track,.myDocumentShareObject::-webkit-scrollbar-track{
}
.myDocumentShareDiv::-webkit-scrollbar-track,
.myDocumentShareTree::-webkit-scrollbar-track,
.myDocumentShareObject::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
border-radius: 4px;
background: #EDEDED;
}
.myDocumentShareTree{
}
.myDocumentShareTree {
float: left;
padding:10px;
padding: 10px;
width: 400px;
max-height: 400px;
overflow: auto;
border-right: 1px solid #f9f9f9;
}
.myDocumentShareObject{
.myDocumentShareObject {
padding: 10px;
width: 380px;
max-height: 400px;
overflow: auto;
float: left;
}
.myDocumentShareObject li{
.myDocumentShareObject li {
height: 24px;
line-height: 24px;
width: 100%;
}
.myDocumentShareObject li:hover{
.myDocumentShareObject li:hover {
background: #f9f9f9;
}
.myDocumentShareObject li i{
.myDocumentShareObject li i {
float: right;
cursor: pointer;
margin: 5px 0;
}
.myDocumentsNav {
margin: 25px 0;
}
.myDocumentsTable td,
.myDocumentsTable th {
text-align: left!important;
text-align: left !important;
padding-left: 15px;
}
......@@ -1231,7 +1291,7 @@
}
.shareDocumentDialog .el-dialog__body {
padding: 0!important;
padding: 0 !important;
}
.documentDialogNav {
......@@ -1263,11 +1323,14 @@
border-color: transparent transparent #fff;
/*透明 透明 灰*/
}
.DocumentLoadVerification{
width: 120px; height: 30px;
.DocumentLoadVerification {
width: 120px;
height: 30px;
border-radius: 4px;
letter-spacing: 5px;
border:none; background: #f56c6c;
border: none;
background: #f56c6c;
color: #eee;
cursor: pointer;
}
......
......@@ -214,7 +214,6 @@
saveGuestSurvey() {
this.saveLoading = true;
var postMsg = [];
console.log("this.dataList2", JSON.parse(JSON.stringify(this.dataList)))
if (this.dataList && this.dataList.length > 0) {
this.dataList.forEach(item => {
item.GuestId = this.qMsg.GuestId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment