通用培训文档修改
parent
78fbae1c1f
commit
e2db9c2d51
|
@ -2,6 +2,11 @@
|
||||||
<div v-if="config.visible">
|
<div v-if="config.visible">
|
||||||
<base-model :config="config">
|
<base-model :config="config">
|
||||||
<template slot="dialog-body">
|
<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({})">
|
<el-button size="mini" type="primary" style="float:right" @click.stop="edit({})">
|
||||||
{{ $t('common:button:add') }}</el-button>
|
{{ $t('common:button:add') }}</el-button>
|
||||||
<el-table :data="list" style="width: 100%" max-height="300px" v-loading="loading"
|
<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: {
|
SystemDocumentId: {
|
||||||
type: String,
|
type: String,
|
||||||
default: ''
|
default: ''
|
||||||
|
@ -230,4 +241,10 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.name {
|
||||||
|
display: block;
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -81,7 +81,12 @@
|
||||||
sortable="custom" min-width="120px" />
|
sortable="custom" min-width="120px" />
|
||||||
<el-table-column prop="Name" :label="$t('dictionary:signature:table:Name')" show-overflow-tooltip
|
<el-table-column prop="Name" :label="$t('dictionary:signature:table:Name')" show-overflow-tooltip
|
||||||
sortable="custom" min-width="120px" />
|
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')"
|
<el-table-column prop="SignViewMinimumMinutes" :label="$t('dictionary:signature:table:SignViewMinimumMinutes')"
|
||||||
show-overflow-tooltip sortable="custom" min-width="200px" />
|
show-overflow-tooltip sortable="custom" min-width="200px" />
|
||||||
<el-table-column prop="CurrentStaffTrainDays" :label="$t('dictionary:signature:table:CurrentStaffTrainDays')"
|
<el-table-column prop="CurrentStaffTrainDays" :label="$t('dictionary:signature:table:CurrentStaffTrainDays')"
|
||||||
|
@ -123,26 +128,25 @@
|
||||||
{{ $fd('ReadingYesOrNo', Number(scope.row.DocUserSignType)) }}
|
{{ $fd('ReadingYesOrNo', Number(scope.row.DocUserSignType)) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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
|
<el-table-column prop="CreateTime" :label="$t('dictionary:signature:table:CreateTime')" show-overflow-tooltip
|
||||||
sortable="custom" min-width="180px" />
|
sortable="custom" min-width="180px" />
|
||||||
|
|
||||||
<el-table-column :label="$t('common:action:action')" min-width="240px" fixed="right">
|
<el-table-column :label="$t('common:action:action')" min-width="240px" fixed="right">
|
||||||
<template slot-scope="scope">
|
<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>
|
||||||
<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>
|
||||||
<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>
|
||||||
<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>
|
||||||
<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>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -157,7 +161,8 @@
|
||||||
<TemplateForm :data="currentRow" @closeDialog="closeDialog" @getList="getList" />
|
<TemplateForm :data="currentRow" @closeDialog="closeDialog" @getList="getList" />
|
||||||
</el-dialog>
|
</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')"
|
<el-dialog v-if="previewVisible" :visible.sync="previewVisible" :title="$t('common:button:preview')"
|
||||||
:fullscreen="true" append-to-body custom-class="base-dialog-wrapper">
|
:fullscreen="true" append-to-body custom-class="base-dialog-wrapper">
|
||||||
|
@ -225,7 +230,8 @@ export default {
|
||||||
title: this.$t('dictionary:signature:attachmentList:title'),
|
title: this.$t('dictionary:signature:attachmentList:title'),
|
||||||
width: '800px',
|
width: '800px',
|
||||||
},
|
},
|
||||||
multipleSelection: []
|
multipleSelection: [],
|
||||||
|
rowData: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -264,6 +270,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
openAttachment(row) {
|
openAttachment(row) {
|
||||||
|
this.rowData = row
|
||||||
this.SystemDocumentId = row.Id
|
this.SystemDocumentId = row.Id
|
||||||
this.config.visible = true
|
this.config.visible = true
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue