|
@@ -152,7 +152,7 @@ import { reactive, toRefs, onMounted, defineComponent, ref } from 'vue';
|
|
import type { FormInstance, FormRules } from 'element-plus';
|
|
import type { FormInstance, FormRules } from 'element-plus';
|
|
import { ElMessage } from 'element-plus';
|
|
import { ElMessage } from 'element-plus';
|
|
|
|
|
|
-import api from '/@/api/modules';
|
|
|
|
|
|
+import api from '/@/api/modules/assess';
|
|
|
|
|
|
// 定义接口来定义对象的类型
|
|
// 定义接口来定义对象的类型
|
|
interface RuleFormRow {
|
|
interface RuleFormRow {
|
|
@@ -216,7 +216,7 @@ export default defineComponent({
|
|
};
|
|
};
|
|
// 新增数据
|
|
// 新增数据
|
|
const addDataSourceInfo = (params: any) => {
|
|
const addDataSourceInfo = (params: any) => {
|
|
- api.assess.addDataSourceInfo(params).then(() => {
|
|
|
|
|
|
+ api.addDataSourceInfo(params).then(() => {
|
|
ElMessage.success('数据提交成功');
|
|
ElMessage.success('数据提交成功');
|
|
closeDialog();
|
|
closeDialog();
|
|
state.isShow = false
|
|
state.isShow = false
|
|
@@ -224,7 +224,7 @@ export default defineComponent({
|
|
};
|
|
};
|
|
// 编辑数据
|
|
// 编辑数据
|
|
const editataSourceInfo = (params: any) => {
|
|
const editataSourceInfo = (params: any) => {
|
|
- api.assess.editataSourceInfo(params).then((res: any) => {
|
|
|
|
|
|
+ api.editataSourceInfo(params).then((res: any) => {
|
|
ElMessage.success('数据提交成功');
|
|
ElMessage.success('数据提交成功');
|
|
closeDialog();
|
|
closeDialog();
|
|
state.isShow = false
|
|
state.isShow = false
|
|
@@ -243,7 +243,7 @@ export default defineComponent({
|
|
uri: state.ruleForm.uri,
|
|
uri: state.ruleForm.uri,
|
|
object: state.ruleForm.object
|
|
object: state.ruleForm.object
|
|
}
|
|
}
|
|
- api.assess.testDataSource(params).then((res: any) => {
|
|
|
|
|
|
+ api.testDataSource(params).then((res: any) => {
|
|
state.testRes = res
|
|
state.testRes = res
|
|
});
|
|
});
|
|
};
|
|
};
|
|
@@ -254,7 +254,7 @@ export default defineComponent({
|
|
target_name: row.name,
|
|
target_name: row.name,
|
|
};
|
|
};
|
|
state.item_code = item_code;
|
|
state.item_code = item_code;
|
|
- api.assess.getDataSourceInfo(params).then((res: any) => {
|
|
|
|
|
|
+ api.getDataSourceInfo(params).then((res: any) => {
|
|
if (res) {
|
|
if (res) {
|
|
// 编辑
|
|
// 编辑
|
|
state.ruleForm = res;
|
|
state.ruleForm = res;
|