Commit 244f9769 authored by Wallen姚文辉's avatar Wallen姚文辉

造单

parent ebb7676d
...@@ -14,6 +14,7 @@ import TestReport from '@/views/tool/TestReport'; ...@@ -14,6 +14,7 @@ import TestReport from '@/views/tool/TestReport';
import ReportLsit from '@/views/tool/ReportLsit'; import ReportLsit from '@/views/tool/ReportLsit';
import AduitReportList from '@/views/tool/AduitReportList'; import AduitReportList from '@/views/tool/AduitReportList';
import TestCase from '@/views/autotest/TestCase.vue'; import TestCase from '@/views/autotest/TestCase.vue';
import CreateOrder from '@/views/tool/CreateOrder.vue';
import Echarts from "vue-echarts"; import Echarts from "vue-echarts";
import 'echarts'; import 'echarts';
import ViewUIPlus from 'view-ui-plus'; import ViewUIPlus from 'view-ui-plus';
...@@ -85,6 +86,10 @@ const routers = [ ...@@ -85,6 +86,10 @@ const routers = [
path: 'testcase', path: 'testcase',
name: 'testcase', name: 'testcase',
component: TestCase component: TestCase
},{
path:'createorder',
name:'createorder',
component: CreateOrder
} }
] ]
......
...@@ -15,17 +15,30 @@ ...@@ -15,17 +15,30 @@
</template> </template>
<script setup> <script setup>
import { copy } from 'clipboard'; import { ref,getCurrentInstance } from 'vue'
import { ref } from 'vue'
import useClipboard from 'vue-clipboard3';
const { proxy, ctx } = getCurrentInstance()
let Message = proxy.$Message
const { toClipboard } = useClipboard();
const page_id = ref(22) const page_id = ref(22)
const title = ref("生产环境造单") 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("复制成功")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment