mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
Merge branch 'develop' of http://gitlab.dongwu-inc.com:10080/BOE/fe-manage into manage-release
This commit is contained in:
@@ -77,12 +77,12 @@ export function useBoeUserListPage(_url, params = {}, init = true) {
|
|||||||
...params
|
...params
|
||||||
})
|
})
|
||||||
|
|
||||||
watch(() => params.keyWord, throttle(fetch, 600))
|
watch(() => params.keyword, throttle(fetch, 600))
|
||||||
watch(() => params.page, fetch)
|
watch(() => params.page, fetch)
|
||||||
|
|
||||||
function fetch() {
|
function fetch() {
|
||||||
state.loading = true
|
state.loading = true
|
||||||
if (!params.keyWord) {
|
if (!params.keyword) {
|
||||||
state.loading = false
|
state.loading = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export default {
|
|||||||
const store = useStore();
|
const store = useStore();
|
||||||
const $router = useRouter();
|
const $router = useRouter();
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
openList: store.state.openpages,
|
//openList: store.state.openpages,
|
||||||
});
|
});
|
||||||
|
|
||||||
const closePage = (value) => {
|
const closePage = (value) => {
|
||||||
|
|||||||
@@ -436,7 +436,7 @@ export default {
|
|||||||
};
|
};
|
||||||
const afterVisibleChange = (bool) => {
|
const afterVisibleChange = (bool) => {
|
||||||
console.log("props", props);
|
console.log("props", props);
|
||||||
if (props.addtestVisible && props.edit) {
|
if (props.addtestVisible && props.EditTestId) {
|
||||||
// 该页面显示同时 edit为true 时,发送查询请求,
|
// 该页面显示同时 edit为true 时,发送查询请求,
|
||||||
queryTest();
|
queryTest();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ const emit = defineEmits({})
|
|||||||
|
|
||||||
const isOpen = ref(false)
|
const isOpen = ref(false)
|
||||||
|
|
||||||
const memberParam = ref({keyWord: '', page: 1, pageSize: 20})
|
const memberParam = ref({keyword: '', page: 1, pageSize: 20})
|
||||||
|
|
||||||
const {data: userList, loading} = useBoeUserListPage(USER_LIST, memberParam.value, false)
|
const {data: userList, loading} = useBoeUserListPage(USER_LIST, memberParam.value, false)
|
||||||
|
|
||||||
@@ -87,23 +87,23 @@ const memberScroll = ({target: {scrollHeight, scrollTop, clientHeight}}) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
//搜索学员
|
//搜索学员
|
||||||
const searchMember = (keyWord) => {
|
const searchMember = (keyword) => {
|
||||||
console.log('searchMember', keyWord)
|
console.log('searchMember', keyword)
|
||||||
loading.value = true
|
loading.value = true
|
||||||
isOpen.value = true
|
isOpen.value = true
|
||||||
userList.value = []
|
userList.value = []
|
||||||
memberParam.value.page = 1
|
memberParam.value.page = 1
|
||||||
memberParam.value.keyWord = keyWord
|
memberParam.value.keyword = keyword
|
||||||
};
|
};
|
||||||
|
|
||||||
function blur() {
|
function blur() {
|
||||||
isOpen.value = false
|
isOpen.value = false
|
||||||
memberParam.value.keyWord = ''
|
memberParam.value.keyword = ''
|
||||||
memberParam.value.page = 1
|
memberParam.value.page = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function change(e, l) {
|
function change(e, l) {
|
||||||
memberParam.value.keyWord = ''
|
memberParam.value.keyword = ''
|
||||||
memberParam.value.page = 1
|
memberParam.value.page = 1
|
||||||
isOpen.value = false
|
isOpen.value = false
|
||||||
Array.isArray(l) && (selectOptions.value = l)
|
Array.isArray(l) && (selectOptions.value = l)
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
const { defineConfig } = require("@vue/cli-service");
|
const { defineConfig } = require("@vue/cli-service");
|
||||||
|
|
||||||
module.exports = defineConfig({
|
module.exports = defineConfig({
|
||||||
publicPath: "/manage",
|
publicPath: process.env.VUE_APP_BASE,
|
||||||
// transpileDependencies: true,
|
// transpileDependencies: true,
|
||||||
devServer: {
|
devServer: {
|
||||||
port: 8080,
|
port: 8080,
|
||||||
|
|||||||
Reference in New Issue
Block a user