chenrui  2 år sedan
förälder
incheckning
c87a4741c0
1 ändrade filer med 7 tillägg och 1 borttagningar
  1. 7 1
      src/views/BasicsData/airportInfo/index.vue

+ 7 - 1
src/views/BasicsData/airportInfo/index.vue

@@ -26,7 +26,7 @@
         <el-col :span="18">
           <div class="app-containers">
             <DataTable
-              BtnGroupWidth="300px"
+              :BtnGroupWidth="BtnGroupWidth"
               :tableHeader="tableCols"
               :tableData="tableData"
               :tableBtnGroup="tableBtnGroup"
@@ -170,6 +170,7 @@ const defaultProps = ref({
   label: "companyName",
 });
 const companyID = ref(""); //机场id
+const BtnGroupWidth = ref<String>("");
 const flag = ref<Boolean>(false); //弹窗开关
 const type = ref<String>(""); //判断是否删除
 const msgTitle = ref<String>("新增机场信息维护"); //弹窗标题
@@ -319,6 +320,11 @@ const getQuery = async () => {
         rowTitle.value = titleColumn.columnName;
       }
       tableData.value.push(...returnData.listValues);
+      if (returnData.columnSet) {
+        BtnGroupWidth.value = "300px";
+      } else {
+        BtnGroupWidth.value = "";
+      }
       tableCols.value = returnData.columnSet;
       tableCols.value.forEach((element) => {
         element.label = element.columnLabel;