项目管理更新

This commit is contained in:
Yuanjianghong 2021-11-08 10:18:45 +08:00
parent 249ebff4ed
commit eb13a01c2c
4 changed files with 16 additions and 30 deletions

View File

@ -1,7 +1,7 @@
<template>
<!-- PageHeader 第二种使用方式 (v-slot) -->
<a-card :bordered="false" :title="title">
<a-steps class="steps" :current="currentTab">
<a-steps class="steps" type="navigation" :current="currentTab">
<a-step title="基本信息" />
<a-step title="选择单位" />
<!-- v-if="['2', '3', '4'].includes(form.trainWay)" -->

View File

@ -9,7 +9,7 @@
<a-button icon="select" @click="$refs.CourseSelect.edit({})">添加课程</a-button>
</a-space>
<s-table ref="table" size="default" rowKey="id" :columns="columns" :data="loadData">
<s-table ref="table" size="default" rowKey="id" :columns="columns" :data="data1">
<span slot="serial" slot-scope="text, record, index">
{{ index + 1 }}
</span>
@ -49,34 +49,24 @@ export default {
data() {
//
return {
form: this.$form.createForm(this, { name: 'project' }),
labelCol: {},
wrapperCol: {},
vertical: 'vertical',
data1: {},
totalHours: 0, //
totalLearnHours: 0, //
totalTopicNum: 0, //
//
queryParam: {},
//
queryParam: {},//
columns: [
{ title: '序号', key: 'id', dataIndex: 'id', width: 60, scopedSlots: { customRender: 'serial' } },
{ title: '课程编号', dataIndex: 'courseNo', key: 'courseNo' },
{ title: '课程名称', dataIndex: 'courseName', key: 'courseName' },
{ title: '课时', dataIndex: 'courseHours', key: 'courseHours', customRender: (text) => text + '分' },
{ title: '学时要求', dataIndex: 'learnHours', key: 'learnHours', customRender: (text) => text + '分' },
{ title: '题量', dataIndex: 'topicNumber', key: 'projectName' },
{ title: '题量', dataIndex: 'topicNumber', key: 'topicNumber' },
{ title: '项目名称', dataIndex: 'projectName', key: 'projectName' },
{
title: '操作',
width: 200,
align: 'center',
scopedSlots: { customRender: 'action' },
},
],
// Promise
loadData: (parameter) => {
return getProjectList(Object.assign(parameter, this.queryParam)).then((res) => {
return res
})
},
{ title: '操作', width: 200, align: 'center', scopedSlots: { customRender: 'action' }, },
], //
}
},
// data

View File

@ -12,8 +12,8 @@
<a-row type="flex" justify="center" align="top">
<a-col :span="6">
<a-menu v-model="current" mode="horizontal">
<a-menu-item key="mail"> <a-icon type="mail" />系统课程</a-menu-item>
<a-menu-item key="app"> <a-icon type="appstore" />自制课程</a-menu-item>
<a-menu-item key="sys"> <a-icon type="mail" />系统课程</a-menu-item>
<a-menu-item key="self"> <a-icon type="appstore" />自制课程</a-menu-item>
</a-menu>
<a-input-search style="margin-bottom: 8px" placeholder="Search" @change="onChange" />
<a-tree
@ -43,10 +43,6 @@
//jsjsjson
//import from ''
/**------------------------------------------------------------ */
420500199901110031
/**----------------------------------------------------------------- */
export default {
//import使
components: {},
@ -57,11 +53,11 @@ export default {
visible: false,
confirmLoading: false,
current: ['mail'],
modalTitle: '',
expandedKeys: [],
searchValue: '',
autoExpandParent: true,
gData,
gData: [],
}
},
// data

View File

@ -86,13 +86,13 @@
<a-form-item :style="{ display: 'inline-block', width: 'calc(30% - 1px)' }">
<a-input-number v-model="form.examNumber" :min="0" style="width: 100%" />
</a-form-item>
<span> 补考次数: </span>
<!-- <span> 补考次数: </span>
<a-form-item :style="{ display: 'inline-block', width: 'calc(30% - 1px)' }">
<a-input-number v-model="form.resitNumber" :min="0" style="width: 100%" />
</a-form-item>
<a-form-item :style="{ display: 'inline-block', width: 'calc(30% - 1px)' }">
<a-button type="primary" @click="randomResit"> 随机补考 </a-button>
</a-form-item>
</a-form-item> -->
</a-form-item>
</a-col>