Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
周远喜
mes-ui
Commits
62ea2bf5
Commit
62ea2bf5
authored
Sep 30, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文档优化
parent
6f25f245
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
30 deletions
+39
-30
pictrue.vue
components/page/pictrue.vue
+20
-21
detail.vue
pages/word/document/detail.vue
+2
-1
edit.vue
pages/word/document/edit.vue
+4
-0
submit.vue
pages/word/document/submit.vue
+5
-5
word.vue
pages/word/document/word.vue
+3
-3
iview.js
plugins/iview.js
+5
-0
No files found.
components/page/pictrue.vue
View file @
62ea2bf5
<
template
>
<img
:src=
"downUrl + row.img"
/>
<img
:src=
"downUrl + src"
/>
</
template
>
<
script
>
export
default
{
props
:[
"src"
,
size
],
data
(){
return
{
path
:
""
}
},
mounted
(){
if
(
this
.
src
){
this
.
path
=
downUrl
+
v
}
},
watch
:{
src
(
v
){
if
(
v
){
this
.
path
=
downUrl
+
v
}
}
props
:
[
"src"
],
data
()
{
return
{
path
:
""
,
downUrl
:
fileUrlDown
,
};
},
mounted
()
{
if
(
this
.
src
)
{
this
.
path
=
downUrl
+
v
;
}
}
},
watch
:
{
src
(
v
)
{
if
(
v
)
{
this
.
path
=
downUrl
+
v
;
}
},
},
};
</
script
>
\ No newline at end of file
pages/word/document/detail.vue
View file @
62ea2bf5
...
...
@@ -110,7 +110,8 @@
</Col>
<Col
span=
"4"
class=
"dcm-right"
>
<div
class=
"img-touxiang"
>
<img
:src=
"downUrl + avatorPath"
v-if=
"avatorPath"
/>
<!--
<img
:src=
"downUrl + avatorPath"
v-if=
"avatorPath"
/>
-->
<Pictrue
:src=
"avatorPath"
v-if=
"avatorPath"
/>
<img
src=
"@/assets/images/files_header.png"
v-else
...
...
pages/word/document/edit.vue
View file @
62ea2bf5
...
...
@@ -12,6 +12,7 @@
<InputCode
v-if=
"li.dataType == 0 && li.field == 'code'"
v-model=
"entity[li.field]"
code=
"WORD"
/>
<InputNumber
v-if=
"li.dataType == 1 || li.dataType == 2"
...
...
@@ -247,6 +248,9 @@ export default {
this
.
parms
.
eid
=
this
.
$u
.
guid
();
this
.
$refs
.
refmovieFile1
.
inputShow
=
false
;
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
methods
:
{
imgUrl
()
{
window
.
open
(
this
.
avatorPath
,
"_blank"
);
...
...
pages/word/document/submit.vue
View file @
62ea2bf5
<
template
>
<div
class=
".detail-document"
>
{{
workFlowIds
}}
<div
class=
"body-document"
v-if=
"eid != 0"
>
<h4>
详细信息
</h4>
<Row>
...
...
@@ -42,9 +41,9 @@
<Filed
:span=
"12"
:name=
"l('creatorUserId') + ':'"
>
<User
:value=
"entity.creatorUserId"
/>
</Filed>
<Filed
:span=
"12"
:name=
"l('status') + ':'"
>
{{
entity
.
status
==
0
?
"草稿"
:
"送审"
}}
</Filed>
<Filed
:span=
"12"
:name=
"l('status') + ':'"
>
<state
code=
"word.document.status"
:value=
"entity.status"
/>
</Filed>
<Filed
:span=
"24"
:name=
"l('filePath') + ':'"
>
<files
ref=
"refFile"
:parms=
"parms"
:showList=
"false"
/>
</Filed>
...
...
@@ -53,7 +52,8 @@
</Col>
<Col
span=
"4"
class=
"dcm-right"
>
<div
class=
"img-touxiang"
>
<img
:src=
"downUrl + avatorPath"
v-if=
"avatorPath"
/>
<!--
<img
:src=
"downUrl + avatorPath"
v-if=
"avatorPath"
/>
-->
<Pictrue
:src=
"avatorPath"
v-if=
"avatorPath"
/>
<img
src=
"@/assets/images/files_header.png"
v-else
...
...
pages/word/document/word.vue
View file @
62ea2bf5
...
...
@@ -53,8 +53,8 @@
<Row
class=
"row-down"
:gutter=
"10"
>
<Col
span=
"7"
>
<div
class=
"img-i"
>
<
img
:src=
"downUrl + row.img"
v-if=
"row.img"
/
>
<
!-- onerror="this.src='/imgicon/chan_Pin.png'" --
>
<
!--
<img
:src=
"downUrl + row.img"
v-if=
"row.img"
/>
--
>
<
Pictrue
:src=
"row.img"
v-if=
"row.img"
/
>
<img
src=
"@/assets/images/files_header.png"
v-else
...
...
@@ -136,7 +136,7 @@ export default {
title
:
"新增"
,
detail
:
null
,
curId
:
0
,
downUrl
:
fileUrlDown
,
columns
:
[
{
type
:
"selection"
,
...
...
plugins/iview.js
View file @
62ea2bf5
...
...
@@ -66,6 +66,8 @@ import ViewerImg from '@/components/page/viewer.vue'
import
ImportExcel
from
'@/components/page/import/process.vue'
import
CustomProperties
from
'@/components/page/customProperties.vue'
import
InputCode
from
'@/components/page/inputCode.vue'
import
Pictrue
from
'@/components/page/pictrue.vue'
...
...
@@ -138,6 +140,9 @@ Vue.component("StoreSelect", StoreSelect)
Vue
.
component
(
"ImportExcel"
,
ImportExcel
)
Vue
.
component
(
"CustomProperties"
,
CustomProperties
)
Vue
.
component
(
"InputCode"
,
InputCode
)
Vue
.
component
(
"Pictrue"
,
Pictrue
)
//注入mock
// require("../mock")
...
...
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