@jiangood/admin-spring-boot-starter 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -33,7 +33,7 @@
33
33
  "!src/.umi"
34
34
  ],
35
35
  "main": "src/index.ts",
36
- "version": "0.3.1",
36
+ "version": "0.3.2",
37
37
  "scripts": {
38
38
  "dev": "umi dev",
39
39
  "build": "tsc --outDir config/dist --skipLibCheck --noEmitOnError false config/index.ts"
@@ -25,7 +25,6 @@ export default class extends React.Component {
25
25
  }
26
26
 
27
27
 
28
-
29
28
  externalFormRef = React.createRef()
30
29
 
31
30
  componentDidMount() {
@@ -66,7 +65,8 @@ export default class extends React.Component {
66
65
 
67
66
  value.taskId = this.state.data.taskId
68
67
  await HttpUtils.post("admin/flowable/my/handleTask", value)
69
- history.replace('/flowable/task')
68
+
69
+ PageUtils.closeCurrent()
70
70
  } catch (error) {
71
71
  message.error(error)
72
72
  } finally {
@@ -80,7 +80,7 @@ export default class extends React.Component {
80
80
 
81
81
  const {data, loading} = this.state
82
82
  const {commentList, img} = data
83
- if(loading){
83
+ if (loading) {
84
84
  return <Spin/>
85
85
  }
86
86
  return <Page padding>
@@ -144,8 +144,8 @@ export default class extends React.Component {
144
144
  }
145
145
 
146
146
  renderProcess = (img, commentList) => <Card title='处理记录'>
147
- <img src={img} style={{maxWidth: '100%'}}
148
- onClick={this.onImgClick}/>
147
+ <img src={img} style={{maxWidth: '100%'}}
148
+ onClick={this.onImgClick}/>
149
149
  <Gap></Gap>
150
150
  <Table dataSource={commentList}
151
151
 
@@ -177,10 +177,10 @@ export default class extends React.Component {
177
177
 
178
178
  let ExForm = FormRegistryUtils.get(formName);
179
179
  if (!ExForm) {
180
- console.error(" 表单不存在: "+formName+"。 请检查表单源代码:src/forms/"+formName+".jsx")
180
+ console.error(" 表单不存在: " + formName + "。 请检查表单源代码:src/forms/" + formName + ".jsx")
181
181
  return <Empty description={"表单不存在: " + formName}></Empty>
182
182
  }
183
183
 
184
- return <ExForm id={businessKey} formKey={formKey} ref={this.externalFormRef} ></ExForm>
184
+ return <ExForm id={businessKey} formKey={formKey} ref={this.externalFormRef}></ExForm>
185
185
  }
186
186
  }