|
@@ -64,6 +64,8 @@
|
|
</div>
|
|
</div>
|
|
</hc-card>
|
|
</hc-card>
|
|
</hc-body>
|
|
</hc-body>
|
|
|
|
+ <!-- 新增清表 -->
|
|
|
|
+ <HcAddExcel v-model="addExcelShow" :info="addExcelInfo" :type="addExcelType" @finish="addExcelFinish" />
|
|
</hc-drawer>
|
|
</hc-drawer>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -72,6 +74,7 @@ import { ref, watch } from 'vue'
|
|
import { useAppStore } from '~src/store'
|
|
import { useAppStore } from '~src/store'
|
|
import screenfull from 'screenfull'
|
|
import screenfull from 'screenfull'
|
|
import { getArrValue, getObjValue, getRandom, isNullES } from 'js-fast-way'
|
|
import { getArrValue, getObjValue, getRandom, isNullES } from 'js-fast-way'
|
|
|
|
+import HcAddExcel from './add-excel.vue'
|
|
import mainApi from '~api/exctab/exceltab'
|
|
import mainApi from '~api/exctab/exceltab'
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
@@ -177,8 +180,21 @@ const treeDataMenu = ({ node, item, level }, resolve) => {
|
|
}
|
|
}
|
|
|
|
|
|
//菜单被点击
|
|
//菜单被点击
|
|
-const treeMenuClick = ({ key, node, data }) => {
|
|
|
|
|
|
+const treeMenuClick = ({ key, data }) => {
|
|
console.log(key)
|
|
console.log(key)
|
|
|
|
+ if (key === 'add') {
|
|
|
|
+ addExcelInfo.value = getObjValue(data)
|
|
|
|
+ addExcelType.value = '新增'
|
|
|
|
+ addExcelShow.value = true
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+//新增/编辑清表
|
|
|
|
+const addExcelShow = ref(false)
|
|
|
|
+const addExcelInfo = ref({})
|
|
|
|
+const addExcelType = ref('')
|
|
|
|
+const addExcelFinish = () => {
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
//全加载树
|
|
//全加载树
|