diff --git a/src/components/mechanismTree/index.vue b/src/components/mechanismTree/index.vue index 30cbb6b07..fe409a18e 100644 --- a/src/components/mechanismTree/index.vue +++ b/src/components/mechanismTree/index.vue @@ -8,6 +8,7 @@ @close="handleTreeDrawerCancel" size="400px"> 取消 - + 确定 @@ -214,7 +214,7 @@
取消 - + 确定
@@ -438,6 +438,7 @@ export default { label: 'menuName' }, nodeList2: [], + btnLoading: false, nodeList4: [], modalflag: false, modalflag2: false, @@ -683,6 +684,7 @@ export default { }) }, confirmDialogData() { + this.btnLoading = true this.$http.postData('sarRole/role/resource', { resourceIds: this.$refs.tree3.getCheckedKeys().concat(this.$refs.tree3.getHalfCheckedKeys()), roleId: this.id @@ -691,10 +693,12 @@ export default { this.$message.success('设置权限成功') this.modalflag = false } + this.btnLoading = false }) }, //配置数据确定按钮 confirmDialogData2(){ + this.btnLoading = true let menuIds = this.$refs.tree4.getCheckedKeys().join(',') this.$http.postData('tsRoleMeunData/ts-role-menu-data/saveBatch', { menuIds: menuIds, @@ -706,6 +710,7 @@ export default { }else{ this.$message.warning(res.message) } + this.btnLoading = false }) }, closeDialogData() { diff --git a/src/pages/details/otherBussStandardDetails/index.vue b/src/pages/details/otherBussStandardDetails/index.vue index f06032758..6ddf03188 100644 --- a/src/pages/details/otherBussStandardDetails/index.vue +++ b/src/pages/details/otherBussStandardDetails/index.vue @@ -2275,7 +2275,7 @@ export default { _this: this }, res => { this.sarStandardsInfoEO = res.data || {} - if (this.sarStandardsInfoEO.standCode.indexOf('Q/FT P') !== -1) { + if (this.sarStandardsInfoEO.standCode && this.sarStandardsInfoEO.standCode.indexOf('Q/FT P') !== -1) { this.QFTP = true } // this.textOptions.forEach(item => { diff --git a/src/pages/details/otherStandardDetails/components/RelatedTermsSelect.vue b/src/pages/details/otherStandardDetails/components/RelatedTermsSelect.vue index d7ea0fe8e..4917b1547 100644 --- a/src/pages/details/otherStandardDetails/components/RelatedTermsSelect.vue +++ b/src/pages/details/otherStandardDetails/components/RelatedTermsSelect.vue @@ -48,6 +48,7 @@ tooltip-effect="dark" style="width: 100%;" height="100%" + @selection-change="handleSelectionChange" :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', fontWeight: 'bold', height: '48px'}" row-key="id" @@ -115,6 +116,7 @@ export default { return { tableDataLoading: false, total: 0, + handleList: [], selectRoleId: '', searchForm: { standardKey: '', @@ -170,6 +172,10 @@ export default { // this.resetSearchForm() this.queryTablePage() }, + handleSelectionChange(data){ + this.handleList = data + this.$emit('func',this.handleList) + }, pageChange (page) { this.pageNo = page @@ -183,7 +189,6 @@ export default { resetPageNo() { this.pageNo = 1 }, - // 查询、加载表格 queryTablePage () { const formData = { diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue index 1fa58e39b..2126cf2e5 100644 --- a/src/pages/details/otherStandardDetails/index.vue +++ b/src/pages/details/otherStandardDetails/index.vue @@ -69,27 +69,28 @@