瀏覽代碼

MES组任务动作管理

wuhb 10 月之前
父節點
當前提交
0860aa4404

+ 2 - 0
admin/src/main/java/com/dcs/hnyz/domain/ActionConfig.java

@@ -90,5 +90,7 @@ public class ActionConfig extends BaseEntity {
     @Excel(name = "启用状态", readConverterExp = "0=启用,1=禁用")
     private String status;
 
+    @TableField(exist = false)
+    private String equipmentName;
 
 }

+ 4 - 0
admin/src/main/java/com/dcs/hnyz/domain/DcsGroupTask.java

@@ -15,6 +15,8 @@ import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.annotation.IdType;
 
+import java.util.List;
+
 /**
  * 任务动作组对象 dcs_group_task
  *
@@ -49,4 +51,6 @@ public class DcsGroupTask extends BaseEntity {
     @TableField(value = "del_flag")
     private String delFlag;
 
+    @TableField(exist = false)
+    private List<DcsGroupTaskLine> groupTaskLineList;
 }

+ 1 - 1
admin/src/main/java/com/dcs/hnyz/domain/DcsGroupTaskLine.java

@@ -65,5 +65,5 @@ public class DcsGroupTaskLine extends BaseEntity {
     @TableField(value = "del_flag")
     private String delFlag;
 
-    private List<ActionConfig> actionConfigList;
+    private ActionConfig actionConfig;
 }

+ 19 - 12
admin/src/main/java/com/dcs/hnyz/task/RequestGroupTask.java

@@ -8,7 +8,6 @@ import com.dcs.hnyz.service.IDcsGroupTaskLineService;
 import com.dcs.hnyz.service.IDcsGroupTaskService;
 import com.dcs.hnyz.service.IDcsRequestTaskService;
 import com.dcs.hnyz.service.impl.ActionConfigServiceImpl;
-import org.apache.poi.ss.formula.functions.T;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -19,9 +18,6 @@ import org.springframework.stereotype.Component;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
-import java.util.concurrent.Executors;
-import java.util.concurrent.ScheduledExecutorService;
-import java.util.concurrent.TimeUnit;
 
 @EnableScheduling
 @Component("RequestGroupTask")
@@ -39,7 +35,7 @@ public class RequestGroupTask {
     public static Map<String, Thread> groupTaskThreadMap = new HashMap<>();
 
 
-    @Scheduled(fixedDelay=5000)
+//    @Scheduled(fixedDelay=5000)
     public void run(){
         DcsRequestTask requestTask = new DcsRequestTask();
         requestTask.setStatus(0);
@@ -85,20 +81,31 @@ public class RequestGroupTask {
     }
 
     private void runGroupAction(DcsGroupTask groupTask) throws Exception {
-        DcsGroupTaskLine groupTaskLine = new DcsGroupTaskLine();
-        groupTaskLine.setGroupId(groupTask.getGroupId());
-        List<DcsGroupTaskLine> groupTaskLineList = groupTaskLineService.selectDcsGroupTaskLineList(groupTaskLine);
+        List<DcsGroupTaskLine> groupTaskLineList = getDcsGroupTaskLine(groupTask.getGroupId(), 0L);
+        runGroupTaskLine(groupTaskLineList);
+    }
+
+    private void runGroupTaskLine(List<DcsGroupTaskLine> groupTaskLineList) throws Exception {
         for(DcsGroupTaskLine line:groupTaskLineList){
-            List<ActionConfig> actionConfigList = line.getActionConfigList();
-            if(actionConfigList == null){
+            ActionConfig actionConfig = line.getActionConfig();
+            if(actionConfig == null){
                 throw new Exception(line.getActionName() + "不存在");
             }
-            for (ActionConfig actionConfig:actionConfigList) {
-                actionConfigService.triggerAction(actionConfig);
+            actionConfigService.triggerAction(actionConfig);
+            List<DcsGroupTaskLine> groupTaskLineSubList = getDcsGroupTaskLine(line.getGroupId(), line.getLineId());
+            if(!groupTaskLineSubList.isEmpty()){
+                runGroupTaskLine(groupTaskLineSubList);
             }
         }
     }
 
+    private List<DcsGroupTaskLine> getDcsGroupTaskLine(Long groupId,Long parentId){
+        DcsGroupTaskLine groupTaskLine = new DcsGroupTaskLine();
+        groupTaskLine.setGroupId(groupId);
+        groupTaskLine.setParentId(parentId);
+        return groupTaskLineService.selectDcsGroupTaskLineList(groupTaskLine);
+    }
+
     private void updateTask(long id, String rs, int status){
         DcsRequestTask requestTask = new DcsRequestTask();
         requestTask.setRequestId(id);

+ 4 - 2
admin/src/main/resources/mapper/hnyz/DcsGroupTaskLineMapper.xml

@@ -21,12 +21,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <resultMap id="GroupTaskLineActionConfigResult" type="DcsGroupTaskLine" extends="DcsGroupTaskLineResult">
-        <collection property="actionConfigList" notNullColumn="action_id" javaType="java.util.List" resultMap="ActionConfigResult" />
+<!--        <collection property="actionConfigList" notNullColumn="action_id" javaType="java.util.List" resultMap="ActionConfigResult" />-->
+        <association property="actionConfig" notNullColumn="action_id" resultMap="ActionConfigResult"/>
     </resultMap>
 
     <resultMap type="ActionConfig" id="ActionConfigResult">
         <result property="actionId"    column="sub_action_id"    />
         <result property="equipmentId"    column="sub_equipment_id"    />
+        <result property="equipmentName"    column="sub_equipment_name"    />
         <result property="actionType"    column="sub_action_type"    />
         <result property="value"    column="sub_value"    />
         <result property="unit"    column="sub_unit"    />
@@ -43,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
     <sql id="selectDcsGroupTaskLineVo">
         select gl.line_id, gl.group_id, gl.action_id, gl.action_name, gl.parent_id, gl.action_num, gl.status, gl.del_flag, gl.create_by, gl.update_by, gl.create_time, gl.update_time, gl.remark
-        ,ac.equipment_id as sub_equipment_id,ac.action_type as sub_action_type,ac.value as sub_value,ac.unit as sub_unit,ac.trigger_type as sub_trigger_type
+        ,ac.equipment_id as sub_equipment_id,(select equipment_name from equipment where equipment_id = ac.equipment_id ) sub_equipment_name,ac.action_type as sub_action_type,ac.value as sub_value,ac.unit as sub_unit,ac.trigger_type as sub_trigger_type
         ,ac.trigger_condition as sub_trigger_condition,ac.trigger_delay as sub_trigger_delay,ac.status as sub_status,ac.create_by as sub_create_by,ac.create_time as sub_create_time
         ,ac.update_by as sub_update_by,ac.update_time as sub_update_time,ac.remark as sub_remark
         from dcs_group_task_line gl

+ 6 - 6
admin/src/main/resources/mapper/hnyzdcs/ActionConfigMapper.xml

@@ -3,7 +3,7 @@
 PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.dcs.hnyz.mapper.ActionConfigMapper">
-    
+
     <resultMap type="ActionConfig" id="ActionConfigResult">
         <result property="actionId"    column="action_id"    />
         <result property="equipmentId"    column="equipment_id"    />
@@ -22,12 +22,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <sql id="selectActionConfigVo">
-        select action_id, equipment_id, action_type, value, unit, trigger_type, trigger_condition, trigger_delay, status, create_by, create_time, update_by, update_time, remark from action_config
+        select action_id, equipment_id,(select equipment_name from equipment where equipment_id = action_config.equipment_id ) equipmentName, action_type, value, unit, trigger_type, trigger_condition, trigger_delay, status, create_by, create_time, update_by, update_time, remark from action_config
     </sql>
 
     <select id="selectActionConfigList" parameterType="ActionConfig" resultMap="ActionConfigResult">
         <include refid="selectActionConfigVo"/>
-        <where>  
+        <where>
             <if test="equipmentId != null "> and equipment_id = #{equipmentId}</if>
             <if test="actionType != null  and actionType != ''"> and action_type = #{actionType}</if>
             <if test="unit != null  and unit != ''"> and unit = #{unit}</if>
@@ -35,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="status != null  and status != ''"> and status = #{status}</if>
         </where>
     </select>
-    
+
     <select id="selectActionConfigByActionId" parameterType="Long" resultMap="ActionConfigResult">
         <include refid="selectActionConfigVo"/>
         where action_id = #{actionId}
@@ -100,9 +100,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </delete>
 
     <delete id="deleteActionConfigByActionIds" parameterType="String">
-        delete from action_config where action_id in 
+        delete from action_config where action_id in
         <foreach item="actionId" collection="array" open="(" separator="," close=")">
             #{actionId}
         </foreach>
     </delete>
-</mapper>
+</mapper>

+ 260 - 0
ui/src/views/hnyz/groupTask/actionConfigList.vue

@@ -0,0 +1,260 @@
+<template>
+    <el-dialog title="设备动作选择" v-model="open" :modal= false width="80%" center :style="{ 'z-index': '3000' }">
+        <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
+        <el-form-item label="动作类型" prop="actionType">
+            <el-select v-model="queryParams.actionType" placeholder="请选择动作类型" clearable style="width: 200px;">
+            <el-option v-for="dict in action_type" :key="dict.value" :label="dict.label" :value="dict.value" />
+            </el-select>
+        </el-form-item>
+        <el-form-item label="触发类型" prop="triggerType">
+            <el-select v-model="queryParams.triggerType" placeholder="请选择触发类型" clearable style="width: 200px;">
+            <el-option v-for="dict in trigger_type" :key="dict.value" :label="dict.label" :value="dict.value" />
+            </el-select>
+        </el-form-item>
+        <el-form-item label="状态" prop="status">
+            <el-select v-model="queryParams.status" placeholder="状态" clearable style="width: 240px">
+            <el-option v-for="dict in sys_normal_disable" :key="dict.value" :label="dict.label" :value="dict.value" />
+            </el-select>
+        </el-form-item>
+        <el-form-item>
+            <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
+            <el-button icon="Refresh" @click="resetQuery">重置</el-button>
+        </el-form-item>
+        </el-form>
+
+        <el-table v-loading="loading" :data="actionConfigList" @current-change="handleSelectionChange" @row-dblclick="handleRowDbClick">
+            <el-table-column width="50" align="center" >
+              <template v-slot="scope">
+                  <el-radio v-model="selectedItemId" :label="scope.row.actionId" @change="handleRowChange(scope.row)">{{""}}</el-radio>
+              </template>
+          </el-table-column>
+            <el-table-column label="设备" align="center" prop="equipmentName" />
+            <el-table-column label="动作类型" align="center" prop="actionType">
+                <template #default="scope">
+                <dict-tag :options="action_type" :value="scope.row.actionType" />
+                </template>
+            </el-table-column>
+            <el-table-column label="动作值" align="center" prop="value" />
+            <el-table-column label="单位" align="center" prop="unit">
+                <template #default="scope">
+                <dict-tag :options="unit_type" :value="scope.row.unit" />
+                </template>
+            </el-table-column>
+            <el-table-column label="触发类型" align="center" prop="triggerType">
+                <template #default="scope">
+                <dict-tag :options="trigger_type" :value="scope.row.triggerType" />
+                </template>
+            </el-table-column>
+            <el-table-column label="触发条件" align="center" prop="triggerCondition" :show-overflow-tooltip="false">
+                <template #default="scope">
+                <el-tooltip class="item" effect="dark" :content="scope.row.triggerCondition" placement="top">
+                    <span class="ellipsis">{{ formatCondition(scope.row.triggerCondition) }}</span>
+                </el-tooltip>
+                </template>
+            </el-table-column>
+            <el-table-column label="触发延迟(s)" align="center" prop="triggerDelay" />
+            <el-table-column label="启用状态" align="center" width="100">
+                <template #default="scope">
+                <el-switch v-model="scope.row.status" active-value="0" inactive-value="1"
+                    @change="handleStatusChange(scope.row)" disabled></el-switch>
+                </template>
+            </el-table-column>
+            <el-table-column label="备注" align="center" prop="remark" />
+        </el-table>
+
+        <pagination v-show="total > 0" :total="total" v-model:page="queryParams.pageNum"
+        v-model:limit="queryParams.pageSize" @pagination="getList" />
+
+        <template #footer>
+            <div class="dialog-footer">
+            <el-button type="primary" @click="confirmSelect">确 定</el-button>
+            <el-button @click="cancel">取 消</el-button>
+            </div>
+        </template>
+    </el-dialog>
+</template>
+
+<script setup name="ActionConfig">
+import { changeStatus, listActionConfig, getActionConfig, delActionConfig, addActionConfig, updateActionConfig } from "@/api/hnyz/actionConfig";
+import { getEquipmentList } from "@/api/hnyz/equipment";
+import { ElMessageBox } from "element-plus";
+import { onMounted, watch } from "vue";
+import ConditionGroup from "@/components/DCS/ConditionGroup.vue";
+onMounted(() => {
+  getEquipmentOptions();
+});
+
+const emit = defineEmits(["onSelected"])
+
+// 初始化触发条件 JSON 数据
+const triggerConditionJson = reactive({
+  operator: 'AND',
+  conditions: []
+})
+
+//获取设备列表,用于select框
+const equipmentOptions = ref([]);
+function getEquipmentOptions() {
+  getEquipmentList().then(response => {
+    equipmentOptions.value = response.data
+  })
+}
+const { proxy } = getCurrentInstance();
+const { trigger_type, action_type, unit_type, sys_normal_disable } = proxy.useDict('trigger_type', 'action_type', 'unit_type', 'sys_normal_disable');
+
+const actionConfigList = ref([]);
+const open = ref(false);
+const loading = ref(true);
+const showSearch = ref(true);
+const ids = ref([]);
+const single = ref(true);
+const multiple = ref(true);
+const total = ref(0);
+const title = ref("");
+const selectedRows = ref([]);
+const selectedItemId = ref(null);
+
+const data = reactive({
+  form: {},
+  queryParams: {
+    pageNum: 1,
+    pageSize: 10,
+    equipmentId: null,
+    actionType: null,
+    unit: null,
+    triggerType: null,
+    status: null,
+  },
+  rules: {
+  }
+});
+
+const { queryParams, form, rules } = toRefs(data);
+// 解析已有 JSON 数据(编辑时)
+watch(
+  () => form.value.triggerCondition,
+  (val) => {
+    try {
+      const parsed = JSON.parse(val)
+      Object.assign(triggerConditionJson, parsed)
+    } catch {
+      Object.assign(triggerConditionJson, { operator: 'AND', conditions: [] })
+    }
+  },
+  { immediate: true }
+)
+
+// 实时更新 JSON 字符串到 form
+watch(
+  () => triggerConditionJson,
+  (val) => {
+    form.value.triggerCondition = JSON.stringify(val)
+  },
+  { deep: true }
+)
+
+// 格式化触发条件(表单不完全显示)
+function formatCondition(val) {
+  if (!val) return ''
+  try {
+    const obj = JSON.parse(val)
+    return JSON.stringify(obj).slice(0, 30) + '...'
+  } catch {
+    return val.length > 30 ? val.slice(0, 30) + '...' : val
+  }
+}
+
+
+/** 查询动作配置管理列表 */
+function getList() {
+  loading.value = true;
+  listActionConfig(queryParams.value).then(response => {
+    actionConfigList.value = response.rows;
+    total.value = response.total;
+    loading.value = false;
+  });
+}
+
+// 取消按钮
+function cancel() {
+  open.value = false;
+  reset();
+}
+const show = () => {
+  open.value = true
+}
+defineExpose({
+  show
+})
+
+// 表单重置
+function reset() {
+  form.value = {
+    actionId: null,
+    equipmentId: null,
+    actionType: null,
+    value: null,
+    unit: null,
+    triggerType: null,
+    triggerCondition: null,
+    triggerDelay: null,
+    status: "0",
+    createBy: null,
+    createTime: null,
+    updateBy: null,
+    updateTime: null,
+    remark: null
+  };
+  // 重置触发条件 JSON 数据
+  Object.assign(triggerConditionJson, {
+    type: 'group',
+    operator: 'AND',
+    conditions: []
+  })
+
+  proxy.resetForm("actionConfigRef");
+}
+
+/** 搜索按钮操作 */
+function handleQuery() {
+  queryParams.value.pageNum = 1;
+  getList();
+}
+
+/** 重置按钮操作 */
+function resetQuery() {
+  proxy.resetForm("queryRef");
+  handleQuery();
+}
+
+function confirmSelect() {
+  open.value = false;
+  if(selectedItemId ==null || selectedItemId==0){
+    ElMessageBox.alert("请至少选择一条数据!", "提示", {
+      type: "warning",
+    });
+    return;
+  }
+  emit('onSelected', selectedRows);
+}
+
+function handleRowChange(row) {
+  if(row){
+    selectedRows.value = row;
+  }
+}
+function handleSelectionChange(row) {
+    if (row) {
+       selectedRows.value = row;
+    }
+}
+function handleRowDbClick(row) {
+    if (row) {
+        selectedRows.value = row;
+        emit('onSelected', selectedRows);
+        open.value = false;
+    }
+}
+
+getList();
+</script>

