[update] 修改bug80472

This commit is contained in:
lideqin
2024-01-10 09:27:43 +08:00
parent 1291500ea2
commit 091792aa1e
2 changed files with 8 additions and 1 deletions
@@ -64,6 +64,7 @@ import { getFileInfo } from '@/api/api'
import { previewPdf } from '@/utils/previewPdf'
import Vue from 'vue'
import { ACCESS_TOKEN } from '@/store/mutation-types'
import { USER_INFO } from '../../../../store/mutation-types'
const Base64 = require('js-base64').Base64
@@ -185,6 +186,8 @@ export default {
if (!err) {
this.confirmLoading = true
const param = Object.assign({}, values)
const currentUser = Vue.ls.get(USER_INFO)
param.createUserId_dictText = currentUser.realname + '(' + currentUser.username + ')'
console.log(param)
this.$emit('ok', param, this.index)
this.form.resetFields()
@@ -199,6 +202,10 @@ export default {
if (!err) {
this.confirmLoading = true
const param = Object.assign({}, values)
if (this.isAdd) {
const currentUser = Vue.ls.get(USER_INFO)
param.createUserId_dictText = currentUser.realname + '(' + currentUser.username + ')'
}
console.log(param)
this.$emit('ok', param, this.index)
this.close()
@@ -39,7 +39,7 @@
<div slot="action" slot-scope="{record, index}" class="action-span-cell">
<a @click="handleEdit(record, index)" class="table-ope-btn" :disabled="disabled">{{ $t('edit') }}</a>
<a-divider type="vertical" />
<a @click="handleDelete(record.id, index)" class="table-ope-btn" :disabled="disabled">{{ $t('delete') }}</a>
<a @click="handleDelete(index)" class="table-ope-btn" :disabled="disabled">{{ $t('delete') }}</a>
</div>
</j-table>