Bläddra i källkod

按照需求更改UI

Franike 11 månader sedan
förälder
incheckning
e778118004
4 ändrade filer med 222 tillägg och 218 borttagningar
  1. 53 53
      controller/bms_home_ctl.py
  2. 126 122
      ui/cell.py
  3. 38 38
      ui/main/under_page.py
  4. 5 5
      widget/bms_cell.py

+ 53 - 53
controller/bms_home_ctl.py

@@ -809,33 +809,33 @@ class BmsHomeControll:
 
     def _inf_000F_signal(self, data):
         # 单体电压
-        if data[1] == 0:
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(0, 1).setText(str(data[3] << 8 | data[2]) + " mV")
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(1, 1).setText(str(data[5] << 8 | data[4]) + " mV")   
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(2, 1).setText(str(data[7] << 8 | data[6]) + " mV")   
-
-        if data[1] == 1:
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(3, 1).setText(str(data[3] << 8 | data[2]) + " mV")
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(0, 4).setText(str(data[5] << 8 | data[4]) + " mV")   
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(1, 4).setText(str(data[7] << 8 | data[6]) + " mV")   
-
-        if data[1] == 2:
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(2, 4).setText(str(data[3] << 8 | data[2]) + " mV")
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(3, 4).setText(str(data[5] << 8 | data[4]) + " mV")   
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(0, 7).setText(str(data[7] << 8 | data[6]) + " mV")   
-
-        if data[1] == 3:
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(1, 7).setText(str(data[3] << 8 | data[2]) + " mV")
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(2, 7).setText(str(data[5] << 8 | data[4]) + " mV")   
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(3, 7).setText(str(data[7] << 8 | data[6]) + " mV") 
-
-        if data[1] == 4:
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(0, 10).setText(str(data[3] << 8 | data[2]) + " mV")
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(1, 10).setText(str(data[5] << 8 | data[4]) + " mV")   
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(2, 10).setText(str(data[7] << 8 | data[6]) + " mV") 
-
-        if data[1] == 5:
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(3, 10).setText(str(data[3] << 8 | data[2]) + " mV")
+        # if data[1] == 0:
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(0, 1).setText(str(data[3] << 8 | data[2]) + " mV")
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(1, 1).setText(str(data[5] << 8 | data[4]) + " mV")   
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(2, 1).setText(str(data[7] << 8 | data[6]) + " mV")   
+
+        # if data[1] == 1:
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(3, 1).setText(str(data[3] << 8 | data[2]) + " mV")
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(0, 4).setText(str(data[5] << 8 | data[4]) + " mV")   
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(1, 4).setText(str(data[7] << 8 | data[6]) + " mV")   
+
+        # if data[1] == 2:
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(2, 4).setText(str(data[3] << 8 | data[2]) + " mV")
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(3, 4).setText(str(data[5] << 8 | data[4]) + " mV")   
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(0, 7).setText(str(data[7] << 8 | data[6]) + " mV")   
+
+        # if data[1] == 3:
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(1, 7).setText(str(data[3] << 8 | data[2]) + " mV")
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(2, 7).setText(str(data[5] << 8 | data[4]) + " mV")   
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(3, 7).setText(str(data[7] << 8 | data[6]) + " mV") 
+
+        # if data[1] == 4:
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(0, 10).setText(str(data[3] << 8 | data[2]) + " mV")
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(1, 10).setText(str(data[5] << 8 | data[4]) + " mV")   
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(2, 10).setText(str(data[7] << 8 | data[6]) + " mV") 
+
+        # if data[1] == 5:
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(3, 10).setText(str(data[3] << 8 | data[2]) + " mV")
 
         if data[0] < 25:
             # 单体信息页面
@@ -858,32 +858,32 @@ class BmsHomeControll:
 
     def _inf_0010_signal(self, data):
         # 单体温度
