yxh
2023-03-21 acd7802beaa570c6811ed7227e441e39e8c5e37e
Merge branch 'master' of http://116.62.18.175:6699/r/~yxh/smartor-web
已修改2个文件
22 ■■■■■ 文件已修改
ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_list.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_maint.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_list.vue
@@ -49,6 +49,7 @@
  name: "Svytopicoption",
  data() {
    return {
        topicId: null,
      single: true,
      // 非多个禁用
      multiple: true,
@@ -78,6 +79,7 @@
  methods: {
    /** 查询问卷问题选项列表 */
    getList(topicId) {
        this.topicId = topicId;
      this.loading = true;
      this.queryParams.topicid = topicId;
      listSvytopicoption(this.queryParams).then(response => {
@@ -95,13 +97,13 @@
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.$refs["maint"].handleUpdate(null)
        this.$refs["maint"].handleUpdate2(null,this.topicId)
      return
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      const optionid = row.optionid || this.ids
      this.$refs["maint"].handleUpdate(optionid)
        this.$refs["maint"].handleUpdate2(optionid,this.topicId)
      return
    },
ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_maint.vue
@@ -147,6 +147,22 @@
        this.title = "新增问卷问题选项";
      }
    },
    handleUpdate2(id,topicId) {
      this.reset();
      this.open = true;
      if (id != null) {
        const optionid = id;
        getSvytopicoption(optionid).then(response => {
          this.form = response.data;
          this.form.topicid = topicId;
          this.title = "修改问卷问题选项";
        });
      }else
      {
        this.form.topicid = topicId;
        this.title = "新增问卷问题选项";
      }
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {