File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
web/src/view/systemTools/autoCode/component Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 103103</template >
104104<script >
105105import { getDict } from " @/utils/dictionary" ;
106+ import { toSQLLine } from " @/utils/stringFun.js" ;
106107import { getSysDictionaryList } from " @/api/sysDictionary" ;
107108export default {
108109 name: " FieldDialog" ,
@@ -201,7 +202,21 @@ export default {
201202 });
202203
203204 this .dictOptions = dictRes .data .list
204- }
205+ },
206+ watch: {
207+ ' dialogMiddle.fieldName ' : function (val ) {
208+ if (val .length > 0 ) {
209+ val = val .replace (val[0 ], val[0 ].toLowerCase ());
210+ val = toSQLLine (val)
211+ }
212+
213+ this .dialogMiddle .fieldJson = val;
214+ this .dialogMiddle .columnName = val;
215+ },
216+ ' dialogMiddle.fieldDesc ' : function (val ) {
217+ this .dialogMiddle .comment = val;
218+ }
219+ },
205220};
206221 </script >
207222<style lang="scss">
You can’t perform that action at this time.
0 commit comments