修改查询bug
This commit is contained in:
parent
14a4569e5f
commit
f4797dce3d
|
@ -664,16 +664,16 @@ function getJianceBtnStatusFor() {
|
|||
|
||||
function getJianceBtnStatus() {
|
||||
getRedisKey({ key: 'zhihuijiaos:all:btnStatus'}).then(res => {
|
||||
console.log(`🚀 --------------------------------------------------🚀`);
|
||||
console.log(`🚀 ~ file: index.vue:597 ~ getRedisKey ~ res:`, res);
|
||||
console.log(`🚀 --------------------------------------------------🚀`);
|
||||
// console.log(`🚀 --------------------------------------------------🚀`);
|
||||
// console.log(`🚀 ~ file: index.vue:597 ~ getRedisKey ~ res:`, res);
|
||||
// console.log(`🚀 --------------------------------------------------🚀`);
|
||||
btnStatus.value.all = res;
|
||||
});
|
||||
cardList.value.forEach(x => {
|
||||
getRedisKey({ key: `zhihuijiaos:${ x.jxlName }:btnStatus`}).then(res => {
|
||||
console.log(`🚀 --------------------------------------------------🚀`);
|
||||
console.log(`🚀 ~ file: index.vue:597 ~ getRedisKey ~ res:`, res);
|
||||
console.log(`🚀 --------------------------------------------------🚀`);
|
||||
// console.log(`🚀 --------------------------------------------------🚀`);
|
||||
// console.log(`🚀 ~ file: index.vue:597 ~ getRedisKey ~ res:`, res);
|
||||
// console.log(`🚀 --------------------------------------------------🚀`);
|
||||
if(res){
|
||||
btnStatus.value.all = true;
|
||||
}
|
||||
|
@ -848,9 +848,9 @@ function refreshLogsFn(jxlName?){
|
|||
}
|
||||
refreshLogs({ jxlName }).then(res => {
|
||||
let list = (res?.records) ?? (res) ?? [];
|
||||
console.log(`🚀 ----------------------------------------------------------🚀`);
|
||||
console.log(`🚀 ~ file: index.vue:539 ~ refreshLogsFn ~ list:`, list);
|
||||
console.log(`🚀 ----------------------------------------------------------🚀`);
|
||||
// console.log(`🚀 ----------------------------------------------------------🚀`);
|
||||
// console.log(`🚀 ~ file: index.vue:539 ~ refreshLogsFn ~ list:`, list);
|
||||
// console.log(`🚀 ----------------------------------------------------------🚀`);
|
||||
statusLogList.value = list;
|
||||
getJianceBtnStatus();
|
||||
})
|
||||
|
@ -863,9 +863,9 @@ function refreshLogsFn(jxlName?){
|
|||
function changeSdjc(record?){
|
||||
sdjc({ id:record.jsbh }).then(res => {
|
||||
let list = (res?.records) ?? (res) ?? [];
|
||||
console.log(`🚀 ----------------------------------------------------------🚀`);
|
||||
console.log(`🚀 ~ file: index.vue:539 ~ refreshLogsFn ~ list:`, list);
|
||||
console.log(`🚀 ----------------------------------------------------------🚀`);
|
||||
// console.log(`🚀 ----------------------------------------------------------🚀`);
|
||||
// console.log(`🚀 ~ file: index.vue:539 ~ refreshLogsFn ~ list:`, list);
|
||||
// console.log(`🚀 ----------------------------------------------------------🚀`);
|
||||
statusLogList.value = list;
|
||||
getJianceBtnStatus();
|
||||
})
|
||||
|
@ -875,9 +875,9 @@ function changeSdjc(record?){
|
|||
function getRefreshLogListFn(){
|
||||
getRefreshLogList({ pageSize: -1 }).then(res => {
|
||||
let list = (res?.records) ?? [];
|
||||
console.log(`🚀 ----------------------------------------------------------🚀`);
|
||||
console.log(`🚀 ~ file: index.vue:539 ~ getRefreshLogList ~ list:`, list);
|
||||
console.log(`🚀 ----------------------------------------------------------🚀`);
|
||||
// console.log(`🚀 ----------------------------------------------------------🚀`);
|
||||
// console.log(`🚀 ~ file: index.vue:539 ~ getRefreshLogList ~ list:`, list);
|
||||
// console.log(`🚀 ----------------------------------------------------------🚀`);
|
||||
statusLogList.value = list;
|
||||
})
|
||||
}
|
||||
|
@ -1048,6 +1048,9 @@ function ylLiveNew(record) {
|
|||
function changeKftk(record,tjKftkzt){
|
||||
// record.tjKftkzt = tjKftkzt;
|
||||
updateTkzt({id:record.id,tjKftkzt}).then(res => {
|
||||
|
||||
queryParam.value.jxlName = null;
|
||||
console.log(`🚀 ~ updateTkzt ~ queryParam:`, queryParam)
|
||||
loadData();
|
||||
}).catch(e => {
|
||||
console.error(e);
|
||||
|
@ -1114,6 +1117,7 @@ function changeKt(record, isEnable){
|
|||
});
|
||||
if(!ids) return;
|
||||
updateAllLive({ ids: ids.join(','), sfyx: isEnable?0:1}).then(res => {
|
||||
queryParam.value.jxlName = null;
|
||||
loadData();
|
||||
}).catch(e => {
|
||||
console.error(e);
|
||||
|
|
Loading…
Reference in New Issue