通用培训文档修改
parent
78fbae1c1f
commit
e2db9c2d51
|
@ -2,6 +2,11 @@
|
|||
<div v-if="config.visible">
|
||||
<base-model :config="config">
|
||||
<template slot="dialog-body">
|
||||
<el-form ref="form" :model="rowData" label-width="80px" style="width: 80%;display: inline-block;">
|
||||
<el-form-item :label="`${$t('dictionary:signature:table:Name')}: `">
|
||||
<span class="name text-ellipsis" :title="rowData.Name">{{ rowData.Name }}</span>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-button size="mini" type="primary" style="float:right" @click.stop="edit({})">
|
||||
{{ $t('common:button:add') }}</el-button>
|
||||
<el-table :data="list" style="width: 100%" max-height="300px" v-loading="loading"
|
||||
|
@ -86,6 +91,12 @@ export default {
|
|||
}
|
||||
}
|
||||
},
|
||||
rowData: {
|
||||
type: Object,
|
||||
default: () => {
|
||||
return {}
|
||||
}
|
||||
},
|
||||
SystemDocumentId: {
|
||||
type: String,
|
||||
default: ''
|
||||
|
@ -231,3 +242,9 @@ export default {
|
|||
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.name {
|
||||
display: block;
|
||||
width: 90%;
|
||||
}
|
||||
</style>
|
|
@ -81,7 +81,12 @@
|
|||
sortable="custom" min-width="120px" />
|
||||
<el-table-column prop="Name" :label="$t('dictionary:signature:table:Name')" show-overflow-tooltip
|
||||
sortable="custom" min-width="120px" />
|
||||
|
||||
<el-table-column prop="AttachmentCount" :label="$t('dictionary:signature:table:AttachmentCount')"
|
||||
show-overflow-tooltip sortable="custom" min-width="150px">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" @click.stop="openAttachment(scope.row)">{{ scope.row.AttachmentCount }}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="SignViewMinimumMinutes" :label="$t('dictionary:signature:table:SignViewMinimumMinutes')"
|
||||
show-overflow-tooltip sortable="custom" min-width="200px" />
|
||||
<el-table-column prop="CurrentStaffTrainDays" :label="$t('dictionary:signature:table:CurrentStaffTrainDays')"
|
||||
|
@ -123,26 +128,25 @@
|
|||
{{ $fd('ReadingYesOrNo', Number(scope.row.DocUserSignType)) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="AttachmentCount" :label="$t('dictionary:signature:table:AttachmentCount')"
|
||||
show-overflow-tooltip sortable="custom" min-width="150px">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" @click.stop="openAttachment(scope.row)">{{ scope.row.AttachmentCount }}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="CreateTime" :label="$t('dictionary:signature:table:CreateTime')" show-overflow-tooltip
|
||||
sortable="custom" min-width="180px" />
|
||||
|
||||
<el-table-column :label="$t('common:action:action')" min-width="240px" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button circle icon="el-icon-view" @click="handlePreview(scope.row)" :title="$t('common:button:preview')">
|
||||
<el-button circle icon="el-icon-view" @click="handlePreview(scope.row)"
|
||||
:title="$t('common:button:preview')">
|
||||
</el-button>
|
||||
<el-button circle icon="el-icon-edit-outline" :title="$t('common:button:edit')" @click="handleEdit(scope.row)">
|
||||
<el-button circle icon="el-icon-edit-outline" :title="$t('common:button:edit')"
|
||||
@click="handleEdit(scope.row)">
|
||||
</el-button>
|
||||
<el-button :disabled="scope.row.IsPublish" circle icon="el-icon-position" :title="$t('dictionary:signature:button:publish')" @click="publishSystemDocument([scope.row])">
|
||||
<el-button :disabled="scope.row.IsPublish" circle icon="el-icon-position"
|
||||
:title="$t('dictionary:signature:button:publish')" @click="publishSystemDocument([scope.row])">
|
||||
</el-button>
|
||||
<el-button :disabled="scope.row.IsDeleted" circle icon="el-icon-close" :title="$t('common:button:revoke')" @click="handleRepeal([scope.row])">
|
||||
<el-button :disabled="scope.row.IsDeleted" circle icon="el-icon-close" :title="$t('common:button:revoke')"
|
||||
@click="handleRepeal([scope.row])">
|
||||
</el-button>
|
||||
<el-button circle icon="el-icon-delete" :title="$t('common:button:delete')" @click="handleDelete(scope.row)">
|
||||
<el-button circle icon="el-icon-delete" :title="$t('common:button:delete')"
|
||||
@click="handleDelete(scope.row)">
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -157,7 +161,8 @@
|
|||
<TemplateForm :data="currentRow" @closeDialog="closeDialog" @getList="getList" />
|
||||
</el-dialog>
|
||||
<!--附件列表-->
|
||||
<attachmentList v-if="config.visible" :config="config" :SystemDocumentId="SystemDocumentId" @getList="getList" />
|
||||
<attachmentList v-if="config.visible" :config="config" :rowData="rowData" :SystemDocumentId="SystemDocumentId"
|
||||
@getList="getList" />
|
||||
<!-- 预览文件 -->
|
||||
<el-dialog v-if="previewVisible" :visible.sync="previewVisible" :title="$t('common:button:preview')"
|
||||
:fullscreen="true" append-to-body custom-class="base-dialog-wrapper">
|
||||
|
@ -225,7 +230,8 @@ export default {
|
|||
title: this.$t('dictionary:signature:attachmentList:title'),
|
||||
width: '800px',
|
||||
},
|
||||
multipleSelection: []
|
||||
multipleSelection: [],
|
||||
rowData: {}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@ -264,6 +270,7 @@ export default {
|
|||
}
|
||||
},
|
||||
openAttachment(row) {
|
||||
this.rowData = row
|
||||
this.SystemDocumentId = row.Id
|
||||
this.config.visible = true
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue