Browse Source

bug

master
yangpeilai 1 week ago
parent
commit
bd819c3c49
1 changed files with 10 additions and 6 deletions
  1. 10
    6
      src/views/system/branch/index.vue

+ 10
- 6
src/views/system/branch/index.vue View File

<el-form-item label="半径距离(单位:米):" prop="radial"> <el-form-item label="半径距离(单位:米):" prop="radial">
<el-input maxlength="60" v-trim clearable v-model="item.radial" placeholder="请输入半径距离(单位:米)"/> <el-input maxlength="60" v-trim clearable v-model="item.radial" placeholder="请输入半径距离(单位:米)"/>
</el-form-item> </el-form-item>
<el-form-item label="类型" prop="radial">
<el-form-item label="类型" prop="type">
<el-select maxlength="1" v-trim v-model="item.type" placeholder="请选择类型"> <el-select maxlength="1" v-trim v-model="item.type" placeholder="请选择类型">
<el-option label="可办理" value="1"/>
<el-option label="不可办理" value="2"/>
<el-option label="可办理" value='1'/>
<el-option label="不可办理" value='2'/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-button class="op-btn" type="danger" @click="deleteHandle(index)">删除</el-button> <el-button class="op-btn" type="danger" @click="deleteHandle(index)">删除</el-button>
address: [{ required: true, message: '请输入', trigger: 'blur' }], address: [{ required: true, message: '请输入', trigger: 'blur' }],
tel: [{ required: true, message: '请输入', trigger: 'blur' }], tel: [{ required: true, message: '请输入', trigger: 'blur' }],
contact: [{ required: true, message: '请输入', trigger: 'blur' }], contact: [{ required: true, message: '请输入', trigger: 'blur' }],
longitude: [{ required: false, message: '请输入', trigger: 'blur' }],
latitude: [{ required: false, message: '请输入', trigger: 'blur' }],
radial: [{ required: false, message: '请输入', trigger: 'blur' }],
longitude: [{ required: true, message: '请输入', trigger: 'blur' }],
latitude: [{ required: true, message: '请输入', trigger: 'blur' }],
radial: [{ required: true, message: '请输入', trigger: 'blur' }],
type: [{ required: true, message: '请选择', trigger: 'change' }],
agencyId: [{ required: true, message: '请选择', trigger: 'blur' }], agencyId: [{ required: true, message: '请选择', trigger: 'blur' }],
mapChannelId: [{ required: true, message: '请输入', trigger: 'blur' }], mapChannelId: [{ required: true, message: '请输入', trigger: 'blur' }],
}) })
// ElMessage.success('操作成功') // ElMessage.success('操作成功')
// getList() // getList()
// cancel() // cancel()
res.data.forEach(item => {
item.type = item.type.toString()
})
addForm.value.locationModels = res.data addForm.value.locationModels = res.data
} else { } else {
ElMessage.error(res.message) ElMessage.error(res.message)

Loading…
Cancel
Save