|
@@ -1,10 +1,20 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <el-dialog :title="title" :visible.sync="visible" v-if="visible" :before-close="handleClose"
|
|
|
|
|
- :close-on-click-modal="false" :close-on-press-escape="false" append-to-body width="75%">
|
|
|
|
|
- <el-card shadow="never">
|
|
|
|
|
|
|
+ <el-dialog title="选择排班" :visible.sync="visible" v-if="visible" :before-close="handleClose"
|
|
|
|
|
+ :close-on-click-modal="false" :close-on-press-escape="false" append-to-body width="60%">
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <el-card shadow="never">
|
|
|
|
|
+ <scheduleSearch @search="reload"></scheduleSearch>
|
|
|
<ele-pro-table ref="table" :columns="columns" :datasource="datasource" row-key="id" height="calc(100vh - 350px)"
|
|
<ele-pro-table ref="table" :columns="columns" :datasource="datasource" row-key="id" height="calc(100vh - 350px)"
|
|
|
class="dict-table" @cell-click="cellClick">
|
|
class="dict-table" @cell-click="cellClick">
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <template v-slot:status="{ row }">
|
|
|
|
|
+ {{ row.status == 1 ? '发布' : '草稿' }}
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
<!-- 表头工具栏 -->
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:action="{ row }">
|
|
<template v-slot:action="{ row }">
|
|
|
<el-radio class="radio" v-model="radio" :label="row.id"><i></i></el-radio>
|
|
<el-radio class="radio" v-model="radio" :label="row.id"><i></i></el-radio>
|
|
@@ -23,8 +33,11 @@
|
|
|
import {
|
|
import {
|
|
|
teamqueuepage,
|
|
teamqueuepage,
|
|
|
} from '@/api/workforceManagement/schedule';
|
|
} from '@/api/workforceManagement/schedule';
|
|
|
|
|
+import scheduleSearch from './schedule-search.vue'
|
|
|
export default {
|
|
export default {
|
|
|
- components: {},
|
|
|
|
|
|
|
+ components: {
|
|
|
|
|
+ scheduleSearch
|
|
|
|
|
+ },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
visible: false,
|
|
visible: false,
|
|
@@ -63,8 +76,9 @@ export default {
|
|
|
label: '选择'
|
|
label: '选择'
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
- title: null,
|
|
|
|
|
- categoryLevelId: null,
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ type: null,
|
|
|
radio: null,
|
|
radio: null,
|
|
|
idx: null,
|
|
idx: null,
|
|
|
|
|
|
|
@@ -75,11 +89,20 @@ export default {
|
|
|
watch: {
|
|
watch: {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ // 是否开启响应式布局
|
|
|
|
|
+ styleResponsive() {
|
|
|
|
|
+ return this.$store.state.theme.styleResponsive;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
methods: {
|
|
methods: {
|
|
|
/* 表格数据源 */
|
|
/* 表格数据源 */
|
|
|
datasource({ page, where, limit }) {
|
|
datasource({ page, where, limit }) {
|
|
|
let data = teamqueuepage({
|
|
let data = teamqueuepage({
|
|
|
...where,
|
|
...where,
|
|
|
|
|
+ // status: 1,
|
|
|
pageNum: page,
|
|
pageNum: page,
|
|
|
size: limit
|
|
size: limit
|
|
|
});
|
|
});
|
|
@@ -89,10 +112,20 @@ export default {
|
|
|
|
|
|
|
|
/* 刷新表格 */
|
|
/* 刷新表格 */
|
|
|
reload(where) {
|
|
reload(where) {
|
|
|
- this.isCategory = false
|
|
|
|
|
this.$refs.table.reload({ pageNum: 1, where: where });
|
|
this.$refs.table.reload({ pageNum: 1, where: where });
|
|
|
},
|
|
},
|
|
|
open(item, type, idx) {
|
|
open(item, type, idx) {
|
|
|
|
|
+ this.type = type
|
|
|
|
|
+ this.idx = idx
|
|
|
|
|
+ if (item) {
|
|
|
|
|
+ this.current = {
|
|
|
|
|
+ id: item.classeId,
|
|
|
|
|
+ name: item.classeName,
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ this.radio = item.classeId
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
this.visible = true
|
|
this.visible = true
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -100,6 +133,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
// 单击获取id
|
|
// 单击获取id
|
|
|
cellClick(row) {
|
|
cellClick(row) {
|
|
|
this.current = row
|
|
this.current = row
|
|
@@ -114,7 +148,7 @@ export default {
|
|
|
if (!this.current) {
|
|
if (!this.current) {
|
|
|
return this.$message.warning('请选择排班组')
|
|
return this.$message.warning('请选择排班组')
|
|
|
}
|
|
}
|
|
|
- this.$emit('changeProduct', this.title, this.current, this.idx)
|
|
|
|
|
|
|
+ this.$emit('changeProduct', this.current, this.type, this.idx)
|
|
|
this.handleClose()
|
|
this.handleClose()
|
|
|
},
|
|
},
|
|
|
}
|
|
}
|