| | |
| | | v-model="queryParams.sex" |
| | | placeholder="请选择性别" |
| | | clearable |
| | | style="width: 240px" |
| | | style="width: 200px; |
| | | height: 35px; |
| | | border-radius: 16px 16px 16px 16px; |
| | | opacity: 0.5;" |
| | | > |
| | | <el-option |
| | | v-for="dict in typeOptions" |
| | |
| | | v-model="queryParams.name" |
| | | placeholder="请输入名字" |
| | | clearable |
| | | style="width: 240px" |
| | | style="width: 200px; |
| | | height: 35px; |
| | | border-radius: 16px 16px 16px 16px; |
| | | opacity: 0.5;" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | |
| | | v-model="queryParams.idNum" |
| | | placeholder="请输入证件号码" |
| | | clearable |
| | | style="width: 240px" |
| | | style="width: 200px; |
| | | height: 35px; |
| | | border-radius: 16px 16px 16px 16px; |
| | | opacity: 0.5;" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | |
| | | <el-table v-loading="loading" :data="petList,PetNoteList" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | |
| | | <el-table-column label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/> |
| | | <el-table-column label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/> |
| | | <el-table-column label="种类" prop="animal" sortable :show-overflow-tooltip="true" width="150" /> |
| | | |
| | | <el-table-column label="类型" prop="type" sortable :show-overflow-tooltip="true" width="150" /> |
| | | <el-table-column label="品种" prop="type" sortable :show-overflow-tooltip="true" width="150" /> |
| | | <el-table-column label="名字" prop="name" sortable :show-overflow-tooltip="true" width="150" /> |
| | | <el-table-column label="性别" prop="sex" sortable width="120" > |
| | | <template slot-scope="scope"> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="宠物id" prop="id" sortable width="100" /> |
| | | <el-table-column label="主人姓名" prop="masterName" sortable width="100" /> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <el-table-column label="操作" align="center" width="250" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope" v-if="scope.row.roleId !== 1"> |
| | | <div class="button-container"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | |
| | | <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['familymodel:property:info']"> |
| | | <el-button size="mini" type="text" icon="el-icon-d-arrow-right" @click="handleCheck(scope.row)">查看详情</el-button> |
| | | </el-dropdown> |
| | | |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <el-form-item label="防伪证" prop="securityCode"> |
| | | <el-input v-model="formDat.securityCode" placeholder="请输入防伪证" clearable :style="{width: '100%'}" ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="种类" prop="animal"> |
| | | <el-input v-model="formDat.animal" placeholder="请输入种类" clearable :style="{width: '100%'}" ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="品种" prop="type"> |
| | | <el-input v-model="formDat.type" placeholder="请输入品种" clearable :style="{width: '100%'}" ></el-input> |
| | | </el-form-item> |
| | |
| | | <el-input v-model="formDat.name" placeholder="请输入名字" clearable :style="{width: '100%'}" ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="出生日期" prop="birth"> |
| | | <el-input |
| | | v-model='formDat.birth' |
| | | type='date' |
| | | placeholder='选择日期' |
| | | ></el-input> |
| | | <el-date-picker v-model="formDat.birth" type="date" placeholder="请选择日期" |
| | | :editable="false" :clearable="false" :style="{width: '100%'}" value-format="yyyy-MM-dd" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="性别" prop="sex"> |
| | | <el-select v-model="formDat.sex" placeholder="请选择性别" clearable :style="{width: '100%'}" > |
| | |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | |
| | | petList: [], |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | |
| | | dsb:true, |
| | | btn:false, |
| | | formDat: { |
| | | type: undefined, |
| | | name: undefined, |
| | | sex: undefined, |
| | | color: undefined, |
| | | address: undefined, |
| | | animal:undefined, |
| | | remark: undefined, |
| | | url: undefined, |
| | | type: undefined, |
| | |
| | | }, |
| | | // 表单校验 |
| | | rules: { |
| | | type: [{ |
| | | animal: [{ |
| | | required: true, |
| | | message: '请输入品种', |
| | | message: '请输入种类', |
| | | trigger: 'blue' |
| | | }], |
| | | idNum: [{ |
| | |
| | | }, |
| | | |
| | | handleRemove(file) { |
| | | for(let i = 0; i < this.fileList.length; i++) |
| | | for(let i = 0; i < this.fileList1.length; i++) |
| | | { |
| | | if(this.fileList[i].url==file.url) |
| | | this.$delete(this.fileList,i); |
| | | if(this.fileList1[i].url==file.url) |
| | | this.$delete(this.fileList1,i); |
| | | } |
| | | }, |
| | | handleRemoveFile(file) { |
| | | for(let i = 0; i < this.fileListOther.length; i++) |
| | | for(let i = 0; i < this.fileList2.length; i++) |
| | | { |
| | | if(this.fileListOther[i].url==file.url) |
| | | this.$delete(this.fileListOther,i); |
| | | if(this.fileList2[i].url==file.url) |
| | | this.$delete(this.fileList2,i); |
| | | } |
| | | }, |
| | | // 取消按钮 |
| | |
| | | color: #999; |
| | | border: 1px dashed #999; |
| | | } |
| | | .el-table__cell { |
| | | font-size: 14px; /* 设置字体大小 */ |
| | | } |
| | | .button-container { |
| | | display: inline-flex; /* 设置按钮容器为行内元素 */ |
| | | } |
| | | </style> |