浏览代码

202105031531

master
teddy_msi 5 年前
父节点
当前提交
710ed1edae
共有 3 个文件被更改,包括 26 次插入9 次删除
  1. +6
    -0
      app/src/components/AssetGroup.vue
  2. +18
    -7
      app/src/components/Inventory.vue
  3. +2
    -2
      src/main/resources/application.properties

+ 6
- 0
app/src/components/AssetGroup.vue 查看文件

@@ -189,6 +189,12 @@
:footer-props="{'items-per-page-options': [30, 40, 50, 60]}"
:items-per-page="30"
>
<template v-slot:item.colname='{ item }'>
{{level === 0 ? item.colname :''}}
</template>
<template v-slot:item.index='{ item }'>
{{level === 0 ? item.index :''}}
</template>
<template v-slot:item.isselect='{ item }'>
{{item.isselect === 'true' ? '選項':'文字'}}
</template>


+ 18
- 7
app/src/components/Inventory.vue 查看文件

@@ -228,6 +228,7 @@
:hint="comments[header.value]"
:persistent-hint="isRequire(header.value)"
v-on:input="oninput(insertItem, header.value, $event)"
:error="isRequire(header.value)"
/>
<v-select
dense
@@ -240,6 +241,7 @@
:items="selectItem[header.value]"
item-text="item"
item-value="item"
:error="isRequire(header.value)"
/>
</div>
</v-col>
@@ -319,6 +321,7 @@
:persistent-hint="isRequire(header.value)"
:hint="comments[header.value]"
v-on:input="oninput(modifyItem, header.value, $event)"
:error="isRequire(header.value)"
/>
<v-select
dense
@@ -331,6 +334,7 @@
:items="selectItem[header.value]"
item-text="item"
item-value="item"
:error="isRequire(header.value)"
/>
</div>
</v-col>
@@ -559,14 +563,21 @@
});
},
clearSinglePropInSearchItem(key) {
const self = this;
// const self = this;
this.searchItem[key] = null;
this.haveSearch = false;
Object.keys(this.searchItem).forEach(function(key){
if (self.searchItem[key] && self.searchItem[key] !== null) {
this.haveSearch = true;
}
});
this.haveSearch = false;
for (key in this.searchItem) {
if (this.searchItem[key] && this.searchItem[key] !== null) {
this.haveSearch = true;
}
}
// Object.keys(this.searchItem).forEach(function(key){
// // this.haveSearch = false;
// if (self.searchItem[key] && self.searchItem[key] !== null) {
// this.haveSearch = true;
// }
// });


this.getInventories();
},


+ 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


正在加载...
取消
保存