浏览代码

luowei修改bug

luowei 2 年之前
父节点
当前提交
00cae6780c
共有 2 个文件被更改,包括 20 次插入8 次删除
  1. 10 1
      src/api/resumption/configuration.js
  2. 10 7
      src/views/information/configuration/index.vue

+ 10 - 1
src/api/resumption/configuration.js

@@ -7,4 +7,13 @@ export function insertConfiguration(data) {
       method: 'post',
       data: data
     })
-  }
+  }
+
+  // 回显【请填写功能名称】
+export function getInfo() {
+  return request({
+    url: '/core/configuration',
+    method: 'get',
+  
+  })
+}

+ 10 - 7
src/views/information/configuration/index.vue

@@ -144,13 +144,13 @@
 </template>
 
 <script>
-import { insertConfiguration } from "@/api/resumption/configuration";
+import { insertConfiguration ,getInfo} from "@/api/resumption/configuration";
 export default {
   props: [],
   components: {},
   data() {
     return {
-
+      coreResumptionConfigurationDTO:[],
       num: 1,
       day: {
         resumptionCycle: 1,
@@ -252,20 +252,23 @@ export default {
   watch: {},
   computed: {},
   beforeCreate() { },
-  created() { },
+
   beforeMount() { },
   mounted() { },
   beforeUpdate() { },
   updated() { },
   destroyed() { },
-
+  created() {
+    this.selectInfo();
+  },
   methods: {
     request() { },
     handleChange(value) { },
-    hello() {
-      alert("来自预设逻辑代码的问候")
+    selectInfo(){
+      getInfo().then(response=>{
+        this.coreResumptionConfigurationDTO = response.rows;
+      })
     },
-
     checkForm(form) {
       let val
       this.$refs[form].validate(valid => {