-        if data[1] == 0:
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(0, 2).setText(str(round((data[3] << 8 | data[2]) * 0.1 - 40, 1)) + " ℃")
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(1, 2).setText(str(round((data[5] << 8 | data[4]) * 0.1 - 40, 1)) + " ℃")
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(2, 2).setText(str(round((data[7] << 8 | data[6]) * 0.1 - 40, 1)) + " ℃")
-
-        if data[1] == 1:
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(3, 2).setText(str(round((data[3] << 8 | data[2]) * 0.1 - 40, 1)) + " ℃")
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(0, 5).setText(str(round((data[5] << 8 | data[4]) * 0.1 - 40, 1)) + " ℃")  
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(1, 5).setText(str(round((data[7] << 8 | data[6]) * 0.1 - 40, 1)) + " ℃")
-
-        if data[1] == 2:
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(2, 5).setText(str(round((data[3] << 8 | data[2]) * 0.1 - 40, 1)) + " ℃")
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(3, 5).setText(str(round((data[5] << 8 | data[4]) * 0.1 - 40, 1)) + " ℃")
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(0, 8).setText(str(round((data[7] << 8 | data[6]) * 0.1 - 40, 1)) + " ℃")
-        if data[1] == 3:
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(1, 8).setText(str(round((data[3] << 8 | data[2]) * 0.1 - 40, 1)) + " ℃")
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(2, 8).setText(str(round((data[5] << 8 | data[4]) * 0.1 - 40, 1)) + " ℃")
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(3, 8).setText(str(round((data[7] << 8 | data[6]) * 0.1 - 40, 1)) + " ℃")
-
-        if data[1] == 4:
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(0, 11).setText(str(round((data[3] << 8 | data[2]) * 0.1 - 40, 1)) + " ℃")
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(1, 11).setText(str(round((data[5] << 8 | data[4]) * 0.1 - 40, 1)) + " ℃")
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(2, 11).setText(str(round((data[7] << 8 | data[6]) * 0.1 - 40, 1)) + " ℃")
-
-        if data[1] == 5:
-            self.bms_cell_ctl._view.home_cell_table.cellWidget(3, 11).setText(str(round((data[3] << 8 | data[2]) * 0.1 - 40, 1)) + " ℃")
+        # if data[1] == 0:
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(0, 2).setText(str(round((data[3] << 8 | data[2]) * 0.1 - 40, 1)) + " ℃")
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(1, 2).setText(str(round((data[5] << 8 | data[4]) * 0.1 - 40, 1)) + " ℃")
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(2, 2).setText(str(round((data[7] << 8 | data[6]) * 0.1 - 40, 1)) + " ℃")
+
+        # if data[1] == 1:
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(3, 2).setText(str(round((data[3] << 8 | data[2]) * 0.1 - 40, 1)) + " ℃")
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(0, 5).setText(str(round((data[5] << 8 | data[4]) * 0.1 - 40, 1)) + " ℃")  
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(1, 5).setText(str(round((data[7] << 8 | data[6]) * 0.1 - 40, 1)) + " ℃")
+
+        # if data[1] == 2:
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(2, 5).setText(str(round((data[3] << 8 | data[2]) * 0.1 - 40, 1)) + " ℃")
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(3, 5).setText(str(round((data[5] << 8 | data[4]) * 0.1 - 40, 1)) + " ℃")
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(0, 8).setText(str(round((data[7] << 8 | data[6]) * 0.1 - 40, 1)) + " ℃")
+        # if data[1] == 3:
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(1, 8).setText(str(round((data[3] << 8 | data[2]) * 0.1 - 40, 1)) + " ℃")
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(2, 8).setText(str(round((data[5] << 8 | data[4]) * 0.1 - 40, 1)) + " ℃")
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(3, 8).setText(str(round((data[7] << 8 | data[6]) * 0.1 - 40, 1)) + " ℃")
+
+        # if data[1] == 4:
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(0, 11).setText(str(round((data[3] << 8 | data[2]) * 0.1 - 40, 1)) + " ℃")
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(1, 11).setText(str(round((data[5] << 8 | data[4]) * 0.1 - 40, 1)) + " ℃")
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(2, 11).setText(str(round((data[7] << 8 | data[6]) * 0.1 - 40, 1)) + " ℃")
+
+        # if data[1] == 5:
+        #     self.bms_cell_ctl._view.home_cell_table.cellWidget(3, 11).setText(str(round((data[3] << 8 | data[2]) * 0.1 - 40, 1)) + " ℃")
 
         if data[0] < 25: 
             self.bms_cell_ctl._view.cell_temp_table.cellWidget(3 * data[1], data[0] + 1).setText(str(round((data[3] << 8 | data[2]) * 0.1 - 40, 1)) + " ℃")

+ 126 - 122
ui/cell.py

@@ -108,128 +108,132 @@ class Cell(MyFrame):
         self.group_cell_box_layout.addWidget(self.under_right_widget)
         self.cell_layout.addWidget(self.group_cell_box)
         
