Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xxx_phase2_web
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
夏敏伟
xxx_phase2_web
Commits
9f367568
Commit
9f367568
authored
Apr 11, 2024
by
夏敏伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加外部邮箱链接 增加弹框内树状结构目录树
parent
e87cd2b3
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
283 additions
and
64 deletions
+283
-64
src/components/common/bigfile_upload.vue
src/components/common/bigfile_upload.vue
+76
-21
src/view/home.vue
src/view/home.vue
+4
-1
src/view/sjgl/wx_data_public.vue
src/view/sjgl/wx_data_public.vue
+7
-21
src/view/sjgl/wxk_public.vue
src/view/sjgl/wxk_public.vue
+196
-21
No files found.
src/components/common/bigfile_upload.vue
View file @
9f367568
<
template
>
<
template
>
<div>
<div
style=
"margin-bottom:20px;display: grid;grid-template-columns: 80px auto;"
>
<span
style=
"margin-top:20px;color: white;"
>
选择目录:
</span>
<el-tree
class=
"myTree"
:data=
"treeData"
node-key=
"id"
show-checkbox
:expand-on-click-node=
"false"
:default-expanded-keys=
"[fl_type]"
highlight-current
:props=
"defaultProps"
:check-strictly=
"true"
ref=
"tree"
@
check-change=
"handleCheckChange"
:indent=
1
>
</el-tree>
</div>
<div
class=
"uploadWrapper"
>
<div
class=
"uploadWrapper"
>
<div
class=
"btnUpload"
>
<div
class=
"btnUpload"
>
<div
id=
"picker"
class=
"form-control-focus"
>
点击选择文件上传
</div>
<div
id=
"picker"
class=
"form-control-focus"
>
点击选择文件上传
</div>
...
@@ -19,6 +27,7 @@
...
@@ -19,6 +27,7 @@
</div>
</div>
<el-button
class=
"startUpload"
type=
"primary"
@
click=
"upload()"
>
开始上传
</el-button>
<el-button
class=
"startUpload"
type=
"primary"
@
click=
"upload()"
>
开始上传
</el-button>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
$
from
"
jquery
"
;
import
$
from
"
jquery
"
;
...
@@ -32,12 +41,25 @@ export default {
...
@@ -32,12 +41,25 @@ export default {
},
},
checkFileExist
:
{
checkFileExist
:
{
type
:
Function
type
:
Function
},
treeDataBig
:
{
type
:
Array
},
flType
:{
type
:
Number
}
}
},
},
data
()
{
data
()
{
return
{
return
{
fileList
:
[],
fileList
:
[],
headers
:
{
'
x-requested-with
'
:
'
XMLHttpRequest
'
}
headers
:
{
'
x-requested-with
'
:
'
XMLHttpRequest
'
},
clientDetails_check_type
:
[],
treeData
:
[],
defaultProps
:
{
children
:
'
children
'
,
label
:
'
label
'
},
fl_type
:
0
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -139,8 +161,9 @@ export default {
...
@@ -139,8 +161,9 @@ export default {
name
:
file
.
name
,
name
:
file
.
name
,
size
:
file
.
size
,
size
:
file
.
size
,
type
:
file
.
ext
,
type
:
file
.
ext
,
uuid
:
file
.
uid
+
"
.
"
+
file
.
ext
,
uuid
:
file
.
uid
+
"
.
"
+
file
.
ext
}
},
treeId
:
_self
.
clientDetails_check_type
});
});
}
else
{
}
else
{
return
Promise
.
resolve
(
res
);
return
Promise
.
resolve
(
res
);
...
@@ -235,6 +258,13 @@ export default {
...
@@ -235,6 +258,13 @@ export default {
},
},
methods
:
{
methods
:
{
upload
()
{
upload
()
{
if
(
this
.
clientDetails_check_type
.
length
==
0
||
this
.
clientDetails_check_type
.
includes
(
1
)
||
this
.
clientDetails_check_type
.
includes
(
2
)
||
this
.
clientDetails_check_type
.
includes
(
3
)
||
this
.
clientDetails_check_type
.
includes
(
4
))
{
this
.
$message
({
type
:
"
warning
"
,
message
:
"
请选择文档列表子节点
"
,
});
return
;
}
this
.
uploader
.
upload
();
this
.
uploader
.
upload
();
},
},
removeFile
(
item
,
index
)
{
removeFile
(
item
,
index
)
{
...
@@ -275,13 +305,38 @@ export default {
...
@@ -275,13 +305,38 @@ export default {
}
}
}).
catch
(
err
=>
reject
(
err
));
}).
catch
(
err
=>
reject
(
err
));
})
})
},
handleCheckChange
(
node
,
isSelected
)
{
if
(
isSelected
)
{
this
.
clientDetails_check_type
.
push
(
node
.
id
);
}
else
{
this
.
clientDetails_check_type
=
this
.
clientDetails_check_type
.
filter
(
item
=>
{
return
item
!=
node
.
id
})
}
}
console
.
log
(
this
.
clientDetails_check_type
);
}
},
watch
:
{
treeDataBig
:
{
handler
(
newVal
,
oldVal
)
{
this
.
treeData
=
newVal
;
this
.
clientDetails_check_type
=
[];
},
},
immediate
:
true
},
flType
:{
handler
(
newVal
,
oldVal
)
{
this
.
fl_type
=
newVal
;
},
immediate
:
true
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scope
>
<
style
lang=
"scss"
scope
>
.uploadWrapper
{
.uploadWrapper
{
height
:
524
px
;
min-height
:
300
px
;
}
}
#picker
>
div
:nth-child
(
2
)
{
#picker
>
div
:nth-child
(
2
)
{
...
...
src/view/home.vue
View file @
9f367568
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
<el-dropdown-menu
slot=
"dropdown"
class=
"hide-drop"
>
<el-dropdown-menu
slot=
"dropdown"
class=
"hide-drop"
>
<el-dropdown-item
v-for=
"(item, index) in manager_module_backstage"
v-text=
"item.name"
<el-dropdown-item
v-for=
"(item, index) in manager_module_backstage"
v-text=
"item.name"
:command=
"item.name"
:key=
"index"
></el-dropdown-item>
:command=
"item.name"
:key=
"index"
></el-dropdown-item>
<el-dropdown-item
command=
"邮箱"
>
邮箱
</el-dropdown-item>
<el-dropdown-item
command=
"修改密码"
>
修改密码
</el-dropdown-item>
<el-dropdown-item
command=
"修改密码"
>
修改密码
</el-dropdown-item>
<el-dropdown-item
command=
"安全退出"
>
安全退出
</el-dropdown-item>
<el-dropdown-item
command=
"安全退出"
>
安全退出
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
...
@@ -81,7 +82,7 @@ import { endLoading, get, post, httpSSERequest, fetchEventSource, httpSSERequest
...
@@ -81,7 +82,7 @@ import { endLoading, get, post, httpSSERequest, fetchEventSource, httpSSERequest
import
{
queryDictItem
}
from
'
../api/dictitem
'
;
import
{
queryDictItem
}
from
'
../api/dictitem
'
;
import
Push
from
'
push.js
'
import
Push
from
'
push.js
'
import
dayjs
from
'
dayjs
'
;
import
dayjs
from
'
dayjs
'
;
import
{
SYSTEM_NAME
}
from
"
@/constant/user
"
;
import
{
SYSTEM_NAME
,
MAIL_ADDRESS
}
from
"
@/constant/user
"
;
export
default
{
export
default
{
name
:
"
home
"
,
name
:
"
home
"
,
data
()
{
data
()
{
...
@@ -168,6 +169,8 @@ export default {
...
@@ -168,6 +169,8 @@ export default {
this
.
$router
.
push
(
"
xx
"
);
this
.
$router
.
push
(
"
xx
"
);
}
else
if
(
command
==
'
修改密码
'
)
{
}
else
if
(
command
==
'
修改密码
'
)
{
this
.
dialogVisible
=
true
;
this
.
dialogVisible
=
true
;
}
else
if
(
command
==
'
邮箱
'
)
{
window
.
open
(
MAIL_ADDRESS
);
}
}
},
},
handleClose
(
key
,
keyPath
)
{
},
handleClose
(
key
,
keyPath
)
{
},
...
...
src/view/sjgl/wx_data_public.vue
View file @
9f367568
...
@@ -3,10 +3,10 @@
...
@@ -3,10 +3,10 @@
<div
class=
"left-div"
>
<div
class=
"left-div"
>
<el-input
class=
"public-input"
placeholder=
"输入关键字进行过滤"
suffix-icon=
"el-icon-search"
<el-input
class=
"public-input"
placeholder=
"输入关键字进行过滤"
suffix-icon=
"el-icon-search"
v-model=
"filterText"
></el-input>
v-model=
"filterText"
></el-input>
<el-tree
class=
"myTree"
:data=
"tree_data"
node-key=
"id"
show-checkbox
:expand-on-click-node=
"false"
<el-tree
class=
"myTree"
:data=
"tree_data"
node-key=
"id"
:expand-on-click-node=
"false"
:filter-node-method=
"filterNode"
highlight-current
:default-expanded-keys=
"[this.fl_type]"
:props=
"defaultProps"
:filter-node-method=
"filterNode"
highlight-current
:default-expanded-keys=
"[this.fl_type]"
:props=
"defaultProps"
:check-strictly=
"true"
ref=
"tree"
:current-node-key=
"this.fl_type"
@
node-click=
"handleNodeClick"
ref=
"tree"
:current-node-key=
"this.fl_type"
@
node-click=
"handleNodeClick"
@
check-change=
"handleCheckChange"
:indent=
1
>
:indent=
1
>
<span
class=
"custom-tree-node"
slot-scope=
"
{ node, data }">
<span
class=
"custom-tree-node"
slot-scope=
"
{ node, data }">
<span
class=
"first-span"
:title=
"node.label"
>
{{
node
.
label
}}
</span>
<span
class=
"first-span"
:title=
"node.label"
>
{{
node
.
label
}}
</span>
<span
class=
"list-span"
>
<span
class=
"list-span"
>
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
</el-tree>
</el-tree>
</div>
</div>
<div
class=
"right-div"
>
<div
class=
"right-div"
>
<component
:is=
"currentRole"
:clientDetails=
"clientDetails_s"
ref=
"mychild"
/>
<component
:is=
"currentRole"
:clientDetails=
"clientDetails_s"
:treeData=
"tree_data"
ref=
"mychild"
/>
</div>
</div>
<el-dialog
title=
"新增文件夹"
:visible.sync=
"dialogVisible"
>
<el-dialog
title=
"新增文件夹"
:visible.sync=
"dialogVisible"
>
<span
class=
"dialogContent"
><span><span
style=
"color:red"
>
*
</span>
名称:
</span>
<span
class=
"dialogContent"
><span><span
style=
"color:red"
>
*
</span>
名称:
</span>
...
@@ -66,7 +66,7 @@ export default {
...
@@ -66,7 +66,7 @@ export default {
components
:
{
navs
},
components
:
{
navs
},
data
()
{
data
()
{
return
{
return
{
clientDetails_s
:
{
type
:
[
this
.
fl_type
],
module_name
:
this
.
module_name
,
type_folder
:
this
.
type_folder
,
fl_type
:
this
.
fl_type
,
checkList
:
[]
},
clientDetails_s
:
{
type
:
[
this
.
fl_type
],
module_name
:
this
.
module_name
,
type_folder
:
this
.
type_folder
,
fl_type
:
this
.
fl_type
},
currentRole
:
"
navs
"
,
currentRole
:
"
navs
"
,
tree_data
:
[],
//左侧树结构的数据
tree_data
:
[],
//左侧树结构的数据
dialogVisible
:
false
,
//新增子节点弹出框
dialogVisible
:
false
,
//新增子节点弹出框
...
@@ -83,7 +83,6 @@ export default {
...
@@ -83,7 +83,6 @@ export default {
module_name
:
''
,
module_name
:
''
,
fl_type
:
''
,
fl_type
:
''
,
type_folder
:
''
,
type_folder
:
''
,
checkboxList
:
[],
nodeClickList
:
[]
nodeClickList
:
[]
};
};
},
},
...
@@ -222,7 +221,7 @@ export default {
...
@@ -222,7 +221,7 @@ export default {
if
(
res
.
length
>
0
)
{
if
(
res
.
length
>
0
)
{
arr
.
push
(
res
[
0
].
id
)
arr
.
push
(
res
[
0
].
id
)
}
}
this
.
clientDetails_s
=
{
type
:
arr
,
module_name
:
this
.
module_name
,
type_folder
:
this
.
type_folder
,
fl_type
:
this
.
fl_type
,
checkList
:
this
.
checkboxList
};
this
.
clientDetails_s
=
{
type
:
arr
,
module_name
:
this
.
module_name
,
type_folder
:
this
.
type_folder
,
fl_type
:
this
.
fl_type
};
})
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
this
.
$message
.
warning
(
err
.
message
);
...
@@ -239,19 +238,7 @@ export default {
...
@@ -239,19 +238,7 @@ export default {
if
(
data
.
childNodes
.
length
>
0
)
{
if
(
data
.
childNodes
.
length
>
0
)
{
this
.
nodeClickList
.
push
(
data
.
childNodes
[
0
].
data
.
id
)
this
.
nodeClickList
.
push
(
data
.
childNodes
[
0
].
data
.
id
)
}
}
this
.
clientDetails_s
=
{
type
:
this
.
nodeClickList
,
module_name
:
this
.
module_name
,
type_folder
:
this
.
type_folder
,
fl_type
:
this
.
fl_type
,
checkList
:
this
.
checkboxList
};
this
.
clientDetails_s
=
{
type
:
this
.
nodeClickList
,
module_name
:
this
.
module_name
,
type_folder
:
this
.
type_folder
,
fl_type
:
this
.
fl_type
};
},
handleCheckChange
(
node
,
isSelected
)
{
this
.
currentRole
=
"
navs
"
;
if
(
isSelected
)
{
this
.
checkboxList
.
push
(
node
.
id
);
}
else
{
this
.
checkboxList
=
this
.
checkboxList
.
filter
(
item
=>
{
return
item
!=
node
.
id
})
}
// this.clientDetails_s['checkList'] = this.checkboxList;
this
.
clientDetails_s
=
{
type
:
this
.
nodeClickList
,
module_name
:
this
.
module_name
,
type_folder
:
this
.
type_folder
,
fl_type
:
this
.
fl_type
,
checkList
:
this
.
checkboxList
};
}
}
},
},
watch
:
{
watch
:
{
...
@@ -262,7 +249,6 @@ export default {
...
@@ -262,7 +249,6 @@ export default {
this
.
module_name
=
val
.
module_name
;
this
.
module_name
=
val
.
module_name
;
this
.
fl_type
=
val
.
fl_type
;
this
.
fl_type
=
val
.
fl_type
;
this
.
type_folder
=
val
.
type_folder
;
this
.
type_folder
=
val
.
type_folder
;
this
.
checkboxList
=
[];
this
.
query_tree
();
this
.
query_tree
();
},
},
},
},
...
...
src/view/sjgl/wxk_public.vue
View file @
9f367568
This diff is collapsed.
Click to expand it.
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