yxh
2023-03-21 76bd95ca79b03b84f6d011a81794aabcdeef169b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<template>
    <div class="app-container">
    <dw_base ref="base"/>
    <dw_detail ref="detail"/>
    </div>
</template>
<script>
 import { listSvytopic, getSvytopic, delSvytopic, addSvytopic, updateSvytopic } from "@/api/smartor/svytopic";
 import dw_base from "@/smartor/dataobject/dw_svytopic_maint.vue";
 import dw_detail from  "@/smartor/dataobject/dw_svytopicoption_list.vue";
 
export default {
  name: "SvytopicMaint",
  dicts: ['sys_yes_no'],
  data() {
    return {
        topicid:null,
    }
  },
  components:
  {
    dw_base: dw_base,
    dw_detail: dw_detail
  },
  created() {
    
  },
  mounted() {
    const topicId = this.$route.params && this.$route.params.topicId
    //const topicId = 1
    this.$refs["base"].Retrieve(topicId) 
    this.$refs["detail"].getList(topicId) 
  }
}
</script>