|
@@ -105,7 +105,7 @@
|
|
|
v-model:param="scope.row.minGram"
|
|
|
link="input-number"
|
|
|
:precision="0"
|
|
|
- :min="0"
|
|
|
+ :min="1"
|
|
|
:max="50"
|
|
|
:rules="[
|
|
|
{
|
|
@@ -123,7 +123,7 @@
|
|
|
v-model:param="scope.row.maxGram"
|
|
|
link="input-number"
|
|
|
:precision="0"
|
|
|
- :min="0"
|
|
|
+ :min="1"
|
|
|
:max="50"
|
|
|
:rules="[
|
|
|
{
|
|
@@ -202,15 +202,15 @@ const titleCpt = computed(() => {
|
|
|
const onSubmit = () => {
|
|
|
ref_form.value.submit().then(() => {
|
|
|
if (state.form.fieldType === 'keyword') {
|
|
|
- if (state.textTable.data.length < 2) {
|
|
|
- ElMessage({
|
|
|
- message: '请至少选择两个分词器!',
|
|
|
- grouping: true,
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (state.textTable.data.filter(v => v.value == 1).length !== 1) {
|
|
|
+ // if (state.textTable.data.length < 2) {
|
|
|
+ // ElMessage({
|
|
|
+ // message: '请至少选择两个分词器!',
|
|
|
+ // grouping: true,
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ if (state.textTable.data?.length > 0 && state.textTable.data.filter(v => v.value == 1).length !== 1) {
|
|
|
ElMessage({
|
|
|
message: '仅可有一个主要分词器!',
|
|
|
grouping: true,
|