Commit 522e0a76 authored by TZW's avatar TZW

11.14

parent d9a8cec6
......@@ -39,6 +39,7 @@ export default defineConfig({
manifest: {
basePath: '/',
},
publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
initialState: {},
model: {},
keepalive: keepalive,
......
......@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44
* @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';
......@@ -124,6 +124,25 @@ function Supplier(props) {
const columns = useMemo(() => {
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({
title: '操作',
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