import React from "react"; import {observer} from 'mobx-react'; import {toJS} from 'mobx' import $ from "jquery"; import {Button, Spin} from 'antd'; import {WeaDialog, WeaLocaleProvider, WeaTableEditable, WeaUpload} from "ecCom"; import _ from "lodash"; const getLabel = WeaLocaleProvider.getLabel; let timer; const Content = props => { const {data, source, onDataChange} = props; const {index, key, parentIndex, item, type} = source let field = null; if (type === 'condition') { //完成情况弹框 const dataCopy = [...data]; const columns = [{ title: {getLabel('22069', '完成情况')}, dataIndex: 'ctx', width: '50%', com: [ {type: 'INPUT', key: 'ctx'} ], }, { title: {getLabel('156', '附件')}, dataIndex: 'attach', key: 'attach', width: '50%', com: [ { type: 'CUSTOM', key: 'attach', render: (text, record, number, onEdit) => { return ( { onEdit({ type: "CUSTOM", record: { ...record, }, index : record.key, key: "attach", value: list }); } } />) } } ], } ] field = (
{ onDataChange(datas) }} />
) } if (type === "plan") { //计划内容弹框 const {modeInfo, item, key} = source; const hbid = item['hbid_' + key.split("_")[1]]; let editType = 2; if (item[key]['viewAttr'] && item[key]['viewAttr'] == '1') { editType = 0; } field = (