Commit 3da1f60b1ef56ab419772b674942521c49bea151

Authored by loveumiko
1 parent fd650829

fix: 增加搜索条件

... ... @@ -2,6 +2,7 @@ import { h } from 'vue';
2 2 import { BasicColumn, FormSchema } from '/@/components/Table';
3 3 import { Tag } from 'ant-design-vue';
4 4 import { withInstall } from '/@/utils/index';
  5 +import { DeviceTypeEnum } from '/@/api/device/model/deviceModel';
5 6
6 7 import VideoPlay from './video.vue';
7 8 export const Video = withInstall(VideoPlay);
... ... @@ -48,4 +49,49 @@ export const configColumns: BasicColumn[] = [
48 49 },
49 50 ];
50 51
51   -export const searchFormSchema: FormSchema[] | any = [{}];
  52 +export const searchFormSchema: FormSchema[] | any = [
  53 + {
  54 + field: 'name',
  55 + label: '设备名称',
  56 + component: 'Input',
  57 + colProps: { span: 6 },
  58 + componentProps: {
  59 + maxLength: 255,
  60 + placeholder: '请输入设备名称',
  61 + },
  62 + },
  63 + {
  64 + field: 'deviceType',
  65 + label: '设备类型',
  66 + component: 'Select',
  67 + colProps: { span: 6 },
  68 + componentProps: {
  69 + options: [
  70 + { label: '网关设备', value: DeviceTypeEnum.GATEWAY },
  71 + { label: '直连设备', value: DeviceTypeEnum.DIRECT_CONNECTION },
  72 + { label: '网关子设备', value: DeviceTypeEnum.SENSOR },
  73 + ],
  74 + placeholder: '请选择设备类型',
  75 + },
  76 + },
  77 + {
  78 + field: 'channelName',
  79 + label: '通道名称',
  80 + component: 'Input',
  81 + colProps: { span: 6 },
  82 + componentProps: {
  83 + maxLength: 255,
  84 + placeholder: '请输入通道名称',
  85 + },
  86 + },
  87 + {
  88 + field: 'manufacturer',
  89 + label: '厂家',
  90 + component: 'Select',
  91 + colProps: { span: 6 },
  92 + componentProps: {
  93 + options: [{}],
  94 + placeholder: '请选择厂家',
  95 + },
  96 + },
  97 +];
... ...
... ... @@ -79,7 +79,7 @@
79 79 });
80 80 };
81 81
82   - //type 1:上 2:右 3:下 4:左 5:暂停
  82 + //type 1:上 2:右 3:下 4:左 5:播放/暂停
83 83 const handleClick = (type: number) => {
84 84 console.log(type, 'type');
85 85 if (type == 5) {
... ...