浏览代码

优化弹窗大小

DESKTOP-NE65RNK\Citrus_limon 1 年之前
父节点
当前提交
b3e84bf1f8

+ 5 - 0
src/assets/css/index.scss

@@ -118,6 +118,11 @@ body,
   }
 }
 
+.custom-layer{
+  max-height: 600px;
+  overflow-y: auto;
+}
+
 .width-500 {
   box-sizing: border-box;
   width: 500px;

+ 1 - 1
src/views/bot/manage/components/Copy.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto" :btn="operator">
-    <div class="width-500" style="padding: 20px">
+    <div class="width-500 custom-layer" style="padding: 20px">
       <lay-form :model="modelParams" ref="modelFormRef" required>
         <lay-form-item label="复制数量" prop="copyNum">
           <lay-input v-model="modelParams.copyNum" type="number" :max="50" :min="1" />

+ 2 - 2
src/views/bot/manage/components/Update.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto" :btn="operator">
-    <div class="width-800" style="padding: 20px">
+    <div class="width-800 custom-layer" style="padding: 20px">
       <lay-form :model="modelParams" ref="modelFormRef" required>
         <lay-row space="10">
           <lay-col md="12" sm="12" xs="24">
@@ -49,7 +49,7 @@
                   <lay-select v-if="item.valType == 3" v-model="modelParams.robotConfigs[item.code]" :show-search="true">
                     <lay-select-option v-for="items in item.contentVal.split(',')" :value="items" :label="items" />
                   </lay-select>
-                  <lay-select v-if="item.valType == 4" v-model="modelParams.robotConfigs[item.code]" :options="apikeyList" :show-search="true" />
+                  <lay-select v-if="item.valType == 5" v-model="modelParams.robotConfigs[item.code]" :options="apikeyList" :show-search="true" />
                 </lay-form-item>
               </lay-col>
             </template>

+ 1 - 1
src/views/exchange/apikey/components/Batch.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto" :close="handleClose">
-    <div class="width-1000" style="padding: 20px">
+    <div class="width-1000 custom-layer" style="padding: 20px">
       <lay-form :model="modelParams" ref="modelFormRef" required>
         <lay-form-item label="批量信息" prop="info">
           <lay-textarea placeholder="交易所编码  ApiKey名称  Api  Key  Pass" v-model="modelParams.info" rows="12" />

+ 1 - 1
src/views/exchange/apikey/components/Update.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto" :btn="operator">
-    <div class="width-500" style="padding: 20px">
+    <div class="width-500 custom-layer" style="padding: 20px">
       <lay-form :model="modelParams" ref="modelFormRef" required>
         <lay-form-item label="交易所名称" prop="exchangeId">
           <lay-select v-model="modelParams.exchangeId">

+ 1 - 1
src/views/exchange/manage/components/Update.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto" :btn="operator">
-    <div class="width-500" style="padding: 20px">
+    <div class="width-500 custom-layer" style="padding: 20px">
       <lay-form :model="modelParams" ref="modelFormRef" required>
         <lay-form-item label="交易所名称" prop="name">
           <lay-input v-model="modelParams.name" />

+ 1 - 1
src/views/quant/manage/components/Update.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto" :btn="operator">
-    <div class="width-500" style="padding: 20px">
+    <div class="width-500 custom-layer" style="padding: 20px">
       <lay-form :model="modelParams" ref="modelFormRef" required>
         <lay-form-item label="策略名称" prop="name">
           <lay-input v-model="modelParams.name" />

+ 2 - 2
src/views/quant/manage/components/UpdateParams.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto" :btn="operator">
-    <div class="width-500" style="padding: 20px">
+    <div class="width-500 custom-layer" style="padding: 20px">
       <lay-form :model="modelParams" ref="modelFormRef" required>
         <lay-form-item label="名称" prop="name">
           <lay-input v-model="modelParams.name" />
@@ -35,7 +35,7 @@ const paramsTypeList = [
   { key: 1, value: "Number" },
   { key: 2, value: "Boolean" },
   { key: 3, value: "List" },
-  { key: 4, value: "ApiKey" },
+  { key: 5, value: "ApiKey" },
 ];
 interface ModelConfig {
   title: string;

+ 2 - 2
src/views/quant/manage/components/UpdateVersion.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto" :btn="modelConfig.step == 1 ? operator1 : operator2">
-    <div class="width-500" v-show="modelConfig.step == 1" style="padding: 20px">
+    <div class="width-500 custom-layer" v-show="modelConfig.step == 1" style="padding: 20px">
       <lay-form :model="modelParams" ref="modelFormRef" required>
         <lay-form-item label="版本名称" prop="name">
           <lay-input v-model="modelParams.name" />
@@ -13,7 +13,7 @@
         </lay-form-item>
       </lay-form>
     </div>
-    <div class="width-1000" v-show="modelConfig.step == 2" style="padding: 20px">
+    <div class="width-1000 custom-layer" v-show="modelConfig.step == 2" style="padding: 20px">
       <lay-card class="custom-card">
         <div class="operator-wp">
           <lay-button class="custom-button-primary" v-if="!modelConfig.isUpdate && versionNumber" @click="handleUpVersion()">引用上个版本参数</lay-button>

+ 1 - 1
src/views/quant/manage/components/Version.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto">
-    <lay-card class="custom-card width-1200">
+    <lay-card class="custom-card width-1200 custom-layer">
       <div class="operator-wp">
         <lay-button class="custom-button-primary" v-if="apiList?.includes('/strategyProgram/save')" @click="handleUpdate()">添加版本</lay-button>
       </div>

+ 1 - 1
src/views/server/command/components/Update.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto" :btn="operator">
-    <div class="width-500" style="padding: 20px">
+    <div class="width-500 custom-layer" style="padding: 20px">
       <lay-form :model="modelParams" ref="modelFormRef" required>
         <lay-form-item label="名称" prop="title">
           <lay-input v-model="modelParams.title" />

+ 1 - 1
src/views/server/manage/components/Batch.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto" @close="handleClose()">
-    <div class="width-1000" style="padding: 20px">
+    <div class="width-1000 custom-layer" style="padding: 20px">
       <lay-form :model="modelParams" ref="modelFormRef" required>
         <div style="width: 500px">
           <lay-form-item label="操作系统" prop="osType">

+ 1 - 1
src/views/server/manage/components/Command.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto" :btn="operator">
-    <div class="width-500" style="padding: 20px">
+    <div class="width-500 custom-layer" style="padding: 20px">
       <lay-form :model="modelParams" ref="modelFormRef" required>
         <lay-form-item label="执行指令" prop="commandId">
           <lay-select v-model="modelParams.commandId">

+ 1 - 1
src/views/server/manage/components/Pem.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto">
-    <lay-card class="custom-card max-height width-1200">
+    <lay-card class="custom-card max-height width-1200 custom-layer">
       <div class="operator-wp">
         <lay-button class="custom-button-primary" v-if="apiList?.includes('/serverAuth/save')" @click="handleUpdate()">添加PEM</lay-button>
       </div>

+ 1 - 1
src/views/server/manage/components/Result.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto">
-    <div class="width-800" style="padding: 20px">
+    <div class="width-800 custom-layer" style="padding: 20px">
       <div class="result-name">服务器名称:{{ modelParams.serverName }}</div>
       <div class="result-content">
         <div class="content-title">执行结果</div>

+ 1 - 1
src/views/server/manage/components/Update.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto" :btn="operator">
-    <div class="width-500" style="padding: 20px">
+    <div class="width-500 custom-layer" style="padding: 20px">
       <lay-form :model="modelParams" ref="modelFormRef" required>
         <lay-form-item label="名称" prop="name">
           <lay-input v-model="modelParams.name" />

+ 1 - 1
src/views/server/manage/components/UpdatePem.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="" :btn="operator">
-    <div class="width-500" style="padding: 20px">
+    <div class="width-500 custom-layer" style="padding: 20px">
       <lay-form :model="modelParams" ref="modelFormRef" required>
         <lay-form-item label="名称" prop="name">
           <lay-input v-model="modelParams.name" />

+ 1 - 1
src/views/system/organization/components/Update.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto" :btn="operator">
-    <div class="width-500" style="padding: 20px">
+    <div class="width-500 custom-layer" style="padding: 20px">
       <lay-form :model="modelParams" ref="modelFormRef" required>
         <lay-form-item label="组织名称" prop="groupName">
           <lay-input v-model="modelParams.groupName" />

+ 1 - 1
src/views/system/user/components/Update.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto" :btn="operator">
-    <div class="width-500" style="padding: 20px">
+    <div class="width-500 custom-layer" style="padding: 20px">
       <lay-form :model="modelParams" ref="modelFormRef" required>
         <lay-form-item label="昵称" prop="name">
           <lay-input v-model="modelParams.name" />

+ 1 - 1
src/views/system/webpage/components/Operator.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto">
-    <lay-card class="custom-card width-1000">
+    <lay-card class="custom-card width-1000 custom-layer">
       <div class="operator-wp">
         <lay-button class="custom-button-primary" v-if="apiList?.includes('/menu/save')" @click="handleUpdate()">添加</lay-button>
       </div>

+ 1 - 1
src/views/system/webpage/components/Update.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto" :btn="operator">
-    <div class="width-500" style="padding: 20px">
+    <div class="width-500 custom-layer" style="padding: 20px">
       <lay-form :model="modelParams" ref="modelFormRef">
         <lay-form-item label="页面名称" prop="name" required>
           <lay-input v-model="modelParams.name" />

+ 1 - 1
src/views/system/webpage/components/UpdateOperator.vue

@@ -1,6 +1,6 @@
 <template>
   <lay-layer :title="modelConfig.title" v-model="modelConfig.visible" area="auto" :btn="operator">
-    <div class="width-500" style="padding: 20px">
+    <div class="width-500 custom-layer" style="padding: 20px">
       <lay-form :model="modelParams" ref="modelFormRef" required>
         <lay-form-item label="操作名称" prop="name">
           <lay-input v-model="modelParams.name" />