+ 6 - 1
ui/src/views/hnyz/groupTask/index.vue

@@ -121,6 +121,7 @@ import RroupTaskLine from "./line.vue";
 const { proxy } = getCurrentInstance();
 
 const groupTaskList = ref([]);
+const groupTaskLine = ref(null);
 const open = ref(false);
 const loading = ref(true);
 const showSearch = ref(true);
@@ -141,6 +142,8 @@ const data = reactive({
     status: null,
   },
   rules: {
+    groupName: [{ required: true, message: "组名不能为空", trigger: "blur" }],
+    groupCode: [{ required: true, message: "组号不能为空", trigger: "blur" }],
   }
 });
 
@@ -223,7 +226,9 @@ function handleUpdate(row) {
 function submitForm() {
   proxy.$refs["groupTaskRef"].validate(valid => {
     if (valid) {
-      if (form.value.groupId != null) {
+      const groupTaskLineList = groupTaskLine.value?.getGroupTaskLineList();
+      form.value.groupTaskLineList = groupTaskLineList || [];
+      if (form.value.groupId != null && form.value.groupId > 0) {
         updateGroupTask(form.value).then(response => {
           proxy.$modal.msgSuccess("修改成功");
           open.value = false;

+ 103 - 12
ui/src/views/hnyz/groupTask/line.vue

@@ -24,11 +24,41 @@
 
     <el-table v-loading="loading" :data="groupTaskLineList" @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="动作名称" align="center" prop="actionName" />
-      <el-table-column label="上级动作" align="center" prop="parentId" />
-      <el-table-column label="设备名称" align="center" prop="equipment" />
-      <el-table-column label="序号" align="center" prop="actionNum" />
-      <el-table-column label="备注" align="center" prop="remark" />
+      <el-table-column label="设备名称" align="center" prop="equipment" width="200">
+        <template  #default="scope">
+          <el-input v-model="scope.row.actionConfig.equipmentName" placeholder="请选择设备动作" readonly>
+            <template #append>
+                <el-button type="primary" :icon="Search" @click="handleItemSelect(scope.$index)"></el-button>
+            </template>
+          </el-input>
+          <ActionConfigList ref="itemSelect" @onSelected="onItemAdd"></ActionConfigList>
+        </template>
+      </el-table-column>
+      <el-table-column label="动作ID" align="center" prop="actionId" width="70"/>
+      <el-table-column label="动作名称" align="center" prop="actionName">
+        <template #default="scope">
+          <el-input v-model="scope.row.actionName"/>
+        </template>
+      </el-table-column>
+      <el-table-column label="上级动作" align="center" prop="parentId">
+        <template #default="scope">
+          <el-select v-model="scope.row.parentId" placeholder="请选择上级动作">
+            <template v-for="item in groupTaskLineList" :key="item.lineId" >
+                <el-option v-if="item.lineId>0" :label="item.actionId" :value="item.lineId"/>
+            </template>
+          </el-select>
+        </template>
+      </el-table-column>
+      <el-table-column label="序号" align="center" prop="actionNum"  width="100">
+        <template #default="scope">
+          <el-input v-model="scope.row.actionNum" type="number" placeholder="请输入序号"/>
+        </template>
+      </el-table-column>
+      <!-- <el-table-column label="备注" align="center" prop="remark">
+        <template #default="scope">
+          <el-input v-model="scope.row.remark" placeholder="请输入备注"/>
+        </template>
+      </el-table-column> -->
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
         <template #default="scope">
           <el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['groupTaskLine:groupTaskLine:remove']">删除</el-button>
@@ -41,6 +71,9 @@
 <script setup name="GroupTaskLine">
 import { listGroupTaskLine, getGroupTaskLine, delGroupTaskLine, addGroupTaskLine, updateGroupTaskLine } from "@/api/hnyz/groupTaskLine";
 import { defineProps, defineEmits } from 'vue'
+import {Search} from '@element-plus/icons-vue'
+import ActionConfigList from "./actionConfigList.vue";
+// import ActionConfigList from "./test.vue";
 
 const { proxy } = getCurrentInstance();
 
@@ -53,6 +86,7 @@ const single = ref(true);
 const multiple = ref(true);
 const total = ref(0);
 const title = ref("");
+const itemSelect = ref(null)
 
 const data = reactive({
   form: {},
@@ -108,7 +142,11 @@ function reset() {
     updateBy: null,
     createTime: null,
     updateTime: null,
-    remark: null
+    remark: null,
+    actionConfig: {
+      equipmentId: null,
+      equipmentName: null
+    }
   };
   proxy.resetForm("groupTaskLineRef");
 }
@@ -137,6 +175,19 @@ function handleAdd() {
   reset();
   open.value = true;
   title.value = "添加任务动作组明细";
+  let lineId = -1*(groupTaskLineList.value.length + 1); // 确保新增时lineId为null
+  groupTaskLineList.value.push({
+    lineId: lineId, // 确保新增时lineId为null
+    groupId: props.groupTask.groupId,
+    actionName: null,
+    parentId: null,
+    actionNum: null,
+    remark: null,
+    actionConfig: {
+      equipmentId: null,
+      equipmentName: null
+    }
+  });
 }
 
 /** 修改按钮操作 */
@@ -174,12 +225,13 @@ function submitForm() {
 /** 删除按钮操作 */
 function handleDelete(row) {
   const _lineIds = row.lineId || ids.value;
-  proxy.$modal.confirm('是否确认删除任务动作组明细编号为"' + _lineIds + '"的数据项?').then(function() {
-    return delGroupTaskLine(_lineIds);
-  }).then(() => {
-    getList();
-    proxy.$modal.msgSuccess("删除成功");
-  }).catch(() => {});
+  if(_lineIds instanceof Array) {
+   for (const selId of _lineIds) {
+      groupTaskLineList.value = groupTaskLineList.value.filter(item => item.lineId !== selId);
+    }
+  }else{
+      groupTaskLineList.value = groupTaskLineList.value.filter(item => item.lineId !== _lineIds);
+  }
 }
 
 /** 导出按钮操作 */
@@ -189,5 +241,44 @@ function handleExport() {
   }, `groupTaskLine_${new Date().getTime()}.xlsx`)
 }
 
+function onItemAdd(item) {
+  const index = itemSelect.value.selectedIndex;
+  groupTaskLineList.value[index].actionId = item.value.actionId;
+  groupTaskLineList.value[index].actionName = item.value.actionName;
+  groupTaskLineList.value[index].equipmentId = item.value.equipmentId;
+  groupTaskLineList.value[index].actionConfig.equipmentName = item.value.equipmentName;
+}
+
+function handleItemSelect(index) {
+  itemSelect.value?.show()
+  itemSelect.value.selectedIndex = index;
+}
+
+function getGroupTaskLineList() {
+  return groupTaskLineList.value;
+}
+
+defineExpose({
+  getGroupTaskLineList
+});
+
 getList();
 </script>
+
+<style scoped>
+/* 对话框层级调整 */
+:deep(.el-dialog) {
+  z-index: 2001 !important;
+}
+
+/* 表格样式修复 */
+:deep(.el-table__body-wrapper) {
+  overflow: hidden;
+  z-index: auto !important;
+}
+
+:deep(.el-table__body tr:last-child td) {
+  position: static !important;
+  transform: none !important;
+}
+</style>