| | |
| | | <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="种类" 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-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); |
| | | } |
| | | }, |
| | | // 取消按钮 |