This commit is contained in:
@@ -71,7 +71,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
/* eslint-disable */
|
||||
/* Xeslint-disable */
|
||||
const FORM_KEY = "inventorywidgetlist";
|
||||
|
||||
export default {
|
||||
@@ -98,8 +98,6 @@ export default {
|
||||
})
|
||||
.then(() => {
|
||||
var storedFormSettings = that.$gzform.getFormSettings(FORM_KEY);
|
||||
console.log("IWL:beforeCreate storedFormSettings:");
|
||||
console.log(storedFormSettings);
|
||||
|
||||
//set default values for form settings if they are not present yet
|
||||
if (!storedFormSettings) {
|
||||
@@ -126,10 +124,6 @@ export default {
|
||||
appError: null,
|
||||
serverError: {}
|
||||
},
|
||||
dialogdata: {
|
||||
showeditdialog: false,
|
||||
recordId: 0
|
||||
},
|
||||
totalItems: 0,
|
||||
Items: [],
|
||||
loading: true,
|
||||
@@ -166,8 +160,10 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
newItem() {
|
||||
this.dialogdata.recordId = -1;
|
||||
this.dialogdata.showeditdialog = true;
|
||||
this.$router.push({
|
||||
name: "inventory-widget-edit",
|
||||
params: { id: 0 }
|
||||
});
|
||||
},
|
||||
getDataFromApi() {
|
||||
var that = this;
|
||||
@@ -196,8 +192,6 @@ export default {
|
||||
that.localFormSettings.pagination &&
|
||||
that.localFormSettings.pagination.rowsPerPage
|
||||
) {
|
||||
console.log("IWL: setting local formsettings as there is data:");
|
||||
console.log(that.localFormSettings);
|
||||
that.$gzform.setFormSettings(FORM_KEY, that.localFormSettings);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user