-
+
{{ itemin.lable }}
@@ -167,7 +167,7 @@
diff --git a/jero-web/src/components/tableCollection/index.vue b/jero-web/src/components/tableCollection/index.vue
index b40b1ddf9..548751ccc 100644
--- a/jero-web/src/components/tableCollection/index.vue
+++ b/jero-web/src/components/tableCollection/index.vue
@@ -141,10 +141,11 @@ export default {
// this.pageNo = page
// this.getTableList()
},
- onSelectChange(value,valueOld) {
- console.log(value,valueOld)
+ onSelectChange(value,rowValue) {
+ console.log(value,rowValue)
this.selectedRowKeys = value
- // this.$emit('onSelectChange', value)
+ this.$emit('value',value)
+ this.$emit('rowValue', rowValue)
},
OperationClick(ol, item) {
// this.$emit(ol.ClickEvent, item)
diff --git a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue
index d8a9f469a..80ff557c3 100644
--- a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue
+++ b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue
@@ -78,7 +78,7 @@
@@ -166,7 +166,9 @@ export default {
templatetitleId: '',
rowId: '',
version: 0,
- itemId: ''
+ itemId: '',
+ selectedRowKeys: [],
+ selectedRowKeysValue: []
}
},
props: {
@@ -179,16 +181,38 @@ export default {
mounted() {
},
methods:{
+ rowValue(val) {
+ this.selectedRowKeysValue = val
+ },
+ value(val) {
+ this.selectedRowKeys = val
+ },
handleAdd() {
- //
- postAction(this.url.add, {}).then((res) => {
- if (res.success) {
- this.$message.success(this.$t('OperationSuccessful'))
- // _this.getlist()
- } else {
- this.$message.warning(this.$t('operationFailed'))
- }
+ let postDate = []
+ this.selectedRowKeysValue.forEach((item, index) => {
+ let postDateobj = {}
+ Object.keys(item).forEach((itemIn, index) => {
+ if(item[itemIn] instanceof Object) {
+ postDateobj[itemIn] = item[itemIn]
+ }
+ })
+ postDateobj.id = item.id
+ postDate.push(postDateobj)
})
+ console.log(postDate,'postDatepostDatepostDatepostDate')
+ if(this.selectedRowKeys.length == 0) {
+ this.$message.warning(this.$t('selectLeastOne'))
+ }else {
+ postAction(this.url.add, postDate).then((res) => {
+ if (res.success) {
+ console.log(res,'lllll')
+ this.$message.success(this.$t('OperationSuccessful'))
+ // _this.getlist()
+ } else {
+ this.$message.warning(this.$t('operationFailed'))
+ }
+ })
+ }
},
handleModule() {