|
@@ -90,7 +90,7 @@ const { isShowTable, tableType } = toRefs(useCommonStoreHook());
|
|
|
import { updateWorkShop } from "@/api/workShop";
|
|
|
|
|
|
import { updateProductionLine } from "@/api/productionLine";
|
|
|
-import { updateStation } from "@/api/station";
|
|
|
+import {bindStation, updateStation} from "@/api/station";
|
|
|
// 公共弹窗相关
|
|
|
const ctableRef = ref(null);
|
|
|
const workShopRef = ref(null);
|
|
@@ -284,11 +284,10 @@ const onSelectedLineFinish = (selectedValue) => {
|
|
|
};
|
|
|
const onSelectedStationFinish = (selectedValue) => {
|
|
|
console.log(selectedValue); //现在多选返回的是id数组
|
|
|
- // TODO:
|
|
|
formData.value.code = selectedValue.code;
|
|
|
formData.value.parentCode = factory.value.code;
|
|
|
- formData.value.id = selectedValue.id;
|
|
|
- updateStation(formData.value).then((data: any) => {
|
|
|
+ formData.value.ids = selectedValue;
|
|
|
+ bindStation(formData.value).then((data: any) => {
|
|
|
ElMessage({
|
|
|
message: data.msg,
|
|
|
type: "success",
|