@@ -187,4 +187,9 @@ const isOrNotSelect = () => {
},
];
};
+
+// 暴露给父组件的数据或对象
+defineExpose({
+ openDialog,
+});
</script>
@@ -115,4 +115,9 @@ const submit = () => {
closeDialog();
});
@@ -257,4 +257,9 @@ const isOrNotSelect = () => {
@@ -131,4 +131,9 @@ const submit = () => {
@@ -109,4 +109,9 @@ const submit = () => {
@@ -281,4 +281,9 @@ function ChangeExForArray(index1: number, index2: number, array: Array<EditRecor
array[index2] = temp;
return array;
}
@@ -70,4 +70,9 @@ const submit = () => {
@@ -93,4 +93,9 @@ const submit = () => {
@@ -160,4 +160,9 @@ const handleCurrentChange = (val: number) => {
state.tableParams.page = val;
handleQuery();
@@ -100,4 +100,9 @@ const submit = () => {
@@ -96,4 +96,9 @@ const submit = () => {
@@ -151,4 +151,9 @@ const submit = () => {
@@ -171,4 +171,9 @@ const submit = () => {
const crontabFill = (value: string | null | undefined) => {
state.ruleForm.args = value;
@@ -50,6 +50,8 @@ const openDrawer = () => {
state.isVisible = true;
-// 导出
-defineExpose({ openDrawer });
+ openDrawer,
@@ -195,4 +195,9 @@ const submit = () => {
@@ -87,4 +87,9 @@ const submit = () => {
@@ -145,6 +145,8 @@ const handleCurrentChange = (val: number) => {
state.isShowDialog = false;
@@ -117,8 +117,12 @@ const nodeClick = (node: any) => {
//const orgTreeData = state.orgData; // 异步数据导出不了?
-defineExpose({ initTreeData, setCheckedKeys, getCheckedKeys });
+ initTreeData,
+ setCheckedKeys,
+ getCheckedKeys,
<style lang="scss" scoped>
@@ -105,4 +105,9 @@ const submit = () => {
@@ -118,8 +118,11 @@ const nodeClick = (node: any) => {
emits('node-click', { id: node.id, name: node.name });
-defineExpose({ initTreeData, getCheckedKeys });
@@ -141,6 +141,11 @@ const treeNodeClass = (node: SysMenu) => {
return addClass ? 'penultimate-node' : '';
@@ -75,4 +75,9 @@ const submit = async () => {
await getAPI(SysRoleApi).apiSysRoleGrantDataScopePost(state.ruleForm);
@@ -143,4 +143,9 @@ const submit = () => {
@@ -97,6 +97,11 @@ const treeNodeClass = (node: SysMenu) => {
@@ -305,4 +305,9 @@ const addExtOrgRow = () => {
const deleteExtOrgRow = (k: number) => {
state.ruleForm.extOrgIdList?.splice(k, 1);
@@ -72,4 +72,9 @@ const submit = () => {