|
@@ -84,7 +84,7 @@
|
|
|
<template #action="{ row }">
|
|
|
<el-link type="success">关联清表</el-link>
|
|
|
<el-link type="primary" :disabled="row.excelId === -1 || isNullES(row.excelId)">编辑元素</el-link>
|
|
|
- <el-link type="warning" :disabled="row.excelId === -1 || isNullES(row.excelId)">调整表单</el-link>
|
|
|
+ <el-link type="warning" :disabled="row.excelId === -1 || isNullES(row.excelId)" @click="adjustExcelClick(row)">调整表单</el-link>
|
|
|
<el-link type="primary">编辑元素公式</el-link>
|
|
|
<el-link type="warning">表单同步</el-link>
|
|
|
<el-link type="primary">关联节点</el-link>
|
|
@@ -118,16 +118,19 @@
|
|
|
</template>
|
|
|
</hc-table>
|
|
|
</hc-new-dialog>
|
|
|
+ <!-- 调整表单 -->
|
|
|
+ <HcAdjustExcel v-model="isAdjustExcelShow" :info="adjustExcelInfo" />
|
|
|
</hc-drawer>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { nextTick, ref, watch } from 'vue'
|
|
|
+import { nextTick, onDeactivated, ref, watch } from 'vue'
|
|
|
import { useAppStore } from '~src/store'
|
|
|
import { HcFirmMsg, getStore, setStore } from 'hc-vue3-ui'
|
|
|
import { deepClone, getArrValue, getObjValue, isNullES } from 'js-fast-way'
|
|
|
import { getDictionaryData, reloadPage } from '~uti/tools'
|
|
|
import TreeNodeEditDialog from './tree-node-edit.vue'
|
|
|
+import HcAdjustExcel from './adjust-excel.vue'
|
|
|
import wbsTreeApi from '~api/wbs/tree'
|
|
|
import mainApi from '~api/wbs/private'
|
|
|
|
|
@@ -590,6 +593,19 @@ const dataSyncMenu = [
|
|
|
const dataSyncMenuClick = (item) => {
|
|
|
console.log( item)
|
|
|
}
|
|
|
+
|
|
|
+//调整表单
|
|
|
+const isAdjustExcelShow = ref(false)
|
|
|
+const adjustExcelInfo = ref({})
|
|
|
+const adjustExcelClick = (row) => {
|
|
|
+ adjustExcelInfo.value = row
|
|
|
+ isAdjustExcelShow.value = true
|
|
|
+}
|
|
|
+
|
|
|
+//离开了当前页面
|
|
|
+onDeactivated(() => {
|
|
|
+ isAdjustExcelShow.value = false
|
|
|
+})
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|