@@ -321,18 +307,20 @@
export default {
data() {
return {
+ childrenId:"",
+ typefatherId:"",
childrenList:[],
genderList:[
{
- value:1,
+ value:"1",
label:"男"
},
{
- value:2,
+ value:"2",
label:"女"
},
{
- value:0,
+ value:"0",
label:"未知"
}
],
@@ -575,6 +563,18 @@
this.formType = type
if (type === 'edit') {
this.formData = row
+ console.log(this.formData,"dssdl");
+ if (this.formData.serviceDemand) {
+ let splitStrings = this.formData.serviceDemand.split(",");
+ this.typefatherId=splitStrings[0]
+ this.formData.statusCategory=this.formData.statusCategory.split(",")
+ if ( this.childrenId=splitStrings[1]) {
+ this.handleChidren(this.typefatherId)
+ }
+ console.log(this.childrenId,this.typefatherId,"dslkjdsj");
+
+ }
+
} else {
this.formData = {
}
@@ -616,6 +616,9 @@
async addActivity() {
if(this.formType=="add"){
let url = '/voluntary/elderlyInfo/save'
+ let combinedString = this.typefatherId + "," + this.childrenId;
+ this.formData.serviceDemand=combinedString
+ this.formData.statusCategory=this.formData.statusCategory.join(",")
const { data, code, msg } = await requestPost(url, this.formData)
if (code === 0) {
this.$message({
@@ -628,6 +631,9 @@
this.$emit('closeAdd')
}else{
let url = '/voluntary/elderlyInfo/update'
+ let combinedString = this.typefatherId + "," + this.childrenId;
+ this.formData.serviceDemand=combinedString
+ this.formData.statusCategory=this.formData.statusCategory.join(",")
const { data, code, internalMsg } = await requestPost(url, this.formData)
if (code === 0) {
this.$message({
diff --git a/src/views/modules/informationArchive/elderlyArchives/cpts/info-old.vue b/src/views/modules/informationArchive/elderlyArchives/cpts/info-old.vue
index 383adf035..93254e734 100644
--- a/src/views/modules/informationArchive/elderlyArchives/cpts/info-old.vue
+++ b/src/views/modules/informationArchive/elderlyArchives/cpts/info-old.vue
@@ -44,8 +44,8 @@
-
+
@@ -488,7 +488,6 @@
async initForm(row) {
this.startLoading()
console.log(row,"dsclkjdslk");
-
this.formData=row
this.endLoading()
diff --git a/src/views/modules/informationArchive/elderlyArchives/index.vue b/src/views/modules/informationArchive/elderlyArchives/index.vue
index 1859ce1a8..40a2673e6 100644
--- a/src/views/modules/informationArchive/elderlyArchives/index.vue
+++ b/src/views/modules/informationArchive/elderlyArchives/index.vue
@@ -4,42 +4,43 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -64,83 +65,80 @@
- 新建档案
- 批量导入
+ 新建档案
+
+ 导入
+
导出
-
-
+ style="width: 100%;margin-top:16px" @select-all="selectAll" @selection-change="handelSelection">
+
+
-
+
-
+
- 是
- 否
+ {{scope.row.gender === "1"?"男":scope.row.gender === "2"?"女":"未知"}}
-
+
-
+
-
+
-
+
-
+
是
否
-
+
是
否
-
+
是
否
-
+
1
-
+
查看
- 编辑
+ 编辑
删除
-
批量删除
+
批量删除
@@ -152,16 +150,16 @@
@dialogCancle="addFormCancleInit" @dialogOk="addFormOkInit">
+ title="详情" width="1050px" top="5vh" class="dialog-h" @closed="diaInitClose">
-
+ title="结对志愿者" width="1050px" top="5vh" class="dialog-h" @closed="diaInitClose">
+
-
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/informationArchive/volunteerProfile/cpts/volunteers-list.vue b/src/views/modules/informationArchive/volunteerProfile/cpts/volunteers-list.vue
deleted file mode 100644
index ebc4560d4..000000000
--- a/src/views/modules/informationArchive/volunteerProfile/cpts/volunteers-list.vue
+++ /dev/null
@@ -1,163 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 至
-
-
-
- 查询
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查看
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/modules/informationArchive/volunteerProfile/index.vue b/src/views/modules/informationArchive/volunteerProfile/index.vue
index a57d9098f..75c1eafeb 100644
--- a/src/views/modules/informationArchive/volunteerProfile/index.vue
+++ b/src/views/modules/informationArchive/volunteerProfile/index.vue
@@ -4,14 +4,14 @@
-
+
-
+
@@ -101,23 +101,14 @@
-
-
-
-
-
-
-
+ title="详情" width="1050px" top="5vh" class="dialog-h" >
+
+
-
+
@@ -126,7 +117,6 @@