n20-common-lib 2.2.34 → 2.2.36
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
|
@@ -362,14 +362,14 @@ export default {
|
|
|
362
362
|
}
|
|
363
363
|
},
|
|
364
364
|
addErrFn() {
|
|
365
|
-
this.addMsg = '审批方式不能为空'
|
|
365
|
+
this.addMsg = $lc('审批方式不能为空')
|
|
366
366
|
setTimeout(() => {
|
|
367
367
|
this.addMsg = undefined
|
|
368
368
|
}, 1000)
|
|
369
369
|
},
|
|
370
370
|
errMsgFn(str = '') {
|
|
371
371
|
this.$refs['msg-input'].focus()
|
|
372
|
-
this.errMsg = str + '操作,意见不能为空'
|
|
372
|
+
this.errMsg = str + $lc('操作,意见不能为空')
|
|
373
373
|
setTimeout(() => {
|
|
374
374
|
this.errMsg = undefined
|
|
375
375
|
}, 1000)
|
|
@@ -386,7 +386,7 @@ export default {
|
|
|
386
386
|
// 驳回
|
|
387
387
|
rejectFn() {
|
|
388
388
|
if (!this.messageC) {
|
|
389
|
-
return this.errMsgFn('驳回')
|
|
389
|
+
return this.errMsgFn($lc('驳回'))
|
|
390
390
|
}
|
|
391
391
|
this.beforeFn(this.beforeReject, () => {
|
|
392
392
|
axios.post('/bems/activiti/admin/todo/reject', this.getParam()).then(({ data }) => {
|
|
@@ -396,7 +396,7 @@ export default {
|
|
|
396
396
|
},
|
|
397
397
|
rejectToB() {
|
|
398
398
|
if (!this.messageC) {
|
|
399
|
-
return this.errMsgFn('驳回')
|
|
399
|
+
return this.errMsgFn($lc('驳回'))
|
|
400
400
|
}
|
|
401
401
|
this.rejectToV = true
|
|
402
402
|
},
|
|
@@ -415,7 +415,7 @@ export default {
|
|
|
415
415
|
// 驳回到上一步
|
|
416
416
|
rejectPreFn(list) {
|
|
417
417
|
if (!this.messageC) {
|
|
418
|
-
return this.errMsgFn('驳回')
|
|
418
|
+
return this.errMsgFn($lc('驳回'))
|
|
419
419
|
}
|
|
420
420
|
this.beforeFn(this.beforeRejectPre, () => {
|
|
421
421
|
axios.post('/bems/activiti/admin/todo/rejectpre', this.getParam()).then(({ data }) => {
|
|
@@ -450,7 +450,7 @@ export default {
|
|
|
450
450
|
// 作废
|
|
451
451
|
discardFn() {
|
|
452
452
|
if (!this.messageC) {
|
|
453
|
-
return this.errMsgFn('作废')
|
|
453
|
+
return this.errMsgFn($lc('作废'))
|
|
454
454
|
}
|
|
455
455
|
this.beforeFn(this.beforeDiscard, () => {
|
|
456
456
|
axios.post('/bems/activiti/admin/todo/cancle', this.getParam()).then(({ data }) => {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
<slot slot="header" slot-scope="scope" name="time-header" :column="scope.column">{{ '上传时间' | $lc }}</slot>
|
|
105
105
|
<slot slot-scope="{ row }" name="time" :row="row">{{ row[keys.time] }}</slot>
|
|
106
106
|
</el-table-column>
|
|
107
|
-
<el-table-column :label="'上传人' | $lc" :prop="keys.user">
|
|
107
|
+
<el-table-column v-if="!hideUser" :label="'上传人' | $lc" :prop="keys.user">
|
|
108
108
|
<slot slot="header" slot-scope="scope" name="user-header" :column="scope.column">{{ '上传人' | $lc }}</slot>
|
|
109
109
|
<slot slot-scope="{ row }" name="user" :row="row">{{ row[keys.user] }}</slot>
|
|
110
110
|
</el-table-column>
|
|
@@ -320,6 +320,10 @@ export default {
|
|
|
320
320
|
getFileMethod: {
|
|
321
321
|
type: Function,
|
|
322
322
|
default: undefined
|
|
323
|
+
},
|
|
324
|
+
hideUser: {
|
|
325
|
+
type: Boolean,
|
|
326
|
+
default: false
|
|
323
327
|
}
|
|
324
328
|
},
|
|
325
329
|
data() {
|