|
|
|
|
@ -78,7 +78,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-button type="primary" size="small" @click="select.page=1,getList()">查询</el-button>
|
|
|
|
|
<el-button type="primary" size="small">导入</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click="importTable">导入</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click="updateSchoolmates(1)">批量设置校友库</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click="updateSchoolmates(0)">批量取消校友库</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
@ -135,6 +135,8 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<student-detail ref="studentDetail"></student-detail>
|
|
|
|
|
<imports ref="imports" :formInfo="table_item" :table-name="'users'" @refresh="getList"></imports>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
@ -146,17 +148,19 @@
|
|
|
|
|
indexStudy,
|
|
|
|
|
updateSchoolmate
|
|
|
|
|
} from '@/api/student/index.js'
|
|
|
|
|
import imports from "@/views/component/imports.vue"
|
|
|
|
|
export default {
|
|
|
|
|
mixins: [myMixins, formMixin],
|
|
|
|
|
components: {
|
|
|
|
|
studentDetail
|
|
|
|
|
studentDetail,
|
|
|
|
|
imports
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
path: '',
|
|
|
|
|
select: {
|
|
|
|
|
name: '',
|
|
|
|
|
mobile:'',
|
|
|
|
|
mobile: '',
|
|
|
|
|
course_name: '',
|
|
|
|
|
company_name: '',
|
|
|
|
|
company_position: '',
|
|
|
|
|
@ -164,7 +168,7 @@
|
|
|
|
|
company_type: '',
|
|
|
|
|
company_industry: '',
|
|
|
|
|
is_vip: '',
|
|
|
|
|
is_schoolmate:'',
|
|
|
|
|
is_schoolmate: '',
|
|
|
|
|
courses_end_date: '',
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 10,
|
|
|
|
|
@ -237,6 +241,15 @@
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
importTable(row) {
|
|
|
|
|
// this.$refs.imports.tableData = {
|
|
|
|
|
// 'data[course_id]': row.course_id,
|
|
|
|
|
// 'data[course_content_id]': row.id
|
|
|
|
|
// }
|
|
|
|
|
this.$refs.imports.show()
|
|
|
|
|
|
|
|
|
|
// {"course_id":15,"course_content_id":188}
|
|
|
|
|
},
|
|
|
|
|
pageIndexChange(e) {
|
|
|
|
|
this.select.page = e
|
|
|
|
|
this.getList()
|
|
|
|
|
@ -251,7 +264,7 @@
|
|
|
|
|
page: this.select.page,
|
|
|
|
|
page_size: this.select.page_size,
|
|
|
|
|
name: this.select.name,
|
|
|
|
|
mobile:this.select.mobile,
|
|
|
|
|
mobile: this.select.mobile,
|
|
|
|
|
company_name: this.select.company_name,
|
|
|
|
|
company_position: this.select.company_position,
|
|
|
|
|
company_area: this.select.company_area,
|
|
|
|
|
@ -259,7 +272,7 @@
|
|
|
|
|
company_industry: this.select.company_industry,
|
|
|
|
|
is_vip: this.select.is_vip,
|
|
|
|
|
courses_end_date: this.select.courses_end_date,
|
|
|
|
|
is_schoolmate:this.select.is_schoolmate
|
|
|
|
|
is_schoolmate: this.select.is_schoolmate
|
|
|
|
|
})
|
|
|
|
|
this.list = res.list.data
|
|
|
|
|
this.total = res.list.total
|
|
|
|
|
@ -319,8 +332,9 @@
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
width: 150px;
|
|
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
|
width:auto
|
|
|
|
|
width: auto
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|