| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | :disabled="!scope.row.ownData" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['familymodel:bignote:list']" |
| | | >修改</el-button> |
| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | :disabled="!scope.row.ownData" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:role:remove']" |
| | | >删除</el-button> |
| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | :disabled="!scope.row.ownData" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['familymodel:clean:info']" |
| | | >修改</el-button> |
| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | :disabled="!scope.row.ownData" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:role:remove']" |
| | | >删除</el-button> |
| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | :disabled="!scope.row.ownData" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['system:role:edit']" |
| | | > |
| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | :disabled="!scope.row.ownData" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:role:remove']" |
| | | ><span style="font-size: 14px;">删除</span></el-button> |
| | |
| | | plain |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | |
| | | @click="handleAdd" |
| | | v-hasPermi="['system:role:add']" |
| | | >新增</el-button> |
| | |
| | | size="mini" |
| | | :disabled="multiple" |
| | | @click="handleDelete" |
| | | |
| | | v-hasPermi="['system:role:remove']" |
| | | >删除</el-button> |
| | | </el-col> |
| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | :disabled="!scope.row.ownData" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['system:role:edit']" |
| | | > |
| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | :disabled="!scope.row.ownData" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:role:remove']" |
| | | ><span style="font-size: 14px;">删除</span></el-button> |
| | |
| | | // 数据范围选项 |
| | | fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx', |
| | | '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'], |
| | | |
| | | |
| | | fileList:[ |
| | | ], |
| | | fileListOther:[ |
| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | :disabled="!scope.row.ownData" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['system:role:edit']" |
| | | >修改</el-button> |
| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | :disabled="!scope.row.ownData" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:role:remove']" |
| | | >删除</el-button> |
| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | :disabled="!scope.row.ownData" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['system:role:edit']" |
| | | > |
| | |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | :disabled="!scope.row.ownData" |
| | | v-hasPermi="['system:role:remove']" |
| | | ><span style="font-size: 14px;">删除</span></el-button> |
| | | <el-button |
| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | :disabled="!scope.row.ownData" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['familymodel:economy:info']" |
| | | >修改</el-button> |
| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | :disabled="!scope.row.ownData" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:role:remove']" |
| | | >删除</el-button> |
| | |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | alert(23) |
| | | const Ids = row.id || this.ids; |
| | | this.$modal.confirm('是否确认删除所选数据项?').then(function() { |
| | | return delProperty(Ids); |
| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | :disabled="!scope.row.ownData" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['familymodel:property:info']" |
| | | >修改</el-button> |
| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | :disabled="!scope.row.ownData" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:role:remove']" |
| | | >删除</el-button> |
| | |
| | | </el-upload> |
| | | </el-col> |
| | | </div> |
| | | |
| | | <!-- <el-button v-if="isShow" type="primary" @click="submitForm" :disabled="dsb">修改魅宠信息</el-button> --> |
| | | </el-col> |
| | | |
| | | </div> |
| | | </el-container> |
| | | |
| | |
| | | </div> |
| | | |
| | | </el-col> |
| | | |
| | | </div> |
| | | <div class="form-header mt"> |
| | | |
| | | |
| | | |
| | | |
| | | </div> |
| | | <div> |
| | | <el-button v-if="isShow" type="primary" @click="submitForm" :disabled="dsb">修改魅宠信息</el-button> |
| | | </div> |
| | | |
| | | <el-dialog :visible.sync="dialogVisible"> |
| | | <img w-full :src="dialogImageUrl" alt="Preview Image" /> |
| | |
| | | // 数据范围选项 |
| | | fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx', |
| | | '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'], |
| | | |
| | | |
| | | fileList:[ |
| | | ], |
| | | fileListOther:[ |
| | |
| | | jd = this.$route.query.detail |
| | | this.btn= jd |
| | | this.dsb = !jd |
| | | this.isShow = true |
| | | |
| | | // document.title = "修改魅宠详细信息"; |
| | | this.$route.meta.title = "修改魅宠详细信息";//列表的名称 |
| | | } |
| | |
| | | // document.title = "查看魅宠详细信息"; |
| | | this.$route.meta.title = "查看魅宠详细信息";//列表的名称 |
| | | this.btn = false; |
| | | this.isShow = false; |
| | | } |
| | | |
| | | let _this = this |
| | |
| | | getPetList(id).then((response) => { |
| | | this.petList = response.data; |
| | | console.log(this.petList) |
| | | alert(this.petList.headPicture) |
| | | // alert(this.petList.headPicture) |
| | | this.loading = false; |
| | | }); |
| | | // getPetowner(id).then((response) => { |
| | |
| | | }, |
| | | submitForm() { |
| | | |
| | | let ul = this.fileList1.map(function (elem){ |
| | | return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | }).join(",") |
| | | let uls = this.fileList2.map(function (elem){ |
| | | return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | }).join(",") |
| | | this.petList.headPicture = ul, |
| | | this.petList.fullPicture = uls, |
| | | // let ul = this.fileList1.map(function (elem){ |
| | | // return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | // }).join(",") |
| | | // let uls = this.fileList2.map(function (elem){ |
| | | // return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | // }).join(",") |
| | | // this.petList.headPicture = ul, |
| | | // this.petList.fullPicture = uls, |
| | | this.$refs['elForm'].validate(valid => { |
| | | |
| | | |
| | |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="是否开启指纹" prop="isFinger"> |
| | | <el-input v-model="formData.isFinger" placeholder="请输入持有人" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | |
| | | <el-select v-model="formData.isFinger" placeholder="请选择是/否" clearable :style="{width: '100%'}" :disabled="dsb" > |
| | | <el-option v-for="(item, index) in typeOptions2" :key="index" :label="item.label" :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | <!-- <el-input v-model="formData.isFinger" :active-value="是" :inactive-value="否" placeholder="请输入持有人" clearable :style="{width: '100%'}" :disabled="dsb"> --> |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="是否开启人脸" prop="isFace"> |
| | | <el-input v-model="formData.isFace" placeholder="请选择现金/自动划扣" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | |
| | | <el-select v-model="formData.isFace" placeholder="请选择是/否" clearable :style="{width: '100%'}" :disabled="dsb" > |
| | | <el-option v-for="(item, index) in typeOptions2" :key="index" :label="item.label" :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="私有/公有" prop="isPrivate"> |
| | | <el-input v-model="formData.isPrivate" placeholder="请输入余额" clearable :style="{width: '100%'}" :disabled="dsb"></el-input> |
| | | <el-select v-model="formData.isPrivate" placeholder="请选择是/否" clearable :style="{width: '100%'}" :disabled="dsb" > |
| | | <el-option v-for="(item, index) in typeOptions3" :key="index" :label="item.label" :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | |
| | | </el-form-item> |
| | | <el-form-item label="备注" prop="remark"> |
| | | <el-input v-model="formData.remark" placeholder="请输入备注" clearable :style="{width: '100%'}" :disabled="dsb"></el-input> |
| | |
| | | // 数据范围选项 |
| | | fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx', |
| | | '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'], |
| | | |
| | | |
| | | fileList:[ |
| | | ], |
| | | fileListOther:[ |
| | |
| | | }], |
| | | |
| | | }, |
| | | typeOptions2: [ |
| | | { |
| | | value: '0', |
| | | label: '否', |
| | | }, |
| | | { |
| | | value: '1', |
| | | label: '是', |
| | | } |
| | | ], |
| | | typeOptions3: [ |
| | | { |
| | | value: '0', |
| | | label: '私有', |
| | | }, |
| | | { |
| | | value: '1', |
| | | label: '公有', |
| | | } |
| | | ], |
| | | typeOptions: [{ |
| | | value: '0', |
| | | label: '基金', |
| | |
| | | this.loading = true; |
| | | getSecretInfo({id}).then((response) => { |
| | | this.formData = response.data; |
| | | if(this.formData.isFinger==1) |
| | | this.formData.isFinger = '是' |
| | | else |
| | | this.formData.isFinger = '否' |
| | | if(this.formData.isFace==1) |
| | | this.formData.isFace = '是' |
| | | else |
| | | this.formData.isFace = '否' |
| | | if(this.formData.isPrivate==1) |
| | | this.formData.isPrivate = '共有' |
| | | else |
| | | this.formData.isPrivate = '私有' |
| | | let paths = response.data.url.split(","); |
| | | for(let i = 0; i < paths.length; i++) |
| | | { |
| | |
| | | updateSecret(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("图片上传成功"); |
| | | // this.open = false; |
| | | |
| | | |
| | | }); |
| | | }) |
| | | |
| | |
| | | proxy: { |
| | | // detail: https://cli.vuewww.bendudu.comjs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | // target: `https://10.39.18.174:8080/`, |
| | | // target: `https://10.39.18.174:8080/`, |
| | | target: 'https://www.bendudu.com:8080/', |
| | | changeOrigin: true, |
| | | pathRewrite: { |