Commit de031950 authored by TZW's avatar TZW

111

parent c34566a2
......@@ -6,8 +6,6 @@ const { Panel } = Collapse;
export default ({ index, title, dataSource, columns, hidden, navhidden = false, type }) => {
const [flag, setflag] = useState(true);
console.log(dataSource);
console.log(index, dataSource);
// 0:报修 1:接单 2:派单 3:完成维修 4:转追踪 5:转外协 6:转单 7:退单 8:追踪审核 9:外协审核 10:退单审核 11:效果验证
const columns_mes = {
sbxx: [
......@@ -462,98 +460,6 @@ export default ({ index, title, dataSource, columns, hidden, navhidden = false,
useEffect(() => {
setflag(hidden);
}, []);
console.log('datasource', dataSource);
// // 普通的详情展示
// const normalItem = () => {
// return (
// <div>
// <div className="fault-detail">
// <div style={{ flex: 1, display: 'flex', flexDirection: 'row' }}>
// <div
// style={{
// display: 'block',
// width: '30px',
// height: '30px',
// fontWeight: 500,
// textAlign: 'center',
// padding: '2px',
// border: '2px solid #1890FF',
// borderRadius: '50%',
// backgroundColor: 'white',
// marginRight: 16,
// flexShrink: 0,
// }}
// >
// {index}
// </div>
// <div style={{ display: 'flex', flexDirection: 'column' }}>
// <label style={{ width: '40px', fontSize: 18, fontWeight: 600 }}>
// {dataSource?.operationTypeName}
// </label>
// <span>{dataSource?.updateUserName}</span>
// <span>{dataSource?.updateTime}</span>
// </div>
// </div>
// <div style={{ flex: 6 }}>
// <div style={{ marginBottom: 16 }}>
// <h2 className="page-title">{dataSource?.operationTypeName}信息</h2>
// </div>
// <ProDescriptions
// dataSource={dataSource}
// columns={columns_wxgd[dataSource?.operationType]}
// />
// <ProDescriptions dataSource={dataSource} columns={columns_mes['gzxx']} />
// </div>
// </div>
// </div>
// );
// };
// // 带验证的详情展示
// const checkItem = () => {
// return (
// <div>
// <div className="fault-detail">
// <div style={{ flex: 1, display: 'flex', flexDirection: 'row' }}>
// <div
// style={{
// display: 'block',
// width: '30px',
// height: '30px',
// fontWeight: 500,
// textAlign: 'center',
// padding: '2px',
// border: '2px solid #1890FF',
// borderRadius: '50%',
// backgroundColor: 'white',
// marginRight: 16,
// flexShrink: 0,
// }}
// >
// {index}
// </div>
// <div style={{ display: 'flex', flexDirection: 'column' }}>
// <label style={{ width: '40px', fontSize: 18, fontWeight: 600 }}>
// {dataSource?.operationTypeName}
// </label>
// <span>{dataSource?.updateUserName}</span>
// <span>{dataSource?.updateTime}</span>
// </div>
// </div>
// <div style={{ flex: 6 }}>
// <div style={{ marginBottom: 16 }}>
// <h2 className="page-title">{dataSource?.operationTypeName}信息</h2>
// </div>
// <ProDescriptions
// dataSource={dataSource}
// columns={columns_wxgd[dataSource?.operationType]}
// />
// <ProDescriptions dataSource={dataSource} columns={columns_mes['gzxx']} />
// </div>
// </div>
// </div>
// );
// };
const itemischeck = {
wxgd: (
......
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