Ben Lin
2024-06-13 1b970c588245935181610e93e84a9a3a10d80ecd
src/views/tigerprojects/mes/eng/route/components/PropsPanel.vue
@@ -4,14 +4,14 @@
 * @version: 
 * @Date: 2024-04-28 15:15:22
 * @LastEditors: your name
 * @LastEditTime: 2024-06-12 15:44:00
 * @LastEditTime: 2024-06-13 08:50:47
-->
<!--
 * @Description: 右侧属性配置面板
-->
<template>
  <div>
    <Tabs v-model:activeKey="routeConfig.activeKey" :tabBarStyle="{ margin: 0 }">
    <Tabs v-model:activeKey="routeConfig.activeKey" :tabBarStyle="{ margin: 0 }" @tabClick="tabclkCallback">
      <TabPane :key="1" tab="工艺路线">
        <FormProps />
      </TabPane>
@@ -19,8 +19,8 @@
        <FormItemProps v-if="IsOper" />
        <ActionItemProps v-if="!IsOper"  />
      </TabPane>
      <TabPane :key="3" :tab="posttitle">
        <PostProps v-if="IsOper" />
      <TabPane :key="3" :tab="posttitle" >
        <PostProps ref="postProps" v-if="IsOper" />
      </TabPane>
      <!-- <TabPane :key="4" tab="组件">
        <slot v-if="slotProps" :name="slotProps.component + 'Props'"></slot>
@@ -51,7 +51,9 @@
    crudColSlots: [],
    entityName: String,
  });
  const postProps = ref(null);
  const IsOper = ref(false);
  const IsReload = ref(false);
  const title = ref('');
  const posttitle = ref('');
  const colSlots = ref<any>([]);
@@ -69,6 +71,17 @@
        },
        { deep: true },
      );
  /**
   * @description: 点击tab回调方法
   * @param {*} val
   * @return {*}
   */
  function tabclkCallback(val){
    if(val == '3'){
      postProps.value?.reload();
    }
  }
</script>
<style lang="less" scoped>