la 2 yıl önce
ebeveyn
işleme
6e6d3b2bb1

+ 25 - 15
src/pages/studoc/studocAll.vue

@@ -31,6 +31,7 @@ const InitData = () => {
   request({
     url: "/dyaw/xlfw_xsda_dajl/index",
     data: {
+      limit:88,
       keyword: searchValue.value,
       dxxd_date: tempParams.value,
     },
@@ -104,21 +105,30 @@ const batchExport = () => {
 };
 //批量删除
 const batchDel = () => {
-  let tempStr = multipleSelection.value.join();
-  request({
-    url: "/dyaw/xlfw_xsda_dajl/delete",
-    data: {
-      dxxd_id: tempStr,
-    },
-  }).then((res) => {
-    if (res.code == "1") {
-      ElMessage({
-        showClose: true,
-        message: res.msg,
-        type: "success",
-      });
-    }
-  });
+  if (multipleSelection.value.length == 0) {
+    ElMessage({
+      showClose: true,
+      message: "请至少选择一项~",
+      type: "error",
+    });
+  } else {
+    let tempStr = multipleSelection.value.join();
+    request({
+      url: "/dyaw/xlfw_xsda_dajl/delete",
+      data: {
+        dxxd_id: tempStr,
+      },
+    }).then((res) => {
+      if (res.code == "1") {
+        ElMessage({
+          showClose: true,
+          message: res.msg,
+          type: "success",
+        });
+      }
+    });
+  }
+  
 };
 components: {
   StuDocItem;

+ 32 - 4
src/pages/studoc/studocSingle.vue

@@ -1,6 +1,6 @@
 <script setup>
 import { ref, reactive } from "vue";
-import { Plus, Calendar, Search,Delete } from "@element-plus/icons-vue";
+import { Plus, Calendar, Search,Delete ,Download,} from "@element-plus/icons-vue";
 import { ElMessage, ElMessageBox } from 'element-plus'
 import user from '~/store/user';
 import { useRouter } from "vue-router";
@@ -9,6 +9,7 @@ import StuDocItem from "@/components/stu-doc-item/index.vue";
 const router = useRouter()
 
 const transId = router.currentRoute.value.query.userId;
+const recordName=router.currentRoute.value.query.recordName
 
 const nodata = ref('');
 const dataTime = ref([]);
@@ -27,6 +28,7 @@ const InitData = () => {
   request({
     url: "/dyaw/xlfw_xsda_dajl/index",
     data: {
+      limit:88,
       user_id:transId,
       keyword: searchValue.value,
       dxxd_date:tempParams.value,
@@ -90,10 +92,36 @@ const editChooseIdArr = (data) => {
 //批量导出
 const batchExport = () => {
   let tempStr = multipleSelection.value.join();
-  let downUrl=RETresult.api + "/dyaw/xlfw_xsda_dajl/index"+"?" +"api=xls&dxxd_id="+tempStr
+  let downUrl= window.GLOBAL_CONFIG.api + "/dyaw/xlfw_xsda_dajl/index"+"?" +"api=xls&dxxd_id="+tempStr
   window.open(downUrl, "_blank");
 }
-
+//批量删除
+const batchDel = () => {
+  if (multipleSelection.value.length==0) {
+    ElMessage({
+      showClose: true,
+      message: "请至少选择一项~",
+      type: "error",
+    });
+  } else {
+    let tempStr = multipleSelection.value.join();
+  request({
+    url: "/dyaw/xlfw_xsda_dajl/delete",
+    data: {
+      dxxd_id: tempStr,
+    },
+  }).then((res) => {
+    if (res.code == "1") {
+      ElMessage({
+        showClose: true,
+        message: res.msg,
+        type: "success",
+      });
+    }
+  });
+  }
+  
+};
 components: { StuDocItem }
 </script>
 
@@ -104,7 +132,7 @@ components: { StuDocItem }
     </div>
     <div class="studocSingleAll">
       <div class="optionTop">
-      <div class="optionTop_left">详情:</div>
+      <div class="optionTop_left">详情:{{  recordName}}</div>
       <div class="optionTop_middle">
         <el-date-picker v-model="dataTime"  type="daterange" range-separator="-" start-placeholder="开始时间"  end-placeholder="结束时间" value-format="YYYY-MM-DD" round @change="ChooseDate" />
       </div>

+ 8 - 5
src/pages/teacher/archives.vue

@@ -39,8 +39,6 @@ const handleSelectionChange = (val) => {
   multipleSelection.value = val;
 };
 
-
-
 //批量删除
 const batchDel = () => {
   if (multipleSelection.value.length == 0) {
@@ -88,6 +86,7 @@ const handlDetailClick = (paramsAll) => {
     path: "studocSingle",
     query: {
       userId: paramsAll.user_id,
+      recordName:paramsAll.dxx_user_realname,
     },
   });
 };
@@ -127,7 +126,7 @@ const handleCurrentChange = (val) => {
   <div class="xsda">
     <div class="allOptions">
       <el-button type="danger" :icon="Delete" round @click="batchDel">批量删除</el-button>
-      <el-input v-model="searchValue" style="width: 10%; margin: 0 5px 0 20px" placeholder="关键词搜索" :prefix-icon="Search"
+      <el-input class="bor10" v-model="searchValue" style="width: 10%; margin: 0 5px 0 20px" placeholder="关键词搜索" :prefix-icon="Search"
         round />
       <el-button type="primary" round @click="searchBtn">搜索</el-button>
       <el-button type="primary" round @click="allFile">全部档案</el-button>
@@ -150,11 +149,11 @@ const handleCurrentChange = (val) => {
           </template>
         </el-table-column>
       </el-table>
-      <div class="pag">
+    </div>
+    <div class="pag">
         <el-pagination class="pageC" background small layout=" prev, pager, next" :total="totalNum"
           @current-change="handleCurrentChange" />
       </div>
-    </div>
   </div>
 </template>
 
@@ -171,6 +170,7 @@ const handleCurrentChange = (val) => {
 }
 
 .allTables {
+  min-height:300px;
   margin-top: 20px;
 }
 
@@ -182,4 +182,7 @@ const handleCurrentChange = (val) => {
 .pageC {
   float: right;
 }
+.el-input__wrapper{
+  border-radius:20px;
+}
 </style>