mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
-- 项目创建修改
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
</a-select>
|
</a-select>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import {reactive, toRefs, watch} from "vue";
|
import {onMounted, reactive, toRefs, watch} from "vue";
|
||||||
import {scrollLoad} from "@/api/method";
|
import {scrollLoad} from "@/api/method";
|
||||||
import * as api1 from "@/api/index1";
|
import * as api1 from "@/api/index1";
|
||||||
|
|
||||||
@@ -48,7 +48,11 @@ export default {
|
|||||||
});
|
});
|
||||||
|
|
||||||
watch(() => state.memberParam, getMember)
|
watch(() => state.memberParam, getMember)
|
||||||
watch(() => props.value, init)
|
watch(props , init)
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
console.log('onMounted')
|
||||||
|
})
|
||||||
|
|
||||||
function getMember() {
|
function getMember() {
|
||||||
state.loading = true
|
state.loading = true
|
||||||
@@ -83,8 +87,10 @@ export default {
|
|||||||
state.managerArray = arrManagerId
|
state.managerArray = arrManagerId
|
||||||
state.options = arrManager.map((e, i) => ({label: e, value: arrManagerId[i]}))
|
state.options = arrManager.map((e, i) => ({label: e, value: arrManagerId[i]}))
|
||||||
state.init = true
|
state.init = true
|
||||||
getMember()
|
} else {
|
||||||
|
state.options = []
|
||||||
}
|
}
|
||||||
|
getMember()
|
||||||
}
|
}
|
||||||
|
|
||||||
function change(e, l) {
|
function change(e, l) {
|
||||||
|
|||||||
Reference in New Issue
Block a user