WXL
2024-02-04 cf9259c2ebee0e82c32864a1ee91d96c403b9099
src/views/patient/propaganda/particty.vue
@@ -14,10 +14,7 @@
            title="宣教对象"
            description="在本部选择宣教病人"
          ></el-step>
          <el-step
            icon="el-icon-user"
            title="模版确认"
          ></el-step>
          <el-step icon="el-icon-user" title="模版确认"></el-step>
        </el-steps>
      </div>
    </div>
@@ -284,7 +281,7 @@
            </div>
          </div>
        </div>
        <el-button type="success" @click="submitForm('ruleForm')">{{
        <el-button type="success" @click="nextstep('ruleForm')">{{
          quote ? "立即创建" : "任务详情设置"
        }}</el-button>
        <el-button @click="resetForm('ruleForm')">重置</el-button>
@@ -624,6 +621,7 @@
  addhetask,
  gethetaskinfo,
  delhetaskinfo,
  Editsingletask,
} from "@/api/AiCentre/index";
import SFtable from "@/components/SFtable"; //表格组件
@@ -772,12 +770,41 @@
  created() {
    this.id = this.$route.query.id;
    this.form.type = this.$route.query.type;
    this.Addsubtask();
    this.Getsubtask();
    this.Acquisitiontype();
  },
  methods: {
    // {
    //   姓名: { "${name}": "龙傲天" },
    //   地址: { "${dzz}": "龙宫" },
    //   电话: { "${dhh}": "八个八" },
    // }
    // 对象转数组
    convertFormat1ToFormat2(data) {
      let result = [];
      for (let key in data) {
        let innerKey = Object.keys(data[key])[0];
        result.push({
          name: key,
          value: innerKey,
          fill: data[key][innerKey],
        });
      }
      return result;
    },
    // 数组转对象
    convertFormat2ToFormat1(data) {
      let result = {};
      data.forEach((item) => {
        let innerObj = {};
        innerObj[item.value] = item.fill;
        result[item.name] = innerObj;
      });
      return result;
    },
    // 获取当前类型
    Acquisitiontype() {
      let queryParams = {
@@ -857,11 +884,18 @@
        });
      }
    },
    // 下一步
    submitForm(formName) {
    nextstep() {
      if (this.Editprogress <= 3) {
        return this.Editprogress++;
      }
    },
    // 下一步
    submitForm(formName) {
      Editsingletask(this.form).then((response) => {
        if (res.code == 200) {
          this.$router.go(-1);
        }
      });
      // 提交
      // this.$refs[formName].validate((valid, object) => {
      //   if (valid) {