feat:增加组织树及项目归属权获取数据

This commit is contained in:
lixg
2022-11-24 15:10:01 +08:00
parent 57b9ba8263
commit affd52588a
6 changed files with 263 additions and 151 deletions

View File

@@ -493,7 +493,7 @@
</div>
</div>
<!-- 确认添加部门弹窗 -->
<!-- 确认添加部门弹窗 -->
<a-modal
v-model:visible="showOrgModal"
:footer="null"
@@ -527,10 +527,11 @@
</template>
<script>
import { reactive, toRefs, onMounted, onUnmounted } from "vue";
import { reactive, toRefs, onMounted, onUnmounted, computed } from "vue";
import elementResizeDetectorMaker from "element-resize-detector";
import { message } from "ant-design-vue";
import { toDate } from "../../api/method";
import { useStore } from "vuex";
export default {
name: "ProjCheckShip",
props: {
@@ -540,8 +541,9 @@ export default {
},
},
setup(props, ctx) {
const store = useStore();
const state = reactive({
screenHeight: document.body.clientHeight, // 屏幕高度
screenHeight: document.body.clientHeight, // 屏幕高度
pageSize: 10,
currentPage: 1,
tableDataTotal: 50,
@@ -1042,11 +1044,15 @@ export default {
selectedRowKeys2: [], //表格选中的key
//受众关联-------------------------------------
});
//获取组织树
state.treeData = computed(() => {
return store.state.orgtreeList ? store.state.orgtreeList : [];
});
const closeDrawer = () => {
state.activeKey = "1";
ctx.emit("update:ProjCheckvisible", false);
};
const afterVisibleChange = (bool) => {
const afterVisibleChange = (bool) => {
console.log("state", bool);
};
@@ -1393,7 +1399,7 @@ export default {
};
return {
...toRefs(state),
...toRefs(state),
afterVisibleChange,
closeDrawer,
onSelectChange,