5123
This commit is contained in:
@@ -4,6 +4,9 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/wxwx-logo.svg" />
|
<link rel="icon" type="image/svg+xml" href="/wxwx-logo.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="author" content="314298729@qq.com">
|
||||||
|
<meta name="keywords" content="测试,管理,平台,测评,用例,FPGA,CPU,嵌入式,报告">
|
||||||
|
<meta name="description" content="测试管理平台,服务内部,部分内容不对外开放">
|
||||||
<title>成都测试管理平台</title>
|
<title>成都测试管理平台</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ import "tinymce/plugins/quickbars" //快速工具栏
|
|||||||
import "tinymce/plugins/save" //保存
|
import "tinymce/plugins/save" //保存
|
||||||
import "tinymce/plugins/searchreplace" //查找替换
|
import "tinymce/plugins/searchreplace" //查找替换
|
||||||
import "tinymce/plugins/table" //表格
|
import "tinymce/plugins/table" //表格
|
||||||
import "tinymce/plugins/template" //内容模板
|
|
||||||
import "tinymce/plugins/visualblocks" //显示元素范围
|
import "tinymce/plugins/visualblocks" //显示元素范围
|
||||||
import "tinymce/plugins/visualchars" //显示不可见字符
|
import "tinymce/plugins/visualchars" //显示不可见字符
|
||||||
import "tinymce/plugins/wordcount" //字数统计
|
import "tinymce/plugins/wordcount" //字数统计
|
||||||
@@ -48,7 +47,7 @@ const props = defineProps({
|
|||||||
plugins: {
|
plugins: {
|
||||||
type: [String, Array],
|
type: [String, Array],
|
||||||
default:
|
default:
|
||||||
"preview searchreplace autolink directionality visualblocks visualchars template code codesample table charmap nonbreaking insertdatetime advlist lists wordcount autosave"
|
"preview searchreplace autolink directionality visualblocks visualchars code codesample table charmap nonbreaking insertdatetime advlist lists wordcount autosave"
|
||||||
},
|
},
|
||||||
toolbar: {
|
toolbar: {
|
||||||
type: [String, Array],
|
type: [String, Array],
|
||||||
|
|||||||
@@ -6,15 +6,16 @@
|
|||||||
<a-layout class="layout">
|
<a-layout class="layout">
|
||||||
<a-layout class="layout layout-demo">
|
<a-layout class="layout layout-demo">
|
||||||
<a-layout-sider class="layout-sider">
|
<a-layout-sider class="layout-sider">
|
||||||
<div class="p-2">
|
<div class="p-2 overflow-auto myhcalc">
|
||||||
<a-input-group class="mb-2 w-full flex items-center" size="mini">
|
<a-input-group class="mb-2 w-full flex items-center h-1/12" size="mini">
|
||||||
<a-input style="height: 32px" v-model="searchKey" allow-clear></a-input>
|
<a-input style="height: 32px" v-model="searchKey" allow-clear></a-input>
|
||||||
<a-button @click="handleSearchTreeDataClick">搜索</a-button>
|
<a-button @click="handleSearchTreeDataClick">搜索</a-button>
|
||||||
</a-input-group>
|
</a-input-group>
|
||||||
<a-alert title="提示" style="margin-bottom: 10px" class="mt-0 py-1"
|
<a-alert title="提示" style="margin-bottom: 10px" class="mt-0 py-1 h-1/12"
|
||||||
>空搜索需要点击搜索按钮</a-alert
|
>空搜索需要点击搜索按钮</a-alert
|
||||||
>
|
>
|
||||||
<a-tree
|
<a-tree
|
||||||
|
class="h-10/12"
|
||||||
:data="treeData"
|
:data="treeData"
|
||||||
size="small"
|
size="small"
|
||||||
block-node
|
block-node
|
||||||
@@ -74,7 +75,7 @@
|
|||||||
</a-tree>
|
</a-tree>
|
||||||
</div>
|
</div>
|
||||||
</a-layout-sider>
|
</a-layout-sider>
|
||||||
<a-layout class="layout-content">
|
<a-layout class="layout-content myhcalc">
|
||||||
<a-layout-content class="work-area project-layout">
|
<a-layout-content class="work-area project-layout">
|
||||||
<PageLayout />
|
<PageLayout />
|
||||||
</a-layout-content>
|
</a-layout-content>
|
||||||
@@ -179,35 +180,36 @@ const loadMore = (nodeData) => {
|
|||||||
if (nodeData.level == "0") {
|
if (nodeData.level == "0") {
|
||||||
return new Promise(async (resolve) => {
|
return new Promise(async (resolve) => {
|
||||||
const res = await projectApi.getDutInfo(projectInfo.value.id, nodeData.key, nodeData.level)
|
const res = await projectApi.getDutInfo(projectInfo.value.id, nodeData.key, nodeData.level)
|
||||||
nodeData.children = res
|
// ~~~~~~~~~~~~~注意这里res和res.data,反正nodeData要返回数组~~~~~~~~~~~~~~~~~
|
||||||
|
nodeData.children = res.data
|
||||||
resolve()
|
resolve()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (nodeData.level == "1") {
|
if (nodeData.level == "1") {
|
||||||
return new Promise(async (resolve) => {
|
return new Promise(async (resolve) => {
|
||||||
const res = await projectApi.getDemandInfo(projectInfo.value.id, nodeData.key, nodeData.level)
|
const res = await projectApi.getDemandInfo(projectInfo.value.id, nodeData.key, nodeData.level)
|
||||||
nodeData.children = res
|
nodeData.children = res.data
|
||||||
resolve()
|
resolve()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (nodeData.level == "2") {
|
if (nodeData.level == "2") {
|
||||||
return new Promise(async (resolve) => {
|
return new Promise(async (resolve) => {
|
||||||
const res = await projectApi.getTestInfo(projectInfo.value.id, nodeData.key, nodeData.level)
|
const res = await projectApi.getTestInfo(projectInfo.value.id, nodeData.key, nodeData.level)
|
||||||
nodeData.children = res
|
nodeData.children = res.data
|
||||||
resolve()
|
resolve()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (nodeData.level == "3") {
|
if (nodeData.level == "3") {
|
||||||
return new Promise(async (resolve) => {
|
return new Promise(async (resolve) => {
|
||||||
const res = await projectApi.getCaseInfo(projectInfo.value.id, nodeData.key, nodeData.level)
|
const res = await projectApi.getCaseInfo(projectInfo.value.id, nodeData.key, nodeData.level)
|
||||||
nodeData.children = res
|
nodeData.children = res.data
|
||||||
resolve()
|
resolve()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (nodeData.level == "4") {
|
if (nodeData.level == "4") {
|
||||||
return new Promise(async (resolve) => {
|
return new Promise(async (resolve) => {
|
||||||
const res = await projectApi.getProblemInfo(projectInfo.value.id, nodeData.key, nodeData.level)
|
const res = await projectApi.getProblemInfo(projectInfo.value.id, nodeData.key, nodeData.level)
|
||||||
nodeData.children = res
|
nodeData.children = res.data
|
||||||
resolve()
|
resolve()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -470,4 +472,7 @@ const roundOption = ref({
|
|||||||
transition: padding 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
|
transition: padding 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
.myhcalc {
|
||||||
|
height: calc(100% - 60px);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -74,11 +74,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive, onMounted, ref } from "vue"
|
import { reactive, ref } from "vue"
|
||||||
import verifyCode from "@cps/ma-verifyCode/index.vue"
|
import verifyCode from "@cps/ma-verifyCode/index.vue"
|
||||||
import { useUserStore } from "@/store"
|
import { useUserStore } from "@/store"
|
||||||
import { useRouter, useRoute } from "vue-router"
|
import { useRouter, useRoute } from "vue-router"
|
||||||
import { Message } from "@arco-design/web-vue"
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ const crudColumns = ref([
|
|||||||
search: true,
|
search: true,
|
||||||
formType: "select",
|
formType: "select",
|
||||||
commonRules: [{ required: true, message: "提单人必填" }],
|
commonRules: [{ required: true, message: "提单人必填" }],
|
||||||
dict: { url: "system/user/index", translation: true, props: { label: "name", value: "name" } }
|
dict: { url: "system/user/list", translation: true, props: { label: "name", value: "name" } }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "提单日期",
|
title: "提单日期",
|
||||||
@@ -286,7 +286,7 @@ const crudColumns = ref([
|
|||||||
dataIndex: "verifyPerson",
|
dataIndex: "verifyPerson",
|
||||||
formType: "select",
|
formType: "select",
|
||||||
commonRules: [{ required: true, message: "提单人必填" }],
|
commonRules: [{ required: true, message: "提单人必填" }],
|
||||||
dict: { url: "system/user/index", translation: true, props: { label: "name", value: "name" } }
|
dict: { url: "system/user/list", translation: true, props: { label: "name", value: "name" } }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "验证日期",
|
title: "验证日期",
|
||||||
@@ -300,7 +300,7 @@ const crudColumns = ref([
|
|||||||
dataIndex: "revokePerson",
|
dataIndex: "revokePerson",
|
||||||
formType: "select",
|
formType: "select",
|
||||||
commonRules: [{ required: true, message: "提单人必填" }],
|
commonRules: [{ required: true, message: "提单人必填" }],
|
||||||
dict: { url: "system/user/index", translation: true, props: { label: "name", value: "name" } }
|
dict: { url: "system/user/list", translation: true, props: { label: "name", value: "name" } }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "撤销日期",
|
title: "撤销日期",
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ const crudColumns = ref([
|
|||||||
search: true,
|
search: true,
|
||||||
formType: "select",
|
formType: "select",
|
||||||
commonRules: [{ required: true, message: "设计人员必填" }],
|
commonRules: [{ required: true, message: "设计人员必填" }],
|
||||||
dict: { url: "system/user/index", translation: true, props: { label: "name", value: "name" } }
|
dict: { url: "system/user/list", translation: true, props: { label: "name", value: "name" } }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "执行人员",
|
title: "执行人员",
|
||||||
@@ -107,7 +107,7 @@ const crudColumns = ref([
|
|||||||
search: true,
|
search: true,
|
||||||
formType: "select",
|
formType: "select",
|
||||||
commonRules: [{ required: true, message: "执行人员必填" }],
|
commonRules: [{ required: true, message: "执行人员必填" }],
|
||||||
dict: { url: "system/user/index", translation: true, props: { label: "name", value: "name" } }
|
dict: { url: "system/user/list", translation: true, props: { label: "name", value: "name" } }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "审核人员",
|
title: "审核人员",
|
||||||
@@ -117,7 +117,7 @@ const crudColumns = ref([
|
|||||||
search: true,
|
search: true,
|
||||||
formType: "select",
|
formType: "select",
|
||||||
commonRules: [{ required: true, message: "审核人员必填" }],
|
commonRules: [{ required: true, message: "审核人员必填" }],
|
||||||
dict: { url: "system/user/index", translation: true, props: { label: "name", value: "name" } }
|
dict: { url: "system/user/list", translation: true, props: { label: "name", value: "name" } }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "用例综述",
|
title: "用例综述",
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ const crudColumns = ref([
|
|||||||
search: true,
|
search: true,
|
||||||
commonRules: [{ required: true, message: "责任人必选" }],
|
commonRules: [{ required: true, message: "责任人必选" }],
|
||||||
formType: "select",
|
formType: "select",
|
||||||
dict: { url: "system/user/list", props: { label: "name", value: "name" }, translation: true }
|
dict: { url: "system/user/index", props: { label: "name", value: "name" }, translation: true }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "成员",
|
title: "成员",
|
||||||
@@ -202,7 +202,7 @@ const crudColumns = ref([
|
|||||||
search: true,
|
search: true,
|
||||||
formType: "select",
|
formType: "select",
|
||||||
multiple: true,
|
multiple: true,
|
||||||
dict: { url: "system/user/list", props: { label: "name", value: "name" }, translation: true },
|
dict: { url: "system/user/index", props: { label: "name", value: "name" }, translation: true },
|
||||||
commonRules: [{ required: true, message: "成员至少选择一个" }]
|
commonRules: [{ required: true, message: "成员至少选择一个" }]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user