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