|
@ -1,9 +1,10 @@ |
|
|
<script lang="ts" setup> |
|
|
<script lang="ts" setup> |
|
|
import type { AddCraftType, Craft } from './craftType' |
|
|
|
|
|
|
|
|
import type { AddCraftType, Craft, craftStatus } from './craftType' |
|
|
import { createCraft, delCraft, getCraftList, setCraft, startCraft, updateCraft } from '@/apis/crafts' |
|
|
import { createCraft, delCraft, getCraftList, setCraft, startCraft, updateCraft } from '@/apis/crafts' |
|
|
import { ElMessage, ElMessageBox } from 'element-plus' |
|
|
import { ElMessage, ElMessageBox } from 'element-plus' |
|
|
import { onMounted, ref } from 'vue' |
|
|
import { onMounted, ref } from 'vue' |
|
|
import AddCraftDialog from './AddCraftDialog.vue' |
|
|
import AddCraftDialog from './AddCraftDialog.vue' |
|
|
|
|
|
import CraftStatus from './CraftStatus.vue' |
|
|
|
|
|
|
|
|
const tableData = ref([]) |
|
|
const tableData = ref([]) |
|
|
const addCraftRef = ref<AddCraftType | null>(null) |
|
|
const addCraftRef = ref<AddCraftType | null>(null) |
|
@ -11,6 +12,7 @@ const selectable = ref() |
|
|
const multipleSelection = ref<Craft[]>() |
|
|
const multipleSelection = ref<Craft[]>() |
|
|
const heatVisible = ref(false) |
|
|
const heatVisible = ref(false) |
|
|
const heatId = ref() |
|
|
const heatId = ref() |
|
|
|
|
|
const craftStatusRef = ref<craftStatus | null>(null) |
|
|
const oresId = 1 |
|
|
const oresId = 1 |
|
|
onMounted(() => { |
|
|
onMounted(() => { |
|
|
queryCrafList() |
|
|
queryCrafList() |
|
@ -116,6 +118,8 @@ const onStart = () => { |
|
|
console.log('开始执行') |
|
|
console.log('开始执行') |
|
|
ElMessage.success('工艺已开始执行') |
|
|
ElMessage.success('工艺已开始执行') |
|
|
heatVisible.value = false |
|
|
heatVisible.value = false |
|
|
|
|
|
// 看执行状态 |
|
|
|
|
|
craftStatusRef.value?.showDialog() |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
@ -168,5 +172,6 @@ const onStart = () => { |
|
|
</el-button> |
|
|
</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
<CraftStatus ref="craftStatusRef" /> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |