duy 9 місяців тому
батько
коміт
6b924e0f25
2 змінених файлів з 46 додано та 0 видалено
  1. 8 0
      src/views/desk/wbs/edit-ele.vue
  2. 38 0
      src/views/project/list/wbs-tree.vue

+ 8 - 0
src/views/desk/wbs/edit-ele.vue

@@ -29,6 +29,14 @@
                     ></el-option>
                 </el-select>
             </template>
+            <template #fillRate="{ row }">
+                <el-input
+                    v-model="row.fillRate"
+                    placeholder="请输入填报率吧"
+                    clearable
+                >
+                </el-input>
+            </template>
         </hc-table>
     </hc-dialog>
 </template>

+ 38 - 0
src/views/project/list/wbs-tree.vue

@@ -125,9 +125,11 @@
                                         hc-btn
                                         type="primary"
                                         :disabled="infoTableData.length <= 0"
+                                        @click="editRowClick(row)"
                                         >编辑</el-button
                                     >
                                     <el-button
+                                        @click="sortClick"
                                         hc-btn
                                         type="success"
                                         :disabled="infoTableData.length <= 0"
@@ -378,6 +380,22 @@
         ></independentPage>
         <!-- 归档文件时间 -->
         <archiveTime v-model="isArchiveShow"></archiveTime>
+
+        <!-- 编辑元素表信息 -->
+        <editElePage
+            v-model="editEleShow"
+            @close="editClose"
+            :tableTypelist="tableTypelist"
+            :ownerTypeList="ownerTypeList"
+            :tab="infoTableData"
+        ></editElePage>
+        <!-- 表单调整排序 -->
+        <tableSort
+            v-model="tableSortShow"
+            @close="tableSortShowClose"
+            :tab="infoTableData"
+        >
+        </tableSort>
     </hc-drawer>
 </template>
 
@@ -398,6 +416,8 @@ import mainApi from "~api/wbs/private";
 import nodeParamDialog from "../../desk/wbs/node-param-dialog.vue";
 import independentPage from "./independent/index.vue";
 import archiveTime from "./archiveTime.vue";
+import editElePage from "../../desk/wbs/edit-ele.vue";
+import tableSort from "../../desk/wbs/table-sort.vue";
 
 const props = defineProps({
     type: {
@@ -1097,6 +1117,24 @@ const isArchiveShow = ref(false);
 const archiveClick = () => {
     isArchiveShow.value = true;
 };
+//编辑元素表单
+const editEleShow = ref(false);
+const editClose = () => {
+    editEleShow.value = false;
+};
+const editRowClick = (row) => {
+    editEleShow.value = true;
+};
+
+// 元素表排序
+const tableSortShow = ref(false);
+const sortClick = () => {
+    tableSortShow.value = true;
+};
+const tableSortShowClose = () => {
+    tableSortShow.value = false;
+    getInfoTableData();
+};
 </script>
 
 <style scoped lang="scss">