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: '编辑', label: '编辑',
name: 'groupEdit', name: 'groupEdit',
type: 'primary', type: 'primary',
dynamicDisabled: () => !defaultParams.value?.id,
handle: (a, b) => { handle: (a, b) => {
el.value.toggle(); el.value.toggle();
}, },

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

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

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

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

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

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

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

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

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

@ -5,10 +5,6 @@
<editGroup ref="editGroupRef" :params="defaultParams" @sure="handleOk" /> <editGroup ref="editGroupRef" :params="defaultParams" @sure="handleOk" />
<editFormula ref="editFormulaRef" :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" /> <NsModalFrom ref="modalFormRef" v-bind="nsModalFormConfig" />
<div class="groupContainer"> <div class="groupContainer">
<div class="tree"> <div class="tree">

Loading…
Cancel
Save