Browse Source

优化基质列表

master
LiLongLong 5 months ago
parent
commit
168a54e152
  1. 5
      src/views/History.vue
  2. 3
      src/views/matrixCraft/index.vue

5
src/views/History.vue

@ -10,7 +10,8 @@
<el-table-column prop="name" label="工艺名称"/> <el-table-column prop="name" label="工艺名称"/>
<el-table-column prop="routeType" label="喷涂路线" width="100"> <el-table-column prop="routeType" label="喷涂路线" width="100">
<template v-slot="scope"> <template v-slot="scope">
{{scope.row.routeType == 1 ? '横向' : '竖向'}}
<img v-if="scope.row.routeType === 1" :src="route_h" width="20px" height="20px" alt="icon"/>
<img v-else :src="route_v" width="20px" height="20px" alt="icon"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="height" label="喷涂高度" width="100" /> <el-table-column prop="height" label="喷涂高度" width="100" />
@ -34,6 +35,8 @@
import { useSettingStore } from '@/stores/setting' import { useSettingStore } from '@/stores/setting'
import type { CraftItem } from "@/services/matrix/type"; import type { CraftItem } from "@/services/matrix/type";
import { ElMessage, ElMessageBox } from "element-plus"; import { ElMessage, ElMessageBox } from "element-plus";
import route_v from "@/assets/route_vertical.png";
import route_h from "@/assets/route_horizontal.png";
let total = ref() let total = ref()
const loading = ref(false) const loading = ref(false)
const settingStore = useSettingStore() const settingStore = useSettingStore()

3
src/views/matrixCraft/index.vue

@ -35,7 +35,7 @@
<el-table-column prop="routeType" label="喷涂路线" width="100"> <el-table-column prop="routeType" label="喷涂路线" width="100">
<template v-slot="scope"> <template v-slot="scope">
<img v-if="scope.row.routeType === 1" :src="route_h" width="20px" height="20px" alt="icon"/> <img v-if="scope.row.routeType === 1" :src="route_h" width="20px" height="20px" alt="icon"/>
<img v-else :src="route_h" width="20px" height="20px" alt="icon"/>
<img v-else :src="route_v" width="20px" height="20px" alt="icon"/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="height" label="喷涂高度" width="100" /> <el-table-column prop="height" label="喷涂高度" width="100" />
@ -91,6 +91,7 @@
import type { WorkType } from "@/services/globalCmd/cmdTypes"; import type { WorkType } from "@/services/globalCmd/cmdTypes";
import { ElMessage, ElMessageBox } from "element-plus"; import { ElMessage, ElMessageBox } from "element-plus";
import route_h from "@/assets/route_horizontal.png"; import route_h from "@/assets/route_horizontal.png";
import route_v from "@/assets/route_vertical.png";
let total = ref() let total = ref()
const settingStore = useSettingStore() const settingStore = useSettingStore()
let sprayVisible = ref(false) let sprayVisible = ref(false)

Loading…
Cancel
Save