设备基础管理
This commit is contained in:
@@ -1,24 +1,32 @@
|
||||
<template>
|
||||
<div class='default-main'>
|
||||
<TableHeader ref='tableHeaderRef'>
|
||||
<div class="default-main">
|
||||
<TableHeader ref="tableHeaderRef">
|
||||
<template #select>
|
||||
<el-form-item label='装置型号:'>
|
||||
<el-select v-model='tableStore.table.params.devType' placeholder='请选择' style='width: 100%'
|
||||
clearable>
|
||||
<el-option v-for='item in DevTypeOptions' :key='item.id' :label='item.name'
|
||||
:value='item.id'></el-option>
|
||||
<el-form-item label="装置型号:">
|
||||
<el-select
|
||||
v-model="tableStore.table.params.devType"
|
||||
placeholder="请选择"
|
||||
style="width: 100%"
|
||||
clearable
|
||||
>
|
||||
<el-option
|
||||
v-for="item in DevTypeOptions"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template #operation>
|
||||
<el-button :icon='Plus' type='primary' @click='addMenu' class='ml10'>新增版本</el-button>
|
||||
<el-button :icon="Plus" type="primary" @click="addMenu" class="ml10">新增版本</el-button>
|
||||
</template>
|
||||
</TableHeader>
|
||||
<Table ref='tableRef' />
|
||||
<PopupVersion ref='popupVersionRef'></PopupVersion>
|
||||
<Table ref="tableRef" />
|
||||
<PopupVersion ref="popupVersionRef"></PopupVersion>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang='ts'>
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted, provide } from 'vue'
|
||||
import TableStore from '@/utils/tableStore'
|
||||
import Table from '@/components/table/index.vue'
|
||||
@@ -38,10 +46,9 @@ const popupVersionRef = ref()
|
||||
const dictData = useDictData()
|
||||
const DevTypeOptions = ref()
|
||||
const tableHeaderRef = ref()
|
||||
queryByCode('Direct_Connected_Device').then((res) => {
|
||||
queryByCode('Direct_Connected_Device').then(res => {
|
||||
console.log(res)
|
||||
queryByid(res.data.id).then((res) => {
|
||||
console.log(res)
|
||||
queryByid(res.data.id).then(res => {
|
||||
DevTypeOptions.value = res.data
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user