人员信息详情

This commit is contained in:
aoli.qu 2022-02-26 10:28:29 +08:00
parent bb4f44ef2e
commit e391dbc244
2 changed files with 31 additions and 5 deletions

View File

@ -203,6 +203,20 @@
</a-col> </a-col>
</a-row> </a-row>
<a-divider orientation="left">人脸识别图像</a-divider>
<a-row :gutter="24">
<a-col :md="12" :sm="24">
<a-form :form="form">
<a-form-item
label="人脸图像"
:labelCol="labelCol"
:wrapperCol="wrapperCol">
<img alt="image" :src="avatar" style="width: 50%;" v-if="avatar"/>
</a-form-item>
</a-form>
</a-col>
</a-row>
<a-divider orientation="left">变动信息</a-divider> <a-divider orientation="left">变动信息</a-divider>
<s-table <s-table
ref="table" ref="table"
@ -249,6 +263,7 @@
typeData: [], typeData: [],
idPhotoFace: '', idPhotoFace: '',
idPhotoBack: '', idPhotoBack: '',
avatar: '',
// //
queryParam: { }, queryParam: { },
// //
@ -301,8 +316,10 @@
}) })
this.form.getFieldDecorator('type', { valuePropName: 'checked', initialValue: typeIntArr }) this.form.getFieldDecorator('type', { valuePropName: 'checked', initialValue: typeIntArr })
this.idPhotoFace = data.idPhotoFace this.idPhotoFace = this.getImgPath(data.idPhotoFace)
this.idPhotoBack = data.idPhotoBack this.idPhotoBack = this.getImgPath(data.idPhotoBack)
this.avatar = data.avatar
this.form.setFieldsValue( this.form.setFieldsValue(
{ {
id: data.id, id: data.id,
@ -328,7 +345,16 @@
}) })
this.confirmLoading = false this.confirmLoading = false
}, },
getImgPath (imgInfo) {
let path
if (imgInfo) {
const fileArr = JSON.parse(imgInfo)
if (fileArr.length > 0) {
path = fileArr[0].url
}
}
return path
},
/** /**
* 获取字典数据 * 获取字典数据
*/ */

View File

@ -77,8 +77,8 @@
</template> </template>
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">
<a v-if="hasPerm('person:detail')" @click="$refs.personDetail.detail(record)">详情</a> <a v-if="hasPerm('person:get')" @click="$refs.personDetail.detail(record)">详情</a>
<a-divider type="vertical" v-if="hasPerm('person:detail')" /> <a-divider type="vertical" v-if="hasPerm('person:get')" />
<a-dropdown v-if="hasPerm('person:edit') || hasPerm('person:resetPwd') || hasPerm('person:del')"> <a-dropdown v-if="hasPerm('person:edit') || hasPerm('person:resetPwd') || hasPerm('person:del')">
<a class="ant-dropdown-link"> <a class="ant-dropdown-link">
更多 更多