|
|
@@ -29,7 +29,7 @@
|
|
|
type="success"
|
|
|
plain
|
|
|
@click="handleAssignCard"
|
|
|
- v-hasPermi="['dz:cards:add']"
|
|
|
+ v-hasPermi="['dz:cards:assign']"
|
|
|
style="border-color: #67c23a; color: #67c23a; font-weight: 500"
|
|
|
>
|
|
|
<svg-icon icon-class="peoples" class="mr-1" style="font-size: 16px" />
|
|
|
@@ -53,7 +53,7 @@
|
|
|
plain
|
|
|
:disabled="multiple"
|
|
|
@click="handlePayment"
|
|
|
- v-hasPermi="['dz:cards:add']"
|
|
|
+ v-hasPermi="['dz:cards:pay']"
|
|
|
style="border-color: #e6a23c; color: #e6a23c; font-weight: 500"
|
|
|
>
|
|
|
<svg-icon icon-class="money" class="mr-1" style="font-size: 16px" />
|
|
|
@@ -66,7 +66,7 @@
|
|
|
plain
|
|
|
:disabled="multiple"
|
|
|
@click="handleCloseCard"
|
|
|
- v-hasPermi="['dz:cards:add']"
|
|
|
+ v-hasPermi="['dz:cards:close']"
|
|
|
style="border-color: #f56c6c; color: #f56c6c; font-weight: 500"
|
|
|
>
|
|
|
<svg-icon icon-class="lock" class="mr-1" style="font-size: 16px" />
|
|
|
@@ -79,7 +79,7 @@
|
|
|
plain
|
|
|
:disabled="multiple"
|
|
|
@click="handleReopenCard"
|
|
|
- v-hasPermi="['dz:cards:add']"
|
|
|
+ v-hasPermi="['dz:cards:reopen']"
|
|
|
style="border-color: #13c2c2; color: #13c2c2; font-weight: 500"
|
|
|
>
|
|
|
<svg-icon icon-class="enter" class="mr-1" style="font-size: 16px" />
|
|
|
@@ -92,7 +92,7 @@
|
|
|
plain
|
|
|
:disabled="multiple"
|
|
|
@click="handleRefund"
|
|
|
- v-hasPermi="['dz:cards:add']"
|
|
|
+ v-hasPermi="['dz:cards:refund']"
|
|
|
style="border-color: #ff4d4f; color: #ff4d4f; font-weight: 500"
|
|
|
>
|
|
|
<svg-icon icon-class="money" class="mr-1" style="font-size: 16px" />
|
|
|
@@ -104,7 +104,7 @@
|
|
|
type="primary"
|
|
|
plain
|
|
|
@click="handleAssociateCampus"
|
|
|
- v-hasPermi="['dz:cards:add']"
|
|
|
+ v-hasPermi="['dz:cards:associateCampus']"
|
|
|
style="border-color: #1890ff; color: #1890ff; font-weight: 500"
|
|
|
>
|
|
|
<svg-icon icon-class="link" class="mr-1" style="font-size: 16px" />
|
|
|
@@ -116,7 +116,7 @@
|
|
|
type="success"
|
|
|
plain
|
|
|
@click="handleApplyCard"
|
|
|
- v-hasPermi="['dz:cards:add']"
|
|
|
+ v-hasPermi="['dz:cards:openFinished']"
|
|
|
style="border-color: #52c41a; color: #52c41a; font-weight: 500"
|
|
|
>
|
|
|
<svg-icon icon-class="edit" class="mr-1" style="font-size: 16px" />
|
|
|
@@ -285,7 +285,7 @@ import AssociateCampusDialog from "./components/AssociateCampusDialog.vue";
|
|
|
import ApplyCardDialog from "./components/ApplyCardDialog.vue";
|
|
|
import formInfo from "./config/form.js";
|
|
|
import tableConfig from "./config/table.js";
|
|
|
-import { listUniversity } from "@/api/dz/school";
|
|
|
+// import { listUniversity } from "@/api/dz/school";
|
|
|
import { assignCard, issueCard, getCampusSchoolList } from "@/api/dz/cards";
|
|
|
import { listDept } from "@/api/system/dept";
|
|
|
import { listAgent } from "@/api/dz/agent";
|
|
|
@@ -545,41 +545,41 @@ function getSchoolList() {
|
|
|
pageSize: 9999, // 获取所有学校选项
|
|
|
};
|
|
|
|
|
|
- listUniversity(requestParams)
|
|
|
- .then((response) => {
|
|
|
- // 根据API返回数据结构处理
|
|
|
- let schoolData = [];
|
|
|
- if (response.data) {
|
|
|
- schoolData = Array.isArray(response.data)
|
|
|
- ? response.data
|
|
|
- : response.data.rows || response.data.list || [];
|
|
|
- } else if (response.rows) {
|
|
|
- schoolData = response.rows;
|
|
|
- } else if (response.list) {
|
|
|
- schoolData = response.list;
|
|
|
- } else if (Array.isArray(response)) {
|
|
|
- schoolData = response;
|
|
|
- }
|
|
|
-
|
|
|
- // 确保数据格式符合配置要求
|
|
|
- schoolData = schoolData.map((item) => {
|
|
|
- // 如果API返回的是 {id, name, ...} 格式,直接使用
|
|
|
- if (item.id && item.name) {
|
|
|
- return item;
|
|
|
- }
|
|
|
- // 如果是其他格式,需要转换
|
|
|
- return {
|
|
|
- id: item.id || item.value || item.schoolId,
|
|
|
- name: item.name || item.label || item.schoolName || item.title,
|
|
|
- };
|
|
|
- });
|
|
|
-
|
|
|
- schoolList.value = schoolData;
|
|
|
- })
|
|
|
- .catch((error) => {
|
|
|
- console.error("获取学校列表失败:", error);
|
|
|
- schoolList.value = [];
|
|
|
- });
|
|
|
+ // listUniversity(requestParams)
|
|
|
+ // .then((response) => {
|
|
|
+ // // 根据API返回数据结构处理
|
|
|
+ // let schoolData = [];
|
|
|
+ // if (response.data) {
|
|
|
+ // schoolData = Array.isArray(response.data)
|
|
|
+ // ? response.data
|
|
|
+ // : response.data.rows || response.data.list || [];
|
|
|
+ // } else if (response.rows) {
|
|
|
+ // schoolData = response.rows;
|
|
|
+ // } else if (response.list) {
|
|
|
+ // schoolData = response.list;
|
|
|
+ // } else if (Array.isArray(response)) {
|
|
|
+ // schoolData = response;
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // // 确保数据格式符合配置要求
|
|
|
+ // schoolData = schoolData.map((item) => {
|
|
|
+ // // 如果API返回的是 {id, name, ...} 格式,直接使用
|
|
|
+ // if (item.id && item.name) {
|
|
|
+ // return item;
|
|
|
+ // }
|
|
|
+ // // 如果是其他格式,需要转换
|
|
|
+ // return {
|
|
|
+ // id: item.id || item.value || item.schoolId,
|
|
|
+ // name: item.name || item.label || item.schoolName || item.title,
|
|
|
+ // };
|
|
|
+ // });
|
|
|
+ //
|
|
|
+ // schoolList.value = schoolData;
|
|
|
+ // })
|
|
|
+ // .catch((error) => {
|
|
|
+ // console.error("获取学校列表失败:", error);
|
|
|
+ // schoolList.value = [];
|
|
|
+ // });
|
|
|
}
|
|
|
|
|
|
/** 获取校区列表 */
|