|  |  | 
 |  |  |           link | 
 |  |  |           @click="handleCheckView(row)" | 
 |  |  |           v-hasPermi="['aps:calendar:update']" | 
 |  |  |           >查看</el-button | 
 |  |  |           >{{ $t("common.common.view") }}</el-button | 
 |  |  |         > | 
 |  |  |       </template> | 
 |  |  |     </HxlhTable> | 
 |  |  |     <el-dialog :title="title" v-model="openDialog" width="900px" append-to-body> | 
 |  |  |     <el-dialog | 
 |  |  |       :title="$t('common.common.viewDetails')" | 
 |  |  |       v-model="openDialog" | 
 |  |  |       width="900px" | 
 |  |  |       append-to-body | 
 |  |  |     > | 
 |  |  |       <HxlhTable | 
 |  |  |         style="width: 100%" | 
 |  |  |         :columns="subGridOptions" | 
 |  |  |         :data="subList" | 
 |  |  |         :loading="loading" | 
 |  |  |         :height="heightSub" | 
 |  |  |         @on-checkbox="handleCheckboxChange" | 
 |  |  |         :page="page" | 
 |  |  |         @changePageNo="changePageNo" | 
 |  |  |         @changePageSize="changePageSize" | 
 |  |  |       > | 
 |  |  |       </HxlhTable> | 
 |  |  |       <template #footer> | 
 |  |  |         <span class="dialog-footer"> | 
 |  |  |           <el-button @click="openDialog = false">{{ | 
 |  |  |             $t("common.common.cancel") | 
 |  |  |           }}</el-button> | 
 |  |  |         </span> | 
 |  |  |       </template> | 
 |  |  |     </el-dialog> | 
 |  |  |   </div> | 
 |  |  | </template> | 
 |  |  | 
 |  |  | import HxlhTable from "@/components/HxlhTable/index.vue"; | 
 |  |  | import { ref } from "vue"; | 
 |  |  | import { getToken } from "@/utils/auth.js"; | 
 |  |  | import { ElMessage } from "element-plus"; | 
 |  |  | // import { ElMessage } from "element-plus"; | 
 |  |  | import { useI18n } from "vue-i18n"; //要在js中使用国际化 | 
 |  |  | const { t, locale } = useI18n(); | 
 |  |  | const { proxy } = getCurrentInstance(); | 
 |  |  | 
 |  |  | const single = ref(true); | 
 |  |  | const total = ref(0); | 
 |  |  |  | 
 |  |  | const height = ref(document.documentElement.clientHeight - 270 + "px;"); | 
 |  |  | const height = ref(document.documentElement.clientHeight - 210 + "px;"); | 
 |  |  | const heightSub = ref(document.documentElement.clientHeight - 320 + "px;"); | 
 |  |  | // 表格配置 | 
 |  |  | const columns = ref([]); | 
 |  |  | 
 |  |  |     itemCode: null, | 
 |  |  |   }, | 
 |  |  |   rules: { | 
 |  |  |     itemCode: [ | 
 |  |  |       { | 
 |  |  |         required: true, | 
 |  |  |         message: `${t("common.common.placeholder")}${t( | 
 |  |  |           "plan.query.itemNumber" | 
 |  |  |         )}`, | 
 |  |  |         trigger: "blur", | 
 |  |  |       }, | 
 |  |  |     ], | 
 |  |  |     itemCode: [], | 
 |  |  |   }, | 
 |  |  | }); | 
 |  |  |  | 
 |  |  | 
 |  |  | watch( | 
 |  |  |   locale, | 
 |  |  |   (newLocale) => { | 
 |  |  |     rules.value = { | 
 |  |  |       itemCode: [ | 
 |  |  |         { | 
 |  |  |           required: true, | 
 |  |  |           message: `${t("common.common.placeholder")}${t( | 
 |  |  |             "plan.query.itemNumber" | 
 |  |  |           )}`, | 
 |  |  |           trigger: "blur", | 
 |  |  |         }, | 
 |  |  |       ], | 
 |  |  |     }; | 
 |  |  |     columns.value = [ | 
 |  |  |       // { | 
 |  |  |       //   field: "expand", | 
 |  |  | 
 |  |  | function getList() { | 
 |  |  |   loading.value = true; | 
 |  |  |   queryParams.value.params = {}; | 
 |  |  |   apsStandardProcessRouteHeaderList(queryParams.value).then((response) => { | 
 |  |  |     processRouteList.value = response.rows; | 
 |  |  |     loading.value = false; | 
 |  |  |   }).catch(()=>{ | 
 |  |  |     loading.value = false; | 
 |  |  |   }); | 
 |  |  |   apsStandardProcessRouteHeaderList(queryParams.value) | 
 |  |  |     .then((response) => { | 
 |  |  |       processRouteList.value = response.rows; | 
 |  |  |       loading.value = false; | 
 |  |  |     }) | 
 |  |  |     .catch(() => { | 
 |  |  |       loading.value = false; | 
 |  |  |     }); | 
 |  |  | } | 
 |  |  |  | 
 |  |  | /** 搜索按钮操作 */ |