|
@@ -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>
|