add
This commit is contained in:
parent
d643900fe6
commit
004af44815
@ -4,6 +4,6 @@ NODE_ENV = 'development'
|
||||
#
|
||||
# VITE_APP_BASE_URL = 'https://ceshi-new-wokr.lihaink.cn/'
|
||||
|
||||
VITE_APP_BASE_URL = 'https://ceshi-new-wokr.lihaink.cn/'
|
||||
# VITE_APP_BASE_URL = 'https://ceshi-new-wokr.lihaink.cn/'
|
||||
|
||||
# VITE_APP_BASE_URL = 'http://192.168.1.24:8083'
|
||||
VITE_APP_BASE_URL = 'http://192.168.1.30:8083'
|
BIN
dist (2).zip
BIN
dist (2).zip
Binary file not shown.
@ -12,4 +12,8 @@ export function taskList(params: any) {
|
||||
//任务列表
|
||||
export function editTask(params: any) {
|
||||
return request.post({ url: '/task/editTask', params })
|
||||
}
|
||||
}
|
||||
// 用户角色
|
||||
export function apiUserRoleLists() {
|
||||
return request.get({ url: '/user.user_role/getList' })
|
||||
}
|
||||
|
@ -10,11 +10,11 @@
|
||||
placeholder="请输入负责人名称"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="请选择负责人角色" prop="role_id">
|
||||
<el-select class="w-[280px]" v-model="queryParams.role_id">
|
||||
<el-form-item label="请选择负责人角色" prop="group_id">
|
||||
<el-select class="w-[280px]" v-model="queryParams.group_id">
|
||||
<el-option label="全部" value />
|
||||
<el-option
|
||||
v-for="(item, index) in optionsData.role"
|
||||
v-for="(item, index) in roleList"
|
||||
:key="index"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
@ -58,7 +58,7 @@
|
||||
<el-table-column label="最近登录IP" prop="login_ip" min-width="120" /> -->
|
||||
</el-table>
|
||||
</div>
|
||||
<div class="flex mt-4 justify-end">
|
||||
<div class="flex justify-end mt-4">
|
||||
<pagination v-model="pager" @change="getLists" />
|
||||
</div>
|
||||
|
||||
@ -76,23 +76,22 @@
|
||||
|
||||
<script lang="ts" setup name="companyLists">
|
||||
import { usePaging } from "@/hooks/usePaging";
|
||||
import { roleAll } from "@/api/perms/role";
|
||||
import { useDictData, useDictOptions } from "@/hooks/useDictOptions";
|
||||
import { adminLists } from "@/api/perms/admin";
|
||||
import Popup from "@/components/popup/index.vue";
|
||||
import {apiUserRoleLists} from "@/api/newTask.ts"
|
||||
import { defineEmits } from "vue";
|
||||
import { getUserList } from "@/api/user";
|
||||
const { optionsData } = useDictOptions<{
|
||||
role: any[];
|
||||
}>({
|
||||
role: {
|
||||
api: roleAll,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
const roleList=ref([])
|
||||
const getRoleList=async()=>{
|
||||
let res=await apiUserRoleLists()
|
||||
roleList.value=res
|
||||
|
||||
}
|
||||
|
||||
// 查询条件
|
||||
const queryParams = reactive({
|
||||
nickname:"",
|
||||
role_id:""
|
||||
group_id:""
|
||||
|
||||
});
|
||||
const props = defineProps({
|
||||
@ -101,7 +100,6 @@ const props = defineProps({
|
||||
defaults: 0,
|
||||
},
|
||||
});
|
||||
// queryParams.company_id = props.company_id;
|
||||
|
||||
// 选中数据
|
||||
|
||||
@ -128,6 +126,6 @@ const { pager, getLists, resetParams, resetPage } = usePaging({
|
||||
fetchFun: getUserList,
|
||||
params: queryParams,
|
||||
});
|
||||
|
||||
getRoleList()
|
||||
getLists();
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user