From d49d271a064aaa8fe04b4fe476240be731a18733 Mon Sep 17 00:00:00 2001
From: qianxj <qianxj15@sina.com>
Date: 星期二, 21 三月 2023 10:35:47 +0800
Subject: [PATCH] update svytopic
---
ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_list.vue | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_list.vue b/ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_list.vue
index 335aa42..dfc88da 100644
--- a/ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_list.vue
+++ b/ruoyi-ui/src/smartor/dataobject/dw_svytopicoption_list.vue
@@ -38,6 +38,7 @@
</template>
</el-table-column>
</el-table>
+ <maintdlg ref="maint"/>
</div>
</template>
@@ -49,6 +50,12 @@
name: "Svytopicoption",
data() {
return {
+ topicId: null,
+ single: true,
+ // 闈炲涓鐢�
+ multiple: true,
+ // 鏄剧ず鎼滅储鏉′欢
+ showSearch: true,
loading : false,
showSearch: true,
// 鎬绘潯鏁�
@@ -73,6 +80,7 @@
methods: {
/** 鏌ヨ闂嵎闂閫夐」鍒楄〃 */
getList(topicId) {
+ this.topicId = topicId;
this.loading = true;
this.queryParams.topicid = topicId;
listSvytopicoption(this.queryParams).then(response => {
@@ -90,13 +98,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
},
--
Gitblit v1.9.3