|
@@ -286,6 +286,8 @@
|
|
|
<edbTableList
|
|
|
ref="edbTableListRef"
|
|
|
:isBasicBase="isBasicBase"
|
|
|
+ :classifyShowType="classifyShowType"
|
|
|
+ :treeName="currentTreeName"
|
|
|
:tableLoading="tableLoading"
|
|
|
:list="chartList"
|
|
|
:total="Total"
|
|
@@ -297,6 +299,7 @@
|
|
|
@edit="item =>{editNode({},item)}"
|
|
|
@collect="handleCollectEdb"
|
|
|
@remove="item =>{removeNode({},item)}"
|
|
|
+ @remove-collect="handleRemoveCollect"
|
|
|
/>
|
|
|
</div>
|
|
|
|
|
@@ -646,6 +649,7 @@
|
|
|
ref="edbCollectRef"
|
|
|
:show.sync="isOpenEdbCollectDia"
|
|
|
:id="collectEdbForm.edbId"
|
|
|
+ :batchParams="collectEdbForm.batchParams"
|
|
|
:add_ids="collectEdbForm.collectClassifyIdList"
|
|
|
@confirm="handleCollectSuccess"
|
|
|
/>
|
|
@@ -881,7 +885,8 @@ export default {
|
|
|
{ label: '公开指标',key: 'public' },
|
|
|
],
|
|
|
classifyShowType:'own',
|
|
|
- currentTreeName: 'own',//当前点击的分类树 4块 列表请求接口不同 own public collect sharedReceive sharedSend,
|
|
|
+ currentTreeName: 'own',//当前点击的分类树 4块 列表请求接口不同 own public collect sharedReceive shared,
|
|
|
+ select_shared_User:0,//点击收到共享的用户名
|
|
|
|
|
|
collectClassifys:[],//收藏目录
|
|
|
//指标收藏弹窗
|
|
@@ -1204,7 +1209,8 @@ export default {
|
|
|
FilterSource: this.currentTreeName==='sharedReceive' ? 1 : 0,
|
|
|
PageSize:this.PageSize,
|
|
|
CurrentIndex:this.CurrentIndex,
|
|
|
- ClassifyId:this.select_classifyId,
|
|
|
+ ClassifyId:this.select_shared_User?0:this.select_classifyId,
|
|
|
+ UserId:this.select_shared_User
|
|
|
})
|
|
|
}else if(this.classifyShowType==='own'&&this.currentTreeName==='collect'){ //收藏列表
|
|
|
res = await edbCollectInterface.getCollectEdb({
|
|
@@ -1407,11 +1413,9 @@ export default {
|
|
|
},
|
|
|
/* 节点变化时 treeName记录点击的是哪块的分类 own public collect sharedReceive shared*/
|
|
|
nodeChange({data,node,treeName}) {
|
|
|
- // if(this.classifyShowType === 'shared') { //点的是收到共享的用户名 过滤
|
|
|
|
|
|
- // }
|
|
|
-
|
|
|
this.currentTreeName=treeName;
|
|
|
+ this.select_shared_User = treeName==='sharedReceive' ? (data.UserId||0) : 0;
|
|
|
this.search_txt = '';
|
|
|
this.select_classifyId = !data.EdbInfoId?data.ClassifyId:0;
|
|
|
this.select_node = data.UniqueCode;
|
|
@@ -1698,6 +1702,7 @@ export default {
|
|
|
if(this.selected_edbid) {
|
|
|
this.selected_edbid = 0;
|
|
|
}else {
|
|
|
+ this.select_classifyId = 0;
|
|
|
this.getEdbChartList();
|
|
|
}
|
|
|
this.getTreeData();
|
|
@@ -1726,7 +1731,7 @@ export default {
|
|
|
return canDrop
|
|
|
},
|
|
|
/* 拖拽完成 */
|
|
|
- dropOverHandle(b,a,i,e) {
|
|
|
+ async dropOverHandle(b,a,i,e) {
|
|
|
// 被拖拽节点对应的 Node、结束拖拽时最后进入的节点、被拖拽节点的放置位置
|
|
|
console.log(b,a,i);
|
|
|
const isEDB=b.data.EdbCode?true:false
|
|
@@ -1789,17 +1794,16 @@ export default {
|
|
|
ClassifyType: this.isBasicBase ? 0 : 2
|
|
|
}
|
|
|
console.log(params);
|
|
|
- dataBaseInterface.classifyMoveSort(params).then(res=>{
|
|
|
- if(res.Ret===200){
|
|
|
- // this.$message.success('移动成功!')
|
|
|
- this.$message.success(this.$t('MsgPrompt.move_sort_success'))
|
|
|
- }
|
|
|
- this.getTreeData()
|
|
|
- if(this.selected_edbid){
|
|
|
- this.getDataList();
|
|
|
- }
|
|
|
-
|
|
|
- })
|
|
|
+ const res = this.classifyShowType === 'public'
|
|
|
+ ? await edbBaseV2Interface.movePublicClassify(params)
|
|
|
+ : await dataBaseInterface.classifyMoveSort(params);
|
|
|
+
|
|
|
+ if(res.Ret!==200) return
|
|
|
+ // this.$message.success('移动成功!')
|
|
|
+ this.$message.success(this.$t('MsgPrompt.move_sort_success'))
|
|
|
+
|
|
|
+ this.getTreeData();
|
|
|
+ this.selected_edbid && this.getDataList();
|
|
|
},
|
|
|
|
|
|
/* 拖拽覆盖添加背景色 */
|
|
@@ -2255,10 +2259,25 @@ export default {
|
|
|
|
|
|
/* 收藏指标 */
|
|
|
handleCollectEdb(info) {
|
|
|
- this.collectEdbForm = {
|
|
|
- edbId: info.EdbInfoId,
|
|
|
- collectClassifyIdList: info.CollectClassifyIdList||[]
|
|
|
- },
|
|
|
+ if(info.type&&info.type==='batch') { //批量收藏
|
|
|
+ const { IsSelectAll,NoEdbIdList,EdbIdList } = info;
|
|
|
+ this.collectEdbForm = {
|
|
|
+ edbId: 0,
|
|
|
+ batchParams: {
|
|
|
+ ClassifyId: this.select_classifyId,
|
|
|
+ KeyWord: this.search_txt,
|
|
|
+ IsSelectAll,
|
|
|
+ NoEdbIdList,
|
|
|
+ EdbIdList
|
|
|
+ },
|
|
|
+ collectClassifyIdList: []
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ this.collectEdbForm = {
|
|
|
+ edbId: info.EdbInfoId,
|
|
|
+ collectClassifyIdList: info.CollectClassifyIdList||[]
|
|
|
+ }
|
|
|
+ }
|
|
|
this.isOpenEdbCollectDia = true
|
|
|
},
|
|
|
|