-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
+ placeholder="Pick date"/>
-
-
+
+
-
-
+
+
@@ -55,13 +55,13 @@
-
-
+
+
-
-
+
+
@@ -69,22 +69,22 @@
-
-
+
+
-
-
+
+
-
-
+
+
@@ -107,11 +107,11 @@
class="avatar-uploader"
action="string"
accept=".jpg,.jpeg,.png">
- 点击上传照片
+ Upload photo
- 读取身份证
+ Read id card
@@ -119,9 +119,9 @@
- 重置
- 保存
- 下一步,注册虹膜
+ Reset
+ Save
+ Next, capture iris
@@ -162,12 +162,12 @@
const validateIDCard = (rule, value, callback) => {
if (value !== '') {
if ((/^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/).test(value) === false) {
- callback(new Error('请输入合法的身份证号'))
+ callback(new Error('Please enter a valid id number'))
} else {
callback()
}
} else {
- callback(new Error('身份证号不能为空'))
+ callback(new Error('The id number cannot be empty'))
}
}
return {
@@ -203,12 +203,12 @@
nationList: [], // 民族列表
rules: {
// personCode: [{ required: true, message: '员工编号必填', trigger: ['blur', 'change'] }],
- name: [{ required: true, message: '姓名必填', trigger: ['blur', 'change'] }],
+ name: [{ required: true, message: 'Name is required', trigger: ['blur', 'change'] }],
idCardNo: [{ required: true, validator: validateIDCard, trigger: ['blur', 'change'] }],
- deptid: [{ required: true, message: '单位/部门必选', trigger: 'change' }],
- duty: [{ required: true, message: '职务必选', trigger: 'change' }],
- sex: [{ required: true, message: '性别必选', trigger: 'blur' }],
- birthday: [{ required: true, message: '出生日期必填', trigger: ['blur'] }]
+ deptid: [{ required: true, message: 'Company/Department is required', trigger: 'change' }],
+ duty: [{ required: true, message: 'Duty is required', trigger: 'change' }],
+ sex: [{ required: true, message: 'Gender is required', trigger: 'blur' }],
+ birthday: [{ required: true, message: 'Birth date is required', trigger: ['blur'] }]
},
dialogVisible: false,
labelPosition: 'right',
@@ -347,7 +347,7 @@
this.personForm.ext.certificationUnit = window.frames['iframeIDCard'].IssuedAt
this.personForm.ext.address = window.frames['iframeIDCard'].Address
} else {
- this.$message.warning('读卡失败')
+ this.$message.warning('Read failed')
}
// const baseUrl = getProject().register_url
// // const url = 'openIE:' + baseUrl + '?token=' + token + '_id=' + id + '_idCardNo=' + idCardNo
@@ -413,7 +413,7 @@
this.personForm.id = response.data.id
this.personForm.personCode = response.data.code
this.isSave = true
- this.$message.success('保存成功!')
+ this.$message.success('Save successfully!')
}
this.canSave = true
}).catch(() => {
@@ -422,14 +422,14 @@
} else if (this.isSave === true && this.isEditMode === false) {
updatePerson(this.personForm).then(response => {
if (response.code === 200) {
- this.$message.success('保存成功!')
+ this.$message.success('Save successfully!')
}
this.canSave = true
})
} else {
updatePerson(this.personForm).then(response => {
if (response.code === 200) {
- this.$message.success('保存成功!')
+ this.$message.success('Save successfully!')
}
this.canSave = true
})
@@ -443,11 +443,11 @@
// this.isSave = true
if (this.isSave) {
this.step = '2'
- this.irisBtnName = '初始化设备'
+ this.irisBtnName = 'Initialize equipment'
this.irisBtnDisable = true
this.devLoading = true
} else {
- this.$message.warning('请先保存用户基本信息')
+ this.$message.warning('Please save the basic information first')
}
},
// 接收iframe传来的消息
@@ -460,14 +460,14 @@
},
// 没用了
startCapture() {
- if (this.irisBtnName === '初始化设备') {
+ if (this.irisBtnName === 'Initialize equipment') {
this.devLoading = true
this.irisBtnDisable = true
window.frames['iframeMap'].initDev()
- } else if (this.irisBtnName === '立即采集') {
+ } else if (this.irisBtnName === 'Capture now') {
this.irisBtnDisable = true
window.frames['iframeMap'].StartCaptureStepTwo()
- } else if (this.irisBtnName === '保存虹膜数据') {
+ } else if (this.irisBtnName === 'Save iris') {
this.irisBtnDisable = true
this.saveIrisData()
}
@@ -484,9 +484,9 @@
this.step = '1'
if (response.code === 200) {
// this.$message.success('保存虹膜成功')
- this.$confirm('新增成功,是否继续新增?', '提示', {
- confirmButtonText: '是',
- cancelButtonText: '否',
+ this.$confirm('Add successfully, continue to add?', 'Message', {
+ confirmButtonText: 'Yes',
+ cancelButtonText: 'No',
type: 'info'
}).then(() => {
this.resetForm()
@@ -525,11 +525,11 @@
console.log(file.size)
const isLt2M = file.size / 1024 < 200
if (!isJPG) {
- this.$message.error('上传图片只能是 JPG 或 PNG 格式!')
+ this.$message.error('Only JPG or PNG formats are supported!')
res = false
}
if (!isLt2M) {
- this.$message.error('上传图片大小不能超过 200KB!')
+ this.$message.error('The image file size cannot exceed 200KB!')
res = false
}
return res
diff --git a/src/views/memberManage/listStaff.vue b/src/views/memberManage/listStaff.vue
index 3d7fcf9..464f13a 100644
--- a/src/views/memberManage/listStaff.vue
+++ b/src/views/memberManage/listStaff.vue
@@ -6,34 +6,34 @@
-
+
-
+
-
+
-
+
- 搜索
+ Search
-
+
- 导出记录
- 删除
- 新增
+ Export data
+ Delete
+ Add
@@ -45,11 +45,11 @@
{{ scope.row.ext[column.value] }}
-
+
- 编辑
- 注册虹膜
- 重新注册
+ Edit
+ Capture
+ Recapture
@@ -95,38 +95,39 @@
}, // 筛选条件
columns: [
{
- text: '员工编号',
+ text: 'Staff number',
value: 'personCode',
align: 'center'
},
{
- text: '姓名',
+ text: 'Name',
value: 'name',
align: 'center'
},
{
- text: '性别',
+ text: 'Gender',
value: 'sexName',
align: 'center'
},
{
- text: '身份证号',
+ text: 'Id number',
value: 'idCardNo',
align: 'center',
width: 180
},
{
- text: '单位/部门',
+ text: 'Company/Department',
value: 'deptName',
- align: 'center'
+ align: 'center',
+ width: 180
},
{
- text: '职务',
+ text: 'Duty',
value: 'dutyName',
align: 'center'
},
{
- text: '备注',
+ text: 'Remarks',
value: 'remarks',
width: 140,
align: 'center'
@@ -174,23 +175,23 @@
staffIds.push(value.id)
})
this.$confirm(
- '确定要删除所选员工吗?',
- '确认操作',
+ 'Are you sure to delete the selected items?',
+ 'Confirm the operation',
{
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ confirmButtonText: 'Yes',
+ cancelButtonText: 'Cancel',
type: 'warning'
}
).then(() => {
delPerson(staffIds).then(response => {
if (response.code === 200) {
- this.$message.success('删除成功')
+ this.$message.success('Delete successfully')
this.fetchData()
}
})
})
} else {
- this.$message.error('至少选中一项')
+ this.$message.error('Choose one item at least')
}
},
registerIris(row) {
@@ -218,13 +219,13 @@
// 全屏加载动画
const loading = this.$loading({
lock: true,
- text: '数据处理中,请稍后...',
+ text: 'Data is being processed, please hold...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
batchExportPerson(this.listQuery).then(res => {
loading.close() // 关闭加载动画
- downloadFile(res.data, '员工列表')
+ downloadFile(res.data, 'Staff list')
}).catch((res) => {
loading.close()
})
diff --git a/src/views/memberManage/listVisitor.vue b/src/views/memberManage/listVisitor.vue
index e6454a3..59deca5 100644
--- a/src/views/memberManage/listVisitor.vue
+++ b/src/views/memberManage/listVisitor.vue
@@ -6,10 +6,10 @@
-
+
-
+
@@ -17,24 +17,24 @@
+ start-placeholder="Creation time begin"
+ end-placeholder="Creation time end"/>
- 搜索
+ Search
-
+
- 导出记录
- 删除
- 新增
+ Export data
+ Delete
+ Add
@@ -46,11 +46,11 @@
{{ scope.row.ext[column.value] }}
-
+
- 编辑
- 注册虹膜
- 重新注册
+ Edit
+ Capture
+ Recapture
@@ -100,34 +100,34 @@
timeRange: [], // 时间范围
columns: [
{
- text: '访客编号',
+ text: 'Visitor number',
value: 'personCode',
align: 'center'
},
{
- text: '姓名',
+ text: 'Name',
value: 'name',
align: 'center'
},
{
- text: '性别',
+ text: 'Gender',
value: 'sexName',
align: 'center'
},
{
- text: '身份证号',
+ text: 'Id number',
value: 'idCardNo',
align: 'center',
width: 180
},
{
- text: '备注',
+ text: 'Remarks',
value: 'remarks',
width: 140,
align: 'center'
},
{
- text: '操作人',
+ text: 'Operator',
value: 'oprationName',
width: 110,
align: 'center'
@@ -140,7 +140,7 @@
// align: 'center'
// },
{
- text: '创建时间',
+ text: 'Create time',
value: 'createtime',
align: 'center'
}
@@ -198,23 +198,23 @@
staffIds.push(value.id)
})
this.$confirm(
- '确定要删除所选访客吗?',
- '确认操作',
+ 'Are you sure to delete the selected visitors?',
+ 'Confirm the operation',
{
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ confirmButtonText: 'Yes',
+ cancelButtonText: 'Cancel',
type: 'warning'
}
).then(() => {
delPerson(staffIds).then(response => {
if (response.code === 200) {
- this.$message.success('删除成功')
+ this.$message.success('Delete successfully')
this.fetchData()
}
})
})
} else {
- this.$message.error('至少选中一项')
+ this.$message.error('Choose one visitor at least')
}
},
// 批量导出
@@ -222,13 +222,13 @@
// 全屏加载动画
const loading = this.$loading({
lock: true,
- text: '数据处理中,请稍后...',
+ text: 'Processing data, please hold...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
batchExportPerson(this.listQuery).then(res => {
loading.close() // 关闭加载动画
- downloadFile(res.data, '访客列表')
+ downloadFile(res.data, 'Visitor list')
}).catch((res) => {
loading.close()
})