|
@@ -24,6 +24,7 @@
|
|
|
import {getCubeDataPerm, updateCubeDataPerm} from "@/api/onlineDev/visualDev";
|
|
|
import {groupPage} from "@/api/system/authGroup";
|
|
|
import {cubeDetail} from "@/api/newbi/dataset";
|
|
|
+import {getDrawingList} from "@/components/Generator/utils/db";
|
|
|
|
|
|
export default {
|
|
|
name: "customCubePerm",
|
|
@@ -69,6 +70,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
submitForm(){
|
|
|
+ const drawingList = getDrawingList().filter((i) => {return i.__config__.jnpfKey === 'table'}) || []
|
|
|
+ let tableList = drawingList.map(i => {return i.dbLinkId}).filter((l) => l !== undefined) || []
|
|
|
if (this.cubeForm.publicStatus === 1) {
|
|
|
this.cubeForm.dataPermIdList = []
|
|
|
}else {
|
|
@@ -77,7 +80,12 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
- updateCubeDataPerm(this.cubeId,this.cubeForm.publicStatus,this.cubeForm.dataPermIdList).then((res) => {
|
|
|
+ let params = {
|
|
|
+ cubeDataIds:[this.cubeId,...tableList],
|
|
|
+ publicStatus:this.cubeForm.publicStatus,
|
|
|
+ dataPermIdList:this.cubeForm.dataPermIdList
|
|
|
+ }
|
|
|
+ updateCubeDataPerm(params).then((res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
this.$message({ message: res.data.msg, type: 'success', duration: 1500 })
|
|
|
this.init()
|