瀏覽代碼

202104131703

master
teddy 5 年之前
父節點
當前提交
f6cba2fe8f
共有 3 個文件被更改,包括 7 次插入3 次删除
  1. +4
    -0
      app/src/components/Inventory.vue
  2. +1
    -1
      src/main/java/com/moze/rms/dao/AccountDAO.java
  3. +2
    -2
      src/main/resources/application.properties

+ 4
- 0
app/src/components/Inventory.vue 查看文件

@@ -520,7 +520,9 @@
this.searchItem.tablename = this.tablename;
// const pattern = new RegExp('[[\\]"\';]');
Object.keys(this.searchItem).forEach((key) => {
if (this.searchItem[key] !== null) {
this.searchItem[key] = this.searchItem[key].replaceAll('"', '').replaceAll('\'', '').replaceAll(';', '').replaceAll('\\', '');
}
});
this.$axios.post(`/search`, this.searchItem).then((resp) => {
delete this.searchItem.tablename;
@@ -538,6 +540,7 @@
this.haveSearch = true;
}
});

this.getInventories();
},
async clearSearchItem() {
@@ -545,6 +548,7 @@
Object.keys(this.searchItem).forEach(function(key){
self.searchItem[key] = null;
});
console.log(this.searchItem);
this.getInventories();
this.haveSearch = false;
},


+ 1
- 1
src/main/java/com/moze/rms/dao/AccountDAO.java 查看文件

@@ -38,7 +38,7 @@ public interface AccountDAO extends SqlObject {
sql += "'" + a.getUsername() +"',";
sql += "'" + a.getDepartment() +"',";
sql += "'" + a.getAccount() +"',";
sql += "'1',";
sql += "'" + a.getLevel() +"',";
sql += "'" + a.getId() +"')";

handle.createUpdate(sql).execute();


+ 2
- 2
src/main/resources/application.properties 查看文件

@@ -1,5 +1,5 @@
#spring.profiles.active=dev
spring.profiles.active=pro
spring.profiles.active=dev
#spring.profiles.active=pro

server.servlet.context-path=/rms
spring.servlet.multipart.max-file-size=100MB


Loading…
取消
儲存