diff --git a/src/views/Jyh/Search/Components/CountryModal.vue b/src/views/Jyh/Search/Components/CountryModal.vue
new file mode 100644
index 0000000..8fb5641
--- /dev/null
+++ b/src/views/Jyh/Search/Components/CountryModal.vue
@@ -0,0 +1,84 @@
+
+
+
+
+ 国家/地球分布
+
+
+
+ 确认
+ 取消
+
+
+
+
+
+
+
+
diff --git a/src/views/Jyh/Search/Components/OrgModal.vue b/src/views/Jyh/Search/Components/OrgModal.vue
new file mode 100644
index 0000000..5897911
--- /dev/null
+++ b/src/views/Jyh/Search/Components/OrgModal.vue
@@ -0,0 +1,84 @@
+
+
+
+
+ 组织/公司分布
+
+
+
+ 确认
+ 取消
+
+
+
+
+
+
+
+
diff --git a/src/views/Jyh/Search/Components/OssQuery.vue b/src/views/Jyh/Search/Components/OssQuery.vue
index 6ca72a4..19b3882 100644
--- a/src/views/Jyh/Search/Components/OssQuery.vue
+++ b/src/views/Jyh/Search/Components/OssQuery.vue
@@ -53,12 +53,16 @@
{{ scope.row.programmingLanguage }}
- 美国 3.57%
- +3
+
+ 美国 3.57%
+ +3
+
- microsoft 3.57%
- +3
+
+ microsoft 3.57%
+ +3
+
{{ scope.row.sourceCodeDownload }}
@@ -88,6 +92,12 @@
你确认删除此项:{{ item.cla_name }}
?
+
+
+
+
+
+
@@ -104,6 +114,8 @@ import { reqCatch } from '@/utils/catch';
import { getOrgInfo } from '@/views/Org/hooks/orgInfo';
import { Message } from 'vue-devui';
import { storeToRefs } from 'pinia';
+import CountryModal from './CountryModal.vue'
+import OrgModal from './OrgModal.vue'
import { useAccountStore } from '@/stores/user';
const { namespace } = getOrgInfo();
const userInfo = useAccountStore();
@@ -111,6 +123,8 @@ const { isLogin } = storeToRefs(userInfo);
// 定义 tableKey,用于强制刷新表格
const tableKey = ref(0);
+const countryVisible = ref(false);
+const orgVisible = ref(false);
const tableData = ref([
{
softwareName: 'eslint-plugin-import',
@@ -400,12 +414,37 @@ const columns = ref([
// 定义 showColumnList 状态
const showColumnList = ref(false);
+// 获取子组件的引用
+const countryModalRef = ref(null);
+const orgModalRef = ref(null);
+// 打开模态框的方法
+const openCountryModal = () => {
+ if (countryModalRef.value) {
+ countryModalRef.value.openModal(); // 调用子组件的方法
+ }
+};
+// 打开模态框的方法
+const openOrgModal = () => {
+ if (orgModalRef.value) {
+ orgModalRef.value.openModal(); // 调用子组件的方法
+ }
+};
// 更新 showColumnList 的方法
const updateShowColumnList = (newValue) => {
showColumnList.value = newValue;
tableKey.value++; // 更新 tableKey,强制刷新表格
};
+// 更新 showColumnList 的方法
+const openCountryChart = (row) => {
+ // selectRow.value = row;
+ countryVisible.value = true;
+};
+// 更新 showColumnList 的方法
+const openOrgChart = (row) => {
+ // selectRow.value = row;
+ orgVisible.value = true;
+};
const router = useRouter();
const route = useRoute();
diff --git a/src/views/Jyh/Version/Detail/index.vue b/src/views/Jyh/Version/Detail/index.vue
index 864874e..422289b 100644
--- a/src/views/Jyh/Version/Detail/index.vue
+++ b/src/views/Jyh/Version/Detail/index.vue
@@ -13,8 +13,8 @@
@@ -351,4 +351,4 @@ const colseSubscription = () => {
\ No newline at end of file
+