| | |
| | | |
| | | // 保存 |
| | | onSubmit(formName) { |
| | | if (formName == 'addForm') { |
| | | if (this.form.name.indexOf('/') >= 0) { |
| | | this.$notify({ |
| | | type: "error", |
| | | message: "保存失败,数据栈名称不能包含'/'!" |
| | | }); |
| | | return; |
| | | } |
| | | } |
| | | this.$refs[formName].validate(async valid => { |
| | | if (valid) { |
| | | saveDir(this.form).then(rsp => { |
| | |
| | | vertical-align: middle; |
| | | } |
| | | .snapshot-video { |
| | | background: url("/images/cameraAccess/video.png"); |
| | | background: url('/images/cameraAccess/video.png'); |
| | | background-repeat: round; |
| | | } |
| | | .snapshot-image { |
| | | background: url("/images/cameraAccess/image.png"); |
| | | background: url('/images/cameraAccess/image.png'); |
| | | background-repeat: round; |
| | | } |
| | | .snapshot-audio { |
| | | background: url("/images/cameraAccess/audio.png"); |
| | | background: url('/images/cameraAccess/audio.png'); |
| | | background-repeat: round; |
| | | } |
| | | .snapshot-files { |
| | | background: url("/images/cameraAccess/files.png"); |
| | | background: url('/images/cameraAccess/files.png'); |
| | | background-repeat: round; |
| | | } |
| | | } |