130 lines
3.4 KiB
Vue
130 lines
3.4 KiB
Vue
<template>
|
|
<div class="treatise">
|
|
<div class="title">
|
|
<span>{{ $t('curriculumVitae:treatise:title') }}</span>
|
|
<el-button type="text" class="editBtn" @click.stop="openEdit">
|
|
{{ $t('common:button:add') }}
|
|
</el-button>
|
|
</div>
|
|
<el-table
|
|
:data="tableData"
|
|
style="width: 100%"
|
|
:header-cell-style="{ background: '#eee', color: '#606266' }"
|
|
>
|
|
<el-table-column
|
|
prop="date"
|
|
:label="$t('curriculumVitae:treatise:table:author')"
|
|
>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="date"
|
|
:label="$t('curriculumVitae:treatise:table:name')"
|
|
>
|
|
</el-table-column>
|
|
<el-table-column
|
|
prop="date"
|
|
:label="$t('curriculumVitae:treatise:table:publish')"
|
|
>
|
|
</el-table-column>
|
|
<el-table-column prop="date" :label="$t('common:action:action')">
|
|
<template slot-scope="scope">
|
|
<el-button type="text" class="editBtn" @click.stop="openEdit(scope)">
|
|
{{ $t('common:button:edit') }}
|
|
</el-button>
|
|
<el-button type="text" class="editBtn" @click.stop="openEdit">
|
|
{{ $t('common:button:delete') }}
|
|
</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
<base-model :config="model_cfg">
|
|
<template slot="dialog-body">
|
|
<el-form
|
|
ref="treatiseFrom"
|
|
v-loading="loading"
|
|
:model="form"
|
|
:rules="rules"
|
|
label-width="80px"
|
|
size="small"
|
|
>
|
|
<el-form-item
|
|
:label="$t('curriculumVitae:treatise:form:author')"
|
|
prop="InternationalizationType"
|
|
>
|
|
<el-input clearable></el-input>
|
|
</el-form-item>
|
|
|
|
<el-form-item
|
|
:label="$t('curriculumVitae:treatise:form:name')"
|
|
prop="InternationalizationType"
|
|
>
|
|
<el-input clearable type="textarea" :rows="2"></el-input>
|
|
</el-form-item>
|
|
<el-form-item
|
|
:label="$t('curriculumVitae:treatise:form:publish')"
|
|
prop="InternationalizationType"
|
|
>
|
|
<el-input clearable type="textarea" :rows="2"></el-input>
|
|
</el-form-item>
|
|
</el-form>
|
|
</template>
|
|
<template slot="dialog-footer">
|
|
<el-button size="small" type="primary" @click="handleCancle">
|
|
{{ $t('common:button:cancel') }}
|
|
</el-button>
|
|
<el-button size="small" type="primary" @click="handleSave">
|
|
{{ $t('common:button:save') }}
|
|
</el-button>
|
|
</template>
|
|
</base-model>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import BaseModel from '@/components/BaseModel'
|
|
export default {
|
|
name: 'treatise',
|
|
components: { BaseModel },
|
|
data() {
|
|
return {
|
|
tableData: [],
|
|
model_cfg: {
|
|
visible: false,
|
|
showClose: true,
|
|
width: '600px',
|
|
title: this.$t('curriculumVitae:treatise:form:title'),
|
|
appendToBody: true,
|
|
},
|
|
form: {},
|
|
rules: {},
|
|
loading: false,
|
|
daterange: [],
|
|
}
|
|
},
|
|
methods: {
|
|
openEdit() {
|
|
this.model_cfg.visible = true
|
|
},
|
|
handleCancle() {
|
|
this.model_cfg.visible = false
|
|
},
|
|
handleSave() {
|
|
this.model_cfg.visible = false
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
.treatise {
|
|
min-height: 100px;
|
|
.title {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 10px;
|
|
}
|
|
}
|
|
.el-select,
|
|
.el-date-editor {
|
|
width: 97%;
|
|
}
|
|
</style> |