| | |
| | | :height="height" |
| | | :edit-config="{ trigger: 'manual', mode: 'row', showStatus: true }" |
| | | :data="routePlanList" |
| | | size="small" |
| | | @cell-click="cellClickEvent" |
| | | > |
| | | <vxe-column field="processName" title="标准工序名称" min-width="150"> |
| | |
| | | > --> |
| | | <template #default="{ row }"> |
| | | <template v-if="hasEditStatus(row)"> |
| | | <el-button @click="saveRowEvent(row)" size="small">保存</el-button> |
| | | <el-button @click="cancelRowEvent()" size="small">取消</el-button> |
| | | <el-button @click="saveRowEvent(row)">保存</el-button> |
| | | <el-button @click="cancelRowEvent()">取消</el-button> |
| | | </template> |
| | | <template v-else> |
| | | <el-button @click="editRowEvent(row)" size="small">编辑</el-button> |
| | | <el-button @click="editRowEvent(row)">编辑</el-button> |
| | | </template> |
| | | </template> |
| | | <!-- </template> --> |
| | |
| | | border |
| | | ref="tableRef1" |
| | | show-overflow |
| | | size="small" |
| | | :loading="loading2" |
| | | :height="height" |
| | | :edit-config="{ mode: 'row', trigger: 'click', showStatus: true }" |
| | |
| | | > --> |
| | | <template #default="{ row }"> |
| | | <template v-if="hasEditStatus1(row)"> |
| | | <el-button @click="saveRowEvent1(row)" size="small">保存</el-button> |
| | | <el-button @click="cancelRowEvent1()" size="small">取消</el-button> |
| | | <el-button @click="saveRowEvent1(row)">保存</el-button> |
| | | <el-button @click="cancelRowEvent1()">取消</el-button> |
| | | </template> |
| | | <template v-else> |
| | | <el-button @click="editRowEvent1(row)" size="small">编辑</el-button> |
| | | <el-button @click="editRowEvent1(row)">编辑</el-button> |
| | | </template> |
| | | </template> |
| | | <!-- </template> --> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- --> |
| | | </template> |
| | | <script setup> |
| | | import HxlhTable from "@/components/HxlhTable"; |
| | | <script setup name="gasPlanning"> |
| | | import { ElMessage } from "element-plus"; |
| | | import { listGasPlan, getGasPlanSave } from "@/api/mainPlan/gasPlanning"; |
| | | const height = ref(document.documentElement.clientHeight - 400 + "px;"); |