|
@@ -15,7 +15,8 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
|
|
|
return await api.UpdateObj(form);
|
|
|
};
|
|
|
const delRequest = async ({ row }: DelReq) => {
|
|
|
- return await api.DelObj(row.id);
|
|
|
+ console.log("delform:::",row)
|
|
|
+ return await api.DelObj(row.article);
|
|
|
};
|
|
|
const addRequest = async ({ form }: AddReq) => {
|
|
|
form.device_id=Number(form.device);
|
|
@@ -94,6 +95,21 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
|
|
|
rules: [{ required: true, message: '请选择设备id' }],
|
|
|
},
|
|
|
},
|
|
|
+ article:{
|
|
|
+ title: '文章id',
|
|
|
+ search: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ type: 'input',
|
|
|
+ column: {
|
|
|
+ show:false,
|
|
|
+ minWidth: 120,
|
|
|
+ },
|
|
|
+ form: {
|
|
|
+ show:false,
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
device_code: {
|
|
|
title: '设备编码',
|
|
|
search: {
|