优化aitable
This commit is contained in:
		| @@ -33,7 +33,7 @@ | ||||
|           style="margin-top: 6px;" | ||||
|           :current.sync="search.current" | ||||
|           :size.sync="search.size" | ||||
|           @getList="getList"> | ||||
|           @getList="getList" :dict="dict"> | ||||
|         <el-table-column slot="options" width="160px" fixed="right" label="操作" align="center"> | ||||
|           <template slot-scope="{ row }"> | ||||
|             <div class="table-options"> | ||||
| @@ -88,7 +88,7 @@ export default { | ||||
|         {prop: 'name', label: '模板名称'}, | ||||
|         {prop: 'createUserName', align: 'center', label: '创建人'}, | ||||
|         {prop: 'description', align: 'center', label: '描述'}, | ||||
|         {prop: 'status', align: 'center', label: '状态', formart: v => this.dict.getLabel('cwpStatus', v)}, | ||||
|         {prop: 'status', align: 'center', label: '状态', dict:"cwpStatus"}, | ||||
|         {prop: 'createTime', align: 'center', label: '创建时间'} | ||||
|       ], | ||||
|       tableData: [], | ||||
|   | ||||
| @@ -210,7 +210,7 @@ export default { | ||||
|         {prop: 'appName', label: '应用名'}, | ||||
|         {prop: 'appTableName', align: 'center', label: '表名'}, | ||||
|         {prop: 'description', align: 'center', label: '描述'}, | ||||
|         {prop: 'type', align: 'center', label: '类型', formart: v => v === '0' ? '村微应用' : 'sql语句'}, | ||||
|         {prop: 'type', align: 'center', label: '类型', format: v => v === '0' ? '村微应用' : 'sql语句'}, | ||||
|         {prop: 'createUserName', align: 'center', label: '创建人'}, | ||||
|         {prop: 'createTime', align: 'center', label: '创建时间'} | ||||
|       ], | ||||
|   | ||||
| @@ -127,14 +127,14 @@ export default { | ||||
|               } | ||||
|             }, row.householdName === '1' ? '户主' : (this.dict.getLabel('householdRelation', row.householdRelation) || '-')) | ||||
|           }, | ||||
|           formart: v => this.dict.getLabel('householdRelation', v) | ||||
|           format: v => this.dict.getLabel('householdRelation', v) | ||||
|         }, | ||||
|         { | ||||
|           prop: 'idNumber', | ||||
|           label: '身份证号', | ||||
|           align: 'center', | ||||
|           width: 220, | ||||
|           formart: v => v ? v.replace(/^(\d{10})\d{4}(.{4}$)/g, `$1${Array(5).join('*')}$2`) : '-' | ||||
|           format: v => v ? v.replace(/^(\d{10})\d{4}(.{4}$)/g, `$1${Array(5).join('*')}$2`) : '-' | ||||
|         }, | ||||
|         {prop: 'phone', label: '联系方式', align: 'center'} | ||||
|       ], | ||||
|   | ||||
		Reference in New Issue
	
	Block a user