From 7fac76af0b3c0f320c0478e8150cc4ec943d4a0f Mon Sep 17 00:00:00 2001
From: qianxj <qianxj15@sina.com>
Date: 星期二, 21 三月 2023 11:46:44 +0800
Subject: [PATCH] Merge branch 'master' of http://116.62.18.175:6699/r/~yxh/smartor-web
---
ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_maint.vue | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_maint.vue b/ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_maint.vue
index a1d0e8b..791eda7 100644
--- a/ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_maint.vue
+++ b/ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_maint.vue
@@ -1,6 +1,6 @@
<template>
<div>
- <!--el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body-->
+ <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row>
<el-col :span="6"><el-form-item label=" 111棰樼洰ID " prop="topicid">
@@ -86,7 +86,7 @@
<el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
<el-button @click="cancel">鍙� 娑�</el-button>
</div>
- <!--/el-dialog-->
+ </el-dialog>
</div>
</template>
@@ -175,6 +175,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 => {
--
Gitblit v1.9.3