diff --git a/backend/models/configItemsModel.js b/backend/models/configItemsModel.js index 01a9903..a88c26b 100644 --- a/backend/models/configItemsModel.js +++ b/backend/models/configItemsModel.js @@ -61,7 +61,7 @@ export const updateConfigItemById = async (data, result) => { const id = data.primaryID; try { let sql = `UPDATE changeDB SET assetName = ?, customerID = ?, customer = ?, location = ?, remoteLocation = ?, type = ?, description = ?, notes = ?, state = ?, lastView = ?, user = ?, hardwareBool = ?, model = ?, serialnumber = ?, CPU = ?, RAM = ?, storageConfiguration = ?, miscellaneous = ?, softwareBool = ?, software = ?, version = ?, networkBool = ?, IPv4 = ?, IPv6 = ?, MAC = ?, subnetmask = ? WHERE primaryID = ?`; - const results = await ownConn.query(sql, [data.assetName, data.customerID, data.customer, data.location, data.remoteLocation, data.type, data.description, data.notes, data.state, data.lastView, data.user, data.hardwareBool, data.model, data.serialnumber, data.CPU, data.RAM, data.storageConfiguration, data.miscellaneous, data.softwareBool, data.software, data.version, data.networkBool, data.IPv4, data.IPv6, data.MAC, data.subnetmask, id]); + const results = await ownConn.query(sql, [data.assetName, data.customerID, data.customer, data.location, data.remoteLocation, data.type, data.description, data.notes, data.state, data.lastView, data.user, data.hardwareBool, data.model, data.serialnumber, data.CPU, data.RAM, data.storageConfiguration, data.miscellaneous, data.softwareBool, data.software, data.version, data.license, data.networkBool, data.IPv4, data.IPv6, data.MAC, data.subnetmask, id]); result(null, results); } catch (err) { @@ -74,7 +74,7 @@ export const updateConfigItemById = async (data, result) => { //insert config item to databased export const insertConfigItem = async (data, result) => { try { - const results = await ownConn.query(`INSERT INTO changeDB(assetName, customerID, customer, location, remoteLocation, type, description, notes, state, lastView, user, hardwareBool, model, serialnumber, CPU, RAM, storageConfiguration, miscellaneous, softwareBool, software, version, networkBool, IPv4, IPv6, MAC, subnetmask) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`, [data.assetName, data.customerID, data.customer, data.location, data.remoteLocation, data.type, data.description, data.notes, data.state, data.lastView, data.user, data.hardwareBool, data.model, data.serialnumber, data.CPU, data.RAM, data.storageConfiguration, data.miscellaneous, data.softwareBool, data.software, data.version, data.networkBool, data.IPv4, data.IPv6, data.MAC, data.subnetmask]) + const results = await ownConn.query(`INSERT INTO changeDB(assetName, customerID, customer, location, remoteLocation, type, description, notes, state, lastView, user, hardwareBool, model, serialnumber, CPU, RAM, storageConfiguration, miscellaneous, softwareBool, software, version, license, networkBool, IPv4, IPv6, MAC, subnetmask) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`, [data.assetName, data.customerID, data.customer, data.location, data.remoteLocation, data.type, data.description, data.notes, data.state, data.lastView, data.user, data.hardwareBool, data.model, data.serialnumber, data.CPU, data.RAM, data.storageConfiguration, data.miscellaneous, data.softwareBool, data.software, data.version, data.license, data.networkBool, data.IPv4, data.IPv6, data.MAC, data.subnetmask]) result(null, results); } catch (err) { diff --git a/components/LoginForm.vue b/components/LoginForm.vue index e713898..6571fd2 100644 --- a/components/LoginForm.vue +++ b/components/LoginForm.vue @@ -46,10 +46,12 @@ diff --git a/components/server/Asset.vue b/components/server/Asset.vue index cadb524..6055d3f 100644 --- a/components/server/Asset.vue +++ b/components/server/Asset.vue @@ -1,31 +1,31 @@ - - \ No newline at end of file +} + \ No newline at end of file diff --git a/components/server/IssueTable.vue b/components/server/IssueTable.vue index 3ca558b..460fa83 100644 --- a/components/server/IssueTable.vue +++ b/components/server/IssueTable.vue @@ -14,17 +14,18 @@ State Amount - + - ... + {{ issue.name }} - ... + {{ issue.type }} - ... - ... + {{ issue.state }} + {{ issue.amount }} @@ -32,9 +33,26 @@