|
@@ -137,6 +137,18 @@
|
|
<el-checkbox v-model="checkAll" @change="handleCheckAll">
|
|
<el-checkbox v-model="checkAll" @change="handleCheckAll">
|
|
全选
|
|
全选
|
|
</el-checkbox>
|
|
</el-checkbox>
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="toSelectCount"
|
|
|
|
+ placeholder="请输入选中前面数量"
|
|
|
|
+ class="selectInput"
|
|
|
|
+ size="small"
|
|
|
|
+ >
|
|
|
|
+ <template #append>
|
|
|
|
+ <el-button type="primary" @click="startToSelectAheads"
|
|
|
|
+ >选择</el-button
|
|
|
|
+ >
|
|
|
|
+ </template>
|
|
|
|
+ </el-input>
|
|
</template>
|
|
</template>
|
|
<el-option
|
|
<el-option
|
|
v-for="item in options"
|
|
v-for="item in options"
|
|
@@ -336,6 +348,8 @@ const setOperationList = async () => {
|
|
});
|
|
});
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+const seqListlength = ref(null);
|
|
const setSeqList = async () => {
|
|
const setSeqList = async () => {
|
|
form.value.seqNoList = [];
|
|
form.value.seqNoList = [];
|
|
const { data } = await getSeqList(
|
|
const { data } = await getSeqList(
|
|
@@ -375,6 +389,17 @@ const cancel = () => {
|
|
resetForm();
|
|
resetForm();
|
|
dialog.visible = false;
|
|
dialog.visible = false;
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+const toSelectCount = ref(null);
|
|
|
|
+const startToSelectAheads = () => {
|
|
|
|
+ if (Number(toSelectCount.value)) {
|
|
|
|
+ const count = Number(toSelectCount.value);
|
|
|
|
+ const seqNoList = options.value.map((item) => item.value);
|
|
|
|
+ form.value.seqNoList = seqNoList.slice(0, count);
|
|
|
|
+ } else {
|
|
|
|
+ ElMessage.error("请输入数字");
|
|
|
|
+ }
|
|
|
|
+};
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
getList();
|
|
getList();
|
|
});
|
|
});
|
|
@@ -384,4 +409,8 @@ onMounted(() => {
|
|
.btns {
|
|
.btns {
|
|
margin-bottom: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
}
|
|
|
|
+.selectInput {
|
|
|
|
+ width: 30%;
|
|
|
|
+ margin: 0 0 8px 10px;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|