Merge branch 'develop' of https://gitee.com/siwa-team/dawa-vue into develop
This commit is contained in:
commit
6079e7de15
|
@ -16,7 +16,7 @@
|
||||||
<div class="exam-line"></div>
|
<div class="exam-line"></div>
|
||||||
<div class="exam-box">
|
<div class="exam-box">
|
||||||
<a-card :bordered="false" ref="question">
|
<a-card :bordered="false" ref="question">
|
||||||
<div class="exam-title">{{ data.courseName }}<template v-if="item.questionScore">(共{{item.questionCount}}题,每题{{item.questionScore}}分,共{{item.totalScore}}分)</template></div>
|
<div class="exam-title">{{ data.courseName }}</div>
|
||||||
<div class="exam-main">
|
<div class="exam-main">
|
||||||
<div v-for="(item, index) in data.question" :key="index">
|
<div v-for="(item, index) in data.question" :key="index">
|
||||||
<div class="sub-title">{{ $getCapitalizeNumber(index) }}、{{ $getQuestionTypeText(item.questionType) }}<span v-if="type === 'exam'">(共{{ item.questionCount }}题,每题{{ item.questionScore }}分,共{{ item.totalScore }}分)</span></div>
|
<div class="sub-title">{{ $getCapitalizeNumber(index) }}、{{ $getQuestionTypeText(item.questionType) }}<span v-if="type === 'exam'">(共{{ item.questionCount }}题,每题{{ item.questionScore }}分,共{{ item.totalScore }}分)</span></div>
|
||||||
|
|
|
@ -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
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 获取字典数据
|
* 获取字典数据
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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">
|
||||||
更多
|
更多
|
||||||
|
|
Loading…
Reference in New Issue