Browse Source

fix: 补充相关限制

deploy-dev
xuziqiang 4 months ago
parent
commit
0b619fe937
  1. 1
      hx-ai-intelligent/src/view/equipmentManage/group/config.ts
  2. 5
      hx-ai-intelligent/src/view/equipmentManage/group/edit.vue
  3. 5
      hx-ai-intelligent/src/view/equipmentManage/group/editCal.vue
  4. 6
      hx-ai-intelligent/src/view/equipmentManage/group/editFormula.vue
  5. 4
      hx-ai-intelligent/src/view/equipmentManage/group/editGroup.vue
  6. 4
      hx-ai-intelligent/src/view/equipmentManage/group/index.vue

1
hx-ai-intelligent/src/view/equipmentManage/group/config.ts

@ -227,6 +227,7 @@ export const tableConfig = (el, elGroup, elFormula, defaultParams) => {
label: '编辑',
name: 'groupEdit',
type: 'primary',
dynamicDisabled: () => !defaultParams.value?.id,
handle: (a, b) => {
el.value.toggle();
},

5
hx-ai-intelligent/src/view/equipmentManage/group/edit.vue

@ -59,7 +59,10 @@
const btnClick = () => {
// visible.value = false;
if (!currentId.value) {
NsMessage.warn('请先选择公司');
return;
}
http
.post(group.saveGroupList, {
...props.params,

5
hx-ai-intelligent/src/view/equipmentManage/group/editCal.vue

@ -60,7 +60,10 @@
};
const btnClick = () => {
// visible.value = false;
if (!currentId.value) {
NsMessage.warn('请先选择公司');
return;
}
http
.post(group.saveComputeList, {

6
hx-ai-intelligent/src/view/equipmentManage/group/editFormula.vue

@ -2,7 +2,7 @@
<ns-drawer
v-model:visible="visible"
width="520"
title="公式编辑"
title=" "
:ok="btnClick"
:cancel="() => (visible = false)"
placement="right">
@ -140,6 +140,10 @@
];
const btnClick = () => {
if (!model.value?.formula) {
NsMessage.warn('请填写公式');
return;
}
http
.post(group.formula, {
...props.params,

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

@ -267,6 +267,10 @@
};
const btnClick = () => {
if (!selectedRowKeys.value[0]) {
NsMessage.warn('请选择分组');
return;
}
http
.post(group.saveComputeGroupInfo, {
...props.params,

4
hx-ai-intelligent/src/view/equipmentManage/group/index.vue

@ -5,10 +5,6 @@
<editGroup ref="editGroupRef" :params="defaultParams" @sure="handleOk" />
<editFormula ref="editFormulaRef" :params="defaultParams" @sure="handleOk" />
<!-- <ns-modal ref="modalRef" title="新增" v-model:visible="visible">
<ns-form ref="formRef" :schemas="formSchema" :model="formData" formLayout="formVertical" />
</ns-modal> -->
<NsModalFrom ref="modalFormRef" v-bind="nsModalFormConfig" />
<div class="groupContainer">
<div class="tree">

Loading…
Cancel
Save