Merge branch 'develop' of http://gitlab.dongwu-inc.com:10080/BOE/fe-manage into manage-release

This commit is contained in:
yuping
2022-12-25 23:30:59 +08:00
5 changed files with 11 additions and 11 deletions

View File

@@ -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
} }

View File

@@ -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) => {

View File

@@ -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();
} }

View File

@@ -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)

View File

@@ -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,