-        #============================================================
-        self.home_cell_table = QtWidgets.QTableWidget(self.group_cell_box)
-        self.home_cell_table.setColumnCount(12)
-        self.home_cell_table.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
-        # 设置只能选择行
-        self.home_cell_table.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
-        self.home_cell_table.setHorizontalHeaderLabels(["编号", "电压", "温度", "编号", "电压", "温度", "编号", "电压", "温度", "编号", "电压", "温度"])
-        self.home_cell_table.verticalHeader().setVisible(False)
-        self.home_cell_table.verticalHeader().setHighlightSections(True)
-        self.home_cell_table.verticalHeader().setSectionResizeMode(QtWidgets.QHeaderView.Stretch)
-        self.home_cell_table.horizontalHeader().setSectionResizeMode(QtWidgets.QHeaderView.Stretch)
-        # self.home_cell_table.horizontalHeader().setSectionResizeMode(0, QtWidgets.QHeaderView.ResizeToContents)
-        self.home_cell_table.setRowCount(4)
-        for i in range(4):
-            for j in range(12):
-                if j%3 == 0:
-                    item = QtWidgets.QTableWidgetItem(str(int((i + 1) + 4 * (j/3))))
-                    item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
-                    self.home_cell_table.setItem(i, j, item)
-                if j%3 == 1:
-                    item = QtWidgets.QLineEdit("mV")
-                    item.setAlignment(Qt.AlignRight)
-                    item.setReadOnly(True)
-                    self.home_cell_table.setCellWidget(i, j, item)
-                if j%3 == 2:
-                    item = QtWidgets.QLineEdit("℃")
-                    item.setAlignment(Qt.AlignRight)
-                    item.setReadOnly(True)
-                    self.home_cell_table.setCellWidget(i, j, item)
-        self.group_cell_box_layout.addWidget(self.home_cell_table)            
-        # self.cell_layout.addWidget(self.group_cell_box_layout)
-
-        if SD.CCU_TYPE == 1:
-            self.btn_widget.setHidden(False)
-            self.home_cell_table.setHidden(True)
-        else:
-            self.btn_widget.setHidden(True)
-            self.cell_tab.setHidden(True)
-            self.home_cell_table.setHidden(False)
-            self.group_cell_box_layout.addStretch() 
-
-        self.group_set_box = QGroupBox(self.cell)
-        self.group_set_box.setTitle("基本配置")
-        self.group_set_box_layout = QtWidgets.QHBoxLayout(self.group_set_box)
-
-        self.set_widget = QtWidgets.QWidget(self.group_set_box)
-        self.set_widget_layout = QtWidgets.QGridLayout(self.set_widget)
+        if SD.CCU_TYPE == 0:
+            self.btn_jz_temp.setHidden(True)
+            self.btn_bcu_temp.setHidden(True)
+
+        # #============================================================
+        # self.home_cell_table = QtWidgets.QTableWidget(self.group_cell_box)
+        # self.home_cell_table.setColumnCount(12)
+        # self.home_cell_table.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
+        # # 设置只能选择行
+        # self.home_cell_table.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
+        # self.home_cell_table.setHorizontalHeaderLabels(["编号", "电压", "温度", "编号", "电压", "温度", "编号", "电压", "温度", "编号", "电压", "温度"])
+        # self.home_cell_table.verticalHeader().setVisible(False)
+        # self.home_cell_table.verticalHeader().setHighlightSections(True)
+        # self.home_cell_table.verticalHeader().setSectionResizeMode(QtWidgets.QHeaderView.Stretch)
+        # self.home_cell_table.horizontalHeader().setSectionResizeMode(QtWidgets.QHeaderView.Stretch)
+        # # self.home_cell_table.horizontalHeader().setSectionResizeMode(0, QtWidgets.QHeaderView.ResizeToContents)
+        # self.home_cell_table.setRowCount(4)
+        # for i in range(4):
+        #     for j in range(12):
+        #         if j%3 == 0:
+        #             item = QtWidgets.QTableWidgetItem(str(int((i + 1) + 4 * (j/3))))
+        #             item.setTextAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
+        #             self.home_cell_table.setItem(i, j, item)
+        #         if j%3 == 1:
+        #             item = QtWidgets.QLineEdit("mV")
+        #             item.setAlignment(Qt.AlignRight)
+        #             item.setReadOnly(True)
+        #             self.home_cell_table.setCellWidget(i, j, item)
+        #         if j%3 == 2:
+        #             item = QtWidgets.QLineEdit("℃")
+        #             item.setAlignment(Qt.AlignRight)
+        #             item.setReadOnly(True)
+        #             self.home_cell_table.setCellWidget(i, j, item)
+        # self.group_cell_box_layout.addWidget(self.home_cell_table)            
+        # # self.cell_layout.addWidget(self.group_cell_box_layout)
+
+        # if SD.CCU_TYPE == 1:
+        #     self.btn_widget.setHidden(False)
+        #     self.home_cell_table.setHidden(True)
+        # else:
+        #     self.btn_widget.setHidden(True)
+        #     self.cell_tab.setHidden(True)
+        #     self.home_cell_table.setHidden(False)
+        #     self.group_cell_box_layout.addStretch() 
+
+        # self.group_set_box = QGroupBox(self.cell)
+        # self.group_set_box.setTitle("基本配置")
+        # self.group_set_box_layout = QtWidgets.QHBoxLayout(self.group_set_box)
+
+        # self.set_widget = QtWidgets.QWidget(self.group_set_box)
+        # self.set_widget_layout = QtWidgets.QGridLayout(self.set_widget)
         
