|
@@ -10,6 +10,7 @@
|
|
border
|
|
border
|
|
style="min-height: 90px;"
|
|
style="min-height: 90px;"
|
|
size="mini"
|
|
size="mini"
|
|
|
|
+ :class="{'ignore-elements': dondrop }"
|
|
>
|
|
>
|
|
<el-table-column prop="type" label="类型" min-width="70">
|
|
<el-table-column prop="type" label="类型" min-width="70">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -20,7 +21,11 @@
|
|
<el-table-column prop="desc" label="描述" min-width="150" align="left" show-overflow-tooltip />
|
|
<el-table-column prop="desc" label="描述" min-width="150" align="left" show-overflow-tooltip />
|
|
<el-table-column prop="seperateDaysNoHoliday" label="排期" min-width="160" show-overflow-tooltip />
|
|
<el-table-column prop="seperateDaysNoHoliday" label="排期" min-width="160" show-overflow-tooltip />
|
|
<el-table-column prop="dayLength" label="时长" min-width="50" />
|
|
<el-table-column prop="dayLength" label="时长" min-width="50" />
|
|
- <el-table-column prop="peopleList" label="参与人员" min-width="150" show-overflow-tooltip />
|
|
|
|
|
|
+ <el-table-column prop="peopleList" label="参与人员" min-width="150" show-overflow-tooltip>
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div v-for="(item, index) in scope.row.peopleObjectList" :key="index">{{ item.name }}</div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column label="操作" width="120">
|
|
<el-table-column label="操作" width="120">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div class="btn-style">
|
|
<div class="btn-style">
|
|
@@ -57,6 +62,10 @@ export default {
|
|
default: NaN,
|
|
default: NaN,
|
|
required: true
|
|
required: true
|
|
},
|
|
},
|
|
|
|
+ locking: {
|
|
|
|
+ type: Boolean,
|
|
|
|
+ required: true
|
|
|
|
+ },
|
|
selectTaskList: { // 已选任务列表
|
|
selectTaskList: { // 已选任务列表
|
|
type: Array,
|
|
type: Array,
|
|
default: () => [],
|
|
default: () => [],
|
|
@@ -79,18 +88,19 @@ export default {
|
|
scheduleDetail: {},
|
|
scheduleDetail: {},
|
|
visibleSchedule: false,
|
|
visibleSchedule: false,
|
|
detailData: null,
|
|
detailData: null,
|
|
|
|
+ dondrop: true,
|
|
taskScheduleEvent: [], // 排期类型
|
|
taskScheduleEvent: [], // 排期类型
|
|
DialogTitle: '新建排期',
|
|
DialogTitle: '新建排期',
|
|
isDelete: false // 删除排期操作
|
|
isDelete: false // 删除排期操作
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
- // id: {
|
|
|
|
- // handler(newV, oldV) {
|
|
|
|
- // this.listByTask(newV)
|
|
|
|
- // },
|
|
|
|
- // immediate: true
|
|
|
|
- // },
|
|
|
|
|
|
+ locking: {
|
|
|
|
+ handler(newV, oldV) {
|
|
|
|
+ this.dondrop = !newV
|
|
|
|
+ },
|
|
|
|
+ immediate: true
|
|
|
|
+ },
|
|
requiredList: {
|
|
requiredList: {
|
|
handler(newV, oldV) {
|
|
handler(newV, oldV) {
|
|
this.scheduleList = newV
|
|
this.scheduleList = newV
|
|
@@ -113,6 +123,7 @@ export default {
|
|
const tbody = document.querySelector(`#schedule-${this.id} tbody`)
|
|
const tbody = document.querySelector(`#schedule-${this.id} tbody`)
|
|
const _this = this
|
|
const _this = this
|
|
Sortable.create(tbody, {
|
|
Sortable.create(tbody, {
|
|
|
|
+ disabled: _this.dondrop,
|
|
onEnd({ newIndex, oldIndex }) {
|
|
onEnd({ newIndex, oldIndex }) {
|
|
const currRow = _this.scheduleList.splice(oldIndex, 1)[0]
|
|
const currRow = _this.scheduleList.splice(oldIndex, 1)[0]
|
|
_this.scheduleList.splice(newIndex, 0, currRow)
|
|
_this.scheduleList.splice(newIndex, 0, currRow)
|