mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
日志
This commit is contained in:
@@ -168,6 +168,7 @@ function autoComma(number) {
|
|||||||
|
|
||||||
//节流
|
//节流
|
||||||
function throttle(fn, delay = 200) {
|
function throttle(fn, delay = 200) {
|
||||||
|
console.log("throttle gx start")
|
||||||
var timer = null;
|
var timer = null;
|
||||||
return function () {
|
return function () {
|
||||||
console.log('throttle')
|
console.log('throttle')
|
||||||
|
|||||||
@@ -350,7 +350,9 @@ export function usePage(_url, params, init = true, listing = false) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
export function useThrottlePage(_url, params = {}, init = true) {
|
export function useThrottlePage(_url, params = {}, init = true) {
|
||||||
|
console.log("useThrottlePage gx _url",_url)
|
||||||
|
console.log("useThrottlePage gx params",params)
|
||||||
|
console.log("useThrottlePage gx init",init)
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
data: [],
|
data: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ const options = computed(() => userList.value.filter(e => !(props.value + '').in
|
|||||||
watch(props, init)
|
watch(props, init)
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
|
console.log("init gx props value",props.value)
|
||||||
//第一次进来 编辑赋值
|
//第一次进来 编辑赋值
|
||||||
if (props.value && (props.value + '') !== selectOptions.value.map(e => e.value).join(',')) {
|
if (props.value && (props.value + '') !== selectOptions.value.map(e => e.value).join(',')) {
|
||||||
selectOptions.value = (props.value + '').split(',').map((e, i) => ({label: props.name.split(',')[i], value: e}))
|
selectOptions.value = (props.value + '').split(',').map((e, i) => ({label: props.name.split(',')[i], value: e}))
|
||||||
@@ -77,7 +78,7 @@ function init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
console.log('onMounted')
|
console.log('onMounted gx init')
|
||||||
init()
|
init()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user