修改bug

This commit is contained in:
yangjun 2026-03-04 16:55:24 +08:00
parent 64096c7f87
commit 63760ad3df
9 changed files with 53 additions and 17 deletions

View File

@ -88,7 +88,7 @@
opt.getContainer = `.${prefixVar}-layout-content` as any; opt.getContainer = `.${prefixVar}-layout-content` as any;
} }
} }
console.log('getProps:opt',opt); // console.log('getProps:opt',opt);
return opt as DrawerProps; return opt as DrawerProps;
}); });

View File

@ -161,7 +161,7 @@
} }
async function setModalHeight(option?) { async function setModalHeight(option?) {
console.log("---------性能监控--------setModalHeight----------") // console.log("-----------------setModalHeight----------")
const options = option || {}; const options = option || {};
const source = options.source; const source = options.source;
const callBack = options.callBack; const callBack = options.callBack;

View File

@ -131,5 +131,4 @@ export function registerGlobComp(app: App) {
.use(Cascader) .use(Cascader)
.use(Rate) .use(Rate)
.use(Progress); .use(Progress);
console.log("---初始化--- 全局注册Antd、仪表盘、流程设计器、online、流程等组件--------------")
} }

View File

@ -28,10 +28,10 @@ export function connectWebSocket(url: string) {
protocols: [token], protocols: [token],
// update-begin--author:liaozhiyang---date:20240726---for[issues/6662] 演示系统socket总断换一个写法 // update-begin--author:liaozhiyang---date:20240726---for[issues/6662] 演示系统socket总断换一个写法
onConnected: function (ws) { onConnected: function (ws) {
console.log('[WebSocket] 连接成功', ws); // console.log('[WebSocket] 连接成功', ws);
}, },
onDisconnected: function (ws, event) { onDisconnected: function (ws, event) {
console.log('[WebSocket] 连接断开:', ws, event); // console.log('[WebSocket] 连接断开:', ws, event);
}, },
onError: function (ws, event) { onError: function (ws, event) {
console.log('[WebSocket] 连接发生错误: ', ws, event); console.log('[WebSocket] 连接发生错误: ', ws, event);

View File

@ -150,6 +150,11 @@
await getRefPromise(updatePasswordRef); await getRefPromise(updatePasswordRef);
updatePasswordRef.value.show(userStore.getUserInfo.username); updatePasswordRef.value.show(userStore.getUserInfo.username);
} }
console.log('userStore.getUserInfo',userStore.getUserInfo);
var loginInfo = userStore.getUserInfo;
if(loginInfo.passwordType == '0'){
updatePassword();
}
// update-end--author:liaozhiyang---date:20230901---forQQYUN-6333访 // update-end--author:liaozhiyang---date:20230901---forQQYUN-6333访
function handleMenuClick(e: { key: MenuEvent }) { function handleMenuClick(e: { key: MenuEvent }) {
switch (e.key) { switch (e.key) {

View File

@ -59,7 +59,7 @@ export function createPermissionGuard(router: Router) {
const token = userStore.getToken; const token = userStore.getToken;
// Whitelist can be directly entered // Whitelist can be directly entered
console.log('whitePathList2222--->',whitePathList); // console.log('whitePathList2222--->',whitePathList);
if (whitePathList.includes(to.path as PageEnum)) { if (whitePathList.includes(to.path as PageEnum)) {
if (to.path === LOGIN_PATH && token) { if (to.path === LOGIN_PATH && token) {
const isSessionTimeout = userStore.getSessionTimeout; const isSessionTimeout = userStore.getSessionTimeout;

View File

@ -188,12 +188,12 @@ function getTableAction(record) {
{ {
label: '员工入驻审核', label: '员工入驻审核',
onClick: handleEdit.bind(null, record), onClick: handleEdit.bind(null, record),
ifShow: record.status == 1 && (record.modifyStatus == null || record.modifyStatus == undefined) && record.izHistory == 'N' ifShow: record.status == '1' && (record.modifyStatus == null || record.modifyStatus == undefined || record.modifyStatus == '') && record.izHistory == 'N'
}, },
{ {
label: '信息变更审核', label: '信息变更审核',
onClick: handleUpEdit.bind(null, record), onClick: handleUpEdit.bind(null, record),
ifShow: record.status == 1 && record.modifyStatus == 1 && record.izHistory == 'N' ifShow: record.status == '1' && record.modifyStatus == '1' && record.izHistory == 'N'
}, },
{ {
label: '审核历史', label: '审核历史',

View File

@ -46,7 +46,7 @@
</template> </template>
<!--操作栏--> <!--操作栏-->
<template #action="{ record }"> <template #action="{ record }">
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)" /> <TableAction :actions="getTableAction(record)" />
</template> </template>
<template v-slot:bodyCell="{ column, record, index, text }"> <template v-slot:bodyCell="{ column, record, index, text }">
</template> </template>
@ -113,6 +113,7 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
useSearchForm: false, useSearchForm: false,
showIndexColumn: true, showIndexColumn: true,
showTableSetting: false, showTableSetting: false,
immediate: false,
actionColumn: { actionColumn: {
width: 90, width: 90,
fixed: 'center', fixed: 'center',
@ -164,9 +165,30 @@ function handleSuccess() {
*/ */
function handleSelect(directive_) { function handleSelect(directive_) {
// createMessage.success(''); // createMessage.success('');
emit('addDirective', directive_) // emit('addDirective', directive_)
let res_ = props.directiveList.filter(item => item.id == directive_.id)
if (res_.length > 0) {
createMessage.warning('服务指令已选择');
} else {
createMessage.success('选择成功');
props.directiveList.push(directive_)
let notId = "";
props.directiveList.forEach(item => {
notId += item.id + ','
})
// if(notId){
// notId = notId.substring(0, notId.length - 1);
// }
queryParam.notId = notId;
// queryParam.notId = 'ni '+"1"
reload();
} }
}
/** /**
* 操作栏 * 操作栏
*/ */
@ -179,14 +201,7 @@ function getTableAction(record) {
]; ];
} }
/**
* 下拉操作栏
*/
function getDropDownAction(record) {
return [
]
}
/** /**
* 查询 * 查询
@ -249,7 +264,21 @@ function handleTags(prefix, tagList, suffix) {
} }
} }
function init() {
console.log('init')
let notId = "";
props.directiveList.forEach(item => {
notId += item.id + ','
})
// if(notId){
// notId = notId.substring(0, notId.length - 1);
// }
queryParam.notId = notId;
reload();
}
defineExpose({ defineExpose({
init
}); });
</script> </script>

View File

@ -199,6 +199,9 @@ function handleCancel() {
*/ */
const handleAddDirectives = () => { const handleAddDirectives = () => {
directiveEditDrawer.value = true; directiveEditDrawer.value = true;
nextTick(() => {
configServiceDirectiveListRef.value.init()
});
}; };
/** /**