ocpview-plus 1.3.6 → 1.3.8

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.
@@ -139,6 +139,7 @@ export default {
139
139
  loading: true,
140
140
  fileSize: 0,
141
141
  initData: [],
142
+ notShowBtn: [],
142
143
  rowBtnData: [
143
144
  {
144
145
  icon: 'custom-fileupload',
@@ -192,9 +193,6 @@ export default {
192
193
  if (!this.myConfig.pdffile) {
193
194
  this.myConfig.pdffile = this.OmdUrl.pdffile;
194
195
  }
195
- if (this.myConfig.showTitle !== undefined) {
196
- this.showTitle = this.myConfig.showTitle;
197
- }
198
196
  // this.myConfig.showAddBtn = true;
199
197
  // this.myConfig.showDelBatchBtn = true;
200
198
  this.myConfig.generalOrientation = true;
@@ -212,6 +210,10 @@ export default {
212
210
  } else {
213
211
  this.uploadfile = this.myConfig.uploadfile + '?token=' + this.getToken();
214
212
  }
213
+
214
+ if (this.myConfig.notShowBtn !== undefined) {
215
+ this.notShowBtn = this.myConfig.notShowBtn;
216
+ }
215
217
  },
216
218
  computed: {
217
219
  headers () {
@@ -277,7 +279,7 @@ export default {
277
279
  },
278
280
  actionRender (h, params) {
279
281
  let btnConfig = {};
280
- btnConfig.showNum = 4;
282
+ btnConfig.showNum = 5;
281
283
  btnConfig.fontStyle = '';
282
284
  btnConfig.items = [];
283
285
  if (params.row.filekey) {
@@ -285,7 +287,7 @@ export default {
285
287
  if (this.myConfig.readOnly) {
286
288
  del.readOnly = true;
287
289
  }
288
- if (params.row.scenetype !== '0' && params.row.modflag !== 'M') {
290
+ if (params.row.scenetype !== '0' && params.row.modflag !== 'M' && this.notShowBtn.indexOf(del.name) < 0) {
289
291
  btnConfig.items.push(del);
290
292
  }
291
293
  } else {
@@ -293,7 +295,10 @@ export default {
293
295
  if (this.myConfig.readOnly) {
294
296
  up.readOnly = true;
295
297
  }
296
- btnConfig.items.push(up);
298
+ if (this.notShowBtn.indexOf(up.name) < 0) {
299
+ btnConfig.items.push(up);
300
+ }
301
+
297
302
  }
298
303
  btnConfig.items.push(this.$Method.copy(this.rowBtnData[2]));
299
304
  if (this.isType(params.row.filetype) !== '0') {
@@ -304,11 +309,12 @@ export default {
304
309
  recall.readOnly = true;
305
310
  }
306
311
  if (this.myConfig.notdelfile) {
307
- if (params.row.modflag === 'N') {
312
+ if (params.row.modflag === 'N' && this.notShowBtn.indexOf(recall.name) < 0) {
308
313
  btnConfig.items.push(recall);
309
314
  }
310
- if ((!params.row.filekey || params.row.filekey !== '') && params.row.modflag === 'N') {
311
- btnConfig.items.push(this.$Method.copy(this.rowBtnData[5]));
315
+ let reupFile = this.$Method.copy(this.rowBtnData[5])
316
+ if ((!params.row.filekey || params.row.filekey !== '') && params.row.modflag === 'N' && this.notShowBtn.indexOf(reupFile.name) < 0) {
317
+ btnConfig.items.push(reupFile);
312
318
  }
313
319
  }
314
320
  return h('div', [
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div>
3
- <component ref="layout" :is="uiLayoutType" :config="uiconfig" :dictData="globalConfig.dictData" :moduleMethod="globalConfig.userModuleMethod" @handleSuccessAfter="handleSuccessAfter" @doAction="doAction" />
3
+ <component ref="layout" :is="uiLayoutType" :config="uiconfig" :dictData="globalConfig.dictData" :moduleMethod="globalConfig.userModuleMethod" @handleSuccessAfter="handleSuccessAfter" @onSubmitBefore="onSubmitBefore" @doAction="doAction" />
4
4
  <Modal title="附件" v-model="showDetailAppendix" :width="appendixCurrentWidth" :footer-hide="true">
5
5
  <AppendixBoxs v-if="detalAppendixFlag" ref="detailappendix" :config="billDetailAppendixConfig" @doAction="doAction"/>
6
6
  </Modal>