Przeglądaj źródła

更新个人中心

wuhongyuq 5 lat temu
rodzic
commit
5813ade95f

BIN
src/assets/cha.png


BIN
src/assets/personal.png


+ 142 - 0
src/components/svstem/svstem.vue

@@ -0,0 +1,142 @@
+<template>
+  <div id="svstem">
+    <el-row>
+      <el-col :span="24" class="top">
+        <top></top>
+      </el-col>
+      <el-col :span="24" class="logo">
+        <div class="w_1200">
+          <logo :info="info"></logo>
+        </div>
+      </el-col>
+      <el-col :span="24" class="menu">
+        <div class="w_1200">
+          <menuInfo></menuInfo>
+        </div>
+      </el-col>
+      <el-col :span="24" class="main">
+        <div class="w_1200">
+          <el-col :span="5" class="fenlei">
+            <el-col :span="24" class="geren">
+              <geren></geren>
+            </el-col>
+            <el-col :span="24" class="diaocha">
+              <diaocha :diaochatitle="diaochatitle"></diaocha>
+            </el-col>
+          </el-col>
+          <el-col :span="19" class="rightcont">
+            <rightcont :rightList="rightList"></rightcont>
+          </el-col>
+        </div>
+      </el-col>
+      <el-col :span="24" class="foot">
+        <div class="w_1200">
+          <foot :info="info"></foot>
+        </div>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+import top from '@/layout/index/top.vue';
+import logo from '@/layout/index/logo.vue';
+import menuInfo from '@/layout/index/menuInfo.vue';
+import foot from '@/layout/index/foot.vue';
+import geren from '@/layout/svstem/geren.vue';
+import diaocha from '@/layout/svstem/diaocha.vue';
+import rightcont from '@/layout/svstem/rightcont.vue';
+export default {
+  name: 'svstem',
+  props: {
+    info: null, //站点信息
+    rightList: null, //基本信息
+    diaochatitle: null,
+  },
+  components: {
+    top, //头部
+    logo, //logo
+    menuInfo, //导航
+    foot, //底部
+    geren, //左边个人中心
+    rightcont, //右边基本信息
+    diaocha, //左边网上调查
+  },
+  data: () => ({}),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped>
+.w_1200 {
+  width: 1200px;
+  margin: 0 auto;
+}
+.top {
+  height: 40px;
+  overflow: hidden;
+  background-color: rgba(11, 58, 125, 0.8);
+}
+.logo {
+  height: 200px;
+  overflow: hidden;
+}
+.menu {
+  height: 70px;
+  overflow: hidden;
+}
+
+.main {
+  min-height: 600px;
+  overflow: hidden;
+  margin: 10px 0;
+}
+.main .fenlei {
+  float: left;
+  width: 240px;
+  min-height: 850px;
+  margin: 0 10px 0 0;
+  overflow: hidden;
+}
+.geren {
+  float: left;
+  width: 240px;
+  min-height: 360px;
+  // margin: 0 10px 0 0;
+  overflow: hidden;
+  background-color: #ffffff;
+}
+
+.diaocha {
+  float: left;
+  width: 240px;
+  min-height: 405px;
+  margin: 10px 0 0 0;
+  overflow: hidden;
+  background-color: #ffffff;
+}
+
+.main .rightcont {
+  float: left;
+  width: 950px;
+  min-height: 850px;
+  overflow: hidden;
+  background-color: #fff;
+}
+
+.main .link {
+  float: left;
+  width: 100%;
+  height: 100px;
+  overflow: hidden;
+  background-color: #fff;
+}
+.foot {
+  float: left;
+  width: 100%;
+  height: 120px;
+  overflow: hidden;
+}
+</style>

+ 96 - 0
src/layout/svstem/diaocha.vue

@@ -0,0 +1,96 @@
+<template>
+  <div id="diaocha">
+    <el-col class="swfl">
+      <el-image style="width:22px;height:22px;margin:0 5px -5px 0;" :src="src"></el-image>
+      <span>{{ title }}</span>
+    </el-col>
+    <el-col :span="24" class="tu">
+      <el-image :src="pic"></el-image>
+    </el-col>
+
+    <el-col :span="24" class="wenZi">
+      <el-col :span="24" v-for="(item, index) in diaochatitle" :key="index">{{ item.context }} </el-col>
+      <el-col :span="24">
+        <el-radio-group v-model="form.resource">
+          <el-col :span="24" class="anniu"><el-radio :label="3"> 同意</el-radio></el-col>
+          <el-col :span="24" class="anniu"> <el-radio :label="6">不同意</el-radio></el-col>
+          <el-col :span="24" class="anniu"> <el-button type="primary" @click="onSubmit">立即创建</el-button></el-col>
+        </el-radio-group>
+      </el-col>
+    </el-col>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'diaocha',
+  props: {
+    diaochatitle: null,
+  },
+  components: {},
+  data: () => ({
+    src: require('@/assets/zw2.png'),
+    pic: require('@/assets/cha.png'),
+    title: '网上调查',
+    form: {
+      resource: '',
+    },
+  }),
+  created() {},
+  computed: {},
+  methods: {
+    handleOpen(key, keyPath) {
+      console.log(key, keyPath);
+    },
+    handleClose(key, keyPath) {
+      console.log(key, keyPath);
+    },
+    onSubmit() {
+      console.log('submit!');
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.swfl {
+  height: 60px;
+  width: 240px;
+  line-height: 60px;
+  background-color: #22529a;
+  text-align: center;
+}
+.swfl span {
+  font-size: 22px;
+  color: #ffffff;
+}
+/deep/.el-menu-item {
+  height: 60px;
+  text-align: center;
+  line-height: 60px;
+  border-bottom: 1px dashed;
+  font-size: 22px;
+}
+/deep/.el-menu-item:last-child {
+  border-bottom: none;
+}
+.tu {
+  width: 150px;
+  margin: 20px 0 0 70px;
+  height: 100px;
+}
+
+.wenZi {
+  width: 220px;
+  padding-left: 28px;
+  font-size: 14px;
+  padding-right: 10px;
+  margin-top: 35px;
+
+  line-height: 30px;
+  padding-bottom: 15px;
+}
+.anniu {
+  padding: 10px 0 0 10px;
+}
+</style>

+ 62 - 0
src/layout/svstem/geren.vue

@@ -0,0 +1,62 @@
+<template>
+  <div id="geren">
+    <el-col class="swfl">
+      <el-image style="width:22px;height:22px;margin:0 5px -5px 0;" :src="src"></el-image>
+      <span>个人中心</span>
+    </el-col>
+    <el-col>
+      <el-menu default-active="1" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose" text-color="#215299" active-text-color="#215299">
+        <el-menu-item index="1"><span slot="title">基本信息</span></el-menu-item>
+        <el-menu-item index="2"><span slot="title">用户管理</span></el-menu-item>
+        <el-menu-item index="3"><span slot="title">我的审核</span></el-menu-item>
+        <el-menu-item index="4"><span slot="title">统计信息</span></el-menu-item>
+        <el-menu-item index="5"><span slot="title">注销账号</span></el-menu-item>
+      </el-menu>
+    </el-col>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'geren',
+  props: {},
+  components: {},
+  data: () => ({
+    src: require('@/assets/personal.png'),
+  }),
+  created() {},
+  computed: {},
+  methods: {
+    handleOpen(key, keyPath) {
+      console.log(key, keyPath);
+    },
+    handleClose(key, keyPath) {
+      console.log(key, keyPath);
+    },
+  },
+};
+</script>
+
+<style lang="less" scoped>
+.swfl {
+  height: 60px;
+  width: 240px;
+  line-height: 60px;
+  background-color: #22529a;
+  text-align: center;
+}
+.swfl span {
+  font-size: 22px;
+  color: #ffffff;
+}
+/deep/.el-menu-item {
+  height: 60px;
+  text-align: center;
+  line-height: 60px;
+  border-bottom: 1px dashed;
+  font-size: 22px;
+}
+/deep/.el-menu-item:last-child {
+  border-bottom: none;
+}
+</style>

+ 59 - 0
src/layout/svstem/rightcont.vue

@@ -0,0 +1,59 @@
+<template>
+  <div id="rightcont">
+    <el-col :span="24" class="rightTop"
+      ><span class="title">{{ title }}</span></el-col
+    >
+    <el-col :span="24" class="context">
+      {{ rightList.name }}
+    </el-col>
+    <el-col :span="24" class="context">
+      {{ rightList.card }}
+    </el-col>
+    <el-col :span="24" class="context">
+      {{ rightList.address }}
+    </el-col>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'rightcont',
+  props: {
+    rightList: null,
+  },
+  components: {},
+  data: () => ({
+    title: '基本信息',
+  }),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped>
+.rightTop {
+  height: 60px;
+
+  line-height: 60px;
+  border-bottom: 1px solid #215299;
+}
+
+.rightTop .title {
+  width: 130px;
+  height: 60px;
+  float: left;
+  color: rgb(255, 255, 255);
+  font-size: 18px;
+  text-align: center;
+  font-family: 微软雅黑, Tahoma, Arial, Helvetica, STHeiti;
+  background: rgb(33, 82, 153);
+}
+
+.context {
+  width: 890px;
+  padding: 20px 0 0 25px;
+  font-size: 18px;
+  color: #888888;
+}
+</style>

+ 5 - 0
src/router/index.js

@@ -110,6 +110,11 @@ const routes = [
     name: 'guidance',
     component: () => import('../views/personnel/guidance.vue'),
   },
+  {
+    path: '/svstem/svstem',
+    name: 'svstem',
+    component: () => import('../views/svstem/svstem.vue'),
+  },
 ];
 
 const router = new VueRouter({

+ 49 - 0
src/views/svstem/svstem.vue

@@ -0,0 +1,49 @@
+<template>
+  <div id="svstem">
+    <svstem-detail :info="info" :rightList="rightList" :diaochatitle="diaochatitle"></svstem-detail>
+  </div>
+</template>
+
+<script>
+import svstemDetail from '@/components/svstem/svstem.vue';
+export default {
+  name: 'svstem',
+  props: {},
+  components: {
+    svstemDetail,
+  },
+  data: () => ({
+    info: {
+      logo: require('@/assets/logo.png'),
+      banquan: '版权所有:吉林省计算中心',
+      jishu: '技术支持:长春市福瑞科技有限公司',
+      youbian: '邮编:130000',
+      chuanzhen: '传真:239823982',
+      address: '地址:吉林省长春市朝阳区前进大街1244号',
+      phone: '电话:0431-1234567',
+      email: '邮箱:123456@163.com',
+    },
+    rightList: {
+      name: '外审管理员',
+      card: '12345',
+      address: '吉林省长春市',
+    },
+    diaochatitle: [
+      {
+        context: '您是否愿意继续关注本平台',
+      },
+      {
+        context: '您是否愿意继续关注本平台',
+      },
+      {
+        context: '您是否愿意继续关注本平台',
+      },
+    ],
+  }),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="scss" scoped></style>