zhaohy 4 months ago
parent
commit
3bf19ba70d
  1. 10
      hx-ai-intelligent/src/view/equipmentManage/group/editGroup.vue

10
hx-ai-intelligent/src/view/equipmentManage/group/editGroup.vue

@ -17,7 +17,7 @@
<template v-if="data.field === 'groupName'">
<div class="iconOP">
<EditOutlined v-if="inputDisabled" @click="editGroup" />
<CheckOutlined v-else @click="op" />
<CheckOutlined v-else @click="add" />
</div>
</template>
</template>
@ -77,7 +77,11 @@
const op = () => {
inputDisabled.value = !inputDisabled.value;
add();
};
const clearData = () => {
model.value = {};
selectedRowKeys.value = [];
};
const editGroup = () => {
@ -97,6 +101,7 @@
http.post(group.saveComputeGroup, finalParams).then(() => {
getTableData();
NsMessage.success('操作成功');
op();
});
});
};
@ -105,6 +110,7 @@
http.post(group.delComputeGroup, { id }).then(() => {
getTableData();
NsMessage.success('操作成功');
clearData();
});
};
const rowSelectChange = (selected, selectedRows) => {

Loading…
Cancel
Save