update 国内标准分享
This commit is contained in:
@@ -171,7 +171,7 @@ export default {
|
||||
continueShare (ids) {
|
||||
const params = {
|
||||
id: this.$route.query.id, // 要分享的标准的id
|
||||
userIds: ids // 分享给的用户的id
|
||||
recipientId: ids // 分享给的用户的id
|
||||
}
|
||||
this.loading = true
|
||||
shareDomesticStandard(params).then(res => {
|
||||
|
||||
@@ -247,7 +247,7 @@ export default {
|
||||
},
|
||||
yesValue: YesOrNoEnum.YES.value,
|
||||
noValue: YesOrNoEnum.NO.value,
|
||||
nowShareId: null, // 当前正在分享的数据的id
|
||||
nowShareInfo: {}, // 当前正在分享的数据
|
||||
selectedTreeKeys: [], // 选中的树节点
|
||||
tableSlotField: ['standard_name', 'standard_number'] // 表格中需要插槽的字段
|
||||
}
|
||||
@@ -265,7 +265,7 @@ export default {
|
||||
* 获取树数据
|
||||
*/
|
||||
initTreeData () {
|
||||
getDomesticStandardTree().then(res => {
|
||||
getDomesticStandardTree({ nodeName: this.treeInput }).then(res => {
|
||||
if (res.success) {
|
||||
const treeData = res.result || []
|
||||
this.treeData = this.dealTreeData(treeData)
|
||||
@@ -296,7 +296,7 @@ export default {
|
||||
* 树节点查询
|
||||
*/
|
||||
handleTreeSearch () {
|
||||
|
||||
this.initTreeData()
|
||||
},
|
||||
/**
|
||||
* 树节点鼠标移入
|
||||
@@ -340,8 +340,11 @@ export default {
|
||||
/**
|
||||
* 分享
|
||||
*/
|
||||
handleShare ({ id }) {
|
||||
this.nowShareId = id
|
||||
handleShare ({ id, standard_number }) {
|
||||
this.nowShareInfo = {
|
||||
standardId: id,
|
||||
standardNum: standard_number
|
||||
}
|
||||
this.$refs.userSelectModal.open()
|
||||
},
|
||||
/**
|
||||
@@ -349,10 +352,9 @@ export default {
|
||||
* @param ids
|
||||
*/
|
||||
continueShare (ids) {
|
||||
const params = {
|
||||
id: this.nowShareId, // 要分享的标准的id
|
||||
userIds: ids // 分享给的用户的id
|
||||
}
|
||||
const params = Object.assign(this.nowShareInfo, {
|
||||
recipientId: ids // 分享给的用户的id
|
||||
})
|
||||
this.loading = true
|
||||
shareDomesticStandard(params).then(res => {
|
||||
if (res.success) {
|
||||
|
||||
Reference in New Issue
Block a user