| | |
| | | </el-form-item> |
| | | <el-form-item label="类别" prop="type"> |
| | | <el-select v-model="formData.type" placeholder="请输入类别" allow-create |
| | | filterable clearable :style="{width: '100%'}" > |
| | | filterable clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | <el-option v-for="(item, index) in typeOpt" :key="index" :label="item.label" :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | |
| | | ></video> |
| | | <img v-else |
| | | class="el-upload-list__item-thumbnail" |
| | | src="../../assets/401_images/401.gif" |
| | | src="../../assets/images/deviceLis.png" |
| | | alt="" |
| | | style="width: 147px; height: 147px" |
| | | fit="cover"> |
| | |
| | | this.loading = true; |
| | | getSecretInfo({id}).then((response) => { |
| | | _this.formData = response.data; |
| | | console.log(_this.formData,'123') |
| | | if(_this.formData.isFinger==1) |
| | | _this.formData.isFinger = '是' |
| | | else |
| | |
| | | let pth = paths[i].substr(paths[i].length - 4, paths[i].length) |
| | | // alert(pth) |
| | | if (_this.fot.includes(pth) === true) |
| | | { |
| | | if(paths[i][0]=="/") |
| | | _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | } |
| | | // { |
| | | // if(paths[i][0]=="/") |
| | | // _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | // else |
| | | // _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | // } |
| | | { |
| | | if(paths[i].includes(process.env.VUE_APP_BASE_TRUE_API)){ |
| | | if(paths[i][0]=="/") |
| | | _this.fileList.push({name:paths[i],url: paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileList.push({name:paths[i],url: paths[i],res:false}) |
| | | }else{ |
| | | if(paths[i][0]=="/") |
| | | _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | } |
| | | |
| | | } |
| | | else { |
| | | |
| | | // alert() |
| | |
| | | }); |
| | | } else { |
| | | if(this.formData.isFinger==1) |
| | | this.formData.isFinger = '是' |
| | | else |
| | | this.formData.isFinger = '否' |
| | | this.formData.isFinger = '是' |
| | | else |
| | | this.formData.isFinger = '否' |
| | | if(this.formData.isFace==1) |
| | | this.formData.isFace = '是' |
| | | else |
| | | this.formData.isFace = '否' |
| | | if(this.formData.isPrivate==0) |
| | | this.formData.isPrivate = '公有' |
| | | else |
| | | this.formData.isPrivate = '私有' |
| | | this.formData.isFace = '是' |
| | | else |
| | | this.formData.isFace = '否' |
| | | if(this.formData.isPrivate==0) |
| | | this.formData.isPrivate = '公有' |
| | | else |
| | | this.formData.isPrivate = '私有' |
| | | this.$modal.msgSuccess("修改失败"); |
| | | |
| | | } |
| | |
| | | updateSecret(this.formData).then(response => { |
| | | this.$modal.msgSuccess("删除成功"); |
| | | // this.open = false; |
| | | 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==0) |
| | | this.formData.isPrivate = '公有' |
| | | else |
| | | this.formData.isPrivate = '私有' |
| | | |
| | | }); |
| | | } |
| | |
| | | this.formData.isPrivate = 1 |
| | | updateSecret(this.formData).then(response => { |
| | | this.$modal.msgSuccess("删除成功"); |
| | | 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==0) |
| | | this.formData.isPrivate = '公有' |
| | | else |
| | | this.formData.isPrivate = '私有' |
| | | }); |
| | | } |
| | | |
| | |
| | | _this.formData.isPrivate = 1 |
| | | updateSecret(_this.formData).then(response => { |
| | | this.$modal.msgSuccess("文档上传成功"); |
| | | 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==0) |
| | | this.formData.isPrivate = '公有' |
| | | else |
| | | this.formData.isPrivate = '私有' |
| | | // this.open = false; |
| | | this.getData() |
| | | this.fileListOther1=[] |
| | |
| | | updateSecret(_this.formData).then(response => { |
| | | _this.$modal.msgSuccess("图片上传成功"); |
| | | // this.open = false; |
| | | 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==0) |
| | | this.formData.isPrivate = '公有' |
| | | else |
| | | this.formData.isPrivate = '私有' |
| | | |
| | | }); |
| | | // } |