| | |
| | | <template slot-scope="{row}" |
| | | slot="deptName"> |
| | | <el-tag>{{row.deptName}}</el-tag> |
| | | </template> |
| | | <template slot-scope="{row}" |
| | | slot="userTypeName"> |
| | | <el-tag>{{row.userTypeName}}</el-tag> |
| | | </template> --> |
| | | <template slot-scope="{row}" slot="age"> |
| | | {{row.age==-1?'':row.age}} |
| | | </template> |
| | | <template slot-scope="{row}" slot="sex"> |
| | | {{row.sex==-1?'':row.sex==1?'男':row.sex==2?'女':''}} |
| | | </template> |
| | | <template slot-scope="{ row }" slot="deptId"> |
| | | <el-tag |
| | | class="rowClickSelf" |
| | |
| | | label: "性别", |
| | | prop: "sex", |
| | | width: 55, |
| | | slot:true, |
| | | type: "select", |
| | | dicData: [ |
| | | { |
| | |
| | | label: "年龄", |
| | | prop: "age", |
| | | width: 55, |
| | | slot:true, |
| | | display: false, |
| | | }, |
| | | { |
| | |
| | | ).then((res) => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | var d = data.records; |
| | | var date = new Date(); |
| | | var datayear = date.getFullYear(); |
| | | for (const key in d) { |
| | | var year = d[key].cardid.slice(6, 10); |
| | | d[key]["age"] = +datayear - +year; |
| | | // d[key].securitynumber = "赣洪202100009"; |
| | | } |
| | | // var d = data.records; |
| | | // var date = new Date(); |
| | | // var datayear = date.getFullYear(); |
| | | // for (const key in d) { |
| | | // var year = d[key].cardid.slice(6, 10); |
| | | // d[key]["age"] = +datayear - +year; |
| | | // // d[key].securitynumber = "赣洪202100009"; |
| | | // } |
| | | this.data = data.records; |
| | | console.log(this.data); |
| | | // console.log(this.data); |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | }); |