徐景良 2024-06-12 09:40:22 +08:00
commit 933140aff2
3 changed files with 15 additions and 7 deletions

View File

@ -30,8 +30,6 @@ import dayjs from 'dayjs';
const props = defineProps(['data']) const props = defineProps(['data'])
const show = props.data.display const show = props.data.display
const isTime = ['createtime', 'modifytime'].includes(props.data.type) const isTime = ['createtime', 'modifytime'].includes(props.data.type)
console.log(show)
console.log(isTime)
const nowTime = ref(dayjs().format('YYYY-MM-DD HH:mm:ss')) const nowTime = ref(dayjs().format('YYYY-MM-DD HH:mm:ss'))
const userName = localStorage.getItem('fireUserLoginName') const userName = localStorage.getItem('fireUserLoginName')
</script> </script>

View File

@ -1,7 +1,12 @@
<template> <template>
<ScrollContainer> <ScrollContainer>
<div ref="wrapperRef" :class="prefixCls"> <div ref="wrapperRef" :class="prefixCls">
<Tabs tab-position="left" :tabBarStyle="tabBarStyle" v-model:activeKey="component"> <Tabs
tab-position="left"
:tabBarStyle="tabBarStyle"
v-model:activeKey="componentCode"
@change="changeKey"
>
<template v-for="item in settingList" :key="item.key"> <template v-for="item in settingList" :key="item.key">
<TabPane :tab="item.name"> <TabPane :tab="item.name">
<div :style="'display: flex; height:' + data.height"> <div :style="'display: flex; height:' + data.height">
@ -15,7 +20,7 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { reactive } from 'vue'; import { reactive, ref } from 'vue';
import { Tabs } from 'ant-design-vue'; import { Tabs } from 'ant-design-vue';
import { ScrollContainer } from '@/components/Container'; import { ScrollContainer } from '@/components/Container';
import { settingList } from './data'; import { settingList } from './data';
@ -31,7 +36,8 @@
} from './page'; } from './page';
const route = useRoute(); const route = useRoute();
const component = route.query.component; let componentCode = ref('');
componentCode.value = route.query.component;
const TabPane = Tabs.TabPane; const TabPane = Tabs.TabPane;
const tabs = { const tabs = {
CreateFlow, CreateFlow,
@ -50,6 +56,9 @@
const tabBarStyle = { const tabBarStyle = {
width: '220px', width: '220px',
}; };
function changeKey(e) {
componentCode.value = e;
}
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.account-setting { .account-setting {

View File

@ -114,7 +114,7 @@
:color="btn.type" :color="btn.type"
:type="btn.type ? btn.type : 'primary'" :type="btn.type ? btn.type : 'primary'"
@click="handleBtnClick(btn)" @click="handleBtnClick(btn)"
>{{ btn.name }} {{ btn.code }}</a-button >{{ btn.name }}</a-button
> >
</a-form-item> </a-form-item>
</a-form> </a-form>
@ -634,6 +634,7 @@
} }
} }
async function handleSubmit(btn) { async function handleSubmit(btn) {
console.log('handleSubmit')
const currentBtn = btn; const currentBtn = btn;
designerData.currentBtn = currentBtn; designerData.currentBtn = currentBtn;
let res: any; let res: any;
@ -678,7 +679,7 @@
// return; // return;
// } // }
} }
// res = await auditFun(); res = await auditFun();
} }
break; break;
} }