-        self.lb_cell_dccs = QtWidgets.QLabel("电池串数")
-        self.set_widget_layout.addWidget(self.lb_cell_dccs, 0, 0)
-        self.edt_cell_dccs = QtWidgets.QLineEdit("")
-        self.set_widget_layout.addWidget(self.edt_cell_dccs, 0, 1)
-        self.lb_cell_d = QtWidgets.QLabel("串")
-        self.set_widget_layout.addWidget(self.lb_cell_d, 0, 2)
-
-        self.lb_cell_temp = QtWidgets.QLabel("电池温度")
-        self.set_widget_layout.addWidget(self.lb_cell_temp, 1, 0)
-        self.edt_cell_temp = QtWidgets.QLineEdit("")
-        self.set_widget_layout.addWidget(self.edt_cell_temp, 1, 1)
-        self.lb_cell_dd = QtWidgets.QLabel("个")
-        self.set_widget_layout.addWidget(self.lb_cell_dd, 1, 2)
-
-        self.lb_mos_temp = QtWidgets.QLabel("MOS温度")
-        self.set_widget_layout.addWidget(self.lb_mos_temp, 2, 0)
-        self.edt_mos_temp = QtWidgets.QLineEdit("")
-        self.set_widget_layout.addWidget(self.edt_mos_temp, 2, 1)
-        self.lb_mos_dd = QtWidgets.QLabel("个")
-        self.set_widget_layout.addWidget(self.lb_mos_dd, 2, 2)
-
-        self.wgpe = QtWidgets.QLabel("温感配置")
-        self.set_widget_layout.addWidget(self.wgpe, 0, 4, 1, 2)
-
-        self.lb_t1 = QtWidgets.QLabel("T1")
-        self.set_widget_layout.addWidget(self.lb_t1, 1, 4, 1, 1)
-        self.cb_t1 = QtWidgets.QCheckBox(self.set_widget)
-        self.set_widget_layout.addWidget(self.cb_t1, 1, 5, 1, 1)  
-        self.lb_t2 = QtWidgets.QLabel("T2")
-        self.set_widget_layout.addWidget(self.lb_t2, 2, 4, 1, 1)
-        self.cb_t2 = QtWidgets.QCheckBox(self.set_widget)
-        self.set_widget_layout.addWidget(self.cb_t2, 2, 5, 1, 1)  
-        self.lb_t3 = QtWidgets.QLabel("T3")
-        self.set_widget_layout.addWidget(self.lb_t3, 3, 4, 1, 1)
-        self.cb_t3 = QtWidgets.QCheckBox(self.set_widget)
-        self.set_widget_layout.addWidget(self.cb_t3, 3, 5, 1, 1)  
-        self.lb_t4 = QtWidgets.QLabel("T4")
-        self.set_widget_layout.addWidget(self.lb_t4, 4, 4, 1, 1)
-        self.cb_t4 = QtWidgets.QCheckBox(self.set_widget)
-        self.set_widget_layout.addWidget(self.cb_t4, 4, 5, 1, 1) 
-
-        self.lb_t5 = QtWidgets.QLabel("T5")
-        self.set_widget_layout.addWidget(self.lb_t5, 1, 7, 1, 1)
-        self.cb_t5 = QtWidgets.QCheckBox(self.set_widget)
-        self.set_widget_layout.addWidget(self.cb_t5, 1, 8, 1, 1)  
-        self.lb_t6 = QtWidgets.QLabel("T6")
-        self.set_widget_layout.addWidget(self.lb_t6, 2, 7, 1, 1)
-        self.cb_t6 = QtWidgets.QCheckBox(self.set_widget)
-        self.set_widget_layout.addWidget(self.cb_t6, 2, 8, 1, 1)  
-        self.lb_t7 = QtWidgets.QLabel("T7")
-        self.set_widget_layout.addWidget(self.lb_t7, 3, 7, 1, 1)
-        self.cb_t7 = QtWidgets.QCheckBox(self.set_widget)
-        self.set_widget_layout.addWidget(self.cb_t7, 3, 8, 1, 1)  
-        self.lb_t8 = QtWidgets.QLabel("T8")
-        self.set_widget_layout.addWidget(self.lb_t8, 4, 7, 1, 1)
-        self.cb_t8 = QtWidgets.QCheckBox(self.set_widget)
-        self.set_widget_layout.addWidget(self.cb_t8, 4, 8, 1, 1) 
-
-        self.group_set_box_layout.addWidget(self.set_widget)
-
-        self.btn_set_widget = QtWidgets.QWidget(self.group_set_box)
-        self.btn_set_widget_layout = QtWidgets.QVBoxLayout(self.btn_set_widget)
-
-        self.btn_read_set_param = QtWidgets.QPushButton("读取参数")
-        self.btn_set_widget_layout.addWidget(self.btn_read_set_param)
-        self.btn_update_set_param = QtWidgets.QPushButton("更新参数")
-        self.btn_set_widget_layout.addWidget(self.btn_update_set_param)
-
-        self.group_set_box_layout.addWidget(self.btn_set_widget)
-
-        self.group_set_box_layout.addStretch() 
-        self.cell_layout.addWidget(self.group_set_box)
-
-        if SD.CCU_TYPE == 1:
-            self.group_set_box.setHidden(True)
+        # self.lb_cell_dccs = QtWidgets.QLabel("电池串数")
+        # self.set_widget_layout.addWidget(self.lb_cell_dccs, 0, 0)
+        # self.edt_cell_dccs = QtWidgets.QLineEdit("")
+        # self.set_widget_layout.addWidget(self.edt_cell_dccs, 0, 1)
+        # self.lb_cell_d = QtWidgets.QLabel("串")
+        # self.set_widget_layout.addWidget(self.lb_cell_d, 0, 2)
+
+        # self.lb_cell_temp = QtWidgets.QLabel("电池温度")
+        # self.set_widget_layout.addWidget(self.lb_cell_temp, 1, 0)
+        # self.edt_cell_temp = QtWidgets.QLineEdit("")
+        # self.set_widget_layout.addWidget(self.edt_cell_temp, 1, 1)
+        # self.lb_cell_dd = QtWidgets.QLabel("个")
+        # self.set_widget_layout.addWidget(self.lb_cell_dd, 1, 2)
+
+        # self.lb_mos_temp = QtWidgets.QLabel("MOS温度")
+        # self.set_widget_layout.addWidget(self.lb_mos_temp, 2, 0)
+        # self.edt_mos_temp = QtWidgets.QLineEdit("")
+        # self.set_widget_layout.addWidget(self.edt_mos_temp, 2, 1)
+        # self.lb_mos_dd = QtWidgets.QLabel("个")
+        # self.set_widget_layout.addWidget(self.lb_mos_dd, 2, 2)
+
+        # self.wgpe = QtWidgets.QLabel("温感配置")
+        # self.set_widget_layout.addWidget(self.wgpe, 0, 4, 1, 2)
+
+        # self.lb_t1 = QtWidgets.QLabel("T1")
+        # self.set_widget_layout.addWidget(self.lb_t1, 1, 4, 1, 1)
+        # self.cb_t1 = QtWidgets.QCheckBox(self.set_widget)
+        # self.set_widget_layout.addWidget(self.cb_t1, 1, 5, 1, 1)  
+        # self.lb_t2 = QtWidgets.QLabel("T2")
+        # self.set_widget_layout.addWidget(self.lb_t2, 2, 4, 1, 1)
+        # self.cb_t2 = QtWidgets.QCheckBox(self.set_widget)
+        # self.set_widget_layout.addWidget(self.cb_t2, 2, 5, 1, 1)  
+        # self.lb_t3 = QtWidgets.QLabel("T3")
+        # self.set_widget_layout.addWidget(self.lb_t3, 3, 4, 1, 1)
+        # self.cb_t3 = QtWidgets.QCheckBox(self.set_widget)
+        # self.set_widget_layout.addWidget(self.cb_t3, 3, 5, 1, 1)  
+        # self.lb_t4 = QtWidgets.QLabel("T4")
+        # self.set_widget_layout.addWidget(self.lb_t4, 4, 4, 1, 1)
+        # self.cb_t4 = QtWidgets.QCheckBox(self.set_widget)
+        # self.set_widget_layout.addWidget(self.cb_t4, 4, 5, 1, 1) 
+
+        # self.lb_t5 = QtWidgets.QLabel("T5")
+        # self.set_widget_layout.addWidget(self.lb_t5, 1, 7, 1, 1)
+        # self.cb_t5 = QtWidgets.QCheckBox(self.set_widget)
+        # self.set_widget_layout.addWidget(self.cb_t5, 1, 8, 1, 1)  
+        # self.lb_t6 = QtWidgets.QLabel("T6")
+        # self.set_widget_layout.addWidget(self.lb_t6, 2, 7, 1, 1)
+        # self.cb_t6 = QtWidgets.QCheckBox(self.set_widget)
+        # self.set_widget_layout.addWidget(self.cb_t6, 2, 8, 1, 1)  
+        # self.lb_t7 = QtWidgets.QLabel("T7")
+        # self.set_widget_layout.addWidget(self.lb_t7, 3, 7, 1, 1)
+        # self.cb_t7 = QtWidgets.QCheckBox(self.set_widget)
+        # self.set_widget_layout.addWidget(self.cb_t7, 3, 8, 1, 1)  
+        # self.lb_t8 = QtWidgets.QLabel("T8")
+        # self.set_widget_layout.addWidget(self.lb_t8, 4, 7, 1, 1)
+        # self.cb_t8 = QtWidgets.QCheckBox(self.set_widget)
+        # self.set_widget_layout.addWidget(self.cb_t8, 4, 8, 1, 1) 
+
+        # self.group_set_box_layout.addWidget(self.set_widget)
+
+        # self.btn_set_widget = QtWidgets.QWidget(self.group_set_box)
+        # self.btn_set_widget_layout = QtWidgets.QVBoxLayout(self.btn_set_widget)
+
+        # self.btn_read_set_param = QtWidgets.QPushButton("读取参数")
+        # self.btn_set_widget_layout.addWidget(self.btn_read_set_param)
+        # self.btn_update_set_param = QtWidgets.QPushButton("更新参数")
+        # self.btn_set_widget_layout.addWidget(self.btn_update_set_param)
+
+        # self.group_set_box_layout.addWidget(self.btn_set_widget)
+
+        # self.group_set_box_layout.addStretch() 
+        # self.cell_layout.addWidget(self.group_set_box)
+
+        # if SD.CCU_TYPE == 1:
+        #     self.group_set_box.setHidden(True)
 
         QMetaObject.connectSlotsByName(Cell)

