feat: 打印机模块
This commit is contained in:
@@ -14,7 +14,9 @@ const modalConfig: IModalConfig<addRequest> = {
|
||||
labelWidth: 100,
|
||||
},
|
||||
formAction: function (data) {
|
||||
return printerApi.add(data);
|
||||
let obj = { ...data }
|
||||
obj.printType = data.printType.join(',')
|
||||
return printerApi.add(obj);
|
||||
},
|
||||
beforeSubmit(data) {
|
||||
console.log("提交之前处理", data);
|
||||
@@ -54,6 +56,7 @@ const modalConfig: IModalConfig<addRequest> = {
|
||||
{
|
||||
label: "ip地址",
|
||||
prop: "address",
|
||||
rules: [{ required: true, message: "请输入ip地址", trigger: "blur" }],
|
||||
type: "input",
|
||||
attrs: {
|
||||
placeholder: "请输入ip地址",
|
||||
|
||||
@@ -41,10 +41,11 @@ const contentConfig: IContentConfig<getListRequest> = {
|
||||
],
|
||||
cols: [
|
||||
// { type: "selection", width: 50, align: "center" },
|
||||
{ label: "设备名称", align: "center", prop: "id", show: false },
|
||||
{ label: "设备号", align: "center", prop: "username" },
|
||||
{ label: "品牌", align: "center", prop: "avatar", templet: "image" },
|
||||
{ label: "打印类型", align: "center", prop: "deptName" },
|
||||
{ label: "设备名称", align: "center", prop: "name" },
|
||||
// { label: "设备号", align: "center", prop: "username" },
|
||||
{ label: "品牌", align: "center", prop: "contentType", slotName: "contentType", templet: "custom", },
|
||||
// { label: "品牌", align: "center", prop: "avatar", templet: "image" },
|
||||
{ label: "打印类型", align: "center", prop: "subType", slotName: "subType", templet: "custom", },
|
||||
{
|
||||
label: "状态",
|
||||
align: "center",
|
||||
|
||||
@@ -14,7 +14,9 @@ const modalConfig: IModalConfig<editRequest> = {
|
||||
labelWidth: 100,
|
||||
},
|
||||
formAction: function (data) {
|
||||
return printerApi.edit(data);
|
||||
let obj = { ...data }
|
||||
obj.printType = data.printType.join(',')
|
||||
return printerApi.edit(obj);
|
||||
},
|
||||
beforeSubmit(data) {
|
||||
console.log("提交之前处理", data);
|
||||
@@ -54,6 +56,7 @@ const modalConfig: IModalConfig<editRequest> = {
|
||||
{
|
||||
label: "ip地址",
|
||||
prop: "address",
|
||||
rules: [{ required: true, message: "请输入ip地址", trigger: "blur" }],
|
||||
type: "input",
|
||||
attrs: {
|
||||
placeholder: "请输入ip地址",
|
||||
|
||||
Reference in New Issue
Block a user