XiaXxxxxx 2 éve
szülő
commit
e206c3b717

+ 5 - 4
src/views/dataAdmin/dataAdmin/resourceCataloging/index.vue

@@ -33,18 +33,19 @@
                   @change="(checkedValue) => { selectType(checkedValue) }" />
               </a-col>
               <a-col :span="5">
-                坐标系:<a-select ref="select" :value="coordinateSearchvalue" size="small" style="width: 150px"
+                坐标系:<a-select ref="select" :value="coordinateSearchvalue" style="width: 150px"
                   @change="handleChange">
                   <a-select-option v-for="item in coordinateData" :key="item.ID" :value="item.GEOMNAME">{{ item.GEOMNAME
                   }}</a-select-option>
                 </a-select>
               </a-col>
               <a-col :span="5">
-                资源名称:<a-input-search v-model:value="value" placeholder="支持名称搜索" style="width: 150px" size="small"
+                资源名称:<a-input-search v-model:value="value" placeholder="支持名称搜索" style="width: 150px" 
                   @search="onSearch" />
               </a-col>
-              <a-col :span="4">
-                <a-button type="primary" size="small">查询</a-button>
+              <a-col :span="4" style="display: flex;justify-content: flex-end;">
+                <a-button style="margin-right: 10px;" @click="">重置</a-button>
+                <a-button type="primary" >查询</a-button>
               </a-col>
             </a-row>
           </a-card>

+ 16 - 3
src/views/interface/item/child/Search.vue

@@ -9,12 +9,12 @@
         <span>
             <a-input-search v-model:value="key" placeholder="请输入搜索内容" style="width: 200px" @search="onSearch" />
         </span>
-        <div>
+        <div class="total-num">
             <!-- <a-checkbox v-model:checked="checked1">全部</a-checkbox>
             <a-checkbox v-model:checked="checked2">测试数据1</a-checkbox>
             <a-checkbox v-model:checked="checked3">测试数据2</a-checkbox>
             <a-checkbox v-model:checked="checked4">测试数据3</a-checkbox> -->
-            一共有{{ num }}个通用接口
+            一共有<span>{{ num }}</span>个通用接口
         </div>
         <a-modal v-model:visible="visible" title="申请库" @ok="handleOk" width="1440px" height="980px">
             <library></library>
@@ -104,7 +104,9 @@ export default defineComponent({
     height: 54px;
     padding: 11px;
     margin-bottom: 20px;
-    border-bottom: solid 1px #DEDEDE;
+    /* border-bottom: solid 1px #DEDEDE; */
+    background: #F8F8F8;
+    border-radius: 4px;
 }
 
 .sqrk {
@@ -118,4 +120,15 @@ export default defineComponent({
     text-align: center;
     border-radius: 4px;
 }
+
+.total-num {
+    font-family: Source Han Sans CN;
+    font-size: 16px;
+    font-weight: normal;
+    color: #333333;
+}
+.total-num>span{
+    font-size: 20px;
+    color: #0671DD;
+}
 </style>

+ 21 - 7
src/views/systemAdmin/system/tag/index.vue

@@ -30,6 +30,15 @@
                             },
                         ]" />
                     </template> -->
+                    <template #action="{ record }">
+                        <TableAction :actions="[
+                            {
+                                label: '查看',
+                                tooltip: '查看',
+                                onClick: searchTagsByType.bind(null,record.TYPE),
+                            }
+                        ]" />
+                    </template>
                 </BasicTable>
                 <!-- <div class="body-header">
                     <div class="item-title">标签类型列表</div>
@@ -301,6 +310,10 @@ export default defineComponent({
             }
         }
 
+        const searchTagsByType = (type)=>{
+            filteredInfo.value.type = [type]
+        }
+
         //注册tag表格
         const [
             registerTableTag,
@@ -359,12 +372,12 @@ export default defineComponent({
                 // pageSize: 10,
                 hideOnSinglePage: false
             },
-            // actionColumn: {
-            //     width: 100,
-            //     title: '操作',
-            //     dataIndex: 'action',
-            //     slots: { customRender: 'action' },
-            // }
+            actionColumn: {
+                width: 100,
+                title: '操作',
+                dataIndex: 'action',
+                slots: { customRender: 'action' },
+            }
         });
 
         return {
@@ -381,7 +394,8 @@ export default defineComponent({
             delAllData,
             onDelete,
             openDialog,
-            onSubmit
+            onSubmit,
+            searchTagsByType
         };
     },
 });