feat: 添加中文和英文语料输入项,更新全局常量以注入项目名称
This commit is contained in:
parent
d6ef59ac94
commit
8f981d50d0
@ -12,4 +12,6 @@ VITE_WS_URL = ws://192.168.0.222:14080/ws
|
||||
VITE_AUDIO_SERVER_URL = ws://192.168.0.222:14080/ws/audio
|
||||
VITE_PORT = 5174
|
||||
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-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-input
|
||||
v-model="form.remark"
|
||||
@ -245,21 +263,14 @@ import {
|
||||
} from "@/api/inspection/point";
|
||||
import { listResourceMaps as getMapList } from '@cmvr/iot-common'
|
||||
import TableSearch from "@/components/TableSearch/index.vue";
|
||||
import { listGroup } from '@cmvr/iot-common'
|
||||
import { appendParamsToPath } from "@/utils/fn.js";
|
||||
import TableTags from "@/components/TableTags/index.vue";
|
||||
import EditTable from "@/components/EditTable/index.vue";
|
||||
|
||||
import { useContainerHeight } from "@/hooks/tableHeight";
|
||||
import { ElMessage, ElMessageBox } from "element-plus";
|
||||
import { el } from "element-plus/es/locale/index.mjs";
|
||||
import { map } from "lodash";
|
||||
|
||||
const topContainerRef = ref();
|
||||
const containerHeight = useContainerHeight(topContainerRef);
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const tableDataList = ref([]);
|
||||
const open = ref(false);
|
||||
const loading = ref(false);
|
||||
@ -285,6 +296,12 @@ const data = reactive({
|
||||
mapId: [
|
||||
{ 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 *;`
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
define: {
|
||||
// 将环境变量注入到全局常量中
|
||||
'__PROJECT_NAME__': JSON.stringify(env.PROJECT_NAME || 'changan'),
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user