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
01d30b78
Commit
01d30b78
authored
Apr 14, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多页签和修复文件预览
parent
523689f4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
141 additions
and
78 deletions
+141
-78
detail.vue
pages/handle/examine10/detail.vue
+42
-21
detail.vue
pages/handle/examine11/detail.vue
+42
-21
detail.vue
pages/handle/examine12/detail.vue
+43
-22
page.js
store/admin/page.js
+14
-14
No files found.
pages/handle/examine10/detail.vue
View file @
01d30b78
...
...
@@ -12,7 +12,13 @@
type=
"text"
></state>
</Filed>
<Filed
:span=
"8"
:name=
"l('repair_file_url')"
>
{{
formValidate
.
repair_file_url
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('repair_file_url')"
>
<a
v-if=
"formValidate.repair_file_url"
:href=
"url(formValidate.repair_file_url)"
target=
"_balck"
>
下载
</a>
</Filed>
<Filed
:span=
"8"
:name=
"l('supporting_file_name')"
>
{{
formValidate
.
supporting_file_name
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('supporting_file_status')"
>
...
...
@@ -22,7 +28,13 @@
type=
"text"
></state>
</Filed>
<Filed
:span=
"8"
:name=
"l('supporting_file_url')"
>
{{
formValidate
.
supporting_file_ulr
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('supporting_file_url')"
>
<a
v-if=
"formValidate.supporting_file_ulr"
:href=
"url(formValidate.supporting_file_ulr)"
target=
"_balck"
>
下载
</a>
</Filed>
<Filed
:span=
"8"
:name=
"l('slicing_file_name')"
>
{{
formValidate
.
slicing_file_name
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('slicing_file_status')"
>
<state
...
...
@@ -31,57 +43,66 @@
type=
"text"
></state>
</Filed>
<Filed
:span=
"8"
:name=
"l('slicing_file_url')"
>
{{
formValidate
.
slicing_file_url
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('slicing_file_url')"
>
<a
v-if=
"formValidate.slicing_file_url"
:href=
"url(formValidate.slicing_file_url)"
target=
"_balck"
>
下载
</a>
</Filed>
</Row>
</div>
</
template
>
<
script
>
import
Api
from
'../api'
import
Api
from
"../api"
;
export
default
{
name
:
'detail'
,
name
:
"detail"
,
components
:
{},
props
:
{
idVal
:
{
type
:
String
,
default
:
''
default
:
""
}
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
data
()
{
return
{
formValidate
:
{
state
:
''
state
:
""
}
}
}
;
},
created
()
{
this
.
dataImmut
=
[]
this
.
dataMut
=
[]
Api
.
get
({
Id
:
this
.
idVal
}).
then
(
(
r
)
=>
{
this
.
dataImmut
=
[]
;
this
.
dataMut
=
[]
;
Api
.
get
({
Id
:
this
.
idVal
}).
then
(
r
=>
{
if
(
r
.
success
)
{
let
farmData
=
{}
farmData
=
JSON
.
parse
(
r
.
result
.
formData
)
console
.
log
(
farmData
)
this
.
formValidate
=
farmData
let
farmData
=
{}
;
farmData
=
JSON
.
parse
(
r
.
result
.
formData
)
;
console
.
log
(
farmData
)
;
this
.
formValidate
=
farmData
;
// let formStr = r.result.formData.replace(/\"/g, '"')
// this.formValidate = JSON.parse(formStr)[0]
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
"加载失败"
);
}
})
})
;
},
methods
:
{
load
(
v
)
{},
url
(
path
)
{
return
fileUrlDown
+
path
},
l
(
key
)
{
key
=
'OrderDataReview'
+
'.'
+
key
return
this
.
$t
(
key
)
key
=
"OrderDataReview"
+
"."
+
key
;
return
this
.
$t
(
key
)
;
}
},
watch
:
{}
}
}
;
</
script
>
<
style
lang=
"less"
>
.detail {
...
...
pages/handle/examine11/detail.vue
View file @
01d30b78
...
...
@@ -12,7 +12,13 @@
type=
"text"
></state>
</Filed>
<Filed
:span=
"8"
:name=
"l('slicing_file_url')"
>
{{
formValidate
.
slicing_file_url
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('slicing_file_url')"
>
<a
v-if=
"formValidate.slicing_file_url"
:href=
"url(formValidate.slicing_file_url)"
target=
"_balck"
>
下载
</a>
</Filed>
<Filed
:span=
"8"
:name=
"l('supporting_file_name')"
>
{{
formValidate
.
supporting_file_name
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('supporting_file_status')"
>
<state
...
...
@@ -21,7 +27,13 @@
type=
"text"
></state>
</Filed>
<Filed
:span=
"8"
:name=
"l('repair_file_url')"
>
{{
formValidate
.
repair_file_url
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('repair_file_url')"
>
<a
v-if=
"formValidate.repair_file_url"
:href=
"url(formValidate.repair_file_url)"
target=
"_balck"
>
下载
</a>
</Filed>
<Filed
:span=
"8"
:name=
"l('slicing_file_name')"
>
{{
formValidate
.
slicing_file_name
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('slicing_file_status')"
>
<state
...
...
@@ -30,58 +42,67 @@
type=
"text"
></state>
</Filed>
<Filed
:span=
"8"
:name=
"l('supporting_file_url')"
>
{{
formValidate
.
supporting_file_ulr
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('supporting_file_url')"
>
<a
v-if=
"formValidate.supporting_file_ulr"
:href=
"url(formValidate.supporting_file_ulr)"
target=
"_balck"
>
下载
</a>
</Filed>
</Row>
</div>
</
template
>
<
script
>
import
Api
from
'../api'
import
Api
from
"../api"
;
export
default
{
name
:
'detail'
,
name
:
"detail"
,
components
:
{},
props
:
{
idVal
:
{
type
:
String
,
default
:
''
default
:
""
}
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
data
()
{
return
{
formValidate
:
{
state
:
''
state
:
""
}
}
}
;
},
created
()
{
this
.
dataImmut
=
[]
this
.
dataMut
=
[]
Api
.
get
({
Id
:
this
.
idVal
}).
then
(
(
r
)
=>
{
this
.
dataImmut
=
[]
;
this
.
dataMut
=
[]
;
Api
.
get
({
Id
:
this
.
idVal
}).
then
(
r
=>
{
// console.log(r)
if
(
r
.
success
)
{
let
farmData
=
{}
farmData
=
JSON
.
parse
(
r
.
result
.
formData
)
console
.
log
(
farmData
)
this
.
formValidate
=
farmData
let
farmData
=
{}
;
farmData
=
JSON
.
parse
(
r
.
result
.
formData
)
;
console
.
log
(
farmData
)
;
this
.
formValidate
=
farmData
;
// let formStr = r.result.formData.replace(/\"/g, '"')
// this.formValidate = JSON.parse(formStr)[0]
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
"加载失败"
);
}
})
})
;
},
methods
:
{
load
(
v
)
{},
url
(
path
)
{
return
fileUrlDown
+
path
;
},
l
(
key
)
{
key
=
'OrderDataReview'
+
'.'
+
key
return
this
.
$t
(
key
)
key
=
"OrderDataReview"
+
"."
+
key
;
return
this
.
$t
(
key
)
;
}
},
watch
:
{}
}
}
;
</
script
>
<
style
lang=
"less"
>
.detail {
...
...
pages/handle/examine12/detail.vue
View file @
01d30b78
...
...
@@ -12,7 +12,13 @@
type=
"text"
></state>
</Filed>
<Filed
:span=
"8"
:name=
"l('repair_file_url')"
>
{{
formValidate
.
repair_file_url
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('repair_file_url')"
>
<a
v-if=
"formValidate.repair_file_url"
:href=
"url(formValidate.repair_file_url)"
target=
"_balck"
>
下载
</a>
</Filed>
<Filed
:span=
"8"
:name=
"l('supporting_file_name')"
>
{{
formValidate
.
supporting_file_name
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('supporting_file_status')"
>
...
...
@@ -22,7 +28,13 @@
type=
"text"
></state>
</Filed>
<Filed
:span=
"8"
:name=
"l('supporting_file_url')"
>
{{
formValidate
.
supporting_file_ulr
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('supporting_file_url')"
>
<a
v-if=
"formValidate.supporting_file_ulr"
:href=
"url(formValidate.supporting_file_ulr)"
target=
"_balck"
>
下载
</a>
</Filed>
<Filed
:span=
"8"
:name=
"l('slicing_file_name')"
>
{{
formValidate
.
slicing_file_name
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('slicing_file_status')"
>
<state
...
...
@@ -31,58 +43,67 @@
type=
"text"
></state>
</Filed>
<Filed
:span=
"8"
:name=
"l('slicing_file_url')"
>
{{
formValidate
.
slicing_file_url
}}
</Filed>
<Filed
:span=
"8"
:name=
"l('slicing_file_url')"
>
<a
v-if=
"formValidate.slicing_file_url"
:href=
"url(formValidate.slicing_file_url)"
target=
"_balck"
>
下载
</a>
</Filed>
</Row>
</div>
</
template
>
<
script
>
import
Api
from
'../api'
import
Api
from
"../api"
;
export
default
{
name
:
'detail'
,
name
:
"detail"
,
components
:
{},
props
:
{
idVal
:
{
type
:
String
,
default
:
''
default
:
""
}
},
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
data
()
{
return
{
formValidate
:
{
state
:
''
state
:
""
}
}
}
;
},
created
()
{
this
.
dataImmut
=
[]
this
.
dataMut
=
[]
Api
.
get
({
Id
:
this
.
idVal
}).
then
(
(
r
)
=>
{
console
.
log
(
r
)
this
.
dataImmut
=
[]
;
this
.
dataMut
=
[]
;
Api
.
get
({
Id
:
this
.
idVal
}).
then
(
r
=>
{
console
.
log
(
r
)
;
if
(
r
.
success
)
{
let
farmData
=
{}
farmData
=
JSON
.
parse
(
r
.
result
.
formData
)
console
.
log
(
farmData
)
this
.
formValidate
=
farmData
let
farmData
=
{}
;
farmData
=
JSON
.
parse
(
r
.
result
.
formData
)
;
console
.
log
(
farmData
)
;
this
.
formValidate
=
farmData
;
// let formStr = r.result.formData.replace(/\"/g, '"')
// this.formValidate = JSON.parse(formStr)[0]
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
"加载失败"
);
}
})
})
;
},
methods
:
{
load
(
v
)
{},
url
(
path
)
{
return
fileUrlDown
+
path
},
l
(
key
)
{
key
=
'OrderDataReview'
+
'.'
+
key
return
this
.
$t
(
key
)
key
=
"OrderDataReview"
+
"."
+
key
;
return
this
.
$t
(
key
)
;
}
},
watch
:
{}
}
}
;
</
script
>
<
style
lang=
"less"
>
.detail {
...
...
store/admin/page.js
View file @
01d30b78
...
...
@@ -270,9 +270,9 @@ export const actions = {
state
.
opened
.
splice
(
1
,
currentIndex
-
1
).
forEach
(({
name
})
=>
commit
(
'keepAliveRemove'
,
name
));
}
if
(
state
.
opened
.
length
==
2
)
{
state
.
opened
.
splice
(
0
,
1
);
}
//
if (state.opened.length == 2) {
//
state.opened.splice(0, 1);
//
}
state
.
current
=
pageAim
;
if
(
$nuxt
.
$router
.
fullPath
!==
pageAim
)
{
$nuxt
.
$router
.
push
(
pageAim
);
...
...
@@ -329,9 +329,9 @@ export const actions = {
state
.
opened
.
splice
(
currentIndex
+
1
).
forEach
(({
name
})
=>
commit
(
'keepAliveRemove'
,
name
));
state
.
opened
.
splice
(
1
,
currentIndex
-
1
).
forEach
(({
name
})
=>
commit
(
'keepAliveRemove'
,
name
));
}
if
(
state
.
opened
.
length
==
2
)
{
state
.
opened
.
splice
(
0
,
1
);
}
//
if (state.opened.length == 2) {
//
state.opened.splice(0, 1);
//
}
// 设置新的页面
state
.
current
=
pageAim
;
if
(
$nuxt
.
$router
.
fullPath
!==
pageAim
)
{
...
...
@@ -354,11 +354,11 @@ export const actions = {
// 持久化
await
dispatch
(
'opened2db'
);
// 关闭所有的标签页后需要判断一次现在是不是在首页
//
if ($nuxt.$router.name !== 'index') {
//
$nuxt.$router.push({
//
name: 'index'
//
}, () => { });
//
}
if
(
$nuxt
.
$router
.
name
!==
'index'
)
{
$nuxt
.
$router
.
push
({
name
:
'index'
},
()
=>
{
});
}
// end
resolve
();
});
...
...
@@ -386,9 +386,9 @@ export const mutations = {
list
.
splice
(
index
,
1
);
state
.
keepAlive
=
list
;
}
if
(
state
.
opened
.
length
==
2
)
{
state
.
opened
.
splice
(
0
,
1
);
}
//
if (state.opened.length == 2) {
//
state.opened.splice(0, 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