mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
测试监听数据
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<!-- v-if="lecturerAdmin('lecturer-admin')" -->
|
<!-- v-if="lecturerAdmin('lecturer-admin')" -->
|
||||||
<a-tab-pane key="2" tab="审批中心">
|
<a-tab-pane key="2" tab="审批中心">
|
||||||
<OrganizationApproval/>
|
<OrganizationApproval :organizationActive="organizationActive"/>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
</a-tabs>
|
</a-tabs>
|
||||||
</div>
|
</div>
|
||||||
@@ -34,12 +34,14 @@ export default {
|
|||||||
|
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
activeKey: '1',
|
activeKey: '1',
|
||||||
|
organizationActive:"0"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (route.query.activeKey) {
|
if (route.query.activeKey) {
|
||||||
state.activeKey = '2'
|
state.activeKey = '2';
|
||||||
|
state.organizationActive = "1"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -534,7 +534,10 @@ export default {
|
|||||||
lockLecturer,
|
lockLecturer,
|
||||||
AddApprover,
|
AddApprover,
|
||||||
},
|
},
|
||||||
setup() {
|
props: {
|
||||||
|
organizationActive: String
|
||||||
|
},
|
||||||
|
setup(props) {
|
||||||
const formRef = ref();
|
const formRef = ref();
|
||||||
|
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
@@ -1048,6 +1051,16 @@ export default {
|
|||||||
state.formParam.affiliationName = record.affiliationName;
|
state.formParam.affiliationName = record.affiliationName;
|
||||||
state.formParam.remark = record.remark;
|
state.formParam.remark = record.remark;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => props.organizationActive,
|
||||||
|
(val) => {
|
||||||
|
console.log("organizationActive gx val",val)
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const cancel = () => {
|
const cancel = () => {
|
||||||
state.formParam = {
|
state.formParam = {
|
||||||
orglistName: null,
|
orglistName: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user