mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 19:06:45 +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
|
||||
})
|
||||
|
||||
watch(() => params.keyWord, throttle(fetch, 600))
|
||||
watch(() => params.keyword, throttle(fetch, 600))
|
||||
watch(() => params.page, fetch)
|
||||
|
||||
function fetch() {
|
||||
state.loading = true
|
||||
if (!params.keyWord) {
|
||||
if (!params.keyword) {
|
||||
state.loading = false
|
||||
return
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ export default {
|
||||
const store = useStore();
|
||||
const $router = useRouter();
|
||||
const state = reactive({
|
||||
openList: store.state.openpages,
|
||||
//openList: store.state.openpages,
|
||||
});
|
||||
|
||||
const closePage = (value) => {
|
||||
|
||||
@@ -436,7 +436,7 @@ export default {
|
||||
};
|
||||
const afterVisibleChange = (bool) => {
|
||||
console.log("props", props);
|
||||
if (props.addtestVisible && props.edit) {
|
||||
if (props.addtestVisible && props.EditTestId) {
|
||||
// 该页面显示同时 edit为true 时,发送查询请求,
|
||||
queryTest();
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ const emit = defineEmits({})
|
||||
|
||||
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)
|
||||
|
||||
@@ -87,23 +87,23 @@ const memberScroll = ({target: {scrollHeight, scrollTop, clientHeight}}) => {
|
||||
};
|
||||
|
||||
//搜索学员
|
||||
const searchMember = (keyWord) => {
|
||||
console.log('searchMember', keyWord)
|
||||
const searchMember = (keyword) => {
|
||||
console.log('searchMember', keyword)
|
||||
loading.value = true
|
||||
isOpen.value = true
|
||||
userList.value = []
|
||||
memberParam.value.page = 1
|
||||
memberParam.value.keyWord = keyWord
|
||||
memberParam.value.keyword = keyword
|
||||
};
|
||||
|
||||
function blur() {
|
||||
isOpen.value = false
|
||||
memberParam.value.keyWord = ''
|
||||
memberParam.value.keyword = ''
|
||||
memberParam.value.page = 1
|
||||
}
|
||||
|
||||
function change(e, l) {
|
||||
memberParam.value.keyWord = ''
|
||||
memberParam.value.keyword = ''
|
||||
memberParam.value.page = 1
|
||||
isOpen.value = false
|
||||
Array.isArray(l) && (selectOptions.value = l)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
const { defineConfig } = require("@vue/cli-service");
|
||||
|
||||
module.exports = defineConfig({
|
||||
publicPath: "/manage",
|
||||
publicPath: process.env.VUE_APP_BASE,
|
||||
// transpileDependencies: true,
|
||||
devServer: {
|
||||
port: 8080,
|
||||
|
||||
Reference in New Issue
Block a user