138 lines
3.7 KiB
Vue
138 lines
3.7 KiB
Vue
<template>
|
|
<div class="specialty">
|
|
<el-button type="text" class="editBtn" @click.stop="openEdit">
|
|
{{ $t('common:button:edit') }}
|
|
</el-button>
|
|
<template v-if="true">
|
|
<el-form class="demo-form-inline">
|
|
<el-form-item :label="$t('curriculumVitae:specialty:specialty')">
|
|
<span>放射科</span>
|
|
</el-form-item>
|
|
<el-form-item :label="$t('curriculumVitae:specialty:submajor')">
|
|
<el-tag type="info" v-for="item in ['1', '2', '3']" :key="item">
|
|
标签三
|
|
</el-tag>
|
|
</el-form-item>
|
|
<el-form-item :label="$t('curriculumVitae:specialty:equipment')">
|
|
<el-tag type="info" v-for="item in ['1', '2', '3']" :key="item">
|
|
标签三
|
|
</el-tag>
|
|
</el-form-item>
|
|
</el-form>
|
|
</template>
|
|
<div class="noData" v-else>{{ $t('curriculumVitae:noData') }}</div>
|
|
<base-model :config="model_cfg">
|
|
<template slot="dialog-body">
|
|
<el-form
|
|
ref="specialtyFrom"
|
|
v-loading="loading"
|
|
:model="form"
|
|
:rules="rules"
|
|
label-width="170px"
|
|
size="small"
|
|
>
|
|
<el-form-item
|
|
:label="$t('curriculumVitae:specialty:form:specialty')"
|
|
prop="InternationalizationType"
|
|
>
|
|
<el-select v-model="form.Sex" clearable placeholder="">
|
|
<el-option
|
|
v-for="item in $d.sex"
|
|
:key="item.id"
|
|
:label="item.label"
|
|
:value="item.value"
|
|
/>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item
|
|
:label="$t('curriculumVitae:specialty:form:submajor')"
|
|
prop="InternationalizationType"
|
|
>
|
|
<el-select v-model="form.Sex" clearable placeholder="">
|
|
<el-option
|
|
v-for="item in $d.sex"
|
|
:key="item.id"
|
|
:label="item.label"
|
|
:value="item.value"
|
|
/>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item
|
|
:label="$t('curriculumVitae:specialty:form:equipment')"
|
|
prop="InternationalizationType"
|
|
>
|
|
<el-select v-model="form.Sex" clearable placeholder="">
|
|
<el-option
|
|
v-for="item in $d.sex"
|
|
:key="item.id"
|
|
:label="item.label"
|
|
:value="item.value"
|
|
/>
|
|
</el-select>
|
|
</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: 'specialty',
|
|
components: { BaseModel },
|
|
data() {
|
|
return {
|
|
model_cfg: {
|
|
visible: false,
|
|
showClose: true,
|
|
width: '600px',
|
|
title: this.$t('curriculumVitae:specialty:form:title'),
|
|
appendToBody: true,
|
|
},
|
|
form: {},
|
|
rules: {},
|
|
loading: false,
|
|
}
|
|
},
|
|
methods: {
|
|
openEdit() {
|
|
this.model_cfg.visible = true
|
|
},
|
|
handleCancle() {
|
|
this.model_cfg.visible = false
|
|
},
|
|
handleSave() {
|
|
this.model_cfg.visible = false
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
.specialty {
|
|
position: relative;
|
|
min-height: 100px;
|
|
.editBtn {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0px;
|
|
z-index: 99;
|
|
}
|
|
}
|
|
::v-deep .el-tag {
|
|
margin-right: 10px;
|
|
&:last-child {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
.el-select {
|
|
width: 100%;
|
|
}
|
|
</style> |