Commit 522e0a76 authored by TZW's avatar TZW

11.14

parent d9a8cec6
...@@ -39,6 +39,7 @@ export default defineConfig({ ...@@ -39,6 +39,7 @@ export default defineConfig({
manifest: { manifest: {
basePath: '/', basePath: '/',
}, },
publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
initialState: {}, initialState: {},
model: {}, model: {},
keepalive: keepalive, keepalive: keepalive,
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44 * @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2022-11-11 17:06:07 * @Last Modified time: 2022-11-14 10:00:16
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -124,6 +124,25 @@ function Supplier(props) { ...@@ -124,6 +124,25 @@ function Supplier(props) {
const columns = useMemo(() => { const columns = useMemo(() => {
let defcolumn = getcolumns(setDrawer); let defcolumn = getcolumns(setDrawer);
defcolumn[1].render = (text, row) => {
return (
<a
onClick={() => {
setDrawer((s) => ({
...s,
visible: true,
title: '查看详情',
fields: columns,
val: 'detail',
detailpath: urlParams.detail,
params: { id: row.id },
}));
}}
>
{row.supplierName}
</a>
);
};
return defcolumn.concat({ return defcolumn.concat({
title: '操作', title: '操作',
valueType: 'option', valueType: 'option',
......
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