eoss-ui 0.8.11 → 0.8.12

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.8.11",
3
+ "version": "0.8.12",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -165,7 +165,7 @@
165
165
  :subParams="subParams"
166
166
  v-else-if="newTypeCode == 'reset' || newTypeCode == 'continuation'"
167
167
  />
168
- <div class="es-flow-content" v-else>
168
+ <div class="es-flow-content" :style="{'justify-content':fullFlow?'space-between' : 'unset'}" v-else>
169
169
  <div class="es-flow-top">
170
170
  <div class="es-flow-title">
171
171
  <span v-show="!shrink"
@@ -1351,6 +1351,14 @@ export default {
1351
1351
  return {};
1352
1352
  }
1353
1353
  },
1354
+ fullFlow:{
1355
+ type: Boolean,
1356
+ default: true
1357
+ },
1358
+ showReadConfirm: {
1359
+ type: Boolean,
1360
+ default: true
1361
+ },
1354
1362
  width: {
1355
1363
  type: String
1356
1364
  },
@@ -2040,17 +2048,8 @@ export default {
2040
2048
  this.loading.close();
2041
2049
  }
2042
2050
  },
2043
- taskRead() {
2044
- if (this.taskReadOpinionRequired == 'true' && !this.value) {
2045
- if (!this.$refs.commonOpinions.validate()) return;
2046
- }
2047
- this.$confirm('确认提交?', '提示', {
2048
- confirmButtonText: '确定',
2049
- cancelButtonText: '取消',
2050
- type: 'warning'
2051
- })
2052
- .then(() => {
2053
- this.loading = util.loading(this.$loading, '加载中...');
2051
+ subRead(){
2052
+ this.loading = util.loading(this.$loading, '加载中...');
2054
2053
  const { businessId, appId, processDefinitionId, pendingId } =
2055
2054
  this.taskExamineInfo;
2056
2055
  let params = {
@@ -2089,8 +2088,25 @@ export default {
2089
2088
  this.$message.error(err.message);
2090
2089
  }
2091
2090
  });
2091
+ },
2092
+ taskRead() {
2093
+ if (this.taskReadOpinionRequired == 'true' && !this.value) {
2094
+ if (!this.$refs.commonOpinions.validate()) return;
2095
+ }
2096
+ if(this.showReadConfirm){
2097
+ this.$confirm('确认提交?', '提示', {
2098
+ confirmButtonText: '确定',
2099
+ cancelButtonText: '取消',
2100
+ type: 'warning'
2101
+ })
2102
+ .then(() => {
2103
+ this.subRead()
2092
2104
  })
2093
2105
  .catch(() => {});
2106
+ }else{
2107
+ this.subRead()
2108
+ }
2109
+
2094
2110
  },
2095
2111
  validReadTransferHandle(
2096
2112
  readTransferHandleBusinessId,
@@ -49,7 +49,7 @@
49
49
  display: flex;
50
50
  flex-direction: column;
51
51
  padding-bottom: 12px;
52
- justify-content: space-between;
52
+ // justify-content: space-between;
53
53
  position: relative;
54
54
  }
55
55
  .es-flow-index {
package/src/index.js CHANGED
@@ -125,7 +125,7 @@ if (typeof window !== 'undefined' && window.Vue) {
125
125
  }
126
126
 
127
127
  export default {
128
- version: '0.8.11',
128
+ version: '0.8.12',
129
129
  install,
130
130
  Button,
131
131
  ButtonGroup,