| | |
| | | <!-- |
| | | * @Date: 2024-04-09 22:18:47 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-11 22:08:27 |
| | | * @LastEditTime: 2024-04-13 22:11:37 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/console/system/interfaceConfig.vue |
| | | * 看板接口 |
| | | --> |
| | | <template> |
| | | <el-main> |
| | | <el-card shadow="never"> |
| | | <el-container> |
| | | <el-header style="justify-content: flex-start;"> |
| | | <el-button type="primary" plain @click="add">新增</el-button> |
| | |
| | | <el-table-column prop="urlName" label="接口中文名" /> |
| | | <el-table-column prop="urlType" label="接口类型"> |
| | | <template #default="scope"> |
| | | <span>{{ interface_url_type?.find(v => v.dictKey == scope.row.urlType)?.dictValue }}</span> |
| | | <span>{{ interface_url_type?.find(v => v.dictKey == scope.row.urlType)?.dictValue |
| | | }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="owningChart" label="图表类型"> |
| | | <template #default="scope"> |
| | | <span>{{ interface_owning_chart?.find(v => v.dictKey == scope.row.owningChart)?.dictValue |
| | | <span>{{ interface_owning_chart?.find(v => v.dictKey == |
| | | scope.row.owningChart)?.dictValue |
| | | }}</span> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="接口地址" prop="url"> |
| | | <el-input style="width: 100%" v-model="row.url" placeholder="请输入" clearable></el-input> |
| | | <el-input style="width: 100%" v-model="row.url" placeholder="请输入" |
| | | clearable></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="接口中文名" prop="urlName"> |
| | | <el-input style="width: 240px" v-model="row.urlName" placeholder="请输入" clearable></el-input> |
| | | <el-input style="width: 240px" v-model="row.urlName" placeholder="请输入" |
| | | clearable></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="接口类型" prop="urlType"> |
| | | <el-select v-model="row.urlType" placeholder="请选择" style="width: 240px"> |
| | | <el-option v-for="item in interface_url_type" :key="item.value" :label="item.dictValue" |
| | | :value="item.dictKey - 0" /> |
| | | <el-option v-for="item in interface_url_type" :key="item.value" |
| | | :label="item.dictValue" :value="item.dictKey - 0" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | </template> |
| | | </el-dialog> |
| | | </el-container> |
| | | </el-card> |
| | | </el-main> |
| | | </template> |
| | | |
| | | <script> |