Browse Source

禁止删除执行的配方

master
王梦远 2 weeks ago
parent
commit
e7809f49d6
  1. 6
      src/components/formula/FormulaTable.vue

6
src/components/formula/FormulaTable.vue

@ -1,6 +1,6 @@
<script lang="ts" setup>
import { syncSendCmd } from 'apis/system'
import { ElMessageBox } from 'element-plus'
import { ElMessage, ElMessageBox } from 'element-plus'
import { onMounted, ref, watch } from 'vue'
import { FtMessage } from '@/libs/message'
@ -91,6 +91,10 @@ const deleteRecipe = (item: Formula.FormulaItem) => {
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
if (formulaStore.selectedFormulaInfo?.formula_id === item.formula_id) {
ElMessage.warning('禁止修改正在执行的配方信息!')
return
}
if (item.formula_id) {
const delParams = {
className: 'SettingMgrService',

Loading…
Cancel
Save