Commit df6899c5 authored by wuhao's avatar wuhao 🎯

12334

parent a1e67909
...@@ -320,3 +320,6 @@ table { ...@@ -320,3 +320,6 @@ table {
.ant-drawer-open{ .ant-drawer-open{
transform: none !important; transform: none !important;
} }
.ant-pro-table-list-toolbar{
overflow: hidden !important;
}
\ No newline at end of file
...@@ -193,19 +193,10 @@ const Deviceprovide = (props) => { ...@@ -193,19 +193,10 @@ const Deviceprovide = (props) => {
function extraAction(text, record, _, action) { function extraAction(text, record, _, action) {
return [ return [
getPrem("equipmentCustomer_save", action, '修改', async () => { getPrem("equipmentCustomer_save", action, '修改', async () => {
await setcuritem(record); await setcuritem({
setTimeout(() => { ...record,
doFetch({ url: "/ngic-auth/sysCustomer/query/detail", params: { id: record.id } }).then(res => { key: "edit"
if (res.code == "0000") { });
let data = res?.data?.data || {};
for (let i in defaultFields) {
defaultFields[i].value = data[i];
}
dispatch({ type: "edit", fields: { ...defaultFields, ...extrafields } })
}
})
}, 400)
}), }),
getPrem("equipmentCustomer_deleteById", action, '删除', null, { getPrem("equipmentCustomer_deleteById", action, '删除', null, {
title: "确认删除该客户?", title: "确认删除该客户?",
...@@ -253,6 +244,17 @@ const Deviceprovide = (props) => { ...@@ -253,6 +244,17 @@ const Deviceprovide = (props) => {
let res = await tempfields("/ngic-auth/sysCustomerChar/queryCommonList", { id: curitem.id }) let res = await tempfields("/ngic-auth/sysCustomerChar/queryCommonList", { id: curitem.id })
setextrafields(res?.fields); setextrafields(res?.fields);
setsubdata(res?.data); setsubdata(res?.data);
if (curitem.key == "edit") {
doFetch({ url: "/ngic-auth/sysCustomer/query/detail", params: { id: curitem.id } }).then(res => {
if (res.code == "0000") {
let data = res?.data?.data || {};
for (let i in defaultFields) {
defaultFields[i].value = data[i];
}
dispatch({ type: "edit", fields: { ...defaultFields, ...extrafields } })
}
})
}
}, [curitem]) }, [curitem])
......
...@@ -15,10 +15,10 @@ const tabList = [ ...@@ -15,10 +15,10 @@ const tabList = [
key: "tab1", key: "tab1",
tab: <span style={{ fontSize: 14 }}>公共字段</span>, tab: <span style={{ fontSize: 14 }}>公共字段</span>,
}, },
{ // {
key: "tab2", // key: "tab2",
tab: <span style={{ fontSize: 14 }}>条件字段</span>, // tab: <span style={{ fontSize: 14 }}>条件字段</span>,
}, // },
], ],
initState = { initState = {
vs: false, vs: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment