shj
2022-08-09 c64c8f43ec1a3d88feb1f915fd488040b6358e7d
src/views/facilityManagement/keyEquipment/index.vue
@@ -26,7 +26,7 @@
         <el-col :span="20">
            <div class="btns">
               <div>
                  <el-button size="default" type="primary" :icon="Plus" @click="openD">新建</el-button>
                  <el-button size="default" type="primary" :icon="Plus" @click="openD('新建')">新建</el-button>
                  <el-button size="default" :disabled="warning" type="warning" plain :icon="EditPen">修改</el-button>
                  <el-button size="default" :disabled="danger" type="danger" :icon="Delete" @click="onDeleteAll" plain>删除</el-button>
               </div>
@@ -87,7 +87,12 @@
                  <el-table-column property="departmentId" label="所属部门" align="center" sortable show-overflow-tooltip />
                  <el-table-column property="position" label="具体位置" align="center" sortable show-overflow-tooltip />
                  <el-table-column property="leadingPersonName" label="负责人姓名" align="center" sortable show-overflow-tooltip />
                  <el-table-column property="connectPersonId" label="装置部位分类" align="center" sortable show-overflow-tooltip />
                  <el-table-column property="connectPersonId" label="装置部位分类" align="center" sortable show-overflow-tooltip>
              <template #default="scope">
                <span v-if="scope.row.type == 1">关键装置</span>
                <span v-if="scope.row.type == 2">重点部位</span>
              </template>
            </el-table-column>
                  <el-table-column label="操作" align="center" width="250">
                     <template #default="scope">
                        <el-button link type="primary" size="default" :icon="View" @click="openD('查看', scope.row.id)">查看</el-button>
@@ -136,13 +141,14 @@
         pageSize: 10,
         pageIndex: 1,
         searchParams: {
            equipmentTypeId: '', ////类型/类别外键
            // equipmentTypeId: '', ////类型/类别外键
        qName: '', ////装置/部位名称
            // departmentId: '',////所属部门
            // position: '', ////具体位置
            // leadingPersonName: '', ////负责人姓名
            // connectPersonId: '',////装置部位分类
            infoTpe: 0, ////具体类型(页面左侧的导航栏使用) 0:仪器仪表信息 1:生产设备设施 2:安全设备设施  3:重点监管装置/设备
            // infoTpe: 0, ////具体类型(页面左侧的导航栏使用) 0:仪器仪表信息 1:生产设备设施 2:安全设备设施  3:重点监管装置/设备
        typeId:''
         },
      });
      // 重置
@@ -217,7 +223,7 @@
      };
      const handleNodeClick = (data: Tree) => {
      console.log(data)
         ruleForm.searchParams.qName = data.typeName;
         ruleForm.searchParams.typeId = data.id;
         listApi();
      };