From 3f2e2443a61d1ff98a829925e3d42cdfa1275f0b Mon Sep 17 00:00:00 2001 From: Tcsm <1377977403@qq.com> Date: 星期六, 05 八月 2023 02:33:52 +0800 Subject: [PATCH] 个人自传已可以新增 --- ruoyi-ui/src/views/genealogy/index.vue | 107 ++++++++++++++++++++++++++++------------------------- 1 files changed, 57 insertions(+), 50 deletions(-) diff --git a/ruoyi-ui/src/views/genealogy/index.vue b/ruoyi-ui/src/views/genealogy/index.vue index 1238352..3a41912 100644 --- a/ruoyi-ui/src/views/genealogy/index.vue +++ b/ruoyi-ui/src/views/genealogy/index.vue @@ -57,16 +57,23 @@ <i slot="prefix" class="el-input__icon el-icon-search"></i> </el-input> </el-form-item> + <el-form-item label="鐢熸棩" prop="birth"> - <el-input - v-model="queryParams.birth" - placeholder="璇疯緭鍏ョ敓鏃�" - clearable - style="width: 240px" - @keyup.enter.native="handleQuery" - > - <i slot="prefix" class="el-input__icon el-icon-search"></i> - </el-input> + <el-date-picker + v-model="dateRange" + style="width: 197px; + height: 30px; + background: #FFFFFF; + border-radius: 14px 14px 14px 14px; + opacity: 0.5; + border: 1px solid rgba(0,0,0,0.25);" + value-format="yyyy-MM-dd" + type="daterange" + range-separator="-" + start-placeholder="寮�濮嬫棩鏈�" + end-placeholder="缁撴潫鏃ユ湡" + ></el-date-picker> + </el-form-item> <el-form-item> <el-button size="mini" @click="handleQuery" style=" width: 67px;height: 27px;background: #FFDDE3; @@ -86,7 +93,7 @@ <!-- line-height: 21px;--> <!-- ">寮犳皬涓�瑙堣〃</div>--> -<!-- <el-row :gutter="10" class="mb8">--> + <el-row :gutter="10" class="mb8"> <!-- <el-col :span="1.5">--> <!-- <el-button--> <!-- type="primary"--> @@ -152,8 +159,9 @@ <el-table-column fixed label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="80"/> <el-table-column label="韬唤" prop="identity" sortable width="100" > - <template slot-scope="scope"> - <span>绗瑊{scope.row.identity}}浠�</span> + <template slot-scope="scope" > + <span v-if="scope.row.isMyFamily==1">绗瑊{scope.row.identity}}浠�</span> + <span v-else>鈥斺��</span> </template> <!-- <template slot-scope="scope">{{ getSrc(scope.row.identity) }}</template>--> </el-table-column> @@ -212,30 +220,30 @@ <el-form ref="elForm" :model="formDat" :rules="rules" size="medium" label-width="100px"> <el-form-item label="韬唤" prop="identity"> - <el-input v-model="formDat.identity" placeholder="璇疯緭鍏ユ垚鍛樺鍚�" clearable :style="{width: '100%'}" > + <el-input v-model="formDat.identity" placeholder="璇疯緭鍏ヨ韩浠�" clearable :style="{width: '100%'}" > </el-input> </el-form-item> <el-form-item label="濮撳悕" prop="nickName"> - <el-input v-model="formDat.nickName" placeholder="璇疯緭鍏ョО鍛�" clearable :style="{width: '100%'}" ></el-input> + <el-input v-model="formDat.nickName" placeholder="璇疯緭鍏ュ鍚�" clearable :style="{width: '100%'}" ></el-input> </el-form-item> <el-form-item label="鎬у埆" prop="sex"> - <el-input v-model="formDat.sex" placeholder="璇疯緭鍏ュ鍚�" clearable :style="{width: '100%'}" > + <el-input v-model="formDat.sex" placeholder="璇疯緭鍏ユ�у埆" clearable :style="{width: '100%'}" > </el-input> </el-form-item> <el-form-item label="鍑虹敓鏃堕棿" prop="birth"> - <el-input v-model="formDat.birth" placeholder="璇疯緭鍏ュ伐浣滃崟浣�" clearable :style="{width: '100%'}" > + <el-input v-model="formDat.birth" placeholder="璇疯緭鍏ュ嚭鐢熸椂闂�" clearable :style="{width: '100%'}" > </el-input> </el-form-item> <el-form-item label="鍏ㄧ敓鍛藉懆鏈�" prop="deadDay"> - <el-input v-model="formDat.deadDay" placeholder="璇疯緭鍏ユ墜鏈�" clearable :style="{width: '100%'}" > + <el-input v-model="formDat.deadDay" placeholder="璇疯緭鍏ュ叏鐢熷懡鍛ㄦ湡" clearable :style="{width: '100%'}" > </el-input> </el-form-item> <el-form-item label="鎵嬫満鍙风爜" prop="phoneNumber"> - <el-input v-model="formDat.phoneNumber" placeholder="璇疯緭鍏ュ井淇�" clearable :style="{width: '100%'}" > + <el-input v-model="formDat.phoneNumber" placeholder="璇疯緭鍏ユ墜鏈哄彿鐮�" clearable :style="{width: '100%'}" > </el-input> </el-form-item> <el-form-item label="鎵�鍦ㄥ崟浣�" prop="unit"> - <el-input v-model="formDat.unit" placeholder="璇疯緭鍏Q" clearable :style="{width: '100%'}" > + <el-input v-model="formDat.unit" placeholder="璇疯緭鍏ユ墍鍦ㄥ崟浣�" clearable :style="{width: '100%'}" > </el-input> </el-form-item> <el-form-item label="閰嶅伓" prop="spouseName"> @@ -304,11 +312,8 @@ dateRange: [], // 鏁版嵁鑼冨洿閫夐」 fot:[".jpg",".jif"], - fileList:[ - ], - fileListOther:[ - - ], + fileList:[], + fileListOther:[], dsb:true, btn:false, fit:['fill'], @@ -344,6 +349,7 @@ secondFamilyId:undefined, childList:undefined, identity:undefined, + isMyFamily:undefined, url: undefined, }, @@ -427,30 +433,30 @@ this.reset(); }, //鎷垮埌閰嶅伓鐨勫鍚� - // getPerson(id) - // { - // // alert(id) - // // alert(typeof(id)) - // // this.listRoot.forEach(function(item, index) { - // // //item 灏辨槸褰撴棩鎸夊惊鐜埌鐨勫璞� - // // //index鏄惊鐜殑绱㈠紩锛屼粠0寮�濮� - // // //alert(typeof(item.userId)) - // // if(item.userId==id){ - // // // alert(89) - // // alert(item.nickName) - // // return item.nickName - // // } - // - // // }) - // let username = "" - // for(let i = 0; i < this.listRoot.length;i++) - // { - // if(this.listRoot[i].userId==id) - // username = this.listRoot[i].nickName - // } - // return username; - // // return "12ddd" - // }, + getPerson(id) + { + // alert(id) + // alert(typeof(id)) + // this.listRoot.forEach(function(item, index) { + // //item 灏辨槸褰撴棩鎸夊惊鐜埌鐨勫璞� + // //index鏄惊鐜殑绱㈠紩锛屼粠0寮�濮� + // //alert(typeof(item.userId)) + // if(item.userId==id){ + // // alert(89) + // alert(item.nickName) + // return item.nickName + // } + + // }) + let username = "" + for(let i = 0; i < this.listRoot.length;i++) + { + if(this.listRoot[i].userId==id) + username = this.listRoot[i].nickName + } + return username; + // return "12ddd" + }, //闅旇鍙樿壊 tableRowClassName({ row, rowIndex }) { if (rowIndex % 2 == 0) { @@ -470,7 +476,8 @@ this.loading = true; // console.log(this.queryParams) //alert(23) - + this.queryParams.happenStartTime = this.dateRange.length > 0 && this.dateRange[0] + this.queryParams.happenEndTime = this.dateRange.length > 0 && this.dateRange[1] // listProperty(this.addDateRange(this.queryParams, this.dateRange)).then(response => { listUserAll(this.queryParams).then(response => { // alert(123) @@ -656,7 +663,7 @@ ...this.queryParams }, `zGenealogy_${new Date().getTime()}.xlsx`) }else{ - this.download('/self/user/export/genealogy/'+Ids, { + this.download('/self/user/export/genealogy1/'+Ids, { }, `zGenealogy_${new Date().getTime()}.xlsx`) } -- Gitblit v1.9.1