diff --git a/src/App.vue b/src/App.vue index 2b6f5f7197ccb4d21ef0ac296b5bfbf4af3753ea..141e302745677ad686dda93e97ba805f5148bee9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -108,4 +108,15 @@ body { visibility: hidden; clear: both; } + +.page-div { + padding-top: 20px; +} + +.cell-link { + /*color: #409EFF;*/ + text-decoration: underline; + cursor: pointer; + user-select: none; +} </style> diff --git a/src/components/system/staff.vue b/src/components/system/staff.vue index 8ba16d3bcb0af2f57879d900f6fe2339c79e5bd4..84bc72973af03efb6dc420e4af07ecdc3a16a6fe 100644 --- a/src/components/system/staff.vue +++ b/src/components/system/staff.vue @@ -359,8 +359,4 @@ justify-content: flex-start; align-items: center; } - - .page-div { - padding-top: 20px; - } </style> diff --git a/src/components/system/staffRecord.vue b/src/components/system/staffRecord.vue index 973ea7970bf14535a058e864d251a8c69bcb7618..9e69080644647fc5dd0d7bb8e5a88acb080964b0 100644 --- a/src/components/system/staffRecord.vue +++ b/src/components/system/staffRecord.vue @@ -50,8 +50,16 @@ <el-table :data="tableData"> <el-table-column prop="id" label="ID"></el-table-column> - <el-table-column prop="teacher_name" label="设备åç§°"></el-table-column> - <el-table-column prop="staff_name" label="当å‰é¡¾é—®"></el-table-column> + <el-table-column label="设备åç§°"> + <template slot-scope="scope"> + <span @click="onSearch('teacher', scope.row.teacher_id)" class="cell-link">{{scope.row.teacher_name}}</span> + </template> + </el-table-column> + <el-table-column prop="staff_name" label="当å‰é¡¾é—®"> + <template slot-scope="scope"> + <span @click="onSearch('staff', scope.row.staff_id)" class="cell-link">{{scope.row.staff_name}}</span> + </template> + </el-table-column> <el-table-column prop="start_at" label="设备开始使用时间"></el-table-column> <el-table-column label="è®¾å¤‡ä½¿ç”¨ç»“æŸæ—¶é—´"> <template slot-scope="scope"> @@ -74,7 +82,7 @@ data() { return { searchFrom: { - type: '-1', + type: '1', teacher_id: '', staff_id: '' }, @@ -121,7 +129,10 @@ }); }, - onSearch(){ + onSearch(type, id){ + if (type) { + this.searchFrom[`${type}_id`] = id; + } this.getData(); }, diff --git a/src/components/teacher/index.vue b/src/components/teacher/index.vue index a96ad3d2074b275a5a7c47a1041873011a0828af..cb68d21f34d08ea6a97c57ff79eac1f999916226 100644 --- a/src/components/teacher/index.vue +++ b/src/components/teacher/index.vue @@ -25,10 +25,10 @@ </el-form-item> <el-form-item label="任务日期"> <el-date-picker - style="width: 125px;" + style="width: 140px;" + type="date" v-model="searchFrom.task_date" value-format="yyyy-MM-dd" - type="date" placeholder="选择日期"> </el-date-picker> </el-form-item> @@ -57,7 +57,7 @@ <a :href="scope.row.qr" target="_blank" class="clearfix"> <img class="avatar" :src="scope.row.qr" alt="二维ç "> </a> - <div style="display: flex;"> + <div> è€å¸ˆå:{{scope.row.name}} <br> 微信å·ï¼š{{scope.row.alias}} @@ -66,7 +66,7 @@ <br> 顾问:{{scope.row.adviser}} <br> - 开始时间:{{scope.row.teacher_start}} + 开始时间:<span style="display: inline-block;width: 72px;vertical-align: text-top;line-height: 16px;">{{scope.row.teacher_start}}</span> </div> </div> </template> @@ -256,8 +256,11 @@ </el-select> </el-form-item> <el-form-item label="移交时间:" prop="transfer_at"> - <el-date-picker - v-model="transfer.form.transfer_at" type="date" value-format="yyyy-MM-dd" :clearable="false" placeholder="选择日期"></el-date-picker> + <div style="display: flex;"> + <el-date-picker + v-model="transfer.form.transfer_at" :clearable="false" value-format="yyyy-MM-dd HH:mm:ss" + type="datetime" placeholder="选择时间"></el-date-picker> + </div> </el-form-item> </el-form> <div slot="footer"> @@ -324,16 +327,13 @@ title:'ç级列表', id: '' }, - teacherTypeOption: [ - { - id: 0, - label: 'è€å¸ˆ' - }, - { - id: 1, - label: '新星妈妈' - } - ], + teacherTypeOption: [{ + id: 0, + label: 'è€å¸ˆ' + }, { + id: 1, + label: '新星妈妈' + }], phoneNumObj:{} } }, @@ -442,7 +442,7 @@ this.transfer.show = !this.transfer.show; if (this.transfer.show){ if (this.transfer.staff[0] === 0) { - let json = { limit: 1000, page: 1 }; + let json = { limit: 1000, page: 1, status: 0 }; // status 0 åœ¨èŒ getStaffListApi(json).then(res => { this.transfer.staff = res.list; }); @@ -463,10 +463,11 @@ this.$refs['transferForm'].validate((valid) => { if (valid) { - this.$confirm(`确认将 - ${this.transfer.form.teacher_name} 移交给 - ${this.transfer.form.staff_name} 移交开始时间 + this.$confirm(`确定将 + <span style="color: red;">${this.transfer.form.teacher_name}</span> 移交给 + <span style="color: red;">${this.transfer.form.staff_name}</span> ?<br>移交开始时间 ${this.transfer.form.transfer_at}`, 'æç¤º', { + dangerouslyUseHTMLString: true, confirmButtonText: '确定', cancelButtonText: 'å–æ¶ˆ', type: 'warning'