Browse Source

Update Detail.vue

王飞 1 year ago
parent
commit
4adda2eec3
1 changed files with 17 additions and 23 deletions
  1. 17 23
      src/views/Authorization/Dict/components/Detail.vue

+ 17 - 23
src/views/Authorization/Dict/components/Detail.vue

@@ -124,7 +124,7 @@ const crudSchemas = reactive<CrudSchema[]>([
       hidden: true
     },
     table: {
-      width: 160,
+      width: 120,
       fixed: 'right',
       slots: {
         default: (data: any) => {
@@ -229,29 +229,23 @@ defineExpose({
 
 <template>
   <div>
-    <ContentWrap>
-      <Search
-        :schema="allSchemas.searchSchema"
-        @reset="setSearchParams"
-        @search="setSearchParams"
-      />
+    <Search :schema="allSchemas.searchSchema" @reset="setSearchParams" @search="setSearchParams" />
 
-      <div class="mb-10px">
-        <ElButton type="primary" @click="AddAction(props.rowData?.id || '')">{{
-          t('exampleDemo.add')
-        }}</ElButton>
-      </div>
-      <Table
-        ref="tableRef"
-        v-model:current-page="currentPage"
-        v-model:page-size="pageSize"
-        :columns="allSchemas.tableColumns"
-        :data="dataList"
-        :loading="loading"
-        row-key="id"
-        @register="tableRegister"
-      />
-    </ContentWrap>
+    <div class="mb-10px">
+      <ElButton type="primary" @click="AddAction(props.rowData?.id || '')">{{
+        t('exampleDemo.add')
+      }}</ElButton>
+    </div>
+    <Table
+      ref="tableRef"
+      v-model:current-page="currentPage"
+      v-model:page-size="pageSize"
+      :columns="allSchemas.tableColumns"
+      :data="dataList"
+      :loading="loading"
+      row-key="id"
+      @register="tableRegister"
+    />
 
     <Dialog v-model="dialogVisible" :title="dialogTitle">
       <Write