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