浏览代码

档案调整筛选

duy 3 月之前
父节点
当前提交
5bde7335f0
共有 2 个文件被更改,包括 49 次插入14 次删除
  1. 9 0
      src/api/modules/other.js
  2. 40 14
      src/views/archives/manage/tuning.vue

+ 9 - 0
src/api/modules/other.js

@@ -21,6 +21,15 @@ export const getDictionary = (form, msg = true) => HcApi({
     params: form,
 }, msg)
 
+
+//业务字典
+export const getDictionaryBiz = (form) =>
+    HcApi({
+        url: '/api/blade-system/dict-biz/dictionary',
+        method: 'get',
+        params: form,
+    })
+
 //获取用户列表
 export const getContractUserList = (form, msg = true) => HcApi({
     url: '/api/blade-manager/contractInfo/get-contract-userList',

+ 40 - 14
src/views/archives/manage/tuning.vue

@@ -11,6 +11,20 @@
             <template #header>
                 <div class="hc-card-header-table-title">已形成的案卷</div>
             </template>
+            <template #search>
+                <div class="w-40">
+                    <el-select v-model="searchForm.queryValueSize" clearable placeholder="限制检索">
+                        <el-option v-for="item in queryValueSizeOption" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey" />
+                    </el-select>
+                </div>
+              
+                <div class="ml-2 w-64">
+                    <el-input v-model="searchForm.queryValue" clearable placeholder="请输入案卷名称关键词检索" @keyup="keyUpEvent" />
+                </div>
+                <div class="ml-2">
+                    <el-button type="primary" @click="searchClick">搜索</el-button>
+                </div>
+            </template>
             <template #extra>
                 <!-- transfer_initial_expert_btn_sampling -->
                 <HcTooltip keys="archives_tuning_btn_num">
@@ -224,7 +238,7 @@ import archiveFileApi from '~api/archiveFile/archiveFileAuto.js'
 
 import { getStoreValue, setStoreValue } from '~src/utils/storage'
 import { toPdfPage } from '~uti/btn-auth'
-
+import { getDictionaryBiz } from '~api/other'
 //变量
 const useAppState = useAppStore()
 const projectId = ref(useAppState.getProjectId)
@@ -243,6 +257,7 @@ watch(() => [
 //渲染完成
 onMounted(() => {
     // getClassIfyList()
+    getOptions()
     setTableColumns()
 
 })
@@ -256,16 +271,14 @@ const treeNodeLoading = () => {
 }
 
 //项目树被点击
-const nodeIds = ref('')
-const isStorageNode = ref(0)
-// const isBuiltDrawing = ref(0)
+
 //自动展开缓存
 const treeAutoExpandKeys = ref(getStoreValue('turningExpandKeys') || [])
 const nodeElTreeClick = ({ node, data, keys, key }) => {
     //缓存展开的节点
     setStoreValue('turningExpandKeys', keys)
     treeAutoExpandKeys.value = keys || []
-    console.log('点击', data)
+
     searchForm.value.total = 0
     searchForm.value.current = 1
     searchForm.value.size = 20
@@ -292,8 +305,7 @@ const insearchForm = ref({
     contractId: null, type: null, approval: null,
     current: 1, size: 1000, total: 0,
 })
-//树相关的变量
-const primaryKeyId = ref('')
+
 
 //分页被点击
 const pageChange = ({ current, size }) => {
@@ -301,12 +313,7 @@ const pageChange = ({ current, size }) => {
     searchForm.value.size = size
     getTableData()
 }
-//分页被点击
-const inpageChange = ({ current, size }) => {
-    insearchForm.value.current = current
-    insearchForm.value.size = size
-    getintableData()
-}
+
 //表格数据
 const tableRef = ref(null)
 
@@ -320,6 +327,19 @@ const setTableColumns = () => {
         { key: 'pageN', name: '总页数' },
     ]
 }
+
+//回车搜索
+const keyUpEvent = (e) => {
+    if (e.key === 'Enter') {
+        searchForm.value.current = 1
+        getTableData()
+    }
+}
+//搜索
+const searchClick = () => {
+    searchForm.value.current = 1
+    getTableData()
+}
 const tableData = ref([])
 //获取数据
 const tableLoading = ref(false)
@@ -341,7 +361,13 @@ const getTableData = async () => {
         searchForm.value.total = 0
     }
 }
-
+const queryValueSizeOption = ref([])
+const getOptions = async () => {//内业资料类型
+    const { data, code } = await getDictionaryBiz({ code: 'queryValueSize' })
+    if (code === 200) {
+        queryValueSizeOption.value = data
+    }
+}
 const innertableColumn = ref([])
 const intableData = ref([])