字段调整

This commit is contained in:
GYYM
2024-11-08 13:09:06 +08:00
parent 50bebf451d
commit 74c03a2358
6 changed files with 213 additions and 44 deletions

View File

@@ -36,6 +36,10 @@
/>
</div>
<devTransfer
:dialogVisible=devTransferVisible
@update:visible='devTransferVisible = $event'
/>
<DeviceOpen :width='viewWidth' :height='viewHeight' ref='openDeviceView' />
<SourceOpen :width='viewWidth' :height='viewHeight' ref='openSourceView' />
</template>
@@ -51,6 +55,7 @@ import type { Plan } from '@/api/plan/interface'
import planPopup from "@/views/plan/planList/components/planPopup.vue"; // 导入子组件
import DeviceOpen from '@/views/plan/planList/components/devPopup.vue'
import SourceOpen from '@/views/plan/planList/components/sourcePopup.vue'
import devTransfer from './components/devTransfer.vue'
import { useViewSize } from '@/hooks/useViewSize'
import { useRouter } from "vue-router";
import { useDictStore } from '@/stores/modules/dict'
@@ -65,6 +70,8 @@ const defaultUnits = '日'; // 默认的单位
const { popupBaseView, viewWidth, viewHeight } = useViewSize()
const openDeviceView = ref()
const openSourceView = ref()
const devTransferVisible = ref(false)
// ProTable 实例
const proTable = ref<ProTableInstance>()
// const planData = planData
@@ -91,17 +98,17 @@ const dialogForm = ref<Plan.PlanBO>({
// 表格配置项
const columns = reactive<ColumnProps<Plan.PlanBO>[]>([
{ type: 'selection', fixed: 'left', width: 70 },
{ type: 'index', fixed: 'left', width: 70, label: '序号' },
{
prop: 'name',
label: '检测计划名称',
width: 200,
search: { el: 'input' },
},
{
prop: 'dataSource_Id',
label: '数据源名称',
prop: 'testSourceName',
label: '检测源名称',
width: 200,
enum: testSoureDataList,
fieldNames: { label: 'label', value: 'id' },
},
{
prop: 'script_Id',
@@ -117,6 +124,13 @@ const columns = reactive<ColumnProps<Plan.PlanBO>[]>([
enum: testErrSystDataList,
fieldNames: { label: 'label', value: 'id' },
},
{
prop: 'dataSource_Id',
label: '数据源名称',
width: 200,
enum: testSoureDataList,
fieldNames: { label: 'label', value: 'id' },
},
{
prop: 'test_State',
label: '检测状态',
@@ -270,7 +284,8 @@ const handleRowClick = (planSystem: Plan.PlanBO) =>{
}
const showDeviceOpen = (planSystem: Plan.PlanBO) => {
openDeviceView.value.open('计划设备列表')
devTransferVisible.value = true;
//openDeviceView.value.open('计划设备列表')
}
const showtestSourceOpen=(planSystem: Plan.PlanBO)=>{