WXL
2024-07-31 8ec6407cf76c1f8d7e08e5456018aaafc93f0556
src/components/Regular/index.vue
@@ -6,7 +6,7 @@
          ><el-form-item label="选项名称">
            <el-input
              type="text"
              placeholder="请输入"
              placeholder="请输入(必填项)"
              v-model="item.targetvalue"
              show-word-limit
            >
@@ -150,13 +150,13 @@
          >
        </div>
      </el-form-item>
      <el-form-item label="选项文件" prop="sickness">
      <el-form-item label="选项文件" prop="sickness" v-if="Verbalproblem">
        <div style="width: 40vw">
          <el-upload
            class="upload-demo"
            :action="uploadImgUrl"
            :headers="headers"
            :accept="'image/*,video/*'"
            accept=".jpg,.png,image/*"
            :on-success="handleChange.bind(this, item)"
          >
            <el-button size="small" type="primary">点击上传</el-button>
@@ -268,6 +268,10 @@
      default: true,
    },
    hasValue: {
      type: Boolean,
      default: true,
    },
    Verbalproblem: {
      type: Boolean,
      default: true,
    },
@@ -399,8 +403,9 @@
      console.log(item, "item");
      console.log(this.TargetoptionList, "this.TargetoptionList");
      let index = this.TargetoptionList.findIndex(
        (obj) => obj.guid == item.guid && obj.name == item.name
        (obj) => obj.guid == item.guid
      );
      console.log(index);
      this.TargetoptionList[index].picturePath = response.url;
    },
  },