修改 企业标准多选
This commit is contained in:
+12
-12
@@ -1994,7 +1994,7 @@
|
|||||||
</el-drawer>
|
</el-drawer>
|
||||||
<!-- 组件树-->
|
<!-- 组件树-->
|
||||||
<tree-select-new
|
<tree-select-new
|
||||||
:multiple="false"
|
:multiple="true"
|
||||||
:lazy="false"
|
:lazy="false"
|
||||||
:modalShowFlag="modalShowFlag1"
|
:modalShowFlag="modalShowFlag1"
|
||||||
:drawerTitle="drawerTitle1"
|
:drawerTitle="drawerTitle1"
|
||||||
@@ -2116,6 +2116,7 @@ export default {
|
|||||||
props: {},
|
props: {},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
editCheckd:[],
|
||||||
rootNode: '', // 左侧树当前选中的数据的根节点(企业标准,技术体系)
|
rootNode: '', // 左侧树当前选中的数据的根节点(企业标准,技术体系)
|
||||||
systemCategoryId: [], // 表格选中数据的体系标准Id
|
systemCategoryId: [], // 表格选中数据的体系标准Id
|
||||||
opinionsStand: [
|
opinionsStand: [
|
||||||
@@ -3700,15 +3701,14 @@ export default {
|
|||||||
// 节点选中状态发生变化时的回调,当选中另一个后,当前的的节点状态变化也会触发这个事件
|
// 节点选中状态发生变化时的回调,当选中另一个后,当前的的节点状态变化也会触发这个事件
|
||||||
handleCheckChange (item, checked, self) {
|
handleCheckChange (item, checked, self) {
|
||||||
if(checked) {
|
if(checked) {
|
||||||
console.log(item)
|
this.editCheckd.push(item.id)
|
||||||
this.editCheckd = item.id
|
|
||||||
this.NewTreeType = item.treeType
|
this.NewTreeType = item.treeType
|
||||||
this.$refs.menuTree.setCheckedKeys([ item.id ]);
|
// this.$refs.menuTree.setCheckedKeys([ item.id ]);
|
||||||
// this.nodeClick(item)
|
// this.nodeClick(item)
|
||||||
}else{
|
}else{
|
||||||
if(this.editCheckd === item.id) {
|
// if(this.editCheckd === item.id) {
|
||||||
this.$refs.menuTree.setCheckedKeys([ item.id ]);
|
// this.$refs.menuTree.setCheckedKeys([ item.id ]);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 移动标准
|
// 移动标准
|
||||||
@@ -3729,7 +3729,7 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.menuTree.setCheckedKeys(checkedObj);
|
this.$refs.menuTree.setCheckedKeys(checkedObj);
|
||||||
})
|
})
|
||||||
this.editCheckd = ''
|
this.editCheckd = []
|
||||||
this.mobileModal = false
|
this.mobileModal = false
|
||||||
},
|
},
|
||||||
// 移动标准提交
|
// 移动标准提交
|
||||||
@@ -3738,7 +3738,7 @@ export default {
|
|||||||
const search = {}
|
const search = {}
|
||||||
// 取最外层目录id
|
// 取最外层目录id
|
||||||
search.oldMenuId = this.selectSarMenu.id
|
search.oldMenuId = this.selectSarMenu.id
|
||||||
search.menuId = this.editCheckd
|
search.menuId = this.editCheckd.join(',')
|
||||||
search.treeType = this.selectSarMenu.treeType
|
search.treeType = this.selectSarMenu.treeType
|
||||||
// search.oldTreeType = this.selectSarMenu.treeType
|
// search.oldTreeType = this.selectSarMenu.treeType
|
||||||
// search.NewTreeType = this.NewTreeType
|
// search.NewTreeType = this.NewTreeType
|
||||||
@@ -3760,7 +3760,7 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.menuTree.setCheckedKeys(checkedObj);
|
this.$refs.menuTree.setCheckedKeys(checkedObj);
|
||||||
})
|
})
|
||||||
this.editCheckd = ''
|
this.editCheckd = []
|
||||||
this.mobileModal = false
|
this.mobileModal = false
|
||||||
this.getBussionStandTable()
|
this.getBussionStandTable()
|
||||||
}, e => {
|
}, e => {
|
||||||
@@ -3771,12 +3771,12 @@ export default {
|
|||||||
const checkedObj = []
|
const checkedObj = []
|
||||||
const search = {}
|
const search = {}
|
||||||
// 取最外层目录id
|
// 取最外层目录id
|
||||||
search.newStandCategoryId = this.editCheckd
|
search.newStandCategoryId = this.editCheckd.join(',')
|
||||||
search.standIds = []
|
search.standIds = []
|
||||||
for (let i = 0; i < this.selectedList.length; i++) {
|
for (let i = 0; i < this.selectedList.length; i++) {
|
||||||
search.standIds.push(this.selectedList[i])
|
search.standIds.push(this.selectedList[i])
|
||||||
}
|
}
|
||||||
if(search.newStandCategoryId == '' || search.newStandCategoryId == null || search.newStandCategoryId == undefined) {
|
if(search.newStandCategoryId == '' || search.newStandCategoryId == null || search.newStandCategoryId == undefined || search.newStandCategoryId == []) {
|
||||||
this.$message.error('请至少选择一个节点')
|
this.$message.error('请至少选择一个节点')
|
||||||
}else{
|
}else{
|
||||||
search.standIds = search.standIds.join(',')
|
search.standIds = search.standIds.join(',')
|
||||||
|
|||||||
Reference in New Issue
Block a user