于添 7 miesięcy temu
rodzic
commit
2f0a9d1db6

+ 2 - 2
.env.development

@@ -5,8 +5,8 @@ NODE_ENV = development
 VITE_TITLE = Snowy
 
 # 接口地址
-VITE_API_BASEURL = http://192.168.31.81:19003
-# VITE_API_BASEURL = http://192.168.31.81:19003
+# VITE_API_BASEURL = http://192.168.31.14:9003
+VITE_API_BASEURL = http://192.168.31.80:19003
 VITE_FILEURL = http://192.168.1.245:10005/education/
 # VITE_API_BASEURL = http://192.168.31.14:9003
 # VITE_API_BASEURL = http://192.168.31.6:9003

+ 3 - 0
.gitignore

@@ -1,2 +1,5 @@
 /node_modules
 /package-lock.json
+/dist
+/.idea
+/.vscode

+ 0 - 7
.vscode/settings.json

@@ -1,7 +0,0 @@
-{
-    "i18n-ally.localesPaths": [
-        "src/locales",
-        "public/tinymce/langs",
-        "src/locales/lang"
-    ]
-}

+ 2 - 1
src/components/UpLoadDoc/index.vue

@@ -25,7 +25,8 @@ import {ref, reactive, watch, defineProps, defineEmits} from 'vue'
 import {message} from 'ant-design-vue'
 import {PictureOutlined, CloudUploadOutlined} from '@ant-design/icons-vue'
 import tool from "@/utils/tool";
-const action = ref('/api/webapp/dev/file/uploadMinioReturnId')
+import sysConfig from '@/config/index'
+const action = ref(sysConfig.API_URL+'/api/webapp/dev/file/uploadMinioReturnId')
 const headers = ref({
 	token: tool.data.get('TOKEN')
 })

+ 2 - 1
src/components/UpLoadSrt/index.vue

@@ -24,7 +24,8 @@ import {ref, reactive, watch, defineProps, defineEmits} from 'vue'
 import {message} from 'ant-design-vue'
 import {PictureOutlined, CloudUploadOutlined} from '@ant-design/icons-vue'
 import tool from "@/utils/tool";
-const action = ref('/api/webapp/dev/file/uploadMinioReturnId')
+import sysConfig from '@/config/index'
+const action = ref(sysConfig.API_URL+'/api/webapp/dev/file/uploadMinioReturnId')
 const headers = ref({
 	token: tool.data.get('TOKEN')
 })

+ 1 - 1
src/views/courseAdd/components/courseProduction/coverUpload/index.vue

@@ -61,7 +61,7 @@
 		}
 	})
 
-	const action = ref('/api/webapp/dev/file/uploadMinioReturnId')
+	const action = ref(sysConfig.API_URL+'/api/webapp/dev/file/uploadMinioReturnId')
 	// 封面文件列表
 	const coverFileList = ref([])
 	const previewImageUrl = ref('')

+ 15 - 15
src/views/courseAdd/components/courseProduction/exList.vue

@@ -4,8 +4,8 @@
 		<div v-if="modeTag == 'list'">
 			<!-- 查询表单 -->
 			<a-form :model="queryParam" layout="inline" class="search-form">
-				<a-form-item label="题目ID:">
-					<a-input v-model:value="queryParam.id" placeholder="请输入题目ID" allow-clear />
+				<a-form-item label="名称:">
+					<a-input v-model:value="queryParam.name" placeholder="请输入名称" allow-clear />
 				</a-form-item>
 
 				<!-- <a-form-item label="年级:">
