|
@@ -33,9 +33,7 @@
|
|
<el-button @click="deleteRow(row,null,null)" icon="el-icon-delete" text type="danger"
|
|
<el-button @click="deleteRow(row,null,null)" icon="el-icon-delete" text type="danger"
|
|
>删除</el-button
|
|
>删除</el-button
|
|
>
|
|
>
|
|
-
|
|
|
|
-
|
|
|
|
- <el-button @click="binding(row)" icon="el-icon-link" text type="primary"
|
|
|
|
|
|
+ <el-button @click="binding(row)" v-if="row.level === 'first' || row.level === 'second' || row.level === 'third'" icon="el-icon-link" text type="primary"
|
|
>绑定子项</el-button
|
|
>绑定子项</el-button
|
|
>
|
|
>
|
|
</template>
|
|
</template>
|
|
@@ -56,8 +54,9 @@
|
|
<CommonTable
|
|
<CommonTable
|
|
ref="productionLineRef"
|
|
ref="productionLineRef"
|
|
tableTitle="绑定子项"
|
|
tableTitle="绑定子项"
|
|
|
|
+ multiple=true
|
|
tableType="STATION"
|
|
tableType="STATION"
|
|
- @selected-sure="onSelectedStationFinish"
|
|
|
|
|
|
+ @selectMultipleSure="onSelectedStationFinish"
|
|
/>
|
|
/>
|
|
<CommonTable
|
|
<CommonTable
|
|
ref="userRef"
|
|
ref="userRef"
|
|
@@ -71,7 +70,6 @@
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
import { ref, getCurrentInstance } from "vue";
|
|
import { ref, getCurrentInstance } from "vue";
|
|
import { useCrud } from "@/hooks/userCrud";
|
|
import { useCrud } from "@/hooks/userCrud";
|
|
-import ButtonPermKeys from "@/common/configs/buttonPermission";
|
|
|
|
import {useCommonStoreHook, useUserStoreHook} from "@/store";
|
|
import {useCommonStoreHook, useUserStoreHook} from "@/store";
|
|
const { isShowTable, tableType } = toRefs(useCommonStoreHook());
|
|
const { isShowTable, tableType } = toRefs(useCommonStoreHook());
|
|
import { updateWorkShop } from "@/api/workShop";
|
|
import { updateWorkShop } from "@/api/workShop";
|
|
@@ -270,9 +268,8 @@ const onSelectedLineFinish = (selectedValue) => {
|
|
});
|
|
});
|
|
};
|
|
};
|
|
const onSelectedStationFinish = (selectedValue) => {
|
|
const onSelectedStationFinish = (selectedValue) => {
|
|
- formData.value.code = selectedValue.code;
|
|
|
|
formData.value.parentCode = factory.value.code;
|
|
formData.value.parentCode = factory.value.code;
|
|
- formData.value.ids = selectedValue.id;
|
|
|
|
|
|
+ formData.value.ids = selectedValue
|
|
bindStation(formData.value).then((data: any) => {
|
|
bindStation(formData.value).then((data: any) => {
|
|
ElMessage({
|
|
ElMessage({
|
|
message: data.msg,
|
|
message: data.msg,
|