yzx 2 months ago
parent
commit
2ffaa79b58

+ 9 - 2
src/layout/components/UserInfo/src/UserInfo.vue

@@ -51,8 +51,14 @@ const toProfile = async () => {
   push('/user/profile')
 }
 const toDocument = () => {
-  window.open('https://doc.iocoder.cn/')
+  window.open('http://172.16.59.50:9000/graduate/bdc2494f918eb9c98e8125a9b97c703f7ebcf846de0125958a525319fd3ad854.pdf')
 }
+// const toDocument = () => {
+//   // 假设这是你的PDF文件的URL
+//   const pdfUrl = 'http://172.16.59.50:9000/graduate/bdc2494f918eb9c98e8125a9b97c703f7ebcf846de0125958a525319fd3ad854.pdf';
+//   // 使用window.open打开一个新的标签页或窗口
+//   window.open(pdfUrl, '_blank');
+// };
 </script>
 
 <template>
@@ -71,7 +77,8 @@ const toDocument = () => {
         </ElDropdownItem>
         <ElDropdownItem>
           <Icon icon="ep:menu" />
-          <div @click="toDocument">{{ t('common.document') }}</div>
+          <!-- <div @click="toDocument">{{ t('common.document') }}</div> -->
+          <div @click="toDocument">{{ '操作手册' }}</div>
         </ElDropdownItem>
         <ElDropdownItem divided>
           <Icon icon="ep:lock" />

+ 2 - 2
src/views/Home/Index.vue

@@ -379,8 +379,8 @@ let pieOptionsData = reactive<EChartsOption>(pieOptions) as EChartsOption
 const getGraduateCount = async () => {
   const data = await UserApi.getGraduateCount()
   console.log("毕业达成统计", data);
-  const studentNum = data[0].studentNum; 
-  const graduateNum = data[1].graduateNum; 
+  const studentNum = data.studentNum;
+  const graduateNum = data.graduateNum;
   const options = {
     title: {
       text: null,

+ 2 - 0
src/views/system/graduateStudent/UserForm.vue

@@ -283,6 +283,8 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗
 const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调
 const submitForm = async () => {
   formData.value.userType = userTypeG.value
+  formData.value.username = 'abc0123'
+  formData.value.password = 'abc0123'
   // 校验表单
   if (!formRef) return
   const valid = await formRef.value.validate()

+ 1 - 1
src/views/system/workroomTeacher/dept/index.vue

@@ -404,4 +404,4 @@ const fetchImageUrls = async () => {
   height: auto; /* 保持高度自动 */
 }
 
-</style>
+</style>