feat: 添加中文和英文语料输入项,更新全局常量以注入项目名称
This commit is contained in:
parent
d6ef59ac94
commit
8f981d50d0
@ -13,3 +13,5 @@ VITE_AUDIO_SERVER_URL = ws://192.168.0.222:14080/ws/audio
|
|||||||
VITE_PORT = 5174
|
VITE_PORT = 5174
|
||||||
VITE_INSPECTION_TYPE = "inspection"
|
VITE_INSPECTION_TYPE = "inspection"
|
||||||
VITE_MINIO_URL = "http://192.168.28.10:9000/cmvr-iot/"
|
VITE_MINIO_URL = "http://192.168.28.10:9000/cmvr-iot/"
|
||||||
|
|
||||||
|
PROJECT_NAME=changan
|
||||||
@ -215,6 +215,24 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-divider>播放语料</el-divider>
|
||||||
|
<el-form-item label="中文语料" prop="chineseCorpus">
|
||||||
|
<el-input
|
||||||
|
v-model="form.chineseCorpus"
|
||||||
|
:rows="2"
|
||||||
|
placeholder="请输入中文语料"
|
||||||
|
type="textarea"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="英文语料" prop="englishCorpus">
|
||||||
|
<el-input
|
||||||
|
v-model="form.englishCorpus"
|
||||||
|
:rows="2"
|
||||||
|
placeholder="请输入英文语料"
|
||||||
|
type="textarea"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-divider />
|
||||||
<el-form-item label="备注" prop="remark">
|
<el-form-item label="备注" prop="remark">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.remark"
|
v-model="form.remark"
|
||||||
@ -245,21 +263,14 @@ import {
|
|||||||
} from "@/api/inspection/point";
|
} from "@/api/inspection/point";
|
||||||
import { listResourceMaps as getMapList } from '@cmvr/iot-common'
|
import { listResourceMaps as getMapList } from '@cmvr/iot-common'
|
||||||
import TableSearch from "@/components/TableSearch/index.vue";
|
import TableSearch from "@/components/TableSearch/index.vue";
|
||||||
import { listGroup } from '@cmvr/iot-common'
|
|
||||||
import { appendParamsToPath } from "@/utils/fn.js";
|
import { appendParamsToPath } from "@/utils/fn.js";
|
||||||
import TableTags from "@/components/TableTags/index.vue";
|
import TableTags from "@/components/TableTags/index.vue";
|
||||||
import EditTable from "@/components/EditTable/index.vue";
|
|
||||||
|
|
||||||
import { useContainerHeight } from "@/hooks/tableHeight";
|
import { useContainerHeight } from "@/hooks/tableHeight";
|
||||||
import { ElMessage, ElMessageBox } from "element-plus";
|
import { ElMessage, ElMessageBox } from "element-plus";
|
||||||
import { el } from "element-plus/es/locale/index.mjs";
|
|
||||||
import { map } from "lodash";
|
|
||||||
|
|
||||||
const topContainerRef = ref();
|
const topContainerRef = ref();
|
||||||
const containerHeight = useContainerHeight(topContainerRef);
|
const containerHeight = useContainerHeight(topContainerRef);
|
||||||
|
|
||||||
const { proxy } = getCurrentInstance();
|
|
||||||
|
|
||||||
const tableDataList = ref([]);
|
const tableDataList = ref([]);
|
||||||
const open = ref(false);
|
const open = ref(false);
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
@ -285,6 +296,12 @@ const data = reactive({
|
|||||||
mapId: [
|
mapId: [
|
||||||
{ required: true, message: "所属地图不能为空", trigger: "change" },
|
{ required: true, message: "所属地图不能为空", trigger: "change" },
|
||||||
],
|
],
|
||||||
|
chineseCorpus: [
|
||||||
|
{ required: true, message: "中文语料不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
|
englishCorpus: [
|
||||||
|
{ required: true, message: "英文语料不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -108,6 +108,10 @@ export default defineConfig(({ mode, command }) => {
|
|||||||
additionalData: `@use "${variablePath}" as *;`
|
additionalData: `@use "${variablePath}" as *;`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
define: {
|
||||||
|
// 将环境变量注入到全局常量中
|
||||||
|
'__PROJECT_NAME__': JSON.stringify(env.PROJECT_NAME || 'changan'),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user