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