代码格式修改
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
v-show="showSearch"
|
||||
ref="queryForm"
|
||||
:model="queryParams"
|
||||
size="small"
|
||||
:inline="true"
|
||||
v-show="showSearch"
|
||||
label-width="68px"
|
||||
>
|
||||
<el-form-item label="辅导员" prop="fdname">
|
||||
@@ -13,8 +13,8 @@
|
||||
v-model="queryParams.fdname"
|
||||
placeholder="请输入辅导员"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
:disabled="true"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item
|
||||
@@ -65,13 +65,12 @@ describe"
|
||||
</el-form-item> -->
|
||||
<el-form-item label="申请时间" prop="stuCreated">
|
||||
<el-date-picker
|
||||
clearable
|
||||
v-model="queryParams.stuCreated"
|
||||
clearable
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择申请时间"
|
||||
>
|
||||
</el-date-picker>
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<!-- <el-form-item label="学院" prop="college">
|
||||
@@ -98,11 +97,8 @@ describe"
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="handleQuery"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||
>重置</el-button
|
||||
>
|
||||
>搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
@@ -144,19 +140,18 @@ describe"
|
||||
</el-col> -->
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
v-hasPermi="['routine:school:export']"
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['routine:school:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar
|
||||
:showSearch.sync="showSearch"
|
||||
:show-search.sync="showSearch"
|
||||
@queryTable="getList"
|
||||
></right-toolbar>
|
||||
/>
|
||||
</el-row>
|
||||
|
||||
<el-table
|
||||
@@ -195,12 +190,8 @@ describe"
|
||||
<template slot-scope="scope">
|
||||
<!-- 审批状态(0、待审批;1、已通过; -->
|
||||
<el-tag v-if="scope.row.status == 0 || scope.row.status == null">待审批</el-tag>
|
||||
<el-tag type="success" v-else-if="scope.row.status == 1"
|
||||
>已通过</el-tag
|
||||
>
|
||||
<el-tag type="danger" v-else-if="scope.row.status == 2"
|
||||
>已驳回</el-tag
|
||||
>
|
||||
<el-tag v-else-if="scope.row.status == 1" type="success">已通过</el-tag>
|
||||
<el-tag v-else-if="scope.row.status == 2" type="danger">已驳回</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
@@ -232,22 +223,20 @@ describe"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
v-if="scope.row.status == 0 || scope.row.status == null"
|
||||
v-hasPermi="['routine:school:edit']"
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['routine:school:edit']"
|
||||
v-if="scope.row.status == 0 || scope.row.status == null"
|
||||
>审批</el-button
|
||||
>
|
||||
>审批</el-button>
|
||||
<el-button
|
||||
v-hasPermi="['routine:school:remove']"
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['routine:school:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
>删除</el-button>
|
||||
|
||||
<!-- <el-button
|
||||
size="mini"
|
||||
@@ -309,14 +298,13 @@ describe"
|
||||
</el-form-item>
|
||||
<el-form-item label="申请时间" prop="stuCreated">
|
||||
<el-date-picker
|
||||
clearable
|
||||
v-model="form.stuCreated"
|
||||
clearable
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择申请时间"
|
||||
:disabled="true"
|
||||
>
|
||||
</el-date-picker>
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="身份证" prop="identityCard">
|
||||
<el-input
|
||||
@@ -340,13 +328,12 @@ describe"
|
||||
|
||||
<el-form-item label="审批时间" prop="fdtime" :rules="rules.reason4">
|
||||
<el-date-picker
|
||||
clearable
|
||||
v-model="form.fdtime"
|
||||
clearable
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择审批时间"
|
||||
>
|
||||
</el-date-picker>
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="是否通过" prop="status" :rules="rules.reason1">
|
||||
@@ -357,8 +344,7 @@ describe"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
</el-option>
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
@@ -370,8 +356,8 @@ describe"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer" >
|
||||
<el-button type="primary" @click="submitForm" >确 定</el-button>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
@@ -405,13 +391,13 @@ import {
|
||||
delSchool,
|
||||
addSchool,
|
||||
updateSchool,
|
||||
} from "@/api/routine/school";
|
||||
} from '@/api/routine/school'
|
||||
|
||||
import { getUserProfile } from "@/api/system/user"; // 获取
|
||||
import { getUserProfile } from '@/api/system/user' // 获取
|
||||
|
||||
|
||||
export default {
|
||||
name: "School",
|
||||
name: 'School',
|
||||
dicts: ['rt_filling_college', 'sys_commit_status', 'sys_teacher_kpi_filling_year'],
|
||||
data() {
|
||||
return {
|
||||
@@ -419,15 +405,15 @@ export default {
|
||||
options: [
|
||||
{
|
||||
value: 0,
|
||||
label: "未审批",
|
||||
label: '未审批',
|
||||
},
|
||||
{
|
||||
value: 1,
|
||||
label: "通过",
|
||||
label: '通过',
|
||||
},
|
||||
{
|
||||
value: 2,
|
||||
label: "驳回",
|
||||
label: '驳回',
|
||||
},
|
||||
],
|
||||
// 遮罩层
|
||||
@@ -445,7 +431,7 @@ export default {
|
||||
// 学生申请表格数据
|
||||
schoolList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
title: '',
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
@@ -486,63 +472,63 @@ export default {
|
||||
reason1: [
|
||||
{
|
||||
required: true,
|
||||
message: "1 审核通过 2审核不通过",
|
||||
trigger: "blur",
|
||||
message: '1 审核通过 2审核不通过',
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
reason2: [
|
||||
{ required: true, message: "请输入辅导员信息", trigger: "blur" },
|
||||
{ required: true, message: '请输入辅导员信息', trigger: 'blur' },
|
||||
],
|
||||
reason3: [
|
||||
{ required: true, message: "请输入审批意见", trigger: "blur" },
|
||||
{ required: true, message: '请输入审批意见', trigger: 'blur' },
|
||||
],
|
||||
reason4: [
|
||||
{ required: true, message: "选择时间", trigger: "blur" },
|
||||
{ required: true, message: '选择时间', trigger: 'blur' },
|
||||
],
|
||||
},
|
||||
};
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getUser();
|
||||
this.getUser()
|
||||
|
||||
},
|
||||
methods: {
|
||||
/** 查询学生申请列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.loading = true
|
||||
listSchool(this.queryParams).then((response) => {
|
||||
this.schoolList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
this.schoolList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
// 获取当前登录信息
|
||||
getUser() {
|
||||
this.loading = true;
|
||||
this.loading = true
|
||||
getUserProfile().then(response => {
|
||||
// this.user = response.data;
|
||||
this.roleGroup = response.roleGroup;
|
||||
this.roleGroup = response.roleGroup
|
||||
// this.postGroup = response.postGroup;
|
||||
// console.log(response);
|
||||
if (response.roleGroup.includes('辅导员')) {
|
||||
this.queryParams.fdname = response.data.nickName
|
||||
this.getList();
|
||||
this.getList()
|
||||
return
|
||||
} else if (!response.roleGroup.includes('辅导员')) {
|
||||
this.getList();
|
||||
this.getList()
|
||||
return
|
||||
}
|
||||
this.loading = false;
|
||||
this.loading = false
|
||||
// this.getList();
|
||||
});
|
||||
})
|
||||
},
|
||||
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
this.open = false
|
||||
this.reset()
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
@@ -574,99 +560,99 @@ export default {
|
||||
county: null,
|
||||
fdtime: null,
|
||||
xgtime: null
|
||||
};
|
||||
this.resetForm("form");
|
||||
}
|
||||
this.resetForm('form')
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
this.queryParams.pageNum = 1
|
||||
this.getList()
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
this.resetForm('queryForm')
|
||||
this.handleQuery()
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item.id);
|
||||
this.single = selection.length !== 1;
|
||||
this.multiple = !selection.length;
|
||||
this.ids = selection.map((item) => item.id)
|
||||
this.single = selection.length !== 1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加学生申请";
|
||||
this.reset()
|
||||
this.open = true
|
||||
this.title = '添加学生申请'
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids;
|
||||
this.reset()
|
||||
const id = row.id || this.ids
|
||||
getSchool(id).then((response) => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改学生申请";
|
||||
});
|
||||
this.form = response.data
|
||||
this.open = true
|
||||
this.title = '修改学生申请'
|
||||
})
|
||||
},
|
||||
|
||||
handledetail(row) {
|
||||
this.$router.push({
|
||||
path: "/routine/school/school",
|
||||
path: '/routine/school/school',
|
||||
query: {
|
||||
id: row.id,
|
||||
status: row.status,
|
||||
},
|
||||
// });
|
||||
});
|
||||
})
|
||||
},
|
||||
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate((valid) => {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateSchool(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
this.$modal.msgSuccess('修改成功')
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
} else {
|
||||
addSchool(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
this.$modal.msgSuccess('新增成功')
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
const ids = row.id || this.ids
|
||||
this.$modal
|
||||
.confirm('是否确认删除学生申请编号为"' + ids + '"的数据项?')
|
||||
.then(function () {
|
||||
return delSchool(ids);
|
||||
return delSchool(ids)
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
this.getList()
|
||||
this.$modal.msgSuccess('删除成功')
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => {})
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download(
|
||||
"routine/school/export",
|
||||
'routine/school/export',
|
||||
{
|
||||
...this.queryParams,
|
||||
},
|
||||
`school_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
)
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form v-show="showSearch" ref="queryForm" :model="queryParams" size="small" :inline="true" label-width="68px">
|
||||
<el-form-item label="学号" prop="studentId">
|
||||
<el-input v-model="queryParams.studentId" placeholder="请输入学号" clearable @keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
@@ -9,9 +9,9 @@
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="申请时间" prop="stuCreated">
|
||||
<el-date-picker clearable v-model="queryParams.stuCreated" type="date" value-format="yyyy-MM-dd"
|
||||
placeholder="请选择申请时间">
|
||||
</el-date-picker>
|
||||
<el-date-picker v-model="queryParams.stuCreated" clearable type="date" value-format="yyyy-MM-dd"
|
||||
placeholder="请选择申请时间"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="身份证" prop="identityCard">
|
||||
<el-input v-model="queryParams.identityCard" placeholder="请输入身份证" clearable @keyup.enter.native="handleQuery" />
|
||||
@@ -20,7 +20,8 @@
|
||||
<el-form-item label="学院" prop="college">
|
||||
<el-select v-model="queryParams.college" placeholder="请选择学院" clearable>
|
||||
<el-option v-for="dict in dict.type.rt_filling_college" :key="dict.value" :label="dict.label"
|
||||
:value="dict.value" />
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
@@ -67,10 +68,11 @@
|
||||
>
|
||||
</el-col> -->
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
||||
v-hasPermi="['routine:school:export']">导出</el-button>
|
||||
<el-button v-hasPermi="['routine:school:export']" type="warning" plain icon="el-icon-download" size="mini"
|
||||
@click="handleExport"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
<right-toolbar :show-search.sync="showSearch" @queryTable="getList" />
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="schoolList" @selection-change="handleSelectionChange">
|
||||
@@ -92,7 +94,8 @@
|
||||
<template slot-scope="scope">
|
||||
|
||||
<div :title="scope.row.because"
|
||||
style="white-space:nowrap;width:100%;text-overflow: ellipsis;overflow: hidden;">{{ scope.row.because }}
|
||||
style="white-space:nowrap;width:100%;text-overflow: ellipsis;overflow: hidden;"
|
||||
>{{ scope.row.because }}
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -118,10 +121,11 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="民族" align="center" prop="nation" />
|
||||
<el-table-column label="家庭地址" align="center" prop="homeaddress" >
|
||||
<el-table-column label="家庭地址" align="center" prop="homeaddress">
|
||||
<template slot-scope="scope">
|
||||
<div :title="scope.row.homeaddress"
|
||||
style="white-space:nowrap;width:100%;text-overflow: ellipsis;overflow: hidden;">{{ scope.row.homeaddress }}
|
||||
style="white-space:nowrap;width:100%;text-overflow: ellipsis;overflow: hidden;"
|
||||
>{{ scope.row.homeaddress }}
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -134,8 +138,8 @@
|
||||
<template slot-scope="scope">
|
||||
<!-- 审批状态(0、待审批;1、已通过; -->
|
||||
<el-tag v-if="scope.row.status == 0 || scope.row.status == null">待审批</el-tag>
|
||||
<el-tag type="success" v-else-if="scope.row.status == 1">已通过</el-tag>
|
||||
<el-tag type="danger" v-else-if="scope.row.status == 2">已驳回</el-tag>
|
||||
<el-tag v-else-if="scope.row.status == 1" type="success">已通过</el-tag>
|
||||
<el-tag v-else-if="scope.row.status == 2" type="danger">已驳回</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
@@ -146,8 +150,8 @@
|
||||
<template slot-scope="scope">
|
||||
<!-- 审批状态(0、待审批;1、已通过; -->
|
||||
<el-tag v-if="scope.row.xgstatus == 0 || scope.row.xgstatus == null">待审批</el-tag>
|
||||
<el-tag type="success" v-else-if="scope.row.xgstatus == 1">已通过</el-tag>
|
||||
<el-tag type="danger" v-else-if="scope.row.xgstatus == 2">已驳回</el-tag>
|
||||
<el-tag v-else-if="scope.row.xgstatus == 1" type="success">已通过</el-tag>
|
||||
<el-tag v-else-if="scope.row.xgstatus == 2" type="danger">已驳回</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column
|
||||
@@ -177,13 +181,15 @@
|
||||
</el-table>
|
||||
|
||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
||||
@pagination="getList" />
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改测试对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="申请原因" prop="
|
||||
describe">
|
||||
describe"
|
||||
>
|
||||
<el-input v-model="form.describe" placeholder="请输入申请原因" />
|
||||
</el-form-item>
|
||||
<el-form-item label="学号" prop="studentId">
|
||||
@@ -199,17 +205,19 @@ describe">
|
||||
<el-input v-model="form.grade" placeholder="请输入级别" />
|
||||
</el-form-item>
|
||||
<el-form-item label="申请时间" prop="stuCreated">
|
||||
<el-date-picker clearable v-model="form.stuCreated" type="date" value-format="yyyy-MM-dd"
|
||||
placeholder="请选择申请时间">
|
||||
</el-date-picker>
|
||||
<el-date-picker v-model="form.stuCreated" clearable type="date" value-format="yyyy-MM-dd"
|
||||
placeholder="请选择申请时间"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="身份证" prop="identityCard">
|
||||
<el-input v-model="form.identityCard" placeholder="请输入身份证" />
|
||||
</el-form-item>
|
||||
<el-form-item label="原因
|
||||
" prop="because">
|
||||
" prop="because"
|
||||
>
|
||||
<el-input v-model="form.because" placeholder="请输入原因
|
||||
" />
|
||||
"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="籍贯" prop="jg">
|
||||
<el-input v-model="form.jg" placeholder="请输入籍贯" />
|
||||
@@ -218,12 +226,10 @@ describe">
|
||||
<image-upload v-model="form.photo" />
|
||||
</el-form-item>
|
||||
<el-form-item label="出生日期" prop="birthday">
|
||||
<el-date-picker clearable v-model="form.birthday" type="date" value-format="yyyy-MM-dd" placeholder="请选择出生日期">
|
||||
</el-date-picker>
|
||||
<el-date-picker v-model="form.birthday" clearable type="date" value-format="yyyy-MM-dd" placeholder="请选择出生日期" />
|
||||
</el-form-item>
|
||||
<el-form-item label="入学时间" prop="Intake">
|
||||
<el-date-picker clearable v-model="form.Intake" type="date" value-format="yyyy-MM-dd" placeholder="请选择入学时间">
|
||||
</el-date-picker>
|
||||
<el-date-picker v-model="form.Intake" clearable type="date" value-format="yyyy-MM-dd" placeholder="请选择入学时间" />
|
||||
</el-form-item>
|
||||
<el-form-item label="民族" prop="nation">
|
||||
<el-input v-model="form.nation" placeholder="请输入民族" />
|
||||
@@ -256,10 +262,10 @@ import {
|
||||
delSchool,
|
||||
addSchool,
|
||||
updateSchool,
|
||||
} from "@/api/routine/school";
|
||||
} from '@/api/routine/school'
|
||||
|
||||
export default {
|
||||
name: "School",
|
||||
name: 'School',
|
||||
dicts: ['rt_filling_college', 'sys_commit_status', 'sys_teacher_kpi_filling_year'],
|
||||
data() {
|
||||
return {
|
||||
@@ -278,7 +284,7 @@ export default {
|
||||
// 测试表格数据
|
||||
schoolList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
title: '',
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
@@ -311,25 +317,25 @@ export default {
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {},
|
||||
};
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
/** 查询测试列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.loading = true
|
||||
listSchool(this.queryParams).then((response) => {
|
||||
this.schoolList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
this.schoolList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
this.open = false
|
||||
this.reset()
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
@@ -356,85 +362,85 @@ export default {
|
||||
xgopinion: null,
|
||||
xgstatus: null,
|
||||
className: null,
|
||||
};
|
||||
this.resetForm("form");
|
||||
}
|
||||
this.resetForm('form')
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
this.queryParams.pageNum = 1
|
||||
this.getList()
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
this.resetForm('queryForm')
|
||||
this.handleQuery()
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item.id);
|
||||
this.single = selection.length !== 1;
|
||||
this.multiple = !selection.length;
|
||||
this.ids = selection.map((item) => item.id)
|
||||
this.single = selection.length !== 1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加测试";
|
||||
this.reset()
|
||||
this.open = true
|
||||
this.title = '添加测试'
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids;
|
||||
this.reset()
|
||||
const id = row.id || this.ids
|
||||
getSchool(id).then((response) => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改测试";
|
||||
});
|
||||
this.form = response.data
|
||||
this.open = true
|
||||
this.title = '修改测试'
|
||||
})
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate((valid) => {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateSchool(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
this.$modal.msgSuccess('修改成功')
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
} else {
|
||||
addSchool(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
this.$modal.msgSuccess('新增成功')
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
const ids = row.id || this.ids
|
||||
this.$modal
|
||||
.confirm('是否确认删除测试编号为"' + ids + '"的数据项?')
|
||||
.then(function () {
|
||||
return delSchool(ids);
|
||||
return delSchool(ids)
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
this.getList()
|
||||
this.$modal.msgSuccess('删除成功')
|
||||
})
|
||||
.catch(() => { });
|
||||
.catch(() => { })
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download(
|
||||
"routine/school/export",
|
||||
'routine/school/export',
|
||||
{
|
||||
...this.queryParams,
|
||||
},
|
||||
`school_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
)
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<h1 style=" font-size: 20px; text-align: center">
|
||||
广西水利电力职业技术学院学生证明
|
||||
</h1>
|
||||
<br />
|
||||
<br>
|
||||
<h2
|
||||
style="
|
||||
font-size: 15px;
|
||||
@@ -17,32 +17,32 @@
|
||||
>
|
||||
(存根)
|
||||
</h2>
|
||||
<br />
|
||||
<br>
|
||||
<h3 style="font-size: 15px; text-align: right; margin-top: -15px;margin-right: 120px">
|
||||
证明编号:
|
||||
</h3>
|
||||
<pre><p style="font-size: 15px; text-align: left">证明使用人: 姓 名 : {{ form.name }}</p></pre>
|
||||
<pre><p style="font-size: 15px; text-align: left"> 性 别 :{{ form.sex }}</p></pre>
|
||||
<pre><p style="font-size: 15px; text-align: left"> 入学时间 : {{ form.Intake | formatDate }}</p></pre>
|
||||
<pre><p style="font-size: 15px; text-align: left"> 所在学院及专业 : {{form.college}} 学院 {{form.major}} 专业</p></pre>
|
||||
<pre><p style="font-size: 15px; text-align: left"> 入学时间 : {{ form.Intake | formatDate }}</p></pre>
|
||||
<pre><p style="font-size: 15px; text-align: left"> 所在学院及专业 : {{ form.college }} 学院 {{ form.major }} 专业</p></pre>
|
||||
<pre><p style="font-size: 15px; text-align: left"> 经办人:{{ form.xgname }}</p></pre>
|
||||
<pre><p style="font-size: 15px; margin-left: 300px;margin-top: -30px"> 开具日期:{{form.xgtime| formatDate}}</p></pre>
|
||||
<hr style="size:1;width:300;" >
|
||||
<pre><p style="font-size: 15px; margin-left: 300px;margin-top: -30px"> 开具日期:{{ form.xgtime| formatDate }}</p></pre>
|
||||
<hr style="size:1;width:300;">
|
||||
<!-- 证明 -->
|
||||
<h1 style="font-size: 40px; text-align: center">证明</h1>
|
||||
<pre><p style="font-size: 20px; text-align: right">(编号: )</p></pre>
|
||||
<div style="width:600px;position:relative">
|
||||
<img style="position: absolute; bottom: 0;width: 150px;left: 50px;opacity: 0.4;top:150px;" src="../../../../assets/logo/logo.png" alt="">
|
||||
<div style="text-indent:2em;font-size: 25px;">兹有我校学生 {{ form.name }},性别 {{ form.sex }},{{form.nation}}族,于{{form.birthday| formatDate}}出生(身份证号为:{{form.identityCard}} ),
|
||||
{{ form.jg }}(省、市、区){{form.county}} (县、市)人,现家住{{form.homeaddress}},该生于{{ form.Intake | formatDate }}录取到
|
||||
我校{{form.college}} 学院 {{form.major}}专业学习,全日制大专三年。</div>
|
||||
<div style="text-indent:2em;font-size: 25px;">
|
||||
<div style="text-indent:2em;font-size: 25px;">兹有我校学生 {{ form.name }},性别 {{ form.sex }},{{ form.nation }}族,于{{ form.birthday| formatDate }}出生(身份证号为:{{ form.identityCard }} ),
|
||||
{{ form.jg }}(省、市、区){{ form.county }} (县、市)人,现家住{{ form.homeaddress }},该生于{{ form.Intake | formatDate }}录取到
|
||||
我校{{ form.college }} 学院 {{ form.major }}专业学习,全日制大专三年。</div>
|
||||
<div style="text-indent:2em;font-size: 25px;">
|
||||
特此证明。
|
||||
</div>
|
||||
<div style="font-size: 25px;text-align: right">广西水利电力职业技术学院</div>
|
||||
<div style="font-size: 25px;text-align: right;margin-right: 70px">学生工作处</div>
|
||||
<div style="font-size: 25px;text-align: right;margin-right: 50px"> {{form.xgtime| formatDate}}</div>
|
||||
<div style="font-size: 25px; text-align: left">查询电话:0771-2085115</div>
|
||||
</div>
|
||||
<div style="font-size: 25px;text-align: right">广西水利电力职业技术学院</div>
|
||||
<div style="font-size: 25px;text-align: right;margin-right: 70px">学生工作处</div>
|
||||
<div style="font-size: 25px;text-align: right;margin-right: 50px"> {{ form.xgtime| formatDate }}</div>
|
||||
<div style="font-size: 25px; text-align: left">查询电话:0771-2085115</div>
|
||||
<!-- <pre><p style="font-size: 20px; text-align: center">兹有我校学生 {{ form.name }},性别 {{ form.sex }},{{form.nation}}族,</p></pre>
|
||||
<pre><p style="font-size: 20px; text-align: center">于{{form.birthday| formatDate}}出生(身份证号为:{{form.identityCard}} ),</p></pre>
|
||||
<pre><p style="font-size: 20px; text-align: center"> {{ form.jg }}(省、市、区){{form.county}} (县、市)人,现家住 </p></pre>
|
||||
@@ -54,7 +54,7 @@
|
||||
<pre><p style="font-size: 20px; text-align: right;margin-right: 70px"> 学生工作处</p></pre>
|
||||
<pre><p style="font-size: 20px; text-align: right"> {{form.xgtime| formatDate}}</p></pre>
|
||||
<pre><p style="font-size: 20px; text-align: left"> 查询电话:0771-2085115</p></pre> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <h1 style="font-size: 16px; text-align: center">
|
||||
广西水利电力职业技术学院
|
||||
@@ -154,9 +154,7 @@
|
||||
</div>
|
||||
|
||||
<!-- 打印按钮 -->
|
||||
<el-button style="text-align: center" type="success" @click="doPrint"
|
||||
>文件下载</el-button
|
||||
>
|
||||
<el-button style="text-align: center" type="success" @click="doPrint">文件下载</el-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -168,15 +166,15 @@ import {
|
||||
delSchool,
|
||||
addSchool,
|
||||
updateSchool,
|
||||
} from "@/api/routine/school";
|
||||
} from '@/api/routine/school'
|
||||
// import html2Canvas from "html2canvas";
|
||||
// import JsPDF from "jspdf";
|
||||
import print from "print-js";
|
||||
import print from 'print-js'
|
||||
|
||||
// var dayjsTime = dayjs(`${form.Intake}`).format('YYYY-MM-DD HH:mm:ss')
|
||||
|
||||
export default {
|
||||
name: "School",
|
||||
name: 'School',
|
||||
data() {
|
||||
return {
|
||||
showbacause: false,
|
||||
@@ -184,7 +182,7 @@ export default {
|
||||
showContent: false,
|
||||
dialogVisible: false,
|
||||
active: 0,
|
||||
cheack: "查看",
|
||||
cheack: '查看',
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
@@ -200,7 +198,7 @@ export default {
|
||||
// 学生申请表格数据
|
||||
schoolList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
title: '',
|
||||
// 是否显示弹出层
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
@@ -235,33 +233,33 @@ export default {
|
||||
// 表单校验
|
||||
rules: {
|
||||
reason1: [
|
||||
{ required: true, message: "身份证不能为空", trigger: "blur" },
|
||||
{ required: true, message: '身份证不能为空', trigger: 'blur' },
|
||||
],
|
||||
reason2: [
|
||||
{ required: true, message: "补办原因不能为空", trigger: "blur" },
|
||||
{ required: true, message: '补办原因不能为空', trigger: 'blur' },
|
||||
],
|
||||
reason3: [{ required: true, message: "学号不能为空", trigger: "blur" }],
|
||||
reason4: [{ required: true, message: "姓名不能为空", trigger: "blur" }],
|
||||
reason5: [{ required: true, message: "请输入性别", trigger: "blur" }],
|
||||
reason6: [{ required: true, message: "请输入学院", trigger: "blur" }],
|
||||
reason3: [{ required: true, message: '学号不能为空', trigger: 'blur' }],
|
||||
reason4: [{ required: true, message: '姓名不能为空', trigger: 'blur' }],
|
||||
reason5: [{ required: true, message: '请输入性别', trigger: 'blur' }],
|
||||
reason6: [{ required: true, message: '请输入学院', trigger: 'blur' }],
|
||||
},
|
||||
};
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
this.showData();
|
||||
this.getList()
|
||||
this.showData()
|
||||
},
|
||||
methods: {
|
||||
// 打印方法
|
||||
doPrint() {
|
||||
printJS({
|
||||
printable: "print",
|
||||
type: "html",
|
||||
targetStyles: ["*"],
|
||||
style: "@page {margin:2.4cm 2cm ;resolution: 300dpi;}",
|
||||
printable: 'print',
|
||||
type: 'html',
|
||||
targetStyles: ['*'],
|
||||
style: '@page {margin:2.4cm 2cm ;resolution: 300dpi;}',
|
||||
onPrintDialogClose: (this.erexcel = false),
|
||||
targetStyles: ["*"],
|
||||
font_size: "",
|
||||
targetStyles: ['*'],
|
||||
font_size: '',
|
||||
|
||||
// style: `@page {size:auto;margin-top:100px;}
|
||||
// thead th {
|
||||
@@ -278,15 +276,15 @@ export default {
|
||||
// table {
|
||||
// border-collapse: collapse;
|
||||
// }`,
|
||||
});
|
||||
})
|
||||
},
|
||||
// 跳转到打印页面
|
||||
jump() {
|
||||
this.active = 1;
|
||||
this.$emit("props", {
|
||||
this.active = 1
|
||||
this.$emit('props', {
|
||||
base: false,
|
||||
active: 1,
|
||||
});
|
||||
})
|
||||
},
|
||||
// 打印方法实现
|
||||
// doPrint() {
|
||||
@@ -302,23 +300,23 @@ export default {
|
||||
// },
|
||||
|
||||
handleClose(done) {
|
||||
this.$confirm("确认关闭?")
|
||||
this.$confirm('确认关闭?')
|
||||
.then((_) => {
|
||||
done();
|
||||
done()
|
||||
})
|
||||
.catch((_) => {});
|
||||
.catch((_) => {})
|
||||
},
|
||||
// 回显数据
|
||||
showData() {
|
||||
if (this.$route.query.id != undefined) {
|
||||
getSchool(this.$route.query.id).then((response) => {
|
||||
this.form = response.data;
|
||||
this.form = response.data
|
||||
// this.active = response.data.status + 1;
|
||||
});
|
||||
})
|
||||
}
|
||||
},
|
||||
print() {
|
||||
this.Print;
|
||||
this.Print
|
||||
},
|
||||
// getPdf(title) {
|
||||
// return new Promise((resolve) => {
|
||||
@@ -385,21 +383,21 @@ export default {
|
||||
// });
|
||||
// },
|
||||
next() {
|
||||
if (this.form != null) this.active = 0;
|
||||
if (this.form != null) this.active = 0
|
||||
},
|
||||
/** 查询学生申请列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.loading = true
|
||||
listSchool(this.queryParams).then((response) => {
|
||||
this.schoolList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
this.schoolList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
this.open = false
|
||||
this.reset()
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
@@ -425,56 +423,56 @@ export default {
|
||||
xgstatus: null,
|
||||
className: null,
|
||||
areas: null,
|
||||
};
|
||||
this.resetForm("form");
|
||||
}
|
||||
this.resetForm('form')
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
this.queryParams.pageNum = 1
|
||||
this.getList()
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
this.resetForm('queryForm')
|
||||
this.handleQuery()
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item.id);
|
||||
this.single = selection.length !== 1;
|
||||
this.multiple = !selection.length;
|
||||
this.ids = selection.map((item) => item.id)
|
||||
this.single = selection.length !== 1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加学生申请";
|
||||
this.reset()
|
||||
this.open = true
|
||||
this.title = '添加学生申请'
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids;
|
||||
this.reset()
|
||||
const id = row.id || this.ids
|
||||
getSchool(id).then((response) => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改学生申请";
|
||||
});
|
||||
this.form = response.data
|
||||
this.open = true
|
||||
this.title = '修改学生申请'
|
||||
})
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate((valid) => {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateSchool(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
this.$modal.msgSuccess('修改成功')
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
} else {
|
||||
addSchool(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("申请提交成功,请等待审批");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
this.$modal.msgSuccess('申请提交成功,请等待审批')
|
||||
this.open = false
|
||||
this.getList()
|
||||
// this.active = 1;
|
||||
// this.$emit("props", {
|
||||
// base: false,
|
||||
@@ -483,37 +481,37 @@ export default {
|
||||
// this.$router.push({
|
||||
// path: "/routine/school/application",
|
||||
// });
|
||||
});
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
const ids = row.id || this.ids
|
||||
this.$modal
|
||||
.confirm('是否确认删除学生申请编号为"' + ids + '"的数据项?')
|
||||
.then(function () {
|
||||
return delSchool(ids);
|
||||
return delSchool(ids)
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
this.getList()
|
||||
this.$modal.msgSuccess('删除成功')
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => {})
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download(
|
||||
"routine/school/export",
|
||||
'routine/school/export',
|
||||
{
|
||||
...this.queryParams,
|
||||
},
|
||||
`school_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
)
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
@@ -4,121 +4,119 @@
|
||||
<h1 style="font-size: 30px;text-align: center;">个人信息填写</h1>
|
||||
<!-- 卡片1 -->
|
||||
<div class="stylecard">
|
||||
<el-card class="box-card1">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="学号" prop="studentId" :rules="rules.reason3">
|
||||
<el-input v-model="form.studentId" placeholder="请输入学号" @blur="changeGet" :maxlength="11" />
|
||||
</el-form-item>
|
||||
<el-form-item label="姓名" prop="name" :rules="rules.reason4">
|
||||
<el-input v-model="form.name" placeholder="请输入姓名" />
|
||||
</el-form-item>
|
||||
<el-form-item label="性别" prop="sex" :rules="rules.reason5">
|
||||
<el-radio-group v-model="form.sex">
|
||||
<el-radio label="男">男</el-radio>
|
||||
<el-radio label="女">女</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-card class="box-card1">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="学号" prop="studentId" :rules="rules.reason3">
|
||||
<el-input v-model="form.studentId" placeholder="请输入学号" :maxlength="11" @blur="changeGet" />
|
||||
</el-form-item>
|
||||
<el-form-item label="姓名" prop="name" :rules="rules.reason4">
|
||||
<el-input v-model="form.name" placeholder="请输入姓名" />
|
||||
</el-form-item>
|
||||
<el-form-item label="性别" prop="sex" :rules="rules.reason5">
|
||||
<el-radio-group v-model="form.sex">
|
||||
<el-radio label="男">男</el-radio>
|
||||
<el-radio label="女">女</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="民族" prop="nation" :rules="rules.reason7">
|
||||
<el-input v-model="form.nation" placeholder="请输入民族" />
|
||||
</el-form-item>
|
||||
<el-form-item label="籍贯" prop="jg" :rules="rules.reason8">
|
||||
<el-cascader :options="areaOptions" v-model="form.nativePlace" clearable filterable :disabled="isDisabled"
|
||||
@change="addressChange" style="width: 100%"></el-cascader>
|
||||
</el-form-item>
|
||||
<el-form-item label="市/县" prop="county" :rules="rules.reason16">
|
||||
<el-input v-model="form.county" placeholder="所在市/县" />
|
||||
</el-form-item>
|
||||
<el-form-item label="照片" prop="photo">
|
||||
<image-upload v-model="form.photo" />
|
||||
</el-form-item>
|
||||
<el-form-item label="班级" prop="className" :rules="rules.reason9">
|
||||
<el-input v-model="form.className" placeholder="请输入班级" />
|
||||
</el-form-item>
|
||||
<el-form-item label="出生日期" prop="birthday" :rules="rules.reason10">
|
||||
<el-date-picker
|
||||
clearable
|
||||
v-model="form.birthday"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择出生日期"
|
||||
>
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-card>
|
||||
<el-form-item label="民族" prop="nation" :rules="rules.reason7">
|
||||
<el-input v-model="form.nation" placeholder="请输入民族" />
|
||||
</el-form-item>
|
||||
<el-form-item label="籍贯" prop="jg" :rules="rules.reason8">
|
||||
<el-cascader v-model="form.nativePlace" :options="areaOptions" clearable filterable :disabled="isDisabled"
|
||||
style="width: 100%" @change="addressChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="市/县" prop="county" :rules="rules.reason16">
|
||||
<el-input v-model="form.county" placeholder="所在市/县" />
|
||||
</el-form-item>
|
||||
<el-form-item label="照片" prop="photo">
|
||||
<image-upload v-model="form.photo" />
|
||||
</el-form-item>
|
||||
<el-form-item label="班级" prop="className" :rules="rules.reason9">
|
||||
<el-input v-model="form.className" placeholder="请输入班级" />
|
||||
</el-form-item>
|
||||
<el-form-item label="出生日期" prop="birthday" :rules="rules.reason10">
|
||||
<el-date-picker
|
||||
v-model="form.birthday"
|
||||
clearable
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择出生日期"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-card>
|
||||
|
||||
<!-- 卡片2 -->
|
||||
<el-card class="box-card2">
|
||||
<el-form ref="form" :model="form" :rules="rules">
|
||||
<!-- <el-form-item label="班级" prop="className">
|
||||
<!-- 卡片2 -->
|
||||
<el-card class="box-card2">
|
||||
<el-form ref="form" :model="form" :rules="rules">
|
||||
<!-- <el-form-item label="班级" prop="className">
|
||||
<el-input v-model="form.className" placeholder="请输入班级" />
|
||||
</el-form-item> -->
|
||||
|
||||
<el-form-item label="专业" prop="major" :rules="rules.reason11">
|
||||
<el-input v-model="form.major" placeholder="请输入专业信息" />
|
||||
</el-form-item>
|
||||
<el-form-item label="专业" prop="major" :rules="rules.reason11">
|
||||
<el-input v-model="form.major" placeholder="请输入专业信息" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="辅导员" prop="major" :rules="rules.reason11">
|
||||
<el-input v-model="form.fdname" placeholder="请输入专业信息" />
|
||||
</el-form-item>
|
||||
<el-form-item label="辅导员" prop="major" :rules="rules.reason11">
|
||||
<el-input v-model="form.fdname" placeholder="请输入专业信息" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="入学时间" prop="Intake" :rules="rules.reason12">
|
||||
<el-date-picker
|
||||
clearable
|
||||
v-model="form.Intake"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择入学时间"
|
||||
<el-form-item label="入学时间" prop="Intake" :rules="rules.reason12">
|
||||
<el-date-picker
|
||||
v-model="form.Intake"
|
||||
clearable
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择入学时间"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item
|
||||
label="家庭地址"
|
||||
prop="homeaddress"
|
||||
:rules="rules.reason13"
|
||||
>
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-input v-model="form.homeaddress" placeholder="请输入家庭地址" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item
|
||||
label="家庭地址"
|
||||
prop="homeaddress"
|
||||
:rules="rules.reason13"
|
||||
>
|
||||
<el-input v-model="form.homeaddress" placeholder="请输入家庭地址" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="学院" prop="college" :rules="rules.reason6">
|
||||
<el-input v-model="form.college" placeholder="请输入学院" />
|
||||
</el-form-item>
|
||||
<el-form-item label="年级" prop="grade" :rules="rules.reason15">
|
||||
<el-input v-model="form.grade" placeholder="请输入年级" />
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="申请时间"
|
||||
prop="stuCreated"
|
||||
:rules="rules.reason14"
|
||||
>
|
||||
<el-date-picker
|
||||
clearable
|
||||
v-model="form.stuCreated"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择申请时间"
|
||||
<el-form-item label="学院" prop="college" :rules="rules.reason6">
|
||||
<el-input v-model="form.college" placeholder="请输入学院" />
|
||||
</el-form-item>
|
||||
<el-form-item label="年级" prop="grade" :rules="rules.reason15">
|
||||
<el-input v-model="form.grade" placeholder="请输入年级" />
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
label="申请时间"
|
||||
prop="stuCreated"
|
||||
:rules="rules.reason14"
|
||||
>
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-date-picker
|
||||
v-model="form.stuCreated"
|
||||
clearable
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择申请时间"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="身份证" prop="identityCard" :rules="rules.reason1">
|
||||
<el-input v-model="form.identityCard" placeholder="请输入身份证" :maxlength="18" />
|
||||
</el-form-item>
|
||||
<el-form-item label="身份证" prop="identityCard" :rules="rules.reason1">
|
||||
<el-input v-model="form.identityCard" placeholder="请输入身份证" :maxlength="18" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="申请原因" prop="because" :rules="rules.reason2">
|
||||
<el-input
|
||||
v-model="form.because"
|
||||
type="textarea"
|
||||
placeholder="请输入申请原因"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="申请原因" prop="because" :rules="rules.reason2">
|
||||
<el-input
|
||||
v-model="form.because"
|
||||
type="textarea"
|
||||
placeholder="请输入申请原因"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="状态" prop="grade">
|
||||
<el-input v-model="form.status" />
|
||||
</el-form-item> -->
|
||||
</el-form>
|
||||
</el-card>
|
||||
</el-form>
|
||||
</el-card>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -221,28 +219,16 @@
|
||||
width="30%"
|
||||
:before-close="handleClose"
|
||||
>
|
||||
<span
|
||||
>审核状态:
|
||||
<el-tag v-if="form.status == 0 && form.xgstatus == 0"
|
||||
>你的补办申请待审批</el-tag
|
||||
>
|
||||
<span>审核状态:
|
||||
<el-tag v-if="form.status == 0 && form.xgstatus == 0">你的补办申请待审批</el-tag>
|
||||
<el-tag
|
||||
type="success"
|
||||
v-else-if="form.status == 1 && form.xgstatus == 1"
|
||||
>你的补办申请已通过</el-tag
|
||||
>
|
||||
<el-tag type="danger" v-else-if="form.status == 2 && form.xgstatus == 2"
|
||||
>你的补办申请已驳回</el-tag
|
||||
>
|
||||
<el-tag type="danger" v-else-if="form.status == 1 && form.xgstatus == 0"
|
||||
>辅导员审核通过,学工处待审核</el-tag
|
||||
>
|
||||
<el-tag type="danger" v-else-if="form.status == 2 && form.xgstatus == 0"
|
||||
>辅导员审核已驳回你的申请</el-tag
|
||||
>
|
||||
<el-tag type="danger" v-else-if="form.status == 1 && form.xgstatus == 2"
|
||||
>辅导员审核通过,学工处将请求驳回</el-tag
|
||||
>
|
||||
type="success"
|
||||
>你的补办申请已通过</el-tag>
|
||||
<el-tag v-else-if="form.status == 2 && form.xgstatus == 2" type="danger">你的补办申请已驳回</el-tag>
|
||||
<el-tag v-else-if="form.status == 1 && form.xgstatus == 0" type="danger">辅导员审核通过,学工处待审核</el-tag>
|
||||
<el-tag v-else-if="form.status == 2 && form.xgstatus == 0" type="danger">辅导员审核已驳回你的申请</el-tag>
|
||||
<el-tag v-else-if="form.status == 1 && form.xgstatus == 2" type="danger">辅导员审核通过,学工处将请求驳回</el-tag>
|
||||
</span>
|
||||
|
||||
<!-- 补办申请成功 -->
|
||||
@@ -250,15 +236,13 @@
|
||||
v-if="form.status == 1 && form.xgstatus == 1"
|
||||
type="success"
|
||||
@click="jump"
|
||||
>生成模板下载</el-button
|
||||
>
|
||||
>生成模板下载</el-button>
|
||||
<!-- 补办申请失败 -->
|
||||
<el-button
|
||||
v-if="form.status == 2 || form.xgstatus == 2"
|
||||
type="primary"
|
||||
@click="showbacause = true"
|
||||
>查看审批不通过原因</el-button
|
||||
>
|
||||
>查看审批不通过原因</el-button>
|
||||
|
||||
<!-- 申请不通过原因 -->
|
||||
<el-dialog
|
||||
@@ -289,9 +273,7 @@
|
||||
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||
<el-button type="primary" @click="dialogVisible = true"
|
||||
>确 定</el-button
|
||||
>
|
||||
<el-button type="primary" @click="dialogVisible = true">确 定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
|
||||
@@ -309,73 +291,72 @@
|
||||
<div style="text-indent: 2em; font-size: 20px; white-space: nowrap">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="兹有我校学生" prop="name" :rules="rules.reason4">
|
||||
<el-input v-model="form.name" placeholder="请输入姓名" style="margin-left:100px;width:200px;"/>
|
||||
</el-form-item>
|
||||
<el-input v-model="form.name" placeholder="请输入姓名" style="margin-left:100px;width:200px;" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="性别" prop="name" :rules="rules.reason5">
|
||||
<el-radio-group v-model="form.sex">
|
||||
<el-radio label="男">男</el-radio>
|
||||
<el-radio label="女">女</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="性别" prop="name" :rules="rules.reason5">
|
||||
<el-radio-group v-model="form.sex">
|
||||
<el-radio label="男">男</el-radio>
|
||||
<el-radio label="女">女</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="民族" prop="nation" :rules="rules.reason7">
|
||||
<el-input v-model="form.nation" placeholder="请输入民族" style="margin-left:100px;width:200px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="民族" prop="nation" :rules="rules.reason7">
|
||||
<el-input v-model="form.nation" placeholder="请输入民族" style="margin-left:100px;width:200px;" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="出生日期" prop="birthday" :rules="rules.reason10">
|
||||
<el-date-picker
|
||||
clearable
|
||||
v-model="form.birthday"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择出生日期"
|
||||
style="margin-left:100px;"
|
||||
<el-form-item label="出生日期" prop="birthday" :rules="rules.reason10">
|
||||
<el-date-picker
|
||||
v-model="form.birthday"
|
||||
clearable
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择出生日期"
|
||||
style="margin-left:100px;"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="身份证" prop="identityCard" :rules="rules.reason1">
|
||||
<el-input v-model="form.identityCard" placeholder="请输入身份证" style="margin-left:100px;width:200px;" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="籍贯" prop="jg" :rules="rules.reason8">
|
||||
<!-- <el-input v-model="form.jg" placeholder="例:广西南宁" style="margin-left:100px;width:200px;" /> -->
|
||||
<el-cascader v-model="form.nativePlace" :options="areaOptions" clearable filterable :disabled="isDisabled"
|
||||
style="margin-left:100px;width:200px;" @change="addressChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="市/县" prop="county" :rules="rules.reason16">
|
||||
<el-input v-model="form.county" placeholder="所在市/县" style="margin-left:100px;width:200px;" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item
|
||||
label="家庭地址"
|
||||
prop="homeaddress"
|
||||
:rules="rules.reason13"
|
||||
>
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-input v-model="form.homeaddress" placeholder="请输入家庭地址" style="margin-left:100px;width:200px;" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="身份证" prop="identityCard" :rules="rules.reason1">
|
||||
<el-input v-model="form.identityCard" placeholder="请输入身份证" style="margin-left:100px;width:200px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="入学时间" prop="Intake" :rules="rules.reason12">
|
||||
<el-date-picker
|
||||
v-model="form.Intake"
|
||||
clearable
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择入学时间"
|
||||
style="margin-left:100px;width:200px;"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="籍贯" prop="jg" :rules="rules.reason8">
|
||||
<!-- <el-input v-model="form.jg" placeholder="例:广西南宁" style="margin-left:100px;width:200px;" /> -->
|
||||
<el-cascader :options="areaOptions" v-model="form.nativePlace" clearable filterable :disabled="isDisabled"
|
||||
@change="addressChange" style="margin-left:100px;width:200px;"></el-cascader>
|
||||
</el-form-item>
|
||||
<el-form-item label="学院" prop="college" :rules="rules.reason6">
|
||||
<el-input v-model="form.college" placeholder="请输入学院" style="margin-left:100px;width:200px;" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="市/县" prop="county" :rules="rules.reason16">
|
||||
<el-input v-model="form.county" placeholder="所在市/县" style="margin-left:100px;width:200px;" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item
|
||||
label="家庭地址"
|
||||
prop="homeaddress"
|
||||
:rules="rules.reason13"
|
||||
>
|
||||
<el-input v-model="form.homeaddress" placeholder="请输入家庭地址" style="margin-left:100px;width:200px;"/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="入学时间" prop="Intake" :rules="rules.reason12">
|
||||
<el-date-picker
|
||||
clearable
|
||||
v-model="form.Intake"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择入学时间"
|
||||
style="margin-left:100px;width:200px;"
|
||||
>
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="学院" prop="college" :rules="rules.reason6">
|
||||
<el-input v-model="form.college" placeholder="请输入学院" style="margin-left:100px;width:200px;"/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="专业" prop="major" :rules="rules.reason11">
|
||||
<el-input v-model="form.major" placeholder="请输入专业信息" style="margin-left:100px;width:200px;" />
|
||||
</el-form-item>
|
||||
<el-form-item label="专业" prop="major" :rules="rules.reason11">
|
||||
<el-input v-model="form.major" placeholder="请输入专业信息" style="margin-left:100px;width:200px;" />
|
||||
</el-form-item>
|
||||
|
||||
|
||||
|
||||
@@ -414,9 +395,7 @@
|
||||
|
||||
<div class="stylecard" style="margin-top:50px;">
|
||||
<el-button type="primary" @click="submitForm">申请提交</el-button>
|
||||
<el-button type="primary" @click="dialogVisible = true"
|
||||
>查看审批状态</el-button
|
||||
>
|
||||
<el-button type="primary" @click="dialogVisible = true">查看审批状态</el-button>
|
||||
|
||||
<!-- 模板按钮 -->
|
||||
<el-button type="primary" @click="dialogModel = true">使用模板</el-button>
|
||||
@@ -433,18 +412,18 @@ import {
|
||||
delSchool,
|
||||
addSchool,
|
||||
updateSchool,
|
||||
} from "@/api/routine/school";
|
||||
} from '@/api/routine/school'
|
||||
// import html2Canvas from "html2canvas";
|
||||
// import JsPDF from "jspdf";
|
||||
import print from "print-js";
|
||||
import print from 'print-js'
|
||||
import {
|
||||
pcaTextArr, // 省市区联动数据,纯汉字
|
||||
} from 'element-china-area-data'
|
||||
|
||||
import {getStudentInfoByStuId } from "@/api/routine/stuIdReissue";
|
||||
import {getStudentInfoByStuId } from '@/api/routine/stuIdReissue'
|
||||
|
||||
export default {
|
||||
name: "School",
|
||||
name: 'School',
|
||||
data() {
|
||||
return {
|
||||
// 省市区
|
||||
@@ -455,7 +434,7 @@ export default {
|
||||
showContent: false,
|
||||
dialogVisible: false,
|
||||
active: 0,
|
||||
cheack: "查看",
|
||||
cheack: '查看',
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
@@ -471,7 +450,7 @@ export default {
|
||||
// 学生申请表格数据
|
||||
schoolList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
title: '',
|
||||
// 是否显示弹出层
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
@@ -511,47 +490,47 @@ export default {
|
||||
// 表单校验
|
||||
rules: {
|
||||
reason1: [
|
||||
{ required: true, message: "身份证不能为空", trigger: "blur" },
|
||||
{ required: true, message: '身份证不能为空', trigger: 'blur' },
|
||||
],
|
||||
reason2: [
|
||||
{ required: true, message: "补办原因不能为空", trigger: "blur" },
|
||||
{ required: true, message: '补办原因不能为空', trigger: 'blur' },
|
||||
],
|
||||
reason3: [{ required: true, message: "学号不能为空", trigger: "blur" },
|
||||
reason3: [{ required: true, message: '学号不能为空', trigger: 'blur' },
|
||||
{
|
||||
max: 11,
|
||||
message: '学号最多为11位',
|
||||
trigger: 'blur',
|
||||
},
|
||||
],
|
||||
reason4: [{ required: true, message: "姓名不能为空", trigger: "blur" }],
|
||||
reason5: [{ required: true, message: "请输入性别", trigger: "blur" }],
|
||||
reason6: [{ required: true, message: "请输入学院", trigger: "blur" }],
|
||||
reason7: [{ required: true, message: "请输入民族", trigger: "blur" }],
|
||||
reason8: [{ required: true, message: "请输入籍贯", trigger: "blur" }],
|
||||
reason9: [{ required: true, message: "请输入班级", trigger: "blur" }],
|
||||
reason4: [{ required: true, message: '姓名不能为空', trigger: 'blur' }],
|
||||
reason5: [{ required: true, message: '请输入性别', trigger: 'blur' }],
|
||||
reason6: [{ required: true, message: '请输入学院', trigger: 'blur' }],
|
||||
reason7: [{ required: true, message: '请输入民族', trigger: 'blur' }],
|
||||
reason8: [{ required: true, message: '请输入籍贯', trigger: 'blur' }],
|
||||
reason9: [{ required: true, message: '请输入班级', trigger: 'blur' }],
|
||||
reason10: [
|
||||
{ required: true, message: "请选择出生日期", trigger: "blur" },
|
||||
{ required: true, message: '请选择出生日期', trigger: 'blur' },
|
||||
],
|
||||
reason11: [
|
||||
{ required: true, message: "专业信息填写", trigger: "blur" },
|
||||
{ required: true, message: '专业信息填写', trigger: 'blur' },
|
||||
],
|
||||
reason12: [
|
||||
{ required: true, message: "选择入学时间", trigger: "blur" },
|
||||
{ required: true, message: '选择入学时间', trigger: 'blur' },
|
||||
],
|
||||
reason13: [
|
||||
{ required: true, message: "请填写家庭地址", trigger: "blur" },
|
||||
{ required: true, message: '请填写家庭地址', trigger: 'blur' },
|
||||
],
|
||||
reason14: [
|
||||
{ required: true, message: "选择申请时间", trigger: "blur" },
|
||||
{ required: true, message: '选择申请时间', trigger: 'blur' },
|
||||
],
|
||||
reason15: [{ required: true, message: "输入年级", trigger: "blur" }],
|
||||
reason16: [{ required: true, message: "所再市/县", trigger: "blur" }],
|
||||
reason15: [{ required: true, message: '输入年级', trigger: 'blur' }],
|
||||
reason16: [{ required: true, message: '所再市/县', trigger: 'blur' }],
|
||||
},
|
||||
};
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
this.showData();
|
||||
this.getList()
|
||||
this.showData()
|
||||
},
|
||||
methods: {
|
||||
// 填写学号时自动获取其他信息
|
||||
@@ -570,26 +549,26 @@ export default {
|
||||
this.form.sex = response.data.gender
|
||||
this.form.grade = response.data.gradeName
|
||||
|
||||
});
|
||||
})
|
||||
},
|
||||
|
||||
// 地区回显到el-cascader
|
||||
parseSelectedPath(pathString) {
|
||||
const pathArray = pathString.split('/');
|
||||
const pathArray = pathString.split('/')
|
||||
// 假设 options 已经被正确设置,并且可以通过遍历找到对应的值
|
||||
let currentLevel = this.areaOptions;
|
||||
const selectedOptions = [];
|
||||
let currentLevel = this.areaOptions
|
||||
const selectedOptions = []
|
||||
for (let i = 0; i < pathArray.length; i++) {
|
||||
const found = currentLevel.find(item => item.label === pathArray[i]);
|
||||
const found = currentLevel.find(item => item.label === pathArray[i])
|
||||
if (found) {
|
||||
selectedOptions.push(found.value);
|
||||
currentLevel = found.children || [];
|
||||
selectedOptions.push(found.value)
|
||||
currentLevel = found.children || []
|
||||
} else {
|
||||
// 处理未找到的情况,例如返回空数组或显示错误
|
||||
break;
|
||||
break
|
||||
}
|
||||
}
|
||||
return selectedOptions;
|
||||
return selectedOptions
|
||||
},
|
||||
// el-cascader选择处理
|
||||
addressChange(arr) {
|
||||
@@ -597,44 +576,44 @@ export default {
|
||||
},
|
||||
// 跳转到打印页面
|
||||
jump() {
|
||||
this.active = 1;
|
||||
this.$emit("props", {
|
||||
this.active = 1
|
||||
this.$emit('props', {
|
||||
base: false,
|
||||
active: 1,
|
||||
});
|
||||
})
|
||||
},
|
||||
// 打印方法实现
|
||||
doPrint() {
|
||||
printJS({
|
||||
printable: "print",
|
||||
type: "html",
|
||||
targetStyles: ["*"],
|
||||
style: "@page {margin:2.4cm 2cm ;resolution: 300dpi;}",
|
||||
printable: 'print',
|
||||
type: 'html',
|
||||
targetStyles: ['*'],
|
||||
style: '@page {margin:2.4cm 2cm ;resolution: 300dpi;}',
|
||||
onPrintDialogClose: (this.erexcel = false),
|
||||
targetStyles: ["*"],
|
||||
font_size: "",
|
||||
});
|
||||
targetStyles: ['*'],
|
||||
font_size: '',
|
||||
})
|
||||
},
|
||||
|
||||
handleClose(done) {
|
||||
this.$confirm("确认关闭?")
|
||||
this.$confirm('确认关闭?')
|
||||
.then((_) => {
|
||||
done();
|
||||
done()
|
||||
})
|
||||
.catch((_) => {});
|
||||
.catch((_) => {})
|
||||
},
|
||||
// 回显数据
|
||||
showData() {
|
||||
if (this.$route.query.id != undefined) {
|
||||
getSchool(this.$route.query.id).then((response) => {
|
||||
this.form = response.data;
|
||||
this.form = response.data
|
||||
this.form.nativePlace = this.parseSelectedPath(this.form.jg)
|
||||
// this.active = response.data.status + 1;
|
||||
});
|
||||
})
|
||||
}
|
||||
},
|
||||
print() {
|
||||
this.Print;
|
||||
this.Print
|
||||
},
|
||||
// getPdf(title) {
|
||||
// return new Promise((resolve) => {
|
||||
@@ -701,21 +680,21 @@ export default {
|
||||
// });
|
||||
// },
|
||||
next() {
|
||||
if (this.form != null) this.active = 0;
|
||||
if (this.form != null) this.active = 0
|
||||
},
|
||||
/** 查询学生申请列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.loading = true
|
||||
listSchool(this.queryParams).then((response) => {
|
||||
this.schoolList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
this.schoolList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
this.open = false
|
||||
this.reset()
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
@@ -745,101 +724,101 @@ export default {
|
||||
county: null,
|
||||
fdtime: null,
|
||||
xgtime: null,
|
||||
};
|
||||
this.resetForm("form");
|
||||
}
|
||||
this.resetForm('form')
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
this.queryParams.pageNum = 1
|
||||
this.getList()
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
this.resetForm('queryForm')
|
||||
this.handleQuery()
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item.id);
|
||||
this.single = selection.length !== 1;
|
||||
this.multiple = !selection.length;
|
||||
this.ids = selection.map((item) => item.id)
|
||||
this.single = selection.length !== 1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加学生申请";
|
||||
this.reset()
|
||||
this.open = true
|
||||
this.title = '添加学生申请'
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids;
|
||||
this.reset()
|
||||
const id = row.id || this.ids
|
||||
getSchool(id).then((response) => {
|
||||
this.form = response.data;
|
||||
this.form = response.data
|
||||
// 地区转换
|
||||
this.form.nativePlace = this.parseSelectedPath(this.form.jg)
|
||||
this.open = true;
|
||||
this.title = "修改学生申请";
|
||||
});
|
||||
this.open = true
|
||||
this.title = '修改学生申请'
|
||||
})
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate((valid) => {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
this.form.status = 0;
|
||||
this.form.xgstatus = 0;
|
||||
this.form.status = 0
|
||||
this.form.xgstatus = 0
|
||||
updateSchool(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("修改成功,请等待审批");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
this.$modal.msgSuccess('修改成功,请等待审批')
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
} else {
|
||||
addSchool(this.form).then((response) => {
|
||||
if (response.code === 200) {
|
||||
this.$modal.msgSuccess("申请提交成功,请等待审批");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
this.$modal.msgSuccess('申请提交成功,请等待审批')
|
||||
this.open = false
|
||||
this.getList()
|
||||
// this.active = 1;
|
||||
// this.$emit("props", {
|
||||
// base: false,
|
||||
// active: 1,
|
||||
// });
|
||||
this.$router.push({
|
||||
path: "/routine/school/stuinfo",
|
||||
});
|
||||
path: '/routine/school/stuinfo',
|
||||
})
|
||||
}
|
||||
});
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
const ids = row.id || this.ids
|
||||
this.$modal
|
||||
.confirm('是否确认删除学生申请编号为"' + ids + '"的数据项?')
|
||||
.then(function () {
|
||||
return delSchool(ids);
|
||||
return delSchool(ids)
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
this.getList()
|
||||
this.$modal.msgSuccess('删除成功')
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => {})
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download(
|
||||
"routine/school/export",
|
||||
'routine/school/export',
|
||||
{
|
||||
...this.queryParams,
|
||||
},
|
||||
`school_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
)
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
<div class="app-container">
|
||||
<el-card class="box-card">
|
||||
<el-steps :active="active" finish-status="success">
|
||||
<el-step title="学生申请信息填写" description=""></el-step>
|
||||
<el-step title="学生申请信息填写" description="" />
|
||||
<!-- <el-step title="审核状态" description=""></el-step> -->
|
||||
</el-steps>
|
||||
</el-card>
|
||||
|
||||
|
||||
<Appliactio v-if="base" @props="props"></Appliactio>
|
||||
<Appliactio v-if="base" @props="props" />
|
||||
|
||||
|
||||
<Status v-else></Status>
|
||||
<Status v-else />
|
||||
|
||||
<!-- 审核状态页面 -->
|
||||
|
||||
@@ -26,31 +26,31 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Appliactio from '../school/component/applicatiosC.vue';
|
||||
import Appliactio from '../school/component/applicatiosC.vue'
|
||||
import Status from '../school/component/Status.vue'
|
||||
|
||||
|
||||
export default {
|
||||
name: 'School',
|
||||
components:{
|
||||
Appliactio,
|
||||
Status
|
||||
},
|
||||
name: "School",
|
||||
data() {
|
||||
return {
|
||||
active: 0,
|
||||
base:true
|
||||
};
|
||||
}
|
||||
},
|
||||
created() {
|
||||
// this.active=this.$route.query.status+1
|
||||
},
|
||||
methods: {
|
||||
props(base){
|
||||
this.base = base.base;
|
||||
this.active =base.active;
|
||||
this.base = base.base
|
||||
this.active =base.active
|
||||
console.log(this.base)
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
v-show="showSearch"
|
||||
ref="queryForm"
|
||||
:model="queryParams"
|
||||
size="small"
|
||||
:inline="true"
|
||||
v-show="showSearch"
|
||||
label-width="68px"
|
||||
>
|
||||
<el-form-item label="学号" prop="studentId">
|
||||
@@ -27,13 +27,12 @@
|
||||
|
||||
<el-form-item label="申请时间" prop="stuCreated">
|
||||
<el-date-picker
|
||||
clearable
|
||||
v-model="queryParams.stuCreated"
|
||||
clearable
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择申请时间"
|
||||
>
|
||||
</el-date-picker>
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="学院" prop="college">
|
||||
@@ -53,11 +52,8 @@
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="handleQuery"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||
>重置</el-button
|
||||
>
|
||||
>搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
@@ -87,31 +83,29 @@
|
||||
</el-col> -->
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
v-hasPermi="['routine:school:remove']"
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['routine:school:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
v-hasPermi="['routine:school:export']"
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['routine:school:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar
|
||||
:showSearch.sync="showSearch"
|
||||
:show-search.sync="showSearch"
|
||||
@queryTable="getList"
|
||||
></right-toolbar>
|
||||
/>
|
||||
</el-row>
|
||||
|
||||
<el-table
|
||||
@@ -145,12 +139,8 @@
|
||||
<template slot-scope="scope">
|
||||
<!-- 审批状态(0、待审批;1、已通过; -->
|
||||
<el-tag v-if="scope.row.status == 0">待审批</el-tag>
|
||||
<el-tag type="success" v-else-if="scope.row.status == 1"
|
||||
>已通过</el-tag
|
||||
>
|
||||
<el-tag type="danger" v-else-if="scope.row.status == 2"
|
||||
>已驳回</el-tag
|
||||
>
|
||||
<el-tag v-else-if="scope.row.status == 1" type="success">已通过</el-tag>
|
||||
<el-tag v-else-if="scope.row.status == 2" type="danger">已驳回</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
@@ -166,12 +156,8 @@
|
||||
<template slot-scope="scope">
|
||||
<!-- 审批状态(0、待审批;1、已通过; -->
|
||||
<el-tag v-if="scope.row.xgstatus == 0 || scope.row.xgstatus == null ">待审批</el-tag>
|
||||
<el-tag type="success" v-else-if="scope.row.xgstatus == 1"
|
||||
>已通过</el-tag
|
||||
>
|
||||
<el-tag type="danger" v-else-if="scope.row.xgstatus == 2"
|
||||
>已驳回</el-tag
|
||||
>
|
||||
<el-tag v-else-if="scope.row.xgstatus == 1" type="success">已通过</el-tag>
|
||||
<el-tag v-else-if="scope.row.xgstatus == 2" type="danger">已驳回</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
@@ -182,22 +168,20 @@
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
v-if="scope.row.status == 1 && (scope.row.xgstatus == 0 || scope.row.xgstatus == null)"
|
||||
v-hasPermi="['routine:school:edit']"
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['routine:school:edit']"
|
||||
v-if="scope.row.status == 1 && (scope.row.xgstatus == 0 || scope.row.xgstatus == null)"
|
||||
>学工审批</el-button
|
||||
>
|
||||
>学工审批</el-button>
|
||||
<el-button
|
||||
v-hasPermi="['routine:school:remove']"
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['routine:school:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -222,14 +206,13 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="申请时间" prop="stuCreated">
|
||||
<el-date-picker
|
||||
clearable
|
||||
v-model="form.stuCreated"
|
||||
clearable
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择申请时间"
|
||||
:disabled="true"
|
||||
>
|
||||
</el-date-picker>
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="身份证" prop="identityCard">
|
||||
<el-input
|
||||
@@ -273,8 +256,7 @@
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
>
|
||||
</el-option>
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@@ -293,10 +275,10 @@ import {
|
||||
delSchool,
|
||||
addSchool,
|
||||
updateSchool,
|
||||
} from "@/api/routine/school";
|
||||
} from '@/api/routine/school'
|
||||
|
||||
export default {
|
||||
name: "School",
|
||||
name: 'School',
|
||||
dicts: ['rt_filling_college', 'sys_commit_status', 'sys_teacher_kpi_filling_year'],
|
||||
data() {
|
||||
return {
|
||||
@@ -304,11 +286,11 @@ export default {
|
||||
options: [
|
||||
{
|
||||
value: 1,
|
||||
label: "通过",
|
||||
label: '通过',
|
||||
},
|
||||
{
|
||||
value: 2,
|
||||
label: "驳回",
|
||||
label: '驳回',
|
||||
},
|
||||
],
|
||||
// 遮罩层
|
||||
@@ -326,7 +308,7 @@ export default {
|
||||
// 测试表格数据
|
||||
schoolList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
title: '',
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
@@ -365,38 +347,38 @@ export default {
|
||||
// 表单校验
|
||||
rules: {
|
||||
reason1: [
|
||||
{ required: true, message: "请输入审批人姓名", trigger: "blur" },
|
||||
{ required: true, message: '请输入审批人姓名', trigger: 'blur' },
|
||||
],
|
||||
reason2: [
|
||||
{ required: true, message: "请输入学工意见", trigger: "blur" },
|
||||
{ required: true, message: '请输入学工意见', trigger: 'blur' },
|
||||
],
|
||||
reason3: [
|
||||
{ required: true, message: "请选择是否通过", trigger: "blur" },
|
||||
{ required: true, message: '请选择是否通过', trigger: 'blur' },
|
||||
],
|
||||
reason4: [
|
||||
{ required: true, message: "选择时间", trigger: "blur" },
|
||||
{ required: true, message: '选择时间', trigger: 'blur' },
|
||||
],
|
||||
},
|
||||
};
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
/** 查询测试列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.loading = true
|
||||
listSchool(this.queryParams).then((response) => {
|
||||
this.schoolList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
this.schoolList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
this.open = false
|
||||
this.reset()
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
@@ -425,85 +407,85 @@ export default {
|
||||
className: null,
|
||||
fdname: null,
|
||||
xgname: null,
|
||||
};
|
||||
this.resetForm("form");
|
||||
}
|
||||
this.resetForm('form')
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
this.queryParams.pageNum = 1
|
||||
this.getList()
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
this.resetForm('queryForm')
|
||||
this.handleQuery()
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item.id);
|
||||
this.single = selection.length !== 1;
|
||||
this.multiple = !selection.length;
|
||||
this.ids = selection.map((item) => item.id)
|
||||
this.single = selection.length !== 1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加测试";
|
||||
this.reset()
|
||||
this.open = true
|
||||
this.title = '添加测试'
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids;
|
||||
this.reset()
|
||||
const id = row.id || this.ids
|
||||
getSchool(id).then((response) => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "学工审核";
|
||||
});
|
||||
this.form = response.data
|
||||
this.open = true
|
||||
this.title = '学工审核'
|
||||
})
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate((valid) => {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateSchool(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
this.$modal.msgSuccess('修改成功')
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
} else {
|
||||
addSchool(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
this.$modal.msgSuccess('新增成功')
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
const ids = row.id || this.ids
|
||||
this.$modal
|
||||
.confirm('是否确认删除测试编号为"' + ids + '"的数据项?')
|
||||
.then(function () {
|
||||
return delSchool(ids);
|
||||
return delSchool(ids)
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
this.getList()
|
||||
this.$modal.msgSuccess('删除成功')
|
||||
})
|
||||
.catch(() => {});
|
||||
.catch(() => {})
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download(
|
||||
"routine/school/export",
|
||||
'routine/school/export',
|
||||
{
|
||||
...this.queryParams,
|
||||
},
|
||||
`school_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
)
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form v-show="showSearch" ref="queryForm" :model="queryParams" size="small" :inline="true" label-width="68px">
|
||||
<!-- <el-form-item label="学号" prop="studentId">
|
||||
<el-input v-model="queryParams.studentId" placeholder="请输入学号" clearable @keyup.enter.native="handleQuery" />
|
||||
</el-form-item> -->
|
||||
<el-form-item label="姓名" prop="name">
|
||||
<el-input v-model="queryParams.name" placeholder="请输入姓名" clearable @keyup.enter.native="handleQuery" :disabled="true" />
|
||||
<el-input v-model="queryParams.name" placeholder="请输入姓名" clearable :disabled="true" @keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
|
||||
<!-- <el-form-item label="申请时间" prop="stuCreated">
|
||||
@@ -41,7 +41,8 @@
|
||||
<template slot-scope="scope">
|
||||
|
||||
<div :title="scope.row.because"
|
||||
style="white-space:nowrap;width:100%;text-overflow: ellipsis;overflow: hidden;">{{ scope.row.because }}
|
||||
style="white-space:nowrap;width:100%;text-overflow: ellipsis;overflow: hidden;"
|
||||
>{{ scope.row.because }}
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -54,8 +55,8 @@
|
||||
<template slot-scope="scope">
|
||||
<!-- 审批状态(0、待审批;1、已通过; -->
|
||||
<el-tag v-if="scope.row.status == 0 || scope.row.status == null">待审批</el-tag>
|
||||
<el-tag type="success" v-else-if="scope.row.status == 1">已通过</el-tag>
|
||||
<el-tag type="danger" v-else-if="scope.row.status == 2">已驳回</el-tag>
|
||||
<el-tag v-else-if="scope.row.status == 1" type="success">已通过</el-tag>
|
||||
<el-tag v-else-if="scope.row.status == 2" type="danger">已驳回</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="辅导员意见" align="center" prop="fdyopinion" />
|
||||
@@ -64,8 +65,8 @@
|
||||
<template slot-scope="scope">
|
||||
<!-- 审批状态(0、待审批;1、已通过; -->
|
||||
<el-tag v-if="scope.row.xgstatus == 0 || scope.row.xgstatus == null">待审批</el-tag>
|
||||
<el-tag type="success" v-else-if="scope.row.xgstatus == 1">已通过</el-tag>
|
||||
<el-tag type="danger" v-else-if="scope.row.xgstatus == 2">已驳回</el-tag>
|
||||
<el-tag v-else-if="scope.row.xgstatus == 1" type="success">已通过</el-tag>
|
||||
<el-tag v-else-if="scope.row.xgstatus == 2" type="danger">已驳回</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="学工意见" align="center" prop="xgopinion" />
|
||||
@@ -73,7 +74,7 @@
|
||||
<!-- 打印模板 -->
|
||||
<el-table-column label="打印模板" align="center" prop="xgstatus">
|
||||
<template slot-scope="scope">
|
||||
<el-tag type="success" v-if="scope.row.xgstatus == 1">
|
||||
<el-tag v-if="scope.row.xgstatus == 1" type="success">
|
||||
<div @click="handledetail(scope.row)">生成模板</div>
|
||||
<!-- <el-button @click="jump">生成模板</el-button> -->
|
||||
</el-tag>
|
||||
@@ -83,16 +84,19 @@
|
||||
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="handledetail(scope.row)"
|
||||
v-hasPermi="['routine:school:edit']">修改信息</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
||||
v-hasPermi="['routine:school:remove']">删除</el-button>
|
||||
<el-button v-hasPermi="['routine:school:edit']" size="mini" type="text" icon="el-icon-edit"
|
||||
@click="handledetail(scope.row)"
|
||||
>修改信息</el-button>
|
||||
<el-button v-hasPermi="['routine:school:remove']" size="mini" type="text" icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
||||
@pagination="getList" />
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改测试对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
@@ -113,17 +117,19 @@
|
||||
<el-input v-model="form.grade" placeholder="请输入级别" />
|
||||
</el-form-item>
|
||||
<el-form-item label="申请时间" prop="stuCreated">
|
||||
<el-date-picker clearable v-model="form.stuCreated" type="date" value-format="yyyy-MM-dd"
|
||||
placeholder="请选择申请时间">
|
||||
</el-date-picker>
|
||||
<el-date-picker v-model="form.stuCreated" clearable type="date" value-format="yyyy-MM-dd"
|
||||
placeholder="请选择申请时间"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="身份证" prop="identityCard">
|
||||
<el-input v-model="form.identityCard" placeholder="请输入身份证" />
|
||||
</el-form-item>
|
||||
<el-form-item label="原因
|
||||
" prop="because">
|
||||
" prop="because"
|
||||
>
|
||||
<el-input v-model="form.because" placeholder="请输入原因
|
||||
" />
|
||||
"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="籍贯" prop="jg">
|
||||
<el-input v-model="form.jg" placeholder="请输入籍贯" />
|
||||
@@ -135,8 +141,7 @@
|
||||
<el-input v-model="form.birthday" placeholder="请输入出生日期" />
|
||||
</el-form-item>
|
||||
<el-form-item label="入学时间" prop="Intake">
|
||||
<el-date-picker clearable v-model="form.Intake" type="date" value-format="yyyy-MM-dd" placeholder="请选择入学时间">
|
||||
</el-date-picker>
|
||||
<el-date-picker v-model="form.Intake" clearable type="date" value-format="yyyy-MM-dd" placeholder="请选择入学时间" />
|
||||
</el-form-item>
|
||||
<el-form-item label="民族" prop="nation">
|
||||
<el-input v-model="form.nation" placeholder="请输入民族" />
|
||||
@@ -160,12 +165,12 @@ import {
|
||||
delSchool,
|
||||
addSchool,
|
||||
updateSchool,
|
||||
} from "@/api/routine/school";
|
||||
} from '@/api/routine/school'
|
||||
|
||||
import { getUserProfile } from "@/api/system/user"; // 获取
|
||||
import { getUserProfile } from '@/api/system/user' // 获取
|
||||
|
||||
export default {
|
||||
name: "School",
|
||||
name: 'School',
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
@@ -183,7 +188,7 @@ export default {
|
||||
// 测试表格数据
|
||||
schoolList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
title: '',
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
@@ -219,63 +224,63 @@ export default {
|
||||
// 表单校验
|
||||
rules: {
|
||||
},
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
|
||||
created() {
|
||||
this.getUser();
|
||||
this.getUser()
|
||||
},
|
||||
methods: {
|
||||
// 跳转到打印页面
|
||||
handledetail(row) {
|
||||
this.$router.push({
|
||||
path: "/routine/school/school",
|
||||
path: '/routine/school/school',
|
||||
query: {
|
||||
id: row.id,
|
||||
status: row.status,
|
||||
},
|
||||
// });
|
||||
});
|
||||
})
|
||||
},
|
||||
|
||||
// 获取当前登录信息
|
||||
getUser() {
|
||||
this.loading = true;
|
||||
this.loading = true
|
||||
getUserProfile().then(response => {
|
||||
// this.user = response.data;
|
||||
this.roleGroup = response.roleGroup;
|
||||
this.roleGroup = response.roleGroup
|
||||
// this.postGroup = response.postGroup;
|
||||
// console.log(response);
|
||||
if (response.roleGroup.includes('学生')) {
|
||||
this.queryParams.name = response.data.nickName
|
||||
this.form.name = response.data.nickName
|
||||
console.log(this.form.name)
|
||||
this.getList();
|
||||
this.getList()
|
||||
return
|
||||
} else if (!response.roleGroup.includes('学生')) {
|
||||
this.getList();
|
||||
this.getList()
|
||||
return
|
||||
}
|
||||
this.loading = false;
|
||||
this.loading = false
|
||||
// this.getList();
|
||||
});
|
||||
})
|
||||
},
|
||||
|
||||
/** 查询测试列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.loading = true
|
||||
listSchool(this.queryParams).then((response) => {
|
||||
this.schoolList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
this.schoolList = response.rows
|
||||
this.total = response.total
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
this.open = false
|
||||
this.reset()
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
@@ -304,85 +309,85 @@ export default {
|
||||
className: null,
|
||||
fdname: null,
|
||||
xgname: null,
|
||||
};
|
||||
this.resetForm("form");
|
||||
}
|
||||
this.resetForm('form')
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
this.queryParams.pageNum = 1
|
||||
this.getList()
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
this.resetForm('queryForm')
|
||||
this.handleQuery()
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item.id);
|
||||
this.single = selection.length !== 1;
|
||||
this.multiple = !selection.length;
|
||||
this.ids = selection.map((item) => item.id)
|
||||
this.single = selection.length !== 1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加测试";
|
||||
this.reset()
|
||||
this.open = true
|
||||
this.title = '添加测试'
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids;
|
||||
this.reset()
|
||||
const id = row.id || this.ids
|
||||
getSchool(id).then((response) => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "完善个人信息";
|
||||
});
|
||||
this.form = response.data
|
||||
this.open = true
|
||||
this.title = '完善个人信息'
|
||||
})
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate((valid) => {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateSchool(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
this.$modal.msgSuccess('修改成功')
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
} else {
|
||||
addSchool(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
this.$modal.msgSuccess('新增成功')
|
||||
this.open = false
|
||||
this.getList()
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
const ids = row.id || this.ids
|
||||
this.$modal
|
||||
.confirm('是否确认删除测试编号为"' + ids + '"的数据项?')
|
||||
.then(function () {
|
||||
return delSchool(ids);
|
||||
return delSchool(ids)
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
this.getList()
|
||||
this.$modal.msgSuccess('删除成功')
|
||||
})
|
||||
.catch(() => { });
|
||||
.catch(() => { })
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download(
|
||||
"routine/school/export",
|
||||
'routine/school/export',
|
||||
{
|
||||
...this.queryParams,
|
||||
},
|
||||
`school_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
)
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user