Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test_platform_web
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
Wallen姚文辉
test_platform_web
Commits
244f9769
Commit
244f9769
authored
Oct 24, 2024
by
Wallen姚文辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
造单
parent
ebb7676d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
+23
-5
main.js
src/main.js
+5
-0
CreateOrder.vue
src/views/tool/CreateOrder.vue
+18
-5
No files found.
src/main.js
View file @
244f9769
...
...
@@ -14,6 +14,7 @@ import TestReport from '@/views/tool/TestReport';
import
ReportLsit
from
'@/views/tool/ReportLsit'
;
import
AduitReportList
from
'@/views/tool/AduitReportList'
;
import
TestCase
from
'@/views/autotest/TestCase.vue'
;
import
CreateOrder
from
'@/views/tool/CreateOrder.vue'
;
import
Echarts
from
"vue-echarts"
;
import
'echarts'
;
import
ViewUIPlus
from
'view-ui-plus'
;
...
...
@@ -85,6 +86,10 @@ const routers = [
path
:
'testcase'
,
name
:
'testcase'
,
component
:
TestCase
},{
path
:
'createorder'
,
name
:
'createorder'
,
component
:
CreateOrder
}
]
...
...
src/views/tool/CreateOrder.vue
View file @
244f9769
...
...
@@ -15,17 +15,30 @@
</
template
>
<
script
setup
>
import
{
copy
}
from
'clipboard'
;
import
{
ref
}
from
'vue'
import
{
ref
,
getCurrentInstance
}
from
'vue'
import
useClipboard
from
'vue-clipboard3'
;
const
{
proxy
,
ctx
}
=
getCurrentInstance
()
let
Message
=
proxy
.
$Message
const
{
toClipboard
}
=
useClipboard
();
const
page_id
=
ref
(
22
)
const
title
=
ref
(
"生产环境造单"
)
function
copyUser
(){
async
function
copyUser
(){
const
text
=
"admin0001"
await
toClipboard
(
text
)
Message
.
success
(
"复制成功"
)
}
function
copyPass
(){
async
function
copyPass
(){
const
text
=
"123456"
await
toClipboard
(
text
)
Message
.
success
(
"复制成功"
)
}
...
...
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