| | |
| | | :permission="permissionList" @row-save="rowSave" :before-open="beforeOpen" @search-change="searchChange" |
| | | @search-reset="searchReset" @selection-change="selectionChange" @current-change="currentChange" |
| | | @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad"> |
| | | <template slot-scope="{row}" slot="location"> |
| | | <span v-text="showLocation(row.location)"></span> |
| | | <template slot-scope="{row, size}" slot="age"> |
| | | <el-tag :size="size">{{ |
| | | row.age |
| | | }}</el-tag> |
| | | </template> |
| | | |
| | | <template slot-scope="{row}" slot="lng"> |
| | | <span v-text="decimalProcessing(row.lng)"></span> |
| | | </template> |
| | | |
| | | <template slot-scope="{row}" slot="lat"> |
| | | <span v-text="decimalProcessing(row.lat)"></span> |
| | | </template> |
| | | |
| | | <template slot-scope="{row, size}" slot="confirmFlag"> |
| | | <el-tag :size="size" :type="showConfirmFlag(row.confirmFlag).type">{{ |
| | | showConfirmFlag(row.confirmFlag).text |
| | | <template slot-scope="{row, size}" slot="gender"> |
| | | <el-tag :size="size" :type="showGender(row.gender).type">{{ |
| | | showGender(row.gender).text |
| | | }}</el-tag> |
| | | </template> |
| | | |
| | | <template slot-scope="{row, size}" slot="resignationFlag"> |
| | | <el-tag :size="size" :type="showResignationFlag(row.resignationFlag).type">{{ showResignationFlag(row.resignationFlag).text |
| | | <el-tag :size="size" :type="showResignationFlag(row.resignationFlag).type">{{ |
| | | showResignationFlag(row.resignationFlag).text |
| | | }}</el-tag> |
| | | </template> |
| | | |
| | |
| | | label: "性别", |
| | | prop: "gender", |
| | | width: 80, |
| | | align:"center", |
| | | type: "select", |
| | | dicData: [ |
| | | { |
| | |
| | | width: 80, |
| | | label: "年龄", |
| | | prop: "age", |
| | | align:"center" |
| | | }, |
| | | { |
| | | minWidth: 160, |
| | |
| | | } |
| | | }, |
| | | |
| | | showLocation() { |
| | | showGender() { |
| | | return (data) => { |
| | | if (data != null && data.indexOf(',') != -1) { |
| | | data = data.split(',') |
| | | |
| | | return data[2] |
| | | } else { |
| | | return data || '' |
| | | let tags = { |
| | | text: '', |
| | | type: '' |
| | | } |
| | | |
| | | if (data == 1) { |
| | | tags = { |
| | | text: '男', |
| | | type: 'primary' |
| | | } |
| | | } else if (data == 2) { |
| | | tags = { |
| | | text: '女', |
| | | type: 'primary' |
| | | } |
| | | } |
| | | |
| | | return tags |
| | | } |
| | | }, |
| | | |