From a2441175073f8b09a7eff29effd7e3e617de2f7d Mon Sep 17 00:00:00 2001 From: lzhe <lzhe@example.com> Date: 星期四, 06 六月 2024 18:23:01 +0800 Subject: [PATCH] Merge branch 'master' of http://www.beijingsoft.cn:9090/r/smart-web --- src/views/console/system/interfaceConfig.vue | 178 +++++++++++++++++++++++++++++++---------------------------- 1 files changed, 93 insertions(+), 85 deletions(-) diff --git a/src/views/console/system/interfaceConfig.vue b/src/views/console/system/interfaceConfig.vue index dda7433..8ba5f18 100644 --- a/src/views/console/system/interfaceConfig.vue +++ b/src/views/console/system/interfaceConfig.vue @@ -1,85 +1,91 @@ <!-- * @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-container> - <el-header style="justify-content: flex-start;"> - <el-button type="primary" plain @click="add">鏂板</el-button> - <el-button @click="del" plain type="danger" :disabled="selection.length == 0">鍒犻櫎</el-button> - <el-input clearable v-model="urlName_like" style="max-width: 200px;margin-left: auto;"> - <template #append> - <el-button @click="query" icon="el-icon-search" /> - </template> - </el-input> - </el-header> - <el-main> - <scTable ref="table" @selection-change="handleSelectionChange" row-key="id" border :params="params" - :apiObj="apiObj" stripe> - <el-table-column type="selection" width="55" /> - <el-table-column prop="url" label="鎺ュ彛鍦板潃" /> - <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> - </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> - </template> - </el-table-column> - <el-table-column label="鎿嶄綔" fixed="right" align="left" width="160"> - <template #default="scope"> - <el-button-group> - <el-button text type="primary" size="small" - @click="table_edit(scope.row, scope.$index)">缂栬緫</el-button> - <el-popconfirm title="纭畾鍒犻櫎鍚楋紵" @confirm="table_del(scope.row, scope.$index, '0')"> - <template #reference> - <el-button text type="primary" size="small">鍒犻櫎</el-button> - </template> - </el-popconfirm> - </el-button-group> - </template> - </el-table-column> - </scTable> - </el-main> - <el-dialog v-model="dialogVisible" :title="dialogTitle" width="1000" :before-close="handleClose"> - <el-form :model="row" :rules="rules" ref="dialogForm" label-width="120px" label-position="center"> - <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-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-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-select> - </el-form-item> - </el-col> - <el-col :span="12"> - <el-form-item label="鍥捐〃绫诲瀷" prop="owningChart"> - <el-select v-model="row.owningChart" placeholder="璇烽�夋嫨" style="width: 240px"> - <el-option v-for="item in interface_owning_chart" :key="item.value" - :label="item.dictValue" :value="item.dictKey" /> - </el-select> - </el-form-item> - </el-col> - </el-row> - </el-form> - <!-- <el-container> + <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-button @click="del" plain type="danger" :disabled="selection.length == 0">鍒犻櫎</el-button> + <el-input clearable v-model="urlName_like" style="max-width: 200px;margin-left: auto;"> + <template #append> + <el-button @click="query" icon="el-icon-search" /> + </template> + </el-input> + </el-header> + <el-main> + <scTable ref="table" @selection-change="handleSelectionChange" row-key="id" border :params="params" + :apiObj="apiObj" stripe> + <el-table-column type="selection" width="55" /> + <el-table-column prop="url" label="鎺ュ彛鍦板潃" /> + <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> + </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> + </template> + </el-table-column> + <el-table-column label="鎿嶄綔" fixed="right" align="left" width="160"> + <template #default="scope"> + <el-button-group> + <el-button text type="primary" size="small" + @click="table_edit(scope.row, scope.$index)">缂栬緫</el-button> + <el-popconfirm title="纭畾鍒犻櫎鍚楋紵" @confirm="table_del(scope.row, scope.$index, '0')"> + <template #reference> + <el-button text type="primary" size="small">鍒犻櫎</el-button> + </template> + </el-popconfirm> + </el-button-group> + </template> + </el-table-column> + </scTable> + </el-main> + <el-dialog v-model="dialogVisible" :title="dialogTitle" width="1000" :before-close="handleClose"> + <el-form :model="row" :rules="rules" ref="dialogForm" label-width="120px" label-position="center"> + <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-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-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-select> + </el-form-item> + </el-col> + <el-col :span="12"> + <el-form-item label="鍥捐〃绫诲瀷" prop="owningChart"> + <el-select v-model="row.owningChart" placeholder="璇烽�夋嫨" style="width: 240px"> + <el-option v-for="item in interface_owning_chart" :key="item.value" + :label="item.dictValue" :value="item.dictKey" /> + </el-select> + </el-form-item> + </el-col> + </el-row> + </el-form> + <!-- <el-container> <el-header> <el-button plain type="primary">鏂板缓</el-button> </el-header> @@ -90,16 +96,18 @@ </el-table> </el-main> </el-container> --> - <template #footer> - <div class="dialog-footer"> - <el-button @click="dialogVisible = false">鍙栨秷</el-button> - <el-button type="primary" @click="save"> - 淇濆瓨 - </el-button> - </div> - </template> - </el-dialog> - </el-container> + <template #footer> + <div class="dialog-footer"> + <el-button @click="dialogVisible = false">鍙栨秷</el-button> + <el-button type="primary" @click="save"> + 淇濆瓨 + </el-button> + </div> + </template> + </el-dialog> + </el-container> + </el-card> + </el-main> </template> <script> -- Gitblit v1.9.3