未验证 提交 a0cc936d 编写于 作者: Mr.奇淼('s avatar Mr.奇淼( 提交者: GitHub

Merge pull request #302 from tingfeng-key/patch-3

添加自动填充功能
......@@ -103,6 +103,7 @@
</template>
<script>
import { getDict } from "@/utils/dictionary";
import { toSQLLine } from "@/utils/stringFun.js";
import { getSysDictionaryList } from "@/api/sysDictionary";
export default {
name: "FieldDialog",
......@@ -201,7 +202,21 @@ export default {
});
this.dictOptions = dictRes.data.list
}
},
watch: {
'dialogMiddle.fieldName': function (val) {
if (val.length > 0) {
val = val.replace(val[0], val[0].toLowerCase());
val = toSQLLine(val)
}
this.dialogMiddle.fieldJson = val;
this.dialogMiddle.columnName = val;
},
'dialogMiddle.fieldDesc': function (val) {
this.dialogMiddle.comment = val;
}
},
};
</script>
<style lang="scss">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册