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
83e1467f
Commit
83e1467f
authored
Jan 31, 2020
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
6132de28
b93ba9b2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
6 deletions
+64
-6
workDetails.vue
src/components/work/workDetails.vue
+58
-6
workManager.vue
src/components/work/workManager.vue
+6
-0
No files found.
src/components/work/workDetails.vue
View file @
83e1467f
...
...
@@ -57,8 +57,7 @@
<p
v-if=
"d.w"
>
{{
d
.
w
.
CreateName
}}
提交于
{{
item
.
CreateDate
}}
</p>
<div
class=
"cont"
>
{{
item
.
Content
}}
</div>
<div
class=
"attach"
>
附件:无
<!--
<a
href=
"http://baidu.com"
target=
"_blank"
></a>
-->
附件:
<span
@
click=
"openFile(item.Attach)"
style=
"cursor: pointer;"
>
{{
item
.
Attach
!==
""
?
item
.
Attach
:
'无'
}}
</span>
</div>
</el-card>
</div>
...
...
@@ -107,8 +106,6 @@
<el-col
:span=
"1"
>
当前进度:
</el-col>
<el-col
:span=
"4"
><el-slider
v-model=
"progree"
:min=
"d.w.Progree"
:max=
"100"
:step=
"1"
></el-slider></el-col>
</el-row>
</div>
<div
style=
"margin-bottom:10px"
>
<el-input
...
...
@@ -119,6 +116,21 @@
v-model=
"textarea2"
>
</el-input>
</div>
<div
style=
"margin-bottom:10px;width: 29%;"
>
<el-upload
class=
"upload-demo"
drag
:http-request=
"uploadFileBtn"
:multiple=
"true"
:show-file-list=
"true"
:on-preview=
"previewFile"
:on-remove=
"removeFile"
:limit=
"1"
action=
""
>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em></div>
</el-upload>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
class=
"normalBtn"
...
...
@@ -128,6 +140,9 @@
</div>
</fieldset>
</div>
<viewer
:images=
"images"
:options=
'imageOptions'
@
inited=
"inited"
class=
"viewer"
ref=
"viewer"
>
<img
v-for=
"src in images"
:src=
"src"
:key=
"src"
>
</viewer>
</div>
</
template
>
...
...
@@ -141,7 +156,14 @@ export default {
isUpdate
:
false
,
textarea
:
''
,
textarea2
:
''
,
progree
:
0
progree
:
0
,
fileList
:
[],
attach
:
''
,
imageOptions
:{
navbar
:
false
,
title
:
false
},
images
:
[],
};
},
mounted
()
{
...
...
@@ -151,6 +173,36 @@ export default {
this
.
init
(
id
);
},
methods
:
{
openFile
(
file
){
if
(
file
)
{
window
.
open
(
file
)
}
},
inited
(
viewer
){
this
.
$viewer
=
viewer
},
removeFile
(
e
){
this
.
attach
=
''
},
previewFile
(
e
){
const
link
=
document
.
createElement
(
'a'
);
let
_loadUrl
=
this
.
domainManager
().
DomainUrl
let
str
=
window
.
location
.
href
link
.
href
=
this
.
attach
document
.
body
.
appendChild
(
link
);
link
.
click
();
},
uploadFileBtn
(
file
)
{
//上传
let
newArr
=
[];
newArr
.
push
(
file
.
file
)
let
path
=
"/Upload/Temporary/"
this
.
$message
.
info
(
this
.
$t
(
'tips.shangchuanzhong'
))
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
this
.
attach
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
this
.
$message
.
success
(
this
.
$t
(
'tips.scchenggong'
))
});
},
init
(
id
)
{
this
.
apipost
(
"user_post_GetWorkDetails"
,
...
...
@@ -177,7 +229,7 @@ export default {
pid
:
this
.
$route
.
query
.
id
,
content
:
this
.
textarea2
,
progree
:
this
.
progree
,
attach
:
""
attach
:
this
.
attach
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
...
...
src/components/work/workManager.vue
View file @
83e1467f
...
...
@@ -83,6 +83,7 @@
:value=
"$t('pub.searchBtn')"
@
click=
"getList();resetPageIndex()"
/>
<button
class=
"normalBtn"
@
click=
"exportFile()"
>
导出
</button>
</li>
</ul>
</div>
...
...
@@ -261,6 +262,11 @@ export default {
//this.getEmployee();
},
methods
:
{
exportFile
(){
this
.
apipost
(
''
,
{},
r
=>
{
})
},
resetPageIndex
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
currentPage
=
1
;
...
...
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