同步专业数据修改
This commit is contained in:
@@ -28,13 +28,12 @@
|
||||
<el-table-column label="专业名称" align="center" prop="zymc" />
|
||||
<el-table-column label="院校名称" align="center" prop="yxmc" />
|
||||
</el-table>
|
||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize" @pagination="getList" />
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { listZhuanYe, syncMajorinfo, getzy } from '@/api/stuCQS/synchronous-data/sync-major'
|
||||
import { listZhuanYe, syncZhuanYeInfo } from '@/api/stuCQS/synchronous-data/sync-major'
|
||||
|
||||
export default {
|
||||
name: 'Middle',
|
||||
@@ -73,7 +72,7 @@ export default {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
|
||||
|
||||
/** 查询【请填写功能名称】列表 */
|
||||
getList() {
|
||||
this.loading = true
|
||||
@@ -83,7 +82,7 @@ export default {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm('queryForm')
|
||||
this.queryParams.pageNum = 1
|
||||
@@ -95,12 +94,13 @@ export default {
|
||||
...this.queryParams
|
||||
}, `middle_${new Date().getTime()}.xlsx`)
|
||||
},
|
||||
handleSync() {
|
||||
syncMajorinfo().then(res => {
|
||||
async handleSync() {
|
||||
let res = await syncZhuanYeInfo()
|
||||
if (res.code == 200) {
|
||||
this.$modal.msgSuccess(res.msg)
|
||||
})
|
||||
}
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1
|
||||
this.getList();
|
||||
|
||||
Reference in New Issue
Block a user