mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-18 07:16:46 +08:00
--fix bug
This commit is contained in:
@@ -116,7 +116,12 @@ export default {
|
||||
// const showAddGroup = () => {
|
||||
// state.Avisible = true;
|
||||
// };
|
||||
|
||||
function uuid() {
|
||||
const temp_url = URL.createObjectURL(new Blob());
|
||||
const uuid = temp_url.toString();
|
||||
URL.revokeObjectURL(temp_url);
|
||||
return uuid.substr(uuid.lastIndexOf("/") + 1);
|
||||
}
|
||||
//展示要增加的小组
|
||||
const showAddGroup = () => {
|
||||
if (!state.groupNum) return message.warning("请输入要添加的小组数");
|
||||
@@ -125,7 +130,7 @@ export default {
|
||||
for (let i = 0; i < state.groupNum; i++) {
|
||||
let obj = {
|
||||
key: i,
|
||||
groupName: "第" + (i + 1) + "小组",
|
||||
groupName: uuid(),
|
||||
capacity: state.peopleNum,
|
||||
};
|
||||
arr.push(obj);
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
</a-tree-select>
|
||||
</template>
|
||||
<script setup>
|
||||
import { defineEmits, defineProps, ref, watch } from "vue";
|
||||
import {defineEmits, defineProps, ref, watch, watchEffect} from "vue";
|
||||
import { boeRequest, useBoeApi } from "@/api/request";
|
||||
import { ORG_CHILD_LIST, ORG_LIST } from "@/api/ThirdApi";
|
||||
|
||||
@@ -66,6 +66,10 @@ const { data: options, loading: orgLoading } = useBoeApi(
|
||||
}
|
||||
);
|
||||
|
||||
watchEffect(()=>{
|
||||
labelValue.value = props.value;
|
||||
})
|
||||
|
||||
watch(props, () => {
|
||||
// stuTreeExpandedKeys.value = [];
|
||||
// console.log("labelValue.value", labelValue.value, props.value);
|
||||
|
||||
@@ -189,6 +189,7 @@
|
||||
</div>
|
||||
<div style="margin-top: 10px">
|
||||
<a-select
|
||||
v-if="jobType && jobType.length"
|
||||
:getPopupContainer="
|
||||
(triggerNode) => triggerNode.parentNode || document.body
|
||||
"
|
||||
@@ -207,6 +208,7 @@
|
||||
</div>
|
||||
<div style="margin-top: 10px">
|
||||
<a-select
|
||||
v-if="bandList && bandList.length"
|
||||
:getPopupContainer="
|
||||
(triggerNode) => triggerNode.parentNode || document.body
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user