Commit 64ad5fd6 authored by Mac's avatar Mac

1

parent d55b5496
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<q-card-section class="q-pt-none" style="margin-top: 15px;"> <q-card-section class="q-pt-none" style="margin-top: 15px;">
<q-splitter v-model="splitterModel"> <q-splitter v-model="splitterModel">
<template v-slot:before> <template v-slot:before>
<q-tabs v-model="tab" vertical @input="getdefault"> <q-tabs v-model="tab" vertical @click="getdefault">
<q-tab v-for="(x,y) in tabsList" :key='y' :name="x.Id" :label="x.Name" <q-tab v-for="(x,y) in tabsList" :key='y' :name="x.Id" :label="x.Name"
:disable="x.disable" /> :disable="x.disable" />
</q-tabs> </q-tabs>
...@@ -271,6 +271,23 @@ ...@@ -271,6 +271,23 @@
} }
addMsg.value.DeptId = tempStr addMsg.value.DeptId = tempStr
} }
const getdefault = () => {//切换模式的时候 初始化
addMsg.value = {
Id: 0,
Type: 1,
Name: '',
Required: 2,
DeptId: 0,
WordNum: 1,
InputType: '',
OptionsList: [{
Id: 1,
Name: ''
}],
Digits: 0,
Enable: 1,
};
}
return { return {
getcancel,//关闭弹窗 getcancel,//关闭弹窗
...@@ -286,7 +303,8 @@ ...@@ -286,7 +303,8 @@
decimalslist, decimalslist,
returnString, returnString,
getChild, getChild,
loading loading,
getdefault
} }
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment