Commit 9bfdb006 authored by krysent's avatar krysent

bug

parent 3d96c7c0
...@@ -151,6 +151,14 @@ export function getColumns(setDrawer, formRef) { ...@@ -151,6 +151,14 @@ export function getColumns(setDrawer, formRef) {
dataIndex: "width", dataIndex: "width",
key: "width", key: "width",
valueType: "digit", valueType: "digit",
formItemProps: {
rules: [
{
required: true,
message: "此项为必填项",
},
],
},
fieldProps: { fieldProps: {
mode: "multiple", mode: "multiple",
precision: 3, precision: 3,
...@@ -166,6 +174,14 @@ export function getColumns(setDrawer, formRef) { ...@@ -166,6 +174,14 @@ export function getColumns(setDrawer, formRef) {
dataIndex: "length", dataIndex: "length",
key: "length", key: "length",
valueType: "digit", valueType: "digit",
formItemProps: {
rules: [
{
required: true,
message: "此项为必填项",
},
],
},
fieldProps: { fieldProps: {
precision: 3, precision: 3,
max: 999999, max: 999999,
...@@ -187,6 +203,9 @@ export function getColumns(setDrawer, formRef) { ...@@ -187,6 +203,9 @@ export function getColumns(setDrawer, formRef) {
}, },
], ],
}, },
fieldProps: {
placeholder:'不填写则默认生成'
},
colProps: { colProps: {
sm: 6, sm: 6,
}, },
......
...@@ -47,6 +47,17 @@ const EditUpload = ({ record, fid, storeId }) => { ...@@ -47,6 +47,17 @@ const EditUpload = ({ record, fid, storeId }) => {
[record.id]: record.uploadList, [record.id]: record.uploadList,
}); });
const { initialState, setInitialState } = useModel("@@initialState"); const { initialState, setInitialState } = useModel("@@initialState");
const fetchRequest = async (params) => {
console.log(5555);
let newParams = JSON.parse(JSON.stringify(params));
let res = await doFetch({
url: "/ngic-auth/sysStorePosition/queryUseAbleSelection",
params: { storeId: newParams.storeId },
});
return res?.data?.dataList;
};
useEffect(() => { useEffect(() => {
if (!value) { if (!value) {
return; return;
...@@ -83,7 +94,15 @@ const EditUpload = ({ record, fid, storeId }) => { ...@@ -83,7 +94,15 @@ const EditUpload = ({ record, fid, storeId }) => {
}, },
}; };
}); });
// fetchRequest(params);
}, [value]); }, [value]);
useEffect(() => {
fetchRequest({
storeId,
});
}, [storeId]);
return ( return (
<EditableProTable <EditableProTable
rowKey={"id"} rowKey={"id"}
...@@ -101,13 +120,8 @@ const EditUpload = ({ record, fid, storeId }) => { ...@@ -101,13 +120,8 @@ const EditUpload = ({ record, fid, storeId }) => {
search: false, search: false,
valueType: "select", valueType: "select",
request: async (params) => { request: async (params) => {
console.log(5555); console.log(params);
let newParams = JSON.parse(JSON.stringify(params)); await fetchRequest(params);
let res = await doFetch({
url: "/ngic-auth/sysStorePosition/queryUseAbleSelection",
params: { storeId: newParams.storeId },
});
return res?.data?.dataList;
}, },
editable: (text, record, index) => { editable: (text, record, index) => {
return !record.materieOutstoreDetailId; return !record.materieOutstoreDetailId;
......
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