diff --git a/src/pages/index/contact_us/signup/index.vue b/src/pages/index/contact_us/signup/index.vue
index d7ffb15..36151fc 100644
--- a/src/pages/index/contact_us/signup/index.vue
+++ b/src/pages/index/contact_us/signup/index.vue
@@ -64,6 +64,9 @@
+
+ 批量受理
+
批量删除
@@ -88,6 +91,9 @@
+
+ 受理
+
更多
@@ -114,7 +120,7 @@
import { ArrowDown } from '@element-plus/icons-vue';
import { ref, reactive, watch } from 'vue';
import { useLoginStore } from "~/store";
-import { getSignupList, deleteSignup, getDictionary, exportExcel } from '~/service/signup';
+import { getSignupList, deleteSignup, getDictionary, exportExcel, handleSignupStatus } from '~/service/signup';
import DetailSignupDialog from './components/DetailSignupDialog.vue';
import { getClassesList } from '~/service/classes';
@@ -214,14 +220,16 @@ const column = [
{
label: '操作',
prop: 'chaoz',
- width: '100',
+ width: '250',
fixed: 'right'
}
];
-
const handleCommand = ({ type, row }) => {
switch (type) {
+ case "handle_status":
+ handleStatusUpdate([row]);
+ break;
case "detail":
handleDetail(row);
break;
@@ -231,6 +239,37 @@ const handleCommand = ({ type, row }) => {
}
};
+//受理
+let loadingHandle = null;
+const HandleLoading = () => {
+ loadingHandle = ElLoading.service({
+ lock: true,
+ text: "正在受理中...",
+ background: "rgba(255, 255, 255, 0.7)",
+ });
+};
+const closeUploadLoading = () => loadingHandle.close();
+const handleStatusUpdate = (data) => {
+ ElMessageBox.confirm(`您确定已对所选的在线报名处理了吗?`).then(async () => {
+ HandleLoading()
+ const { code, msg } = await handleSignupStatus({
+ signup_guid: data.map(v => v.signup_guid).join()
+ });
+ if (code == 0) {
+ ElMessageBox.alert(msg, "受理信息", {
+ dangerouslyUseHTMLString: true,
+ confirmButtonText: "确定",
+ callback: () => {
+ tableRef.value.reload();
+ },
+ });
+ } else {
+ ElMessage.error(msg);
+ }
+ closeUploadLoading();
+ });
+};
+
// 删除数据
const handleDelete = data => {
ElMessageBox.confirm(`您确定要删除该在线报名吗?`).then(async () => {
@@ -250,9 +289,6 @@ function handleDetail(row) {
DetailSignupDialogRow.value = row
}
-
-
-
// 字典获取
const graduation_type = ref([]);
async function get_graduation_type() {
diff --git a/src/service/signup.js b/src/service/signup.js
index 646a2c5..d6c6437 100644
--- a/src/service/signup.js
+++ b/src/service/signup.js
@@ -43,4 +43,17 @@ export function deleteSignup(data) {
isShowSuccessMessage: true,
errorMessageText: '删除失败'
});
+}
+
+/**
+ * 受理在线报名
+ * @param {Object} data
+ * @return {Promise} api
+ */
+export function handleSignupStatus(data) {
+ return api.post('ContactUs.Signup/handleSignupStatus', data, {
+ // isTransformResponse: true,
+ // isShowSuccessMessage: true,
+ errorMessageText: '受理失败'
+ });
}
\ No newline at end of file