Przeglądaj źródła

跟新行政许可文件

丁烨烨 2 lat temu
rodzic
commit
388c2e9823

+ 10 - 13
src/views/basicData/HetcData/LittleGiantDSORS/index.vue

@@ -2,7 +2,7 @@
     <div class="app-container">
         <el-row :gutter="20">
             <!--用户数据-->
-            <el-col :span="20" :xs="24">
+            <el-col style="display:flex" :span="20" :xs="24">
                 <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch">
                     <el-form-item label="用户名称" prop="userName">
                         <el-input v-model="queryParams.userName" placeholder="请输入用户名称" clearable style="width: 240px"
@@ -26,7 +26,6 @@
                         <el-button type="warning" plain icon="Download" @click="handleExport"
                             v-hasPermi="['system:user:export']">导出</el-button>
                     </el-col>
-                    <right-toolbar v-model:showSearch="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
                 </el-row>
 
                 <!-- <el-table v-loading="loading" :data="userList" @selection-change="handleSelectionChange">
@@ -86,6 +85,7 @@
 </template>
   
 <script setup name="LitleGiant">
+import { getToken } from '@/utils/auth'
 import { getCrmAdministrativeLicenseList } from '@/api/basicData/confirmation'
 import {
     delUser,
@@ -112,8 +112,10 @@ const upload = reactive({
     isUploading: false,
     // 是否更新已经存在的用户数据
     updateSupport: 0,
+    // 设置上传的请求头部
+    headers: { Authorization: getToken() },
     // 上传的地址
-    url: import.meta.env.VITE_APP_BASE_API + 'system/user/importData'
+    url: import.meta.env.VITE_APP_BASE_API + 'crmAdministrativeLicense/importData'
 })
 // 列显隐信息
 const columns = ref([
@@ -143,7 +145,10 @@ const { queryParams, form } = toRefs(data)
 /** 查询用户列表 */
 function getList() {
     // loading.value = true
-    console.log(11)
+    getCrmAdministrativeLicenseList().then((res) => {
+        console.log(res)
+    })
+
 }
 /** 删除按钮操作 */
 function handleDelete(row) {
@@ -180,6 +185,7 @@ function handleImport() {
     upload.title = '用户导入'
     upload.open = true
 }
+
 /** 下载模板操作 */
 function importTemplate() {
     proxy.download(
@@ -210,15 +216,6 @@ const handleFileSuccess = (response, file, fileList) => {
 function submitFileForm() {
     proxy.$refs['uploadRef'].submit()
 }
-/** 初始化部门数据 */
-function initTreeData() {
-    // 判断部门的数据是否存在,存在不获取,不存在则获取
-    if (deptOptions.value === undefined) {
-        treeselect().then((response) => {
-            deptOptions.value = response.data
-        })
-    }
-}
 getList()
 </script>