Просмотр исходного кода

Merge branch 'dev' of http://110.41.163.243:9980/kd-aiot/kd-aiot-frontend into dev

LAPTOP-16IUEB3P\Lenovo 3 лет назад
Родитель
Сommit
b5d86581cd
4 измененных файлов с 46 добавлено и 1 удалено
  1. 1 0
      .gitignore
  2. 43 0
      src/components/header-title/index.vue
  3. 2 0
      src/main.js
  4. 0 1
      src/views/system/role/components/role-edit.vue

+ 1 - 0
.gitignore

@@ -22,3 +22,4 @@ yarn-error.log*
 *.sln
 *.sln
 *.sw?
 *.sw?
 vue.config.js
 vue.config.js
+vue.config.js

+ 43 - 0
src/components/header-title/index.vue

@@ -0,0 +1,43 @@
+<template>
+  <div class="divider">
+    <div class="title">
+      <div class="ele-bg-primary"></div>
+      <span :style="{ 'font-size': size }">{{ title }}</span>
+    </div>
+    <div class="ele-bg-primary" style="width: 100%; height: 2px"></div>
+  </div>
+</template>
+
+<script>
+  export default {
+    props: {
+      title: {
+        typeof: String,
+        default: '信息'
+      },
+      size: {
+        typeof: String,
+        default: '16px'
+      }
+    }
+  };
+</script>
+<style lang="scss" scoped>
+  .divider {
+    margin-bottom: 20px;
+
+    .title {
+      display: flex;
+      align-items: center;
+      margin-bottom: 10px;
+      div {
+        width: 8px;
+        height: 20px;
+        margin-right: 10px;
+      }
+      span {
+        font-size: 20px;
+      }
+    }
+  }
+</style>

+ 2 - 0
src/main.js

@@ -13,6 +13,8 @@ import DictSelection from '@/components/Dict/DictSelection';
 // import tinymce from '@/components/FormGenerator/components/tinymce/index.js';
 // import tinymce from '@/components/FormGenerator/components/tinymce/index.js';
 import TinymceEditor from '@/components/TinymceEditor/index.vue';
 import TinymceEditor from '@/components/TinymceEditor/index.vue';
 // import SvgIcon from '@/components/FormGenerator/components/SvgIcon'; // svg component
 // import SvgIcon from '@/components/FormGenerator/components/SvgIcon'; // svg component
+import HeaderTitle from '@/components/header-title';
+Vue.component('HeaderTitle', HeaderTitle);
 
 
 // // register globally
 // // register globally
 Vue.component('tinymce', TinymceEditor);
 Vue.component('tinymce', TinymceEditor);

+ 0 - 1
src/views/system/role/components/role-edit.vue

@@ -123,7 +123,6 @@
             // this.form = this.data;
             // this.form = this.data;
             this.form = Object.assign(this.data);
             this.form = Object.assign(this.data);
             this.isUpdate = true;
             this.isUpdate = true;
-            console.log(1111111);
           } else {
           } else {
             this.isUpdate = false;
             this.isUpdate = false;
           }
           }