@@ -162,19 +162,19 @@
 	}
 	// 表格列配置
 	const columns = [
-		{
-			title: 'Id',
-			dataIndex: 'id',
-			key: 'id',
-			width: 90
-		},
-		{
-			title: '学科',
-			dataIndex: 'subjectId',
-			key: 'subjectId',
-			width: 200,
-			customRender: ({ text }) => examStore.subjectEnumFormat(text)
-		},
+		// {
+		// 	title: 'Id',
+		// 	dataIndex: 'id',
+		// 	key: 'id',
+		// 	width: 90
+		// },
+		// {
+		// 	title: '学科',
+		// 	dataIndex: 'subjectId',
+		// 	key: 'subjectId',
+		// 	width: 200,
+		// 	customRender: ({ text }) => examStore.subjectEnumFormat(text)
+		// },
 		{
 			title: '名称',
 			dataIndex: 'name',

+ 15 - 15
src/views/courseAdd/components/courseProduction/exLists.vue

@@ -4,8 +4,8 @@
 		<div v-if="modeTag == 'list'">
 			<!-- 查询表单 -->
 			<a-form :model="queryParam" layout="inline" class="search-form">
-				<a-form-item label="题目ID:">
-					<a-input v-model:value="queryParam.id" placeholder="请输入题目ID" allow-clear />
+				<a-form-item label="名称:">
+					<a-input v-model:value="queryParam.name" placeholder="请输入名称" allow-clear />
 				</a-form-item>
 
 				<!-- <a-form-item label="年级:">
@@ -160,19 +160,19 @@
 
 	// 表格列配置
 	const columns = [
-		{
-			title: 'Id',
-			dataIndex: 'id',
-			key: 'id',
-			width: 90
-		},
-		{
-			title: '学科',
-			dataIndex: 'subjectId',
-			key: 'subjectId',
-			width: 200,
-			customRender: ({ text }) => examStore.subjectEnumFormat(text)
-		},
+		// {
+		// 	title: 'Id',
+		// 	dataIndex: 'id',
+		// 	key: 'id',
+		// 	width: 90
+		// },
+		// {
+		// 	title: '学科',
+		// 	dataIndex: 'subjectId',
+		// 	key: 'subjectId',
+		// 	width: 200,
+		// 	customRender: ({ text }) => examStore.subjectEnumFormat(text)
+		// },
 		{
 			title: '名称',
 			dataIndex: 'name',

+ 2 - 2
src/views/courseAdd/components/courseProduction/resourceUpload.vue

@@ -164,13 +164,13 @@ const props = defineProps({
 })
 const emit = defineEmits(['close', 'getList','onSub'])
 import tool from '@/utils/tool'
-
+import sysConfig from '@/config/index'
 const headers = ref({
 	token: tool.data.get('TOKEN')
 })
 //课程类型
 const courseTypeOptions = tool.dictList('COURSE_TYPE')
-const action = ref('/api/webapp/dev/file/uploadMinioReturnId')
+const action = ref(sysConfig.API_URL+'/api/webapp/dev/file/uploadMinioReturnId')
 const formState = reactive({
 	userfileIds: null, //资源文件id
 	coverImage: null, //封面id

+ 1 - 1
src/views/myResources/coverUpload/index.vue

@@ -61,7 +61,7 @@
 		}
 	})
 
-	const action = ref('/api/webapp/dev/file/uploadMinioReturnId')
+	const action = ref(sysConfig.API_URL+'/api/webapp/dev/file/uploadMinioReturnId')
 	// 封面文件列表
 	const coverFileList = ref([])
 	const previewImageUrl = ref('')

+ 2 - 2
src/views/myResources/index.vue

@@ -197,12 +197,12 @@
 	import resourceUpload from './resourceUpload.vue'
 	import resourceAuditApi from '@/api/resourceAudit.js'
 	import CustomPagination from '@/components/customPagination.vue'
-
+	import sysConfig from '@/config/index'
 	import tool from '@/utils/tool'
 	const headers = ref({
 		token: tool.data.get('TOKEN')
 	})
-	const action = ref('http://192.168.31.80:9003/api/webapp/dev/file/uploadMinioReturnId')
+	const action = ref(sysConfig.API_URL+'/api/webapp/dev/file/uploadMinioReturnId')
 	// 数据源
 	const dataSource = ref([])
 

+ 3 - 1
src/views/myResources/releaseModal.vue

@@ -40,6 +40,8 @@
 	import { PlusOutlined } from '@ant-design/icons-vue'
 	import coverUpload from './coverUpload/index.vue'
 	import tool from '@/utils/tool'
+	import sysConfig from "@/config";
+
 	// const props = defineProps({
 	// 	isState: {
 	// 		type: Number,
@@ -50,7 +52,7 @@
 	const headers = ref({
 		token: tool.data.get('TOKEN')
 	})
-	const action = ref('/api/webapp/dev/file/uploadMinioReturnId')
+	const action = ref(sysConfig.API_URL+'/api/webapp/dev/file/uploadMinioReturnId')
 	const emit = defineEmits(['close', 'confirm'])
 
 	// 表单数据

+ 6 - 2
src/views/myResources/resourceUpload.vue

@@ -139,8 +139,12 @@
 	import coverUpload from './coverUpload/index.vue'
 	import UpLoadBreakPoint from '@/components/UpLoadBreakPoint/index.vue'
 	import { useMyResourceStore } from '@/store/myResource'
+	import tool from '@/utils/tool'
+	import sysConfig from "@/config";
+
 	const myResourceStore = useMyResourceStore()
 	const { proxy } = getCurrentInstance()
+
 	const props = defineProps({
 		isState: {
 			type: Number,
@@ -159,13 +163,13 @@
 		}
 	})
 	const emit = defineEmits(['close', 'getList'])
-	import tool from '@/utils/tool'
+
 	const headers = ref({
 		token: tool.data.get('TOKEN')
 	})
 	//课程类型
 	const courseTypeOptions = tool.dictList('COURSE_TYPE')
-	const action = ref('/api/webapp/dev/file/uploadMinioReturnId')
+	const action = ref(sysConfig.API_URL+'/api/webapp/dev/file/uploadMinioReturnId')
 	const formState = reactive({
 		userfileIds: null, //资源文件id
 		coverImage: null, //封面id