| | |
| | | cnName: "设备信息", |
| | | name: "deviceInfo", |
| | | url: "/DeviceInfo/", |
| | | sortName: "CreateDate", |
| | | sortName: "createDate", |
| | | }); |
| | | const editFormFields = ref({ |
| | | deviceCode: "", |
| | |
| | | deviceStatus: "", |
| | | deviceIp: "", |
| | | devicePort: "", |
| | | devicePlcType:"", |
| | | devicePlcType: "", |
| | | deviceRemark: "", |
| | | }); |
| | | const editFormOptions = ref([ |
| | |
| | | title: "设备类型", |
| | | required: true, |
| | | field: "deviceType", |
| | | type: "string", |
| | | type: "select", |
| | | dataKey: "deviceType", |
| | | data: [], |
| | | }, |
| | | { |
| | | title: "设备状态", |
| | | required: true, |
| | | field: "deviceStatus", |
| | | type: "string", |
| | | type: "select", |
| | | dataKey: "deviceStatus", |
| | | data: [], |
| | | }, |
| | | ], |
| | | [ |
| | |
| | | title: "PLC类型", |
| | | required: true, |
| | | field: "devicePlcType", |
| | | type: "string", |
| | | type: "select", |
| | | dataKey: "devicePlcType", |
| | | data: [], |
| | | }, |
| | | { |
| | | title: "备注", |
| | |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "设备编号", field: "deviceCode" }, |
| | | { title: "设备类型", field: "deviceType" }, |
| | | { title: "设备状态", field: "deviceStatus" }, |
| | | { |
| | | title: "设备类型", |
| | | field: "deviceType", |
| | | type: "select", |
| | | dataKey: "deviceType", |
| | | data: [], |
| | | }, |
| | | { |
| | | title: "设备状态", |
| | | field: "deviceStatus", |
| | | type: "select", |
| | | dataKey: "deviceStatus", |
| | | data: [], |
| | | }, |
| | | ], |
| | | ]); |
| | | const columns = ref([ |
| | |
| | | type: "string", |
| | | width: 150, |
| | | align: "left", |
| | | bind: { key: "deviceType", data: [] }, |
| | | }, |
| | | { |
| | | field: "deviceStatus", |
| | |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | bind: { key: "deviceStatus", data: [] }, |
| | | }, |
| | | { |
| | | field: "deviceIp", |
| | |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "devicePlcType", data: [] }, |
| | | }, |
| | | { |
| | | field: "creater", |
| | |
| | | { |
| | | field: "createDate", |
| | | title: "创建时间", |
| | | type: "int", |
| | | width: 90, |
| | | type: "datetime", |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | field: "modifyDate", |
| | | title: "修改时间", |
| | | type: "datetime", |
| | | width: 80, |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | title: "数据类型", |
| | | type: "string", |
| | | width: 90, |
| | | require: true, |
| | | align: "left", |
| | | edit: { type: "" }, |
| | | }, |
| | |
| | | field: "deviceProDataLength", |
| | | title: "数据长度", |
| | | type: "int", |
| | | width: 120, |
| | | hidden: true, |
| | | width: 90, |
| | | require: true, |
| | | align: "left", |
| | | edit: { type: "" }, |
| | | }, |
| | | { |
| | | field: "deviceProParamName", |
| | | title: "参数名称", |
| | | type: "string", |
| | | width: 150, |
| | | require: true, |
| | | align: "left", |
| | | edit: { type: "" }, |
| | | }, |
| | | { |
| | | field: "deviceProParamType", |
| | | title: "参数名称", |
| | | title: "参数类型", |
| | | type: "string", |
| | | width: 80, |
| | | hidden: true, |
| | | width: 150, |
| | | require: true, |
| | | align: "left", |
| | | edit: { type: "" }, |
| | | }, |
| | |
| | | title: "参数说明", |
| | | type: "string", |
| | | width: 130, |
| | | require: true, |
| | | align: "left", |
| | | edit: { type: "" }, |
| | | }, |
| | |
| | | sortable: true, |
| | | }, |
| | | { |
| | | field: "creater", |
| | | title: "创建人", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "createDate", |
| | | title: "创建时间", |
| | | type: "dateTime", |
| | | width: 80, |
| | | type: "datetime", |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | |
| | | field: "modifyDate", |
| | | title: "修改时间", |
| | | type: "datetime", |
| | | width: 90, |
| | | width: 160, |
| | | align: "left", |
| | | sortable: true, |
| | | }, |
| | | ], |
| | | sortName: "CreateDate", |