diff --git a/src/api/project/terminalTrainSign.js b/src/api/project/terminalTrainSign.js
new file mode 100644
index 0000000..88b218b
--- /dev/null
+++ b/src/api/project/terminalTrainSign.js
@@ -0,0 +1,15 @@
+import request from '@/utils/request'
+
+const terminalTrainSignApi = {
+ list: 'project/terminalTrain/list',
+
+}
+
+export function terminalTrainSignList(params) {
+ console.log("terminalTrainList------------{}", params)
+ return request({
+ url: terminalTrainSignApi.list,
+ method: 'get',
+ params: params
+ })
+}
\ No newline at end of file
diff --git a/src/views/project/terminalTrain/TerminalTrainDetail.vue b/src/views/project/terminalTrain/TerminalTrainDetail.vue
index b0c9562..b1836a4 100644
--- a/src/views/project/terminalTrain/TerminalTrainDetail.vue
+++ b/src/views/project/terminalTrain/TerminalTrainDetail.vue
@@ -16,8 +16,8 @@
-
修 改 信 息
-
会议签到信息
+
修 改 信 息
+
会议签到信息
@@ -54,6 +54,23 @@ export default {
},
})
},
+ editInfo(){ //修改信息按钮
+ this.$router.push({
+ path: '/project/terminalTrain/form',
+ query: {
+ id: this.detailData.id,
+ }
+ })
+ },
+
+ signInfo(){ //跳转签到信息页面
+ this.$router.push({
+ path: '/project/terminalTrain/signList',
+ query: {
+ id: this.detailData.id,
+ }
+ })
+ }
},
}
diff --git a/src/views/project/terminalTrain/TerminalTrainForm.vue b/src/views/project/terminalTrain/TerminalTrainForm.vue
index 105ea96..a7564cf 100644
--- a/src/views/project/terminalTrain/TerminalTrainForm.vue
+++ b/src/views/project/terminalTrain/TerminalTrainForm.vue
@@ -1,6 +1,6 @@
-
+
@@ -31,8 +31,10 @@
- 保存
- { this.form.status = 2 }"> 保存并发布
+
+ { this.form.status = 1}" style="border-left: 200px;"> 保存
+ { this.form.status = 2}"> 保存并发布
+
@@ -66,7 +68,8 @@ export default {
remark: '',
status: 1,
},
- titleName: '新增终端培训',
+ titleName: '终端培训表单',
+ layout: 'horizontal'
}
},
//计算属性 类似于data概念
diff --git a/src/views/project/terminalTrain/TerminalTrainList.vue b/src/views/project/terminalTrain/TerminalTrainList.vue
index 4e68445..cd24188 100644
--- a/src/views/project/terminalTrain/TerminalTrainList.vue
+++ b/src/views/project/terminalTrain/TerminalTrainList.vue
@@ -78,40 +78,20 @@ export default {
endDate: this.$route.query.terminalTrainEndDate || null,
},
columns: [
- {
- title: '序号',
- width: 'auto',
- align: 'center',
- dataIndex: 'id',
- key: 'id',
- scopedSlots: { customRender: 'serial' },
- },
+ { title: '序号', width: 'auto', align: 'center', dataIndex: 'id', key: 'id', scopedSlots: { customRender: 'serial' }, },
{ title: '项目名称', width: 'auto', align: 'center', dataIndex: 'projectName', key: 'projectName' },
- {
- title: '时间',
- dataIndex: 'date',
- key: 'date',
+ { title: '时间', dataIndex: 'date', key: 'date',
customRender: (text, record, index) => {
return record.startDate + ' - ' + record.endDate
},
},
- {
- title: '人数',
- width: 'auto',
- align: 'center',
- dataIndex: 'num',
- key: 'num',
+ { title: '人数', width: 'auto', align: 'center', dataIndex: 'num', key: 'num',
customRender: (text, record, index) => {
return record.signNum + ' / ' + record.personNum
},
},
{ title: '培训类型', width: 'auto', align: 'center', dataIndex: 'projectType', key: 'projectType' },
- {
- title: '项目状态',
- width: 'auto',
- align: 'center',
- dataIndex: 'status',
- key: 'status',
+ { title: '项目状态', width: 'auto', align: 'center', dataIndex: 'status', key: 'status',
customRender: (text, record, index) => {
if (text == '1') return '未发布'
else if (text == '2') return '未开始'
diff --git a/src/views/project/terminalTrain/TerminalTrainSignList.vue b/src/views/project/terminalTrain/TerminalTrainSignList.vue
new file mode 100644
index 0000000..b714af6
--- /dev/null
+++ b/src/views/project/terminalTrain/TerminalTrainSignList.vue
@@ -0,0 +1,163 @@
+
+
+
+ 返回
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
签到时间
+
{{ item.signTime }}
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file