| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-position="left"> |
| | | <el-row :gutter="20"> |
| | | |
| | | <el-col :span="6"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="业务类型" style="width: 100%;"> |
| | | <el-select v-model="queryParams.bizType" placeholder="请选择"> |
| | | <el-option |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | | <el-col :span="6"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="请求时间" style="width: 100%;"> |
| | | <el-date-picker |
| | | v-model="createTimes" |
| | |
| | | </el-form-item> |
| | | </el-col>--> |
| | | |
| | | <el-col :span="6"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="请求结果" prop="result"> |
| | | <el-input |
| | | v-model="queryParams.result" |
| | |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="响应数据" prop="requestData"> |
| | | <el-input |
| | | v-model="queryParams.responseData" |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col |
| | | :span="24" |
| | | :span="16" |
| | | style="text-align: right;"> |
| | | <el-form-item> |
| | | <el-form-item class="column-with-margin"> |
| | | <el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button> |
| | | <el-button icon="Refresh" @click="resetQuery">重置</el-button> |
| | | </el-form-item> |
| | |
| | | |
| | | <HxlhTable |
| | | style="width: 100%" |
| | | :virtualYConfig="virtualYConfig" |
| | | :columns="columns" |
| | | :data="LogList" |
| | | :loading="loading" |
| | |
| | | </template> |
| | | |
| | | <script setup name="ApsWorkOrderJobLog"> |
| | | import { list, get, sync } from "@/api/mainPlan/workOrderJobLog"; |
| | | import { list, get, syncWorkOrder,syncProcess } from "@/api/mainPlan/workOrderJobLog"; |
| | | import {ref} from "vue"; |
| | | import HxlhTable from "@/components/HxlhTable/index.vue"; |
| | | |
| | | const { proxy } = getCurrentInstance(); |
| | | const height = ref(document.documentElement.clientHeight - 270 + "px;") |
| | | |
| | | const virtualYConfig = { |
| | | enabled: true, |
| | | gt: 0 |
| | | }; |
| | | const LogList = ref([]); |
| | | const open = ref(false); |
| | | const loading = ref(true); |
| | |
| | | if (form.value.id != null) { |
| | | debugger; |
| | | if(form.value.bizType==="work_order"){ |
| | | sync(form.value).then(response => { |
| | | syncWorkOrder(form.value).then(response => { |
| | | proxy.$modal.msgSuccess("同步成功"); |
| | | open.value = false; |
| | | getList(); |
| | | }); |
| | | }else { |
| | | }else if(form.value.bizType==="work_order_process") { |
| | | syncProcess(form.value).then(response => { |
| | | proxy.$modal.msgSuccess("同步成功"); |
| | | open.value = false; |
| | | getList(); |
| | | }); |
| | | |
| | | }else{ |
| | | proxy.$modal.msgSuccess("暂未实现"); |
| | | } |
| | | } |
| | |
| | | |
| | | getList(); |
| | | </script> |
| | | <style scoped> |
| | | .column-with-margin { |
| | | margin-right: 0px; |
| | | } |
| | | </style> |