+ 38 - 38
ui/main/under_page.py

@@ -30,14 +30,14 @@ class UnderPage(QtWidgets.QWidget):
         self.under_left_groupbox_layout = QtWidgets.QGridLayout(self.under_left_groupbox)
 
         self.lb_status = QtWidgets.QLabel("(灰色:断开/状态不成立 绿色:闭合/状态成立  红色:禁止)")
-        self.under_left_groupbox_layout.addWidget(self.lb_status, 0, 8, 1, 9)
+        self.under_left_groupbox_layout.addWidget(self.lb_status, 0, 0, 1, 5)
 
         self.sys_status = QtWidgets.QLineEdit(self.under_left_groupbox)
         self.sys_status.setText("系统状态")
         self.sys_status.setAlignment(Qt.AlignCenter)
         self.sys_status.setReadOnly(True)
         set_edt_bg(self.sys_status, QColor("#99CC99"))
-        self.under_left_groupbox_layout.addWidget(self.sys_status, 1, 0, 1, 2)
+        self.under_left_groupbox_layout.addWidget(self.sys_status, 1, 0)
 
         # spacerItem1 = QtWidgets.QSpacerItem(30, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
         # self.under_left_groupbox_layout.addItem(spacerItem1)
@@ -47,14 +47,14 @@ class UnderPage(QtWidgets.QWidget):
         self.sys_status_no.setAlignment(Qt.AlignCenter)
         self.sys_status_no.setReadOnly(True)
         set_edt_bg(self.sys_status_no, QColor(Qt.gray))
