king
2021-09-02 3d4bc79a80eb9cff0f8ef7c53f9685c9ff9fbd2d
src/views/appmanage/scriptform/index.jsx
@@ -66,6 +66,7 @@
  changeApp = (val) => {
    const { applist } = this.props
    const { type } = this.state
    let app = applist.filter(item => `${item.ID},${item.kei_no}` === val)[0]
@@ -84,7 +85,10 @@
    this.setState({sublist, subAppId, appId}, () => {
      this.getViews()
    })
    this.props.form.setFieldsValue({subAppId})
    if (type !== 'app') {
      this.props.form.setFieldsValue({subAppId})
    }
  }
  changeSubApp = (val) => {
@@ -164,7 +168,7 @@
                }]
              })(
                <Select onChange={this.changeType}>
                  <Select.Option value="app">应用</Select.Option>
                  <Select.Option value="app">应用(基本信息)</Select.Option>
                  <Select.Option value="subapp">子应用</Select.Option>
                  <Select.Option value="view">页面</Select.Option>
                  <Select.Option value="role">权限树</Select.Option>
@@ -189,7 +193,7 @@
              )}
            </Form.Item>
          </Col>
          <Col span={12}>
          {type !== 'app' ? <Col span={12}>
            <Form.Item label="子应用">
              {getFieldDecorator('subAppId', {
                initialValue: subAppId,
@@ -205,7 +209,7 @@
                </Select>
              )}
            </Form.Item>
          </Col>
          </Col> : null}
          {type === 'view' ? <Col span={12}>
            <Form.Item label="页面">
              {getFieldDecorator('viewId', {