Преглед на файлове

新增计量管理和首页

huang_an преди 1 година
родител
ревизия
ec9744fbf8
променени са 3 файла, в които са добавени 11 реда и са изтрити 9 реда
  1. 4 4
      src/App.vue
  2. 6 4
      src/views/system/unifiedPortal/dialog.vue
  3. 1 1
      src/views/system/unifiedPortal/index.vue

+ 4 - 4
src/App.vue

@@ -10,7 +10,7 @@
   import { getPathAddress } from '@/api/system/file/index';
   export default {
     name: 'App',
-    created () {
+    created() {
       console.log('我是子应用------------------------------------');
       // 恢复主题
       this.$store.dispatch('theme/recoverTheme');
@@ -23,7 +23,7 @@
     },
     methods: {
       /* 路由切换更新浏览器标题 */
-      setDocumentTitle () {
+      setDocumentTitle() {
         updateDocumentTitle(
           this.$route,
           (key) => this.$t(key),
@@ -32,10 +32,10 @@
       }
     },
     watch: {
-      '$i18n.locale' () {
+      '$i18n.locale'() {
         this.setDocumentTitle();
       },
-      $route () {
+      $route() {
         this.setDocumentTitle();
       }
     }

+ 6 - 4
src/views/system/unifiedPortal/dialog.vue

@@ -2,10 +2,10 @@
   <el-dialog
     :title="`${type}统一门户`"
     :visible.sync="dialogVisible"
-    width="20%"
+    width="25%"
   >
-    <el-form label-width="80px" class="zw-criterion">
-      <el-form-item label="图片">
+    <el-form label-width="120px" class="zw-criterion">
+      <el-form-item label="图标(比例1:1)" required>
         <el-upload
           class="avatar-uploader"
           :action="''"
@@ -28,7 +28,9 @@
         ></el-input>
       </el-form-item>
       <el-form-item label="链接" required>
-        <el-input v-model="form.linkUrl" placeholder="请输入内容"></el-input>
+        <el-input placeholder="请输入内容" v-model="form.linkUrl">
+          <template slot="prepend">https://</template>
+        </el-input>
       </el-form-item>
       <el-form-item label="链接类型" required>
         <DictSelection

+ 1 - 1
src/views/system/unifiedPortal/index.vue

@@ -125,7 +125,7 @@
 
 <style lang="scss" scoped>
   #unifiedPortalIndex {
-    height: 100%;
+    height: calc(100vh - 97px);
     width: 100%;
     .content_box {
       width: 100%;