Commit b78a0951 authored by TZW's avatar TZW

uploadImage

parent ad46a806
...@@ -1254,6 +1254,7 @@ function UploadDragger({ item, colProps }) { ...@@ -1254,6 +1254,7 @@ function UploadDragger({ item, colProps }) {
}, },
}} }}
transform={(value) => { transform={(value) => {
console.log('11', value);
const key = item.key ?? item.dataIndex; const key = item.key ?? item.dataIndex;
const transvalue = value?.map((it) => { const transvalue = value?.map((it) => {
if (it.response) { if (it.response) {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-11-10 09:39:56 * @Date: 2022-11-10 09:39:56
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-15 18:38:16 * @Last Modified time: 2022-12-15 19:13:39
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -785,6 +785,7 @@ function Model(props) { ...@@ -785,6 +785,7 @@ function Model(props) {
title: '设备编号', title: '设备编号',
dataIndex: 'equipmentNo', dataIndex: 'equipmentNo',
key: 'equipmentNo', key: 'equipmentNo',
search: false,
align: 'center', align: 'center',
width: 120, width: 120,
formItemProps: { rules: [{ required: true, message: '此项为必填项' }] }, formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
...@@ -792,6 +793,7 @@ function Model(props) { ...@@ -792,6 +793,7 @@ function Model(props) {
{ {
title: '设备名称', title: '设备名称',
dataIndex: 'equipmentName', dataIndex: 'equipmentName',
search: false,
align: 'center', align: 'center',
width: 120, width: 120,
key: 'equipmentName', key: 'equipmentName',
...@@ -800,6 +802,7 @@ function Model(props) { ...@@ -800,6 +802,7 @@ function Model(props) {
{ {
title: '公司名称', title: '公司名称',
align: 'center', align: 'center',
search: false,
dataIndex: 'organizationName', dataIndex: 'organizationName',
width: 120, width: 120,
key: 'organizationId', key: 'organizationId',
...@@ -810,6 +813,7 @@ function Model(props) { ...@@ -810,6 +813,7 @@ function Model(props) {
{ {
title: '部门名称', title: '部门名称',
width: 120, width: 120,
search: false,
align: 'center', align: 'center',
valueType: 'treeSelect', valueType: 'treeSelect',
dataIndex: 'departmentName', dataIndex: 'departmentName',
...@@ -824,6 +828,7 @@ function Model(props) { ...@@ -824,6 +828,7 @@ function Model(props) {
{ {
title: '工厂名称', title: '工厂名称',
dataIndex: 'factoryName', dataIndex: 'factoryName',
search: false,
key: 'factoryId', key: 'factoryId',
width: 120, width: 120,
align: 'center', align: 'center',
...@@ -835,6 +840,7 @@ function Model(props) { ...@@ -835,6 +840,7 @@ function Model(props) {
title: '车间名称', title: '车间名称',
dataIndex: 'shopName', dataIndex: 'shopName',
align: 'center', align: 'center',
search: false,
width: 120, width: 120,
valueType: 'select', valueType: 'select',
options: { options: {
...@@ -848,6 +854,7 @@ function Model(props) { ...@@ -848,6 +854,7 @@ function Model(props) {
}, },
{ {
title: '工段名称', title: '工段名称',
search: false,
width: 120, width: 120,
dataIndex: 'sectionName', dataIndex: 'sectionName',
align: 'center', align: 'center',
...@@ -862,6 +869,7 @@ function Model(props) { ...@@ -862,6 +869,7 @@ function Model(props) {
}, },
{ {
title: '产线名称', title: '产线名称',
search: false,
width: 120, width: 120,
dataIndex: 'productLineName', dataIndex: 'productLineName',
valueType: 'select', valueType: 'select',
...@@ -886,6 +894,7 @@ function Model(props) { ...@@ -886,6 +894,7 @@ function Model(props) {
{ {
title: '设备编号', title: '设备编号',
dataIndex: 'equipmentNo', dataIndex: 'equipmentNo',
search: false,
key: 'equipmentNo', key: 'equipmentNo',
align: 'center', align: 'center',
width: 120, width: 120,
...@@ -894,6 +903,7 @@ function Model(props) { ...@@ -894,6 +903,7 @@ function Model(props) {
{ {
title: '设备名称', title: '设备名称',
dataIndex: 'equipmentName', dataIndex: 'equipmentName',
search: false,
align: 'center', align: 'center',
width: 120, width: 120,
key: 'equipmentName', key: 'equipmentName',
...@@ -905,6 +915,7 @@ function Model(props) { ...@@ -905,6 +915,7 @@ function Model(props) {
dataIndex: 'organizationName', dataIndex: 'organizationName',
width: 120, width: 120,
key: 'organizationId', key: 'organizationId',
search: false,
valueType: 'select', valueType: 'select',
options: { path: '/auth/sysDepartment/query/organization/selectbox', params: {} }, options: { path: '/auth/sysDepartment/query/organization/selectbox', params: {} },
formItemProps: { rules: [{ required: true, message: '此项为必填项' }] }, formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
...@@ -913,6 +924,7 @@ function Model(props) { ...@@ -913,6 +924,7 @@ function Model(props) {
title: '部门名称', title: '部门名称',
width: 120, width: 120,
align: 'center', align: 'center',
search: false,
valueType: 'treeSelect', valueType: 'treeSelect',
dataIndex: 'departmentName', dataIndex: 'departmentName',
key: 'departmentId', key: 'departmentId',
...@@ -925,6 +937,7 @@ function Model(props) { ...@@ -925,6 +937,7 @@ function Model(props) {
}, },
{ {
title: '工厂名称', title: '工厂名称',
search: false,
dataIndex: 'factoryName', dataIndex: 'factoryName',
key: 'factoryId', key: 'factoryId',
width: 120, width: 120,
...@@ -936,6 +949,7 @@ function Model(props) { ...@@ -936,6 +949,7 @@ function Model(props) {
{ {
title: '车间名称', title: '车间名称',
dataIndex: 'shopName', dataIndex: 'shopName',
search: false,
align: 'center', align: 'center',
width: 120, width: 120,
valueType: 'select', valueType: 'select',
...@@ -954,6 +968,7 @@ function Model(props) { ...@@ -954,6 +968,7 @@ function Model(props) {
dataIndex: 'sectionName', dataIndex: 'sectionName',
align: 'center', align: 'center',
key: 'sectionId', key: 'sectionId',
search: false,
valueType: 'select', valueType: 'select',
options: { options: {
path: '/auth/sysSection/getAllSectionSelectionByShop', path: '/auth/sysSection/getAllSectionSelectionByShop',
...@@ -967,6 +982,7 @@ function Model(props) { ...@@ -967,6 +982,7 @@ function Model(props) {
width: 120, width: 120,
dataIndex: 'productLineName', dataIndex: 'productLineName',
valueType: 'select', valueType: 'select',
search: false,
key: 'productLineName', key: 'productLineName',
align: 'center', align: 'center',
options: { options: {
...@@ -1148,6 +1164,7 @@ function Model(props) { ...@@ -1148,6 +1164,7 @@ function Model(props) {
title: '设备编号', title: '设备编号',
dataIndex: 'equipmentNo', dataIndex: 'equipmentNo',
key: 'equipmentNo', key: 'equipmentNo',
searchfalse,
align: 'center', align: 'center',
width: 120, width: 120,
formItemProps: { rules: [{ required: true, message: '此项为必填项' }] }, formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
......
...@@ -30,6 +30,7 @@ function getcolumns(setdrawer) { ...@@ -30,6 +30,7 @@ function getcolumns(setdrawer) {
width: 180, width: 180,
dataIndex: 'departmentCode', dataIndex: 'departmentCode',
key: 'departmentCode', key: 'departmentCode',
hideInTable: true,
formItemProps: { formItemProps: {
rules: [ rules: [
{ {
......
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