| | |
| | | <el-form-item label="时间" prop="happenTime"> |
| | | <el-date-picker |
| | | v-model="dateRange" |
| | | style="width: 197px; |
| | | style="width: 240px; |
| | | height: 30px; |
| | | background: #FFFFFF; |
| | | border-radius: 14px 14px 14px 14px; |
| | |
| | | </el-form-item> |
| | | |
| | | <el-form-item> |
| | | <el-button size="mini" @click="getList" style=" width: 67px;height: 27px;background: #FFDDE3; |
| | | <el-button size="mini" @click="handleQuery" style=" width: 67px;height: 27px;background: #FFDDE3; |
| | | border-radius: 7px 7px 7px 7px;opacity: 1; " >搜索</el-button> |
| | | <el-button size="mini" @click="resetQuery" style=" width: 67px;height: 27px;background: #FFDDE3; |
| | | border-radius: 7px 7px 7px 7px;opacity: 1; ">重置</el-button> |
| | |
| | | <template slot-scope="scope">{{scope.row.ctTableName? scope.row.ctTableName: '————'}}</template> |
| | | <!-- <template slot-scope="scope">{{ getSrc1(scope.row.type) }}</template>--> |
| | | </el-table-column> |
| | | <el-table-column label="字段" prop="remark" sortable width="120" align="center" > |
| | | <template slot-scope="scope">{{scope.row.remark? scope.row.remark: '————'}}</template> |
| | | <el-table-column label=" " prop="by1" sortable width="120" align="center" > |
| | | <template slot-scope="scope">{{scope.row.by1? scope.row.by1: '————'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="时间" prop="getDate" sortable width="170" align="center" > |
| | | <template slot-scope="scope">{{scope.row.getDate? scope.row.getDate: '————'}}</template> |
| | | <el-table-column label=" " prop="by2" sortable width="170" align="center" > |
| | | <template slot-scope="scope">{{scope.row.by2? scope.row.by2: '————'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="位置" prop="by5" sortable width="170" align="center" > |
| | | <template slot-scope="scope">{{scope.row.by5 ? scope.row.by5: '————'}}</template> |
| | | <el-table-column label=" " prop="by3" sortable width="170" align="center" > |
| | | <template slot-scope="scope">{{scope.row.by3 ? scope.row.by3: '————'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label=" " prop="by4" sortable width="170" align="center" > |
| | | <template slot-scope="scope">{{scope.row.by4? scope.row.by4: '————'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label=" " prop="by6" sortable width="170" align="center" > |
| | | <template slot-scope="scope">{{scope.row.by6 ? scope.row.by6: '————'}}</template> |
| | | </el-table-column> |
| | | |
| | | <!-- </el-table-column>--> |
| | |
| | | formDat: { |
| | | ctTableName:undefined, |
| | | createTime:undefined, |
| | | by1:undefined, |
| | | by2:undefined, |
| | | by3:undefined, |
| | | by4:undefined, |
| | | by5:undefined, |
| | | by6:undefined, |
| | | remark:undefined, |
| | | |
| | | location:undefined, |
| | | ctId:undefined |
| | | }, |
| | | // 查询参数 |
| | | queryParams: { |
| | |
| | | } |
| | | ); |
| | | }, |
| | | |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | |
| | | deptCheckStrictly: true, |
| | | remark: undefined |
| | | }; |
| | | this.resetForm("form"); |
| | | this.resetForm("elForm"); |
| | | }, |
| | | |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | | |
| | | this.getList(); |
| | | if(this.keyword!=''||this.dateRange.length!=0) |
| | | this.getList(); |
| | | }, |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.dateRange = []; |
| | | this.keyword = ''; |
| | | this.getList(); |
| | | this.queryParams.pageNum = 1; |
| | | this.searchList = [] |
| | | // this.getList(); |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | |
| | | this.single = selection.length!=1 |
| | | this.multiple = !selection.length |
| | | }, |
| | | // //每次改变input框值时就改变this.myTableData的值 |
| | | // inputChange() { //循环每一项 只要content的值含有输入的searchVal值,就加进newList;反之,就无东西加进newList |
| | | // let newlist = this.formDat.filter( |
| | | // (item) => item.content.indexOf(this.searchVal) > -1 |
| | | // ); |
| | | // this.contactList = newlist; |
| | | // }, |
| | | |
| | | |
| | | /** 查看详细信息 */ |
| | | handleCheck(row){ |
| | | const id = row.id; |
| | | this.$router.push("/self/Honor/honorInfo/" + id); |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | const id = row.id; |
| | | let jd = true |
| | | // const id = row.id; |
| | | console.log(row.by5 +'/' + row.ctId); |
| | | var path = row.by5 |
| | | if (row.by5=="/family/zfEvent" ){ //家大事记 |
| | | path = "/familymodel/bignote/familyeventInfo/" |
| | | |
| | | this.$router.push({ |
| | | path:"/self/Honor/honorInfo/" + id, |
| | | query:{ |
| | | detail:jd |
| | | } |
| | | }); |
| | | }, |
| | | }else if(row.by5=="/family/zfProperty"){//家庭资产管理 |
| | | path ="/familymodel/property/propertyInfo/" |
| | | |
| | | }else if(row.by5=="/family/zfEquipment"){//家庭设备 |
| | | path ="/familymodel/Device/equipmentInfo/" |
| | | |
| | | }else if(row.by5=="/family/zfCollection"){//收藏和荣誉 |
| | | path = "/familymodel/collection/collectionInfo/" |
| | | |
| | | }else if(row.by5=="/family/zfDoctor"){//家庭小医生 |
| | | path ="/familymodel/Doctor/doctorInfo/" |
| | | |
| | | }else if(row.by5=="/family/zfClean"){ // 保洁收纳 -----------有问题----已解决 |
| | | path = "/familymodel/clean/cleanInfo/" |
| | | |
| | | }else if(row.by5=="/family/zfContact"){ //通讯录 |
| | | path ="/familymodel/Contact/contactsInfo/" |
| | | |
| | | }else if(row.by5=="/familymodel/zfPet"){ // 魅宠 |
| | | path = "/familymodel/pet/petInfo/" |
| | | |
| | | }else if(row.by5=="/family/zfEconomy"){ // 家庭收支台账 |
| | | path = "/familymodel/economy/economyInfo/" |
| | | } |
| | | |
| | | this.$router.push(path + row.ctId); |
| | | |
| | | |
| | | }, |
| | | |
| | | }, |
| | | |