| | |
| | | </el-form-item> |
| | | <el-form-item label="适用用户" prop="useType"> |
| | | <el-radio-group v-model="form.useType"> |
| | | <el-radio :label="0">访客和劳务</el-radio> |
| | | <!-- <el-radio :label="0">访客和劳务</el-radio> --> |
| | | <el-radio :label="1">仅访客</el-radio> |
| | | <el-radio :label="2">仅劳务</el-radio> |
| | | <!-- <el-radio :label="2">仅劳务</el-radio> --> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="分值" prop="score"> |
| | |
| | | sortnu: '', |
| | | type: 0, |
| | | scroe:null, |
| | | useType: 0 |
| | | useType: 1 |
| | | }, |
| | | // 验证规则 |
| | | rules: { |
| | |
| | | this.$emit('success') |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | // this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | |
| | | sortnu: this.form.sortnu, |
| | | type: this.form.type, |
| | | useType: this.form.useType, |
| | | score: this.form.score, |
| | | objectList: this.form.objectList |
| | | }) |
| | | .then(() => { |
| | |
| | | this.$emit('success') |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | // this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |