diff --git a/package.json b/package.json index 92a2aa7..92d2777 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "electron", - "version": "1.0.1", + "version": "1.0.3", "description": "An Electron application with Vue", "main": "./out/main/index.js", "author": "lichong", diff --git a/src/renderer/src/assets/js/db.js b/src/renderer/src/assets/js/db.js index e5a96ae..f568f8d 100644 --- a/src/renderer/src/assets/js/db.js +++ b/src/renderer/src/assets/js/db.js @@ -4,5 +4,5 @@ export const myDatabase = new Dexie('myDatabase'); // 定义数据库版本 myDatabase.version(1).stores({ - chufang: '++id, xingming, chufang, shetai, create_at, update_at', + chufang: '++id, xingming, chufang, shetai, note, create_at, update_at', }); \ No newline at end of file diff --git a/src/renderer/src/assets/json/chufang.json b/src/renderer/src/assets/json/chufang.json index 6470b52..89e58b3 100644 --- a/src/renderer/src/assets/json/chufang.json +++ b/src/renderer/src/assets/json/chufang.json @@ -23,6 +23,14 @@ "tableShow": true, "formShow": true }, + { + "label": "备注", + "prop": "note", + "type": "textarea", + "isSort": false, + "tableShow": true, + "formShow": true + }, { "label": "创建时间", "prop": "create_at", diff --git a/src/renderer/src/components/formcomponent.vue b/src/renderer/src/components/formcomponent.vue index 6a45cae..07f1d8d 100644 --- a/src/renderer/src/components/formcomponent.vue +++ b/src/renderer/src/components/formcomponent.vue @@ -1,12 +1,12 @@