| | |
| | | |
| | | |
| | | |
| | | |
| | | connect(ac1,&QAction::triggered,[=]{ |
| | | int row = ui->tableView->currentIndex().row(); |
| | | qDebug() << globalPms[row].getDevManage(); |
| | | qDebug() << "æ´æ°å½åå工信æ¯" |
| | | << QString::fromStdString( globalPms[row].getUserNo()); |
| | | // åéåå·¥ç¼å·ä¿¡æ¯ |
| | | emit sendUserNo(globalPms[row]); |
| | | |
| | |
| | | if(watch == ui->tableView->viewport() || watch == ui->tableView->verticalHeader()->viewport() |
| | | |
| | | || watch == ui->tableView->horizontalHeader()->viewport()){ |
| | | if(event->type()==QEvent::MouseButtonPress && ((QMouseEvent *)event)->button()==Qt::RightButton){ |
| | | if(event->type()==QEvent::MouseButtonPress |
| | | && ((QMouseEvent *)event)->button()==Qt::RightButton |
| | | && m_model->rowCount() > 0){ |
| | | m->exec(QCursor::pos()); |
| | | } |
| | | |
| | |
| | | |
| | | void PermissonWindow::listenItemChange(QStandardItem *item) |
| | | { |
| | | qDebug() << "æ°æ®å¼å§æ´æ°"; |
| | | QString localText = item->text(); |
| | | if(roleMap.count(localText.toStdString())){ |
| | | qDebug() << "åèµ·è使´æ°è¯·æ±"; |
| | | PmsPlusParma pm; |
| | | pm.setPermissonType(localText.toStdString()); |
| | | pm.setRoleId(roleMap[localText.toStdString()]); |
| | | clientSocket->updatePmsByParam(pm); |
| | | } |
| | | } |
| | | |
| | | void PermissonWindow::renderItemData(vector<PmsQueryResult> res) |
| | | { |