|
@@ -45,14 +45,20 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 重置函数 -->
|
|
|
- <div class="hc-formula-reset-fun mb-14px">
|
|
|
+ <div v-if="isResetFun" class="hc-formula-reset-fun mb-14px">
|
|
|
<hc-body split padding="0">
|
|
|
<template #left>
|
|
|
<hc-card class="reset-fun-left-card">
|
|
|
+ <template #header>
|
|
|
+ <hc-search-input v-model="resetFunTree" @search="resetFunTreeSearch" />
|
|
|
+ </template>
|
|
|
自定义左边的区域
|
|
|
</hc-card>
|
|
|
</template>
|
|
|
<hc-card class="reset-fun-right-card">
|
|
|
+ <template #header>
|
|
|
+ <hc-search-input v-model="resetFunEle" placeholder="请输入你想搜索的元素字段" @search="resetFunEleSearch" />
|
|
|
+ </template>
|
|
|
其它内容
|
|
|
</hc-card>
|
|
|
</hc-body>
|
|
@@ -101,7 +107,7 @@ watch(isShow, (val) => {
|
|
|
//基础变量
|
|
|
const operatorReg = /^\+|-|\*|%/ //加减乘除
|
|
|
const startFCRegExp = /^FC\.([a-zA-Z\d]+)\(/ //匹配开始的FC.xxx(
|
|
|
-const isScrollBar = ref(false)
|
|
|
+const isScrollBar = ref(true)
|
|
|
|
|
|
//获取数据
|
|
|
const getDataApi = async () => {
|
|
@@ -180,6 +186,18 @@ const resetFunClick = () => {
|
|
|
isScrollBar.value = !isResetFun.value
|
|
|
}
|
|
|
|
|
|
+//重置函数树搜索
|
|
|
+const resetFunTree = ref('')
|
|
|
+const resetFunTreeSearch = () => {
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+//重置函数元素搜索
|
|
|
+const resetFunEle = ref('')
|
|
|
+const resetFunEleSearch = () => {
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
//保存
|
|
|
const submitLoading = ref(false)
|
|
@@ -190,6 +208,8 @@ const submitClick = async () => {
|
|
|
//关闭抽屉
|
|
|
const drawerClose = () => {
|
|
|
isShow.value = false
|
|
|
+ isResetFun.value = false
|
|
|
+ isScrollBar.value = true
|
|
|
emit('close')
|
|
|
}
|
|
|
</script>
|