2354
This commit is contained in:
@@ -112,7 +112,6 @@ function createRequest(service) {
|
|||||||
option.url = option.url + "?" + stringify(option.params)
|
option.url = option.url + "?" + stringify(option.params)
|
||||||
option.params = {}
|
option.params = {}
|
||||||
}
|
}
|
||||||
console.log("最后的option是:", option)
|
|
||||||
return service(option)
|
return service(option)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,6 +72,21 @@
|
|||||||
/></a-tooltip>
|
/></a-tooltip>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
|
<!-- 节点图标插槽 -->
|
||||||
|
<template #icon="props">
|
||||||
|
<template v-if="props.node.level === '1'">
|
||||||
|
[被测件]
|
||||||
|
</template>
|
||||||
|
<template v-if="props.node.level === '2'">
|
||||||
|
[设]
|
||||||
|
</template>
|
||||||
|
<template v-if="props.node.level === '3'">
|
||||||
|
[项]
|
||||||
|
</template>
|
||||||
|
<template v-if="props.node.level === '4'">
|
||||||
|
[例]
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
</a-tree>
|
</a-tree>
|
||||||
</div>
|
</div>
|
||||||
</a-layout-sider>
|
</a-layout-sider>
|
||||||
@@ -94,7 +109,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { provide, ref, onMounted } from "vue"
|
import { provide, ref, onMounted, h } from "vue"
|
||||||
import NavBar from "@/layout/components/navbar.vue"
|
import NavBar from "@/layout/components/navbar.vue"
|
||||||
import PageLayout from "@/layout/page-layout.vue"
|
import PageLayout from "@/layout/page-layout.vue"
|
||||||
import MaFormModal from "@/components/ma-form-modal/index.vue"
|
import MaFormModal from "@/components/ma-form-modal/index.vue"
|
||||||
|
|||||||
@@ -52,8 +52,8 @@ const roundNumber = route.query.key.split("-")[0]
|
|||||||
// crud组件
|
// crud组件
|
||||||
const crudOptions = ref({
|
const crudOptions = ref({
|
||||||
api: dutApi.getDutList,
|
api: dutApi.getDutList,
|
||||||
add: { show: true, api: dutApi.save },
|
add: { show: true, api: dutApi.save,text:"新增被测件" },
|
||||||
edit: { show: true, api: dutApi.update },
|
edit: { show: true, api: dutApi.update,text:"编辑被测件" },
|
||||||
delete: { show: true, api: dutApi.delete },
|
delete: { show: true, api: dutApi.delete },
|
||||||
parameters: {
|
parameters: {
|
||||||
projectId: route.query.id,
|
projectId: route.query.id,
|
||||||
@@ -68,7 +68,7 @@ const crudOptions = ref({
|
|||||||
operationColumnAlign: "center",
|
operationColumnAlign: "center",
|
||||||
formOption: {
|
formOption: {
|
||||||
viewType: "drawer",
|
viewType: "drawer",
|
||||||
width: 600
|
width: 600,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
const beiceType = [
|
const beiceType = [
|
||||||
|
|||||||
Reference in New Issue
Block a user