Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
outside-front-order-inquiry
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
严宝瑞
outside-front-order-inquiry
Commits
8a3a304b
Commit
8a3a304b
authored
Dec 22, 2020
by
严宝瑞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加提示及相关修改
parent
dec0c328
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
6 deletions
+27
-6
Page.vue
src/components/Page.vue
+25
-4
main.js
src/main.js
+2
-2
No files found.
src/components/Page.vue
View file @
8a3a304b
...
...
@@ -5,6 +5,7 @@
clearable
style=
"width:500px;border-radius:0"
v-model=
"no"
@
keyup.enter.native=
"query"
placeholder=
"Please enter the PO NO.(Order NO.) for enquiry"
>
<el-button
...
...
@@ -96,8 +97,9 @@ export default {
},
methods
:
{
query
()
{
this
.
no
=
this
.
no
.
trim
();
this
.
result
=
{};
if
(
!
this
.
no
)
{
this
.
result
=
{};
return
;
}
this
.
pageLoading
=
true
;
...
...
@@ -106,11 +108,30 @@ export default {
url
:
`api/order/search/
${
this
.
no
}
`
})
.
then
(
res
=>
{
this
.
result
=
res
.
data
.
data
;
this
.
pageLoading
=
false
;
console
.
log
(
this
.
result
);
console
.
log
(
res
);
if
(
res
&&
res
.
data
&&
res
.
data
.
data
)
{
this
.
$message
({
showClose
:
true
,
message
:
"
success
"
,
type
:
"
success
"
});
this
.
result
=
res
.
data
.
data
;
this
.
pageLoading
=
false
;
}
else
{
this
.
$message
({
showClose
:
true
,
message
:
res
.
data
.
msg
,
type
:
"
error
"
});
this
.
pageLoading
=
false
;
}
})
.
catch
(
err
=>
{
this
.
$message
({
showClose
:
true
,
message
:
"
error
"
,
type
:
"
error
"
});
this
.
pageLoading
=
false
;
console
.
log
(
err
);
});
...
...
src/main.js
View file @
8a3a304b
import
Vue
from
"
vue
"
;
import
App
from
"
./App.vue
"
;
import
{
Input
,
Button
,
Table
,
TableColumn
,
Image
}
from
"
element-ui
"
;
import
{
Input
,
Button
,
Table
,
TableColumn
,
Image
,
Message
}
from
"
element-ui
"
;
import
"
element-ui/lib/theme-chalk/index.css
"
;
import
lang
from
"
element-ui/lib/locale/lang/en
"
;
import
locale
from
"
element-ui/lib/locale
"
;
// 设置语言
locale
.
use
(
lang
);
Vue
.
use
(
Input
);
...
...
@@ -13,6 +12,7 @@ Vue.use(Button);
Vue
.
use
(
Table
);
Vue
.
use
(
TableColumn
);
Vue
.
use
(
Image
);
Vue
.
prototype
.
$message
=
Message
;
import
axios
from
"
axios
"
;
Vue
.
prototype
.
$http
=
axios
;
...
...
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