-        self.under_left_groupbox_layout.addWidget(self.sys_status_no, 1, 3, 1, 2)
+        self.under_left_groupbox_layout.addWidget(self.sys_status_no, 1, 1)
 
         self.sys_status_high_no = QtWidgets.QLineEdit(self.under_left_groupbox)
         self.sys_status_high_no.setText("待机")
         self.sys_status_high_no.setAlignment(Qt.AlignCenter)
         self.sys_status_high_no.setReadOnly(True)
         set_edt_bg(self.sys_status_high_no, QColor(Qt.gray))
-        self.under_left_groupbox_layout.addWidget(self.sys_status_high_no, 1, 5, 1, 4)
+        self.under_left_groupbox_layout.addWidget(self.sys_status_high_no, 1, 2)
 
         # self.sys_status_high_no = QtWidgets.QLineEdit(self.under_left_groupbox)
         # self.sys_status_high_no.setText("高压待机")
@@ -68,33 +68,33 @@ class UnderPage(QtWidgets.QWidget):
         self.sys_status_chg.setAlignment(Qt.AlignCenter)
         self.sys_status_chg.setReadOnly(True)
         set_edt_bg(self.sys_status_chg, QColor(Qt.gray))
-        self.under_left_groupbox_layout.addWidget(self.sys_status_chg, 1, 9, 1, 2)
+        self.under_left_groupbox_layout.addWidget(self.sys_status_chg, 1, 3)
 
         self.sys_status_dchg = QtWidgets.QLineEdit(self.under_left_groupbox)
         self.sys_status_dchg.setText("放电")
         self.sys_status_dchg.setAlignment(Qt.AlignCenter)
         self.sys_status_dchg.setReadOnly(True)
         set_edt_bg(self.sys_status_dchg, QColor(Qt.gray))
-        self.under_left_groupbox_layout.addWidget(self.sys_status_dchg, 1, 11, 1, 2)
+        self.under_left_groupbox_layout.addWidget(self.sys_status_dchg, 1, 4)
 
         self.sys_status_stop = QtWidgets.QLineEdit(self.under_left_groupbox)
         self.sys_status_stop.setText("停机")
         self.sys_status_stop.setAlignment(Qt.AlignCenter)
         self.sys_status_stop.setReadOnly(True)
         set_edt_bg(self.sys_status_stop, QColor(Qt.gray))
-        self.under_left_groupbox_layout.addWidget(self.sys_status_stop, 1, 13, 1, 2)
+        self.under_left_groupbox_layout.addWidget(self.sys_status_stop, 1, 5)
 
         self.sys_status_sleep = QtWidgets.QLineEdit(self.under_left_groupbox)
         self.sys_status_sleep.setText("休眠")
         self.sys_status_sleep.setAlignment(Qt.AlignCenter)
         self.sys_status_sleep.setReadOnly(True)
         set_edt_bg(self.sys_status_sleep, QColor(Qt.gray))
-        self.under_left_groupbox_layout.addWidget(self.sys_status_sleep, 1, 15, 1, 2)
+        self.under_left_groupbox_layout.addWidget(self.sys_status_sleep, 1, 6)
 
         # self.sys_status_nononono = QtWidgets.QLabel("       ")
         # self.under_left_groupbox_layout.addWidget(self.sys_status_nononono, 0, 9, 1, 1)
