|
@@ -1,4 +1,4 @@
|
|
|
-import React,{ useState, useEffect } from 'react'
|
|
|
|
|
|
|
+import React, { useState, useEffect } from 'react'
|
|
|
import { Tag } from 'antd'
|
|
import { Tag } from 'antd'
|
|
|
import ProTable from '@ant-design/pro-table'
|
|
import ProTable from '@ant-design/pro-table'
|
|
|
import useAutoTable from '@/hooks/useAutoTable'
|
|
import useAutoTable from '@/hooks/useAutoTable'
|
|
@@ -25,9 +25,9 @@ const Lockstore = props => {
|
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
|
setState({ ...state, data: longle, log, total })
|
|
setState({ ...state, data: longle, log, total })
|
|
|
}
|
|
}
|
|
|
- console.log(longle[0].product)
|
|
|
|
|
- const productArr = longle[0].product.split('+')
|
|
|
|
|
- console.log(productArr)
|
|
|
|
|
|
|
+ // console.log(longle[0].product)
|
|
|
|
|
+ // const productArr = longle[0].product.split('+')
|
|
|
|
|
+ // console.log(productArr)
|
|
|
}
|
|
}
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
// props.getlist();
|
|
// props.getlist();
|
|
@@ -61,7 +61,11 @@ const Lockstore = props => {
|
|
|
title: '产品',
|
|
title: '产品',
|
|
|
dataIndex: 'product',
|
|
dataIndex: 'product',
|
|
|
key: 'product',
|
|
key: 'product',
|
|
|
- width: 350
|
|
|
|
|
|
|
+ width: 350,
|
|
|
|
|
+ render: text => {
|
|
|
|
|
+ const productArr = text.split('+')
|
|
|
|
|
+ return productArr.map(item => <span />)
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: '办事处',
|
|
title: '办事处',
|