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
Hide 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 @@
...
@@ -57,8 +57,7 @@
<p
v-if=
"d.w"
>
{{
d
.
w
.
CreateName
}}
提交于
{{
item
.
CreateDate
}}
</p>
<p
v-if=
"d.w"
>
{{
d
.
w
.
CreateName
}}
提交于
{{
item
.
CreateDate
}}
</p>
<div
class=
"cont"
>
{{
item
.
Content
}}
</div>
<div
class=
"cont"
>
{{
item
.
Content
}}
</div>
<div
class=
"attach"
>
<div
class=
"attach"
>
附件:无
附件:
<span
@
click=
"openFile(item.Attach)"
style=
"cursor: pointer;"
>
{{
item
.
Attach
!==
""
?
item
.
Attach
:
'无'
}}
</span>
<!--
<a
href=
"http://baidu.com"
target=
"_blank"
></a>
-->
</div>
</div>
</el-card>
</el-card>
</div>
</div>
...
@@ -107,8 +106,6 @@
...
@@ -107,8 +106,6 @@
<el-col
:span=
"1"
>
当前进度:
</el-col>
<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-col
:span=
"4"
><el-slider
v-model=
"progree"
:min=
"d.w.Progree"
:max=
"100"
:step=
"1"
></el-slider></el-col>
</el-row>
</el-row>
</div>
</div>
<div
style=
"margin-bottom:10px"
>
<div
style=
"margin-bottom:10px"
>
<el-input
<el-input
...
@@ -119,6 +116,21 @@
...
@@ -119,6 +116,21 @@
v-model=
"textarea2"
>
v-model=
"textarea2"
>
</el-input>
</el-input>
</div>
</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"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<button
<button
class=
"normalBtn"
class=
"normalBtn"
...
@@ -128,6 +140,9 @@
...
@@ -128,6 +140,9 @@
</div>
</div>
</fieldset>
</fieldset>
</div>
</div>
<viewer
:images=
"images"
:options=
'imageOptions'
@
inited=
"inited"
class=
"viewer"
ref=
"viewer"
>
<img
v-for=
"src in images"
:src=
"src"
:key=
"src"
>
</viewer>
</div>
</div>
</
template
>
</
template
>
...
@@ -141,7 +156,14 @@ export default {
...
@@ -141,7 +156,14 @@ export default {
isUpdate
:
false
,
isUpdate
:
false
,
textarea
:
''
,
textarea
:
''
,
textarea2
:
''
,
textarea2
:
''
,
progree
:
0
progree
:
0
,
fileList
:
[],
attach
:
''
,
imageOptions
:{
navbar
:
false
,
title
:
false
},
images
:
[],
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -151,6 +173,36 @@ export default {
...
@@ -151,6 +173,36 @@ export default {
this
.
init
(
id
);
this
.
init
(
id
);
},
},
methods
:
{
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
)
{
init
(
id
)
{
this
.
apipost
(
this
.
apipost
(
"user_post_GetWorkDetails"
,
"user_post_GetWorkDetails"
,
...
@@ -177,7 +229,7 @@ export default {
...
@@ -177,7 +229,7 @@ export default {
pid
:
this
.
$route
.
query
.
id
,
pid
:
this
.
$route
.
query
.
id
,
content
:
this
.
textarea2
,
content
:
this
.
textarea2
,
progree
:
this
.
progree
,
progree
:
this
.
progree
,
attach
:
""
attach
:
this
.
attach
},
},
res
=>
{
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
...
...
src/components/work/workManager.vue
View file @
83e1467f
...
@@ -83,6 +83,7 @@
...
@@ -83,6 +83,7 @@
:value=
"$t('pub.searchBtn')"
:value=
"$t('pub.searchBtn')"
@
click=
"getList();resetPageIndex()"
@
click=
"getList();resetPageIndex()"
/>
/>
<button
class=
"normalBtn"
@
click=
"exportFile()"
>
导出
</button>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -261,6 +262,11 @@ export default {
...
@@ -261,6 +262,11 @@ export default {
//this.getEmployee();
//this.getEmployee();
},
},
methods
:
{
methods
:
{
exportFile
(){
this
.
apipost
(
''
,
{},
r
=>
{
})
},
resetPageIndex
()
{
resetPageIndex
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
msg
.
pageIndex
=
1
;
this
.
currentPage
=
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