|
@@ -24,7 +24,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { pubPlanerUpdate } from "@/api/labsl";
|
|
|
|
|
|
+import { pubPlanerUpdate, planerUpdate } from "@/api/labsl";
|
|
export default {
|
|
export default {
|
|
props: {
|
|
props: {
|
|
isPub: {
|
|
isPub: {
|
|
@@ -78,9 +78,12 @@ export default {
|
|
],
|
|
],
|
|
projection: ["label"],
|
|
projection: ["label"],
|
|
};
|
|
};
|
|
|
|
+ // 已发布
|
|
if (this.isPub) {
|
|
if (this.isPub) {
|
|
- // 已发布
|
|
|
|
- let res = await pubPlanerUpdate(pa);
|
|
|
|
|
|
+ const res = await pubPlanerUpdate(pa);
|
|
|
|
+ this.updateCall(res);
|
|
|
|
+ } else { //未发布
|
|
|
|
+ const res = await planerUpdate(pa);
|
|
this.updateCall(res);
|
|
this.updateCall(res);
|
|
}
|
|
}
|
|
},
|
|
},
|