微调
This commit is contained in:
@@ -38,9 +38,9 @@ import { useAuthStore } from "@/stores/modules/auth";
|
|||||||
import model from "./tabs/model.vue";
|
import model from "./tabs/model.vue";
|
||||||
import dashboard from "./tabs/dashboard.vue";
|
import dashboard from "./tabs/dashboard.vue";
|
||||||
import { onMounted, ref } from "vue";
|
import { onMounted, ref } from "vue";
|
||||||
defineOptions({
|
// defineOptions({
|
||||||
name: 'home'
|
// name: 'home'
|
||||||
})
|
// })
|
||||||
const authStore = useAuthStore();
|
const authStore = useAuthStore();
|
||||||
|
|
||||||
const activeIndex = ref("1-1");
|
const activeIndex = ref("1-1");
|
||||||
|
|||||||
@@ -384,6 +384,8 @@ const rules = computed(() => {
|
|||||||
|
|
||||||
// 打开弹窗,可能是新增,也可能是编辑
|
// 打开弹窗,可能是新增,也可能是编辑
|
||||||
const open = async (sign: string, data: Device.ResPqDev,currentMode: string,currentScene: string,devType:Device.ResDev[] ) => {
|
const open = async (sign: string, data: Device.ResPqDev,currentMode: string,currentScene: string,devType:Device.ResDev[] ) => {
|
||||||
|
|
||||||
|
console.log('open', dictStore.getDictData('app_scene'))
|
||||||
devTypeOptions.value = devType
|
devTypeOptions.value = devType
|
||||||
mode.value = currentMode
|
mode.value = currentMode
|
||||||
scene.value = currentScene
|
scene.value = currentScene
|
||||||
|
|||||||
@@ -168,6 +168,11 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
|
|||||||
} : {}),
|
} : {}),
|
||||||
minWidth: 200,
|
minWidth: 200,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
prop: 'createTime',
|
||||||
|
label: '创建时间',
|
||||||
|
width: 200,
|
||||||
|
},
|
||||||
{ prop: 'operation', label: '操作', fixed: 'right', width: 200 },
|
{ prop: 'operation', label: '操作', fixed: 'right', width: 200 },
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|||||||
@@ -65,9 +65,9 @@ import ImportExcel from "@/components/ImportExcel/index.vue";
|
|||||||
import {useDownload} from "@/hooks/useDownload";
|
import {useDownload} from "@/hooks/useDownload";
|
||||||
import {exportPqDev} from "@/api/device/device";
|
import {exportPqDev} from "@/api/device/device";
|
||||||
|
|
||||||
defineOptions({
|
// defineOptions({
|
||||||
name: 'planList'
|
// name: 'planList'
|
||||||
})
|
// })
|
||||||
const dictStore = useDictStore()
|
const dictStore = useDictStore()
|
||||||
const openDeviceView = ref()
|
const openDeviceView = ref()
|
||||||
const openSourceView = ref()
|
const openSourceView = ref()
|
||||||
@@ -115,6 +115,51 @@ const columns = reactive<ColumnProps<Plan.ReqPlan>[]>([
|
|||||||
width: 220,
|
width: 220,
|
||||||
search: { el: 'input' },
|
search: { el: 'input' },
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
prop: 'testState',
|
||||||
|
label: '检测状态',
|
||||||
|
width: 120,
|
||||||
|
enum:dictTestState,
|
||||||
|
search: { el:'select',props: { filterable: true }},
|
||||||
|
fieldNames: { label: 'label', value: 'id' },
|
||||||
|
render: scope => {
|
||||||
|
return (
|
||||||
|
scope.row.testState === 0 ? '未检' : scope.row.testState === 1 ? '检测中' : '检测完成'
|
||||||
|
)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: 'reportState',
|
||||||
|
label: '检测报告状态',
|
||||||
|
width: 120,
|
||||||
|
enum:dictReportState,
|
||||||
|
search: { el: 'select', props: { filterable: true } },
|
||||||
|
fieldNames: { label: 'label', value: 'id' },
|
||||||
|
render: scope => {
|
||||||
|
return (
|
||||||
|
scope.row.reportState === 0 ? '未生成' : scope.row.reportState === 1 ? '部分生成' : '全部生成'
|
||||||
|
)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: 'result',
|
||||||
|
label: '检测结果',
|
||||||
|
width: 120,
|
||||||
|
enum:dictResult,
|
||||||
|
search: { el: 'select', props: { filterable: true } },
|
||||||
|
fieldNames: { label: 'label', value: 'id' },
|
||||||
|
render: scope => {
|
||||||
|
console.log('检测结果',scope.row.result)
|
||||||
|
return (
|
||||||
|
scope.row.result === 0 ? '不符合' : scope.row.result === 1 ? '符合' : '/'
|
||||||
|
)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: 'createTime',
|
||||||
|
label: '创建时间',
|
||||||
|
width: 200,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
prop: 'sourceName',
|
prop: 'sourceName',
|
||||||
label: '检测源',
|
label: '检测源',
|
||||||
@@ -194,50 +239,7 @@ const columns = reactive<ColumnProps<Plan.ReqPlan>[]>([
|
|||||||
return dictItem ? dictItem.name : '/' // 如果找到匹配的项,返回对应的 name
|
return dictItem ? dictItem.name : '/' // 如果找到匹配的项,返回对应的 name
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
prop: 'testState',
|
|
||||||
label: '检测状态',
|
|
||||||
width: 120,
|
|
||||||
enum:dictTestState,
|
|
||||||
search: { el:'select',props: { filterable: true }},
|
|
||||||
fieldNames: { label: 'label', value: 'id' },
|
|
||||||
render: scope => {
|
|
||||||
return (
|
|
||||||
scope.row.testState === 0 ? '未检' : scope.row.testState === 1 ? '检测中' : '检测完成'
|
|
||||||
)
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'reportState',
|
|
||||||
label: '检测报告状态',
|
|
||||||
width: 120,
|
|
||||||
enum:dictReportState,
|
|
||||||
search: { el: 'select', props: { filterable: true } },
|
|
||||||
fieldNames: { label: 'label', value: 'id' },
|
|
||||||
render: scope => {
|
|
||||||
return (
|
|
||||||
scope.row.reportState === 0 ? '未生成' : scope.row.reportState === 1 ? '部分生成' : '全部生成'
|
|
||||||
)
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'result',
|
|
||||||
label: '检测结果',
|
|
||||||
width: 120,
|
|
||||||
enum:dictResult,
|
|
||||||
search: { el: 'select', props: { filterable: true } },
|
|
||||||
fieldNames: { label: 'label', value: 'id' },
|
|
||||||
render: scope => {
|
|
||||||
return (
|
|
||||||
scope.row.result === 0 ? '不符合' : scope.row.result === 1 ? '符合' : '/'
|
|
||||||
)
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: 'createTime',
|
|
||||||
label: '创建时间',
|
|
||||||
width: 200,
|
|
||||||
},
|
|
||||||
{ prop: 'operation', label: '操作', fixed: 'right', width: 200 },
|
{ prop: 'operation', label: '操作', fixed: 'right', width: 200 },
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user