-        spacerItem2 = QtWidgets.QSpacerItem(30, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
-        self.under_left_groupbox_layout.addItem(spacerItem2)
+        # spacerItem2 = QtWidgets.QSpacerItem(30, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
+        # self.under_left_groupbox_layout.addItem(spacerItem2)
 
         # self.up_and_down = QtWidgets.QLineEdit(self.under_left_groupbox)
         # self.up_and_down.setText("指令")
@@ -128,7 +128,7 @@ class UnderPage(QtWidgets.QWidget):
             self.do_status.setAlignment(Qt.AlignCenter)
             self.do_status.setReadOnly(True)
             set_edt_bg(self.do_status, QColor("#99CC99"))
-            self.under_left_groupbox_layout.addWidget(self.do_status, 3, 0, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.do_status, 3, 0)
 
             spacerItem2 = QtWidgets.QSpacerItem(30, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
             self.under_left_groupbox_layout.addItem(spacerItem2)
@@ -138,56 +138,56 @@ class UnderPage(QtWidgets.QWidget):
             self.do_1.setAlignment(Qt.AlignCenter)
             self.do_1.setReadOnly(True)
             set_edt_bg(self.do_1, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.do_1, 3, 3, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.do_1, 3, 1)
 
             self.do_2 = QtWidgets.QLineEdit(self.under_left_groupbox)
             self.do_2.setText("主负接触器")
             self.do_2.setAlignment(Qt.AlignCenter)
             self.do_2.setReadOnly(True)
             set_edt_bg(self.do_2, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.do_2, 3, 6, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.do_2, 3, 2)
 
             self.do_3 = QtWidgets.QLineEdit(self.under_left_groupbox)
             self.do_3.setText("预充接触器")
             self.do_3.setAlignment(Qt.AlignCenter)
             self.do_3.setReadOnly(True)
             set_edt_bg(self.do_3, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.do_3, 3, 9, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.do_3, 3, 3)
 
             self.do_4 = QtWidgets.QLineEdit(self.under_left_groupbox)
             self.do_4.setText("中间接触器")
             self.do_4.setAlignment(Qt.AlignCenter)
             self.do_4.setReadOnly(True)
             set_edt_bg(self.do_4, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.do_4, 3, 12, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.do_4, 3, 4)
 
             self.do_5 = QtWidgets.QLineEdit(self.under_left_groupbox)
             self.do_5.setText("断路器控制")
             self.do_5.setAlignment(Qt.AlignCenter)
             self.do_5.setReadOnly(True)
             set_edt_bg(self.do_5, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.do_5, 4, 3, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.do_5, 4, 1)
 
             self.do_6 = QtWidgets.QLineEdit(self.under_left_groupbox)
             self.do_6.setText("DO6")
             self.do_6.setAlignment(Qt.AlignCenter)
             self.do_6.setReadOnly(True)
             set_edt_bg(self.do_6, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.do_6, 4, 6, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.do_6, 4, 2)
 
             self.do_7 = QtWidgets.QLineEdit(self.under_left_groupbox)
             self.do_7.setText("干接点1")
             self.do_7.setAlignment(Qt.AlignCenter)
             self.do_7.setReadOnly(True)
             set_edt_bg(self.do_7, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.do_7, 4, 9, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.do_7, 4, 3)
 
             self.do_8 = QtWidgets.QLineEdit(self.under_left_groupbox)
             self.do_8.setText("干接点2")
             self.do_8.setAlignment(Qt.AlignCenter)
             self.do_8.setReadOnly(True)
             set_edt_bg(self.do_8, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.do_8, 4, 12, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.do_8, 4, 4)
 
 
             self.di_status = QtWidgets.QLineEdit(self.under_left_groupbox)
@@ -195,7 +195,7 @@ class UnderPage(QtWidgets.QWidget):
             self.di_status.setAlignment(Qt.AlignCenter)
             self.di_status.setReadOnly(True)
             set_edt_bg(self.di_status, QColor("#99CC99"))
-            self.under_left_groupbox_layout.addWidget(self.di_status, 5, 0, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.di_status, 5, 0)
 
             spacerItem2 = QtWidgets.QSpacerItem(30, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
             self.under_left_groupbox_layout.addItem(spacerItem2)
@@ -205,56 +205,56 @@ class UnderPage(QtWidgets.QWidget):
             self.di_1.setAlignment(Qt.AlignCenter)
             self.di_1.setReadOnly(True)
             set_edt_bg(self.di_1, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.di_1, 5, 3, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.di_1, 5, 1)
 
             self.di_2 = QtWidgets.QLineEdit(self.under_left_groupbox)
             self.di_2.setText("DI2")
             self.di_2.setAlignment(Qt.AlignCenter)
             self.di_2.setReadOnly(True)
             set_edt_bg(self.di_2, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.di_2, 5, 6, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.di_2, 5, 2)
 
             self.di_3 = QtWidgets.QLineEdit(self.under_left_groupbox)
             self.di_3.setText("DI3")
             self.di_3.setAlignment(Qt.AlignCenter)
             self.di_3.setReadOnly(True)
             set_edt_bg(self.di_3, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.di_3, 5, 9, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.di_3, 5, 3)
 
             self.di_4 = QtWidgets.QLineEdit(self.under_left_groupbox)
             self.di_4.setText("DI4")
             self.di_4.setAlignment(Qt.AlignCenter)
             self.di_4.setReadOnly(True)
             set_edt_bg(self.di_4, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.di_4, 5, 12, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.di_4, 5, 4)
 
             self.di_5 = QtWidgets.QLineEdit(self.under_left_groupbox)
             self.di_5.setText("DI5")
             self.di_5.setAlignment(Qt.AlignCenter)
             self.di_5.setReadOnly(True)
             set_edt_bg(self.di_5, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.di_5, 6, 3, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.di_5, 6, 1)
 
             self.di_6 = QtWidgets.QLineEdit(self.under_left_groupbox)
             self.di_6.setText("DI6")
             self.di_6.setAlignment(Qt.AlignCenter)
             self.di_6.setReadOnly(True)
             set_edt_bg(self.di_6, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.di_6, 6, 6, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.di_6, 6, 2)
 
             self.di_7 = QtWidgets.QLineEdit(self.under_left_groupbox)
             self.di_7.setText("DI7")
             self.di_7.setAlignment(Qt.AlignCenter)
             self.di_7.setReadOnly(True)
             set_edt_bg(self.di_7, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.di_7, 6, 9, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.di_7, 6, 3)
 
             self.di_8 = QtWidgets.QLineEdit(self.under_left_groupbox)
             self.di_8.setText("DI8")
             self.di_8.setAlignment(Qt.AlignCenter)
             self.di_8.setReadOnly(True)
             set_edt_bg(self.di_8, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.di_8, 6, 12, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.di_8, 6, 4)
         else:
             # self.sys_sleep = QtWidgets.QLineEdit(self.under_left_groupbox)
             # self.sys_sleep.setText("休眠")
@@ -268,7 +268,7 @@ class UnderPage(QtWidgets.QWidget):
             self.mos_status.setAlignment(Qt.AlignCenter)
             self.mos_status.setReadOnly(True)
             set_edt_bg(self.mos_status, QColor("#99CC99"))
-            self.under_left_groupbox_layout.addWidget(self.mos_status, 3, 0, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.mos_status, 3, 0)
 
             spacerItem2 = QtWidgets.QSpacerItem(30, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
             self.under_left_groupbox_layout.addItem(spacerItem2)
@@ -278,28 +278,28 @@ class UnderPage(QtWidgets.QWidget):
             self.mos_chg.setAlignment(Qt.AlignCenter)
             self.mos_chg.setReadOnly(True)
             set_edt_bg(self.mos_chg, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.mos_chg, 3, 3, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.mos_chg, 3, 1)
 
             self.mos_dchg = QtWidgets.QLineEdit(self.under_left_groupbox)
             self.mos_dchg.setText("放电MOS")
             self.mos_dchg.setAlignment(Qt.AlignCenter)
             self.mos_dchg.setReadOnly(True)
             set_edt_bg(self.mos_dchg, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.mos_dchg, 3, 6, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.mos_dchg, 3, 2)
 
             self.mos_pre = QtWidgets.QLineEdit(self.under_left_groupbox)
             self.mos_pre.setText("预充MOS")
             self.mos_pre.setAlignment(Qt.AlignCenter)
             self.mos_pre.setReadOnly(True)
             set_edt_bg(self.mos_pre, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.mos_pre, 3, 9, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.mos_pre, 3, 3)
 
             self.fjd_status = QtWidgets.QLineEdit(self.under_left_groupbox)
             self.fjd_status.setText("干接点状态")
             self.fjd_status.setAlignment(Qt.AlignCenter)
             self.fjd_status.setReadOnly(True)
             set_edt_bg(self.fjd_status, QColor("#99CC99"))
-            self.under_left_groupbox_layout.addWidget(self.fjd_status, 5, 0, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.fjd_status, 5, 0)
 
             spacerItem2 = QtWidgets.QSpacerItem(30, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
             self.under_left_groupbox_layout.addItem(spacerItem2)
@@ -309,21 +309,21 @@ class UnderPage(QtWidgets.QWidget):
             self.fjd_1.setAlignment(Qt.AlignCenter)
             self.fjd_1.setReadOnly(True)
             set_edt_bg(self.fjd_1, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.fjd_1, 5, 3, 1, 3)
+            self.under_left_groupbox_layout.addWidget(self.fjd_1, 5, 1)
 
             self.fjd_2 = QtWidgets.QLineEdit(self.under_left_groupbox)
             self.fjd_2.setText("干接点2")
             self.fjd_2.setAlignment(Qt.AlignCenter)
             self.fjd_2.setReadOnly(True)
             set_edt_bg(self.fjd_2, QColor(Qt.gray))
-            self.under_left_groupbox_layout.addWidget(self.fjd_2, 5, 6, 1, 3)         
+            self.under_left_groupbox_layout.addWidget(self.fjd_2, 5, 2)         
 
         self.chd_dsg_status = QtWidgets.QLineEdit(self.under_left_groupbox)
         self.chd_dsg_status.setText("标志位")
         self.chd_dsg_status.setAlignment(Qt.AlignCenter)
         self.chd_dsg_status.setReadOnly(True)
         set_edt_bg(self.chd_dsg_status, QColor("#99CC99"))
-        self.under_left_groupbox_layout.addWidget(self.chd_dsg_status, 7, 0, 1, 3)
+        self.under_left_groupbox_layout.addWidget(self.chd_dsg_status, 7, 0)
 
         spacerItem2 = QtWidgets.QSpacerItem(30, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
         self.under_left_groupbox_layout.addItem(spacerItem2)
@@ -333,14 +333,14 @@ class UnderPage(QtWidgets.QWidget):
         self.permit_chg.setAlignment(Qt.AlignCenter)
         self.permit_chg.setReadOnly(True)
         set_edt_bg(self.permit_chg, QColor(Qt.gray))
-        self.under_left_groupbox_layout.addWidget(self.permit_chg, 7, 3, 1, 3)
+        self.under_left_groupbox_layout.addWidget(self.permit_chg, 7, 1)
 
         self.permit_dchg = QtWidgets.QLineEdit(self.under_left_groupbox)
         self.permit_dchg.setText("禁止放电")
         self.permit_dchg.setAlignment(Qt.AlignCenter)
         self.permit_dchg.setReadOnly(True)
         set_edt_bg(self.permit_dchg, QColor(Qt.gray))
-        self.under_left_groupbox_layout.addWidget(self.permit_dchg, 7, 6, 1, 3)
+        self.under_left_groupbox_layout.addWidget(self.permit_dchg, 7, 2)
 
         self.under_layout.addWidget(self.under_left_groupbox, 1)
 

+ 5 - 5
widget/bms_cell.py

@@ -21,11 +21,11 @@ class Win_Cell(Cell, MyFrame):
         super(Win_Cell, self).__init__(parent)
         self.setupUi(self)
         
-        if SD.CCU_TYPE == 1:
-            self.btn_cell_vol.clicked.connect(self._cell_vol)
-            self.btn_cell_temp.clicked.connect(self._cell_temp)
-            self.btn_jz_temp.clicked.connect(self._jz_temp)
-            self.btn_bcu_temp.clicked.connect(self._bcu_temp)
+        # if SD.CCU_TYPE == 1:
+        self.btn_cell_vol.clicked.connect(self._cell_vol)
+        self.btn_cell_temp.clicked.connect(self._cell_temp)
+        self.btn_jz_temp.clicked.connect(self._jz_temp)
+        self.btn_bcu_temp.clicked.connect(self._bcu_temp)
 
     def _cell_vol(self):
         self.cell_vol_signal.emit(0)