|
@@ -66,11 +66,12 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="年龄" align="center" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ getAge(scope.row.birthday) }}</span>
|
|
|
+ <span>{{ !scope.row.birthday?'':getAge(scope.row.birthday) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="记录内容" show-overflow-tooltip align="center" prop="title" />
|
|
|
<el-table-column label="提交时间" align="center" prop="createTime" />
|
|
|
+
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
@@ -87,6 +88,7 @@
|
|
|
>删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+
|
|
|
</el-table>
|
|
|
|
|
|
<pagination
|
|
@@ -178,6 +180,7 @@ export default {
|
|
|
form: {},
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
+
|
|
|
}
|
|
|
};
|
|
|
},
|
|
@@ -189,9 +192,9 @@ export default {
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
listDocRecord(this.queryParams).then(response => {
|
|
|
- this.docRecordList = response.data.list;
|
|
|
- this.total = response.data.total;
|
|
|
- this.loading = false;
|
|
|
+ this.docRecordList = response.data.list;
|
|
|
+ this.total = response.data.total;
|
|
|
+ this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
// 取消按钮
|
|
@@ -202,17 +205,17 @@ export default {
|
|
|
// 表单重置
|
|
|
reset() {
|
|
|
this.form = {
|
|
|
- recordId: null,
|
|
|
- docId: null,
|
|
|
- recordType: null,
|
|
|
- title: null,
|
|
|
- content: null,
|
|
|
- jsonInfo: null,
|
|
|
- remark: null,
|
|
|
- createTime: null,
|
|
|
- updateTime: null,
|
|
|
- companyId: null,
|
|
|
- companyUserId: null
|
|
|
+ recordId: null,
|
|
|
+ docId: null,
|
|
|
+ recordType: null,
|
|
|
+ title: null,
|
|
|
+ content: null,
|
|
|
+ jsonInfo: null,
|
|
|
+ remark: null,
|
|
|
+ createTime: null,
|
|
|
+ updateTime: null,
|
|
|
+ companyId: null,
|
|
|
+ companyUserId: null
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
@@ -255,17 +258,17 @@ export default {
|
|
|
if (this.form.recordId != null) {
|
|
|
updateDocRecord(this.form).then(response => {
|
|
|
if (response.code === 200) {
|
|
|
- this.msgSuccess("修改成功");
|
|
|
- this.open = false;
|
|
|
- this.getList();
|
|
|
+ this.msgSuccess("修改成功");
|
|
|
+ this.open = false;
|
|
|
+ this.getList();
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
addDocRecord(this.form).then(response => {
|
|
|
if (response.code === 200) {
|
|
|
- this.msgSuccess("新增成功");
|
|
|
- this.open = false;
|
|
|
- this.getList();
|
|
|
+ this.msgSuccess("新增成功");
|
|
|
+ this.open = false;
|
|
|
+ this.getList();
|
|
|
}
|
|
|
});
|
|
|
}
|