|
@@ -9,7 +9,6 @@
|
|
|
:row-class-name="getRowClass"
|
|
|
:table-events="{
|
|
|
select: selectRow,
|
|
|
- 'select-all': selectRow,
|
|
|
}"
|
|
|
:action-list="[
|
|
|
{
|
|
@@ -547,8 +546,7 @@ const transferToProduction = (row) => {
|
|
|
}
|
|
|
dialogVisible.value = true;
|
|
|
};
|
|
|
-// 监听选中的值,并动态更新是否可选中
|
|
|
-watch(selectData, (newVal, oldVal) => {
|
|
|
+watch(selectData, (newVal) => {
|
|
|
if (newVal.length == 0) {
|
|
|
sourceList.value.data.forEach((x) => {
|
|
|
x.isCheck = true;
|
|
@@ -556,13 +554,12 @@ watch(selectData, (newVal, oldVal) => {
|
|
|
} else if (newVal.length == 1) {
|
|
|
const current = newVal[0];
|
|
|
sourceList.value.data.forEach((x) => {
|
|
|
- if (x.corporationId !== current.corporationId) {
|
|
|
+ if (x.contractId !== current.contractId) {
|
|
|
x.isCheck = false;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
const submitForm = () => {
|
|
|
submit.value.handleSubmit(() => {
|
|
|
if (!(formData.data.list && formData.data.list.length > 0)) {
|