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
f71c1238
Commit
f71c1238
authored
Sep 30, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文档
parent
f8132fc0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
33 deletions
+52
-33
inputCode.vue
components/page/inputCode.vue
+22
-31
pictrue.vue
components/page/pictrue.vue
+27
-0
add.vue
pages/word/document/add.vue
+1
-0
word.vue
pages/word/document/word.vue
+2
-2
No files found.
components/page/inputCode.vue
View file @
f71c1238
<
template
>
<
template
>
<div
class=
"input-code"
>
<div
class=
"input-code"
>
<Input
v-model=
"code
"
clearable
>
<Input
v-model=
"code
Value"
clearable
required
>
<Button
<Button
slot=
"append"
slot=
"append"
style=
"width: 95px; text-align: left"
@
click=
"codeClick"
@
click=
"codeClick"
>
生成编号
</Button
>
生成编号
</Button
>
>
</Input>
</Input>
<!--
<Dropdown
placement=
"bottom-start"
>
<a
href=
"javascript:void(0)"
>
<Icon
type=
"ios-arrow-down"
>
55
</Icon>
</a>
<DropdownMenu
slot=
"list"
@
on-click=
"changeSelect"
>
<DropdownItem>
生成
</DropdownItem>
</DropdownMenu>
</Dropdown>
-->
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -24,47 +15,47 @@ import Api from "./api";
...
@@ -24,47 +15,47 @@ import Api from "./api";
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
code
:
""
,
code
Value
:
""
,
select
:
""
,
select
:
""
,
};
};
},
},
props
:
{
model
:
{
value
:
[
String
,
Number
,
Array
,
Object
],
prop
:
"value"
,
clearable
:
{
event
:
"on-change"
type
:
Boolean
,
default
:
true
,
},
},
props
:
{
code
:{
type
:
String
,
default
:
""
},
type
:{
type
:
String
}
},
},
mounted
()
{
mounted
()
{
},
this
.
getSerialcode
();
},
methods
:
{
methods
:
{
// 生成临时编号code
// 生成临时编号code
getSerialcode
()
{
getSerialcode
()
{
Api
.
serialcode
({
Api
.
serialcode
({
code
:
""
,
code
:
this
.
code
,
}).
then
((
r
)
=>
{
}).
then
((
r
)
=>
{
if
(
r
.
result
)
{
if
(
r
.
result
)
{
this
.
code
=
r
.
result
[
0
];
this
.
codeValue
=
r
.
result
[
0
];
this
.
$emit
(
"on-change"
,
this
.
codeValue
);
}
}
});
});
},
},
codeClick
()
{
codeClick
()
{
this
.
getSerialcode
();
this
.
getSerialcode
();
},
},
// changeSelect(a) {
// console.log(a);
// },
},
},
watch
:
{
watch
:
{
value
(
v
)
{
value
(
v
)
{
this
.
code
=
v
;
this
.
codeValue
=
v
;
},
}
code
(
v
)
{
if
((
v
=
""
))
{
this
.
select
=
""
;
}
},
},
},
};
};
</
script
>
</
script
>
...
...
components/page/pictrue.vue
0 → 100644
View file @
f71c1238
<
template
>
<img
:src=
"downUrl + row.img"
/>
</
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
}
}
}
}
</
script
>
\ No newline at end of file
pages/word/document/add.vue
View file @
f71c1238
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
></Input>
></Input>
<InputCode
<InputCode
v-if=
"li.dataType == 0 && li.field == 'code'"
v-if=
"li.dataType == 0 && li.field == 'code'"
code=
"WORD"
v-model=
"entity[li.field]"
v-model=
"entity[li.field]"
/>
/>
<InputNumber
<InputNumber
...
...
pages/word/document/word.vue
View file @
f71c1238
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<img
:src=
"downUrl + row.img"
v-if=
"row.img"
/>
<img
:src=
"downUrl + row.img"
v-if=
"row.img"
/>
<!-- onerror="this.src='/imgicon/chan_Pin.png'" -->
<!-- onerror="this.src='/imgicon/chan_Pin.png'" -->
<img
<img
src=
"@/assets/im
gicon/chan_Pin
.png"
src=
"@/assets/im
ages/files_header
.png"
v-else
v-else
width=
"100%"
width=
"100%"
height=
"100%"
height=
"100%"
...
@@ -412,7 +412,7 @@ export default {
...
@@ -412,7 +412,7 @@ export default {
height: 110px;
height: 110px;
.img-i {
.img-i {
width: 90px;
width: 90px;
background: #eee;
//
background: #eee;
height: 90px;
height: 90px;
img {
img {
width: 90px;
width: 90px;
...
...
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