king
2023-08-11 858700d00fd654d3c5df3138655326a51b1ba6b6
2023-08-11
4个文件已修改
22 ■■■■ 已修改文件
src/tabviews/custom/components/chart/antv-X6/index.jsx 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/chart/antv-X6/nodeupdate/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/chart/antv-X6/nodeupdate/memberform.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/chart/antv-X6/nodeupdate/nodeform.jsx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/chart/antv-X6/index.jsx
@@ -997,6 +997,16 @@
      
      this.setState({node: null})
    })
    graph.on('edge:connected', ({ isNew, edge }) => {
      if (!isNew) return
      let target = edge.getTargetCell()
      let mkdata = target ? target.prop('mkdata') : null
      if (mkdata) {
        edge.prop('mkdata', {status: mkdata.status, statusName: mkdata.statusName})
      }
    })
    
    const r1 = graph.createNode({
      shape: 'mk-rect',
src/tabviews/custom/components/chart/antv-X6/nodeupdate/index.jsx
@@ -494,7 +494,7 @@
          <Row>{this.getFields()}</Row>
        </Form>
        <Modal
          title="节点编辑"
          title={mknode && mknode.shape === 'edge' ? '连线编辑' : '节点编辑'}
          visible={visible}
          closable={false}
          maskClosable={false}
src/tabviews/custom/components/chart/antv-X6/nodeupdate/memberform.jsx
@@ -187,7 +187,7 @@
          onCancel={() => this.setState({visible: false})}
          destroyOnClose
        >
          <Search onSearch={this.search}/>
          <Search onSearch={this.search} enterButton/>
          <TreeTransfer dataSource={orgs} targetKeys={targetKeys} onChange={this.onChange} />
        </Modal>
      </>
src/tabviews/custom/components/chart/antv-X6/nodeupdate/nodeform.jsx
@@ -54,7 +54,7 @@
          <Col span={12}>
            <Form.Item label="状态值">
              {getFieldDecorator('status', {
                initialValue: data.status === undefined ? 0 : data.status,
                initialValue: data.status,
                rules: [
                  {
                    required: true,
@@ -105,7 +105,7 @@
          {nodetype === 'edge' ? <Col span={12}>
            <Form.Item label="审批方式">
              {getFieldDecorator('approvalMethod', {
                initialValue: data.approvalMethod || 'countersign'
                initialValue: data.approvalMethod || 'orsign'
              })(
                <Radio.Group>
                  <Radio value="countersign">会签</Radio>
@@ -114,7 +114,7 @@
              )}
            </Form.Item>
          </Col> : null}
          {nodetype === 'edge' || nodetype === 'node' ? <Col span={12}>
          {nodetype === 'edge' ? <Col span={12}>
            <Form.Item label="审批人">
              {getFieldDecorator('members', {
                initialValue: data.members || [],
@@ -127,7 +127,7 @@
              )}
            </Form.Item>
          </Col> : null}
          {nodetype === 'edge' || nodetype === 'node' ? <Col span={12}>
          {nodetype === 'edge' ? <Col span={12}>
            <Form.Item label="抄送人">
              {getFieldDecorator('copys', {
                initialValue: data.copys || []