|
@@ -146,7 +146,10 @@ export default {
|
|
watch: {
|
|
watch: {
|
|
id: {
|
|
id: {
|
|
handler(newV, oldV) {
|
|
handler(newV, oldV) {
|
|
- this.listByTask(newV)
|
|
|
|
|
|
+ console.log(newV)
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.listByTask(newV)
|
|
|
|
+ })
|
|
},
|
|
},
|
|
immediate: true
|
|
immediate: true
|
|
},
|
|
},
|
|
@@ -185,8 +188,9 @@ export default {
|
|
// },
|
|
// },
|
|
async listByTask(id) { // 获取排期列表
|
|
async listByTask(id) { // 获取排期列表
|
|
const res = await listByTask(id)
|
|
const res = await listByTask(id)
|
|
|
|
+
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
- this.scheduleList = res.data.schedulDetailResponses
|
|
|
|
|
|
+ this.scheduleList = res.data.scheduleDetailRespons
|
|
this.scheduleDetail = res.data || {}
|
|
this.scheduleDetail = res.data || {}
|
|
this.scheduleList = this.scheduleList.map(item => ({
|
|
this.scheduleList = this.scheduleList.map(item => ({
|
|
...item,
|
|
...item,
|