Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-web-h5app-drs
Overview
Overview
Details
Activity
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
zhuxiaomei
patzn-cloud-web-h5app-drs
Commits
d49db806
Commit
d49db806
authored
Oct 31, 2020
by
zhuxiaomei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
附件
parent
f6aca89b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
6 deletions
+21
-6
.env.pertest
.env.pertest
+0
-0
.env.production
.env.production
+2
-1
package.json
package.json
+0
-1
loading.js
src/api/loading.js
+3
-2
SamplingList.vue
src/page/sampling-list/SamplingList.vue
+16
-2
No files found.
.env.test
→
.env.
per
test
View file @
d49db806
File moved
.env.production
View file @
d49db806
NODE_ENV=production
VUE_APP_BASE_URL=http://api.patzn.com
VUE_APP_BASE_URL=http://api.dev.patzn.com:7000
package.json
View file @
d49db806
...
...
@@ -45,7 +45,6 @@
},
"globals"
:
{
"BMap"
:
true
,
"AMap"
:
true
,
"plus"
:
true
},
"rules"
:
{}
...
...
src/api/loading.js
View file @
d49db806
...
...
@@ -2,10 +2,11 @@
* 加载
*/
import
Vue
from
'vue'
import
{
Toast
}
from
'vant'
;
Vue
.
use
(
Toast
);
function
toasts
(
message
)
{
/*todo 请求接口之后的反馈*/
console
.
log
(
message
,
Vue
)
Toast
(
message
);
}
var
toast
=
{
...
...
src/page/sampling-list/SamplingList.vue
View file @
d49db806
...
...
@@ -221,8 +221,22 @@
this
.
$router
.
push
({
path
:
'/sampling_list/sampling_list_add'
,
query
:
{
id
:
item
.
id
}})
}
},
_print
()
{
/*todo 蓝牙打印*/
_print
(
item
)
{
//调用第三放程序打开指定文件(必须是本地路径)
this
.
$toast
.
loading
({
message
:
'加载中...'
,
forbidClick
:
true
,
});
var
dtask
=
plus
.
downloader
.
createDownload
(
this
.
$global
.
baseURL
+
'/drs/v1/sampling_summary/export_sampling?id='
+
item
.
id
,
{},
(
d
,
status
)
=>
{
if
(
status
==
200
)
{
plus
.
runtime
.
openFile
(
d
.
filename
);
//cn.wps.moffice_eng-----wps的包名
}
this
.
$toast
.
clear
();
});
dtask
.
setRequestHeader
(
'Content-Type'
,
'application/x-www-form-urlencoded'
);
dtask
.
setRequestHeader
(
'accessToken'
,
localStorage
.
getItem
(
'accessToken'
));
dtask
.
start
();
},
_del
(
ids
)
{
if
(
ids
.
length
===
0
)
{
...
...
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