liudong
2024-08-07 e0219d2121732227922341fb3878e3a4d1b04d9d
src/views/dmx/IntelligentAgent/components/agentConfig.vue
@@ -198,14 +198,15 @@
                  :data="form.prompt_config.parameters"
                  style="width: 100%"
                >
                  <template #key="{ record }">
                  <template #key="{ record, rowIndex }">
                    <a-input v-model="record.key" placeholder="" />
<!--                    <a-input v-model="form.prompt_config.parameters[rowIndex].key" />-->
                  </template>
                  <template #optional="{ record }">
                    <a-switch v-model="record.optional" size="small" />
                  </template>
                  <template #action="{ record }">
                    <a-button type="text" @click="deleteParameters(record)" style="margin-left: 0px" size="small">
                    <a-button type="text" @click="deleteParameters(record)" style="margin-left: 0" size="small">
                      <template #icon>
                        <icon-delete  />
                      </template>
@@ -344,7 +345,7 @@
  rerank_id:'',
  top_k:1024,
});
const height = ref('calc(100vh - 520px)');
const height = ref('calc(500px)');
const props = defineProps(['typeAngint', 'formData']);
const emit = defineEmits(['queryList']);
const columns = [
@@ -491,7 +492,7 @@
    setLoading(true)
    try {
      const data = await dialogSet(formNew);
      console.log(data, 'data');
      // console.log(data, 'data');
      if (data.code == 0){
        Message.success(title);
        handleCancel();
@@ -514,9 +515,9 @@
const editClick = (data) => {
  visible.value = true;
  nextTick(()=>{
    console.log(props.formData,'传入数据');
    // console.log(props.formData,'传入数据');
    Object.assign(form, props.formData);
    console.log(form,'表单数据');
    // console.log(form,'表单数据');
  })
};
@@ -542,7 +543,7 @@
const queryModel = async (params) => {
  try {
    const data = await queryModelList(params);
    console.log(data.data, '大模型列表');
    // console.log(data.data, '大模型列表');
    modelList.value = data.data;
    rankModelList.value = {
      BAAI: [data.data.BAAI[1]],
@@ -560,10 +561,10 @@
  setLoading(true);
  try {
    const { data } = await queryKbList(params);
    console.log(data, 'data');
    // console.log(data, 'data');
    nextTick(() => {
      tabs.value = data;
      console.log(tabs.value, 'tabs');
      // console.log(tabs.value, 'tabs');
    });
  } catch (err) {
    // you can report use errorHandler or other