suxinf пре 5 година
родитељ
комит
cc212627aa

+ 80 - 106
src/views/parameter/CarSeries.vue

@@ -1,52 +1,50 @@
 <template>
-  <div class="car_series">
-    <div class="count">
-      <button v-if="queryTag === 1" @click="showModal">新增车系</button>
-      <button v-else>新增车型</button>
-      <Count :sum='sum'></Count>
+  <div>
+    <div class="car_series" v-if="queryTag">
+      <div class="count">
+        <button @click="showModal">新增车系</button>
+        <Count :sum="sum"></Count>
+      </div>
+      <div class="table">
+        <Table
+          :tableData="tableData"
+          @edit="edit"
+          @delet_data="deleteData"
+          @car_type="carType"
+          :pageSize='sum'
+        ></Table>
+      </div>
+      <div class="page">
+        <Tablepage
+          :totalPage="totalPage"
+          :currentPage="currentPage"
+          @change_page="changePage"
+          @jump_page="jumpPage"
+        ></Tablepage>
+      </div>
+      <div class="modal" v-if="modalFlag">
+        <Modal :modalFlag="modalFlag" @hide_modal="showModal" @submit='submit'></Modal>
+      </div>
     </div>
-    <div class="table">
-      <Table
-        :trStyle='trStyle'
-        :tableHeader='tableHeader'
-        :tableData='tableData'
-        :tableHeadStyle='tableHeadStyle'
-        :operation='operation'
-        :operationStyle='operationStyle'
-        :discolor='discolor'
-        :flag='flag'
-      ></Table>
-    </div>
-    <div class="page">
-      <Tablepage
-        :totalPage='totalPage'
-        :currentPage='currentPage'
-        @change_page='changePage'
-        @jump_page='jumpPage'
-      ></Tablepage>
-    </div>
-    <div class="modal">
-      <Modal
-        :modalFlag='modalFlag'
-        @hide_modal='showModal'
-      ></Modal>
+    <div v-else>
+      <CarType />
     </div>
   </div>
 </template>
 
 <script>
-import Count from '../../components/Count';
-import Tablepage from '../../components/TablePage';
-import Table from '../../components/Table';
-import { TABLEHEADS,TABLEHEADSTYLES, TRSSTYLE, OPERATIONSSTYLE } from '../../tableConfig/carSeries.js';
-import Modal from "./components/modal";
-
+import Count from "../../components/Count";
+import Tablepage from "../../components/TablePage";
+import Table from "./components/CarSeriesTable";
+import Modal from "./components/CarSeriesModal";
+import CarType from "./components/CarType";
 export default {
   components: {
     Count,
     Table,
     Tablepage,
-    Modal
+    Modal,
+    CarType,
   },
   data() {
     return {
@@ -54,58 +52,35 @@ export default {
       pageSize: 20, // 每页展示的数据
       currentPage: 1,
       // 表格配置
-      discolor: false,
-      flag: false,
-      tableHeader: TABLEHEADS, // 表头
-      operationStyle: OPERATIONSSTYLE, // 操作栏样式
-      tableData: [],
-      tableHeadStyle: TABLEHEADSTYLES, // 表头样式
-      operation: [
-        {
-          name: '编辑',
-          function: (index) => {
-            this.edit(index);
-          }
-        },
-        {
-          name: '删除',
-          function: (index) => {
-            this.delete(index);
-          }
-        },
-        {
-          name: '系列车型>',
-          function: (index) => {
-            this.carType(index);
-          }
-        }
-      ], // 操作
-      trStyle: TRSSTYLE, // 表格tr样式
-      getDate: [{carSeries: '雷克萨斯ES', str: '123'},{carSeries: '雷克萨斯ES', str: '124'},{carSeries: '雷克萨斯ES', str: '125'},],
+      tableData: [{ carSeries: "雷克萨斯ES" }, { carSeries: "雷克萨斯ES2" }],
+      getDate: [
+        { carSeries: "雷克萨斯ES", str: "123" },
+        { carSeries: "雷克萨斯ES", str: "124" },
+        { carSeries: "雷克萨斯ES", str: "125" },
+      ],
       functionData: [],
       modalFlag: false, // 控制模态框展示
-    }
+    };
   },
-    computed:{
+  computed: {
     // 表格总页数
     totalPage() {
-      return Math.ceil(this.sum/this.pageSize);
+      return Math.ceil(this.sum / this.pageSize);
     },
     // 获取路由参数
     queryTag() {
-      console.log (111, this.$route.query);
-      return (this.$route.query && this.$route.query.tag) ? 0 : 1
-    }
+      return this.$route.query && this.$route.query.tag ? 0 : 1;
+    },
   },
   methods: {
     // 获取某一页面的数据,展示在表格
-    changePage: function(page) {
+    changePage: function (page) {
       this.currentPage = page;
       console.log(page);
     },
     // 点击上一页,下一页,首页,尾页
-    jumpPage: function(item) {
-      switch(item) {
+    jumpPage: function (item) {
+      switch (item) {
         case 1:
           this.currentPage = 1;
           break;
@@ -122,62 +97,61 @@ export default {
       console.log(this.currentPage);
     },
     // 获取数据
-    getData: function() {
+    getData: function () {
       this.tableData = [];
       this.functionData = [];
-      this.getDate.forEach( (element) => {
-        this.tableData.push(
-          {
-            carSeries: element.carSeries
-          }
-        );
-        this.functionData.push(
-          {
-            str: element.str
-          }
-        )
+      this.getDate.forEach((element) => {
+        this.tableData.push({
+          carSeries: element.carSeries,
+        });
+        this.functionData.push({
+          str: element.str,
+        });
       });
     },
     // 展示、隐藏模态框
-    showModal: function() {
+    showModal: function () {
       this.modalFlag = !this.modalFlag;
     },
+    // 模态框保存
+    submit: function(car) {
+      console.log('车系保存', car);
+      this.modalFlag = false;
+    },
     // 点击编辑
-    edit (index) {
-      console.log(this.functionData[index].str);
+    edit(index, newName) {
+      console.log(this.functionData[index].str, newName);
     },
     // 点击删除
-    delete (index) {
-      console.log('删除', this.functionData[index].str)
-    }, 
+    deleteData: function(index) {
+      console.log("删除", this.functionData[index].str);
+    },
     // 点击系列车型
-    carType (index) {
+    carType: function(index) {
       // 页面变化
-      this.$router.push({ query: { tag:  'vehicle_type' } });
-      console.log('点击系列车型', this.functionData[index].str)
+      this.$router.push({ query: { tag: "vehicle_type" } });
+      console.log("点击系列车型", this.functionData[index].str);
+    },
+    // 删除数据
+    detletData: function() {
+      console.log('删除数据');
     }
   },
   mounted() {
     this.getData();
-  }
-}
+  },
+};
 </script>
 
 <style scoped lang="less">
-.car_series{
-  .table{
-    // margin-top: 10px;
-    max-height: 140px;
-    overflow: auto;
-    margin-top: 10px;
-  }
-  .count{
+.car_series {
+  .count {
     height: 40px;
     width: 100%;
     display: flex;
     justify-content: space-between;
     align-items: center;
-    button{
+    button {
       width: 86px;
       height: 30px;
       position: relative;

+ 86 - 0
src/views/parameter/components/CarSeriesModal.vue

@@ -0,0 +1,86 @@
+<template>
+  <div class="vehicle_servies_modal" v-if="modalFlag">
+      <div class="modal_content">
+          <div class="input">
+              <p>车系名称</p>
+              <input type="text" v-model="carType">
+          </div>
+          <div class="btn">
+              <button @click="submit" style="margin:0">保存</button>
+              <button @click="hideModal" style="margin:0">取消</button>
+          </div>
+      </div>
+  </div>
+</template>
+
+<script>
+export default {
+    props: {
+        modalFlag: {
+            type: Boolean,
+            default: false
+        }
+    },
+    data() {
+        return{
+            carType: ''
+        }
+    },
+    methods: {
+        submit: function() {
+            this.$emit('submit', this.carType)
+        },
+        hideModal: function() {
+            this.$emit('hide_modal');
+        }
+    }
+}
+</script>
+
+<style scoped lang="less">
+.vehicle_servies_modal{
+    position: fixed;
+    left: 0;
+    top: 0;
+    height: 100vh;
+    width: 100vw;
+    background-color: rgba(127, 127, 127, 0.7);
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    .modal_content{
+        width: 600px;
+        height: 300px;
+        background-color: #fff;
+        transform: translateY(-50px);
+        .input{
+            width: 280px;
+            margin: 0 auto;
+            margin-top: 80px;
+            display: flex;
+            height: 28px;
+            p{
+                width: 80px;
+                height: 28px;
+                line-height: 28px;
+            }
+            input{
+                width: 200px;
+                border: 1px solid #555;
+            }
+
+        }
+        .btn{
+            padding-left: 80px;
+            margin: 0 auto;
+            width: 200px;
+            margin-top: 30px;
+            display: flex;
+            justify-content: space-between;
+            button{
+                margin: 0!;
+            }
+        }
+    }
+}
+</style>

+ 157 - 0
src/views/parameter/components/CarSeriesTable.vue

@@ -0,0 +1,157 @@
+<template>
+  <div class="table">
+    <table>
+      <thead>
+        <tr>
+          <td>车系</td>
+          <td>操作</td>
+        </tr>
+      </thead>
+      <tbody>
+        <tr
+          v-for="(obj, index) in tableData"
+          :key="index"
+          :class="{ table_gray: index % 2 === 0 }"
+        >
+          <td style="width: 50%">
+            <p v-if="!editFlag[index]">{{ obj.carSeries }}</p>
+            <input
+              type="text"
+              v-model="newName"
+              v-else
+              :placeholder="obj.carType"
+            />
+          </td>
+          <td style="width: 50%" class="operation">
+            <span @click="edit(index)" v-if="!editFlag[index]">编辑</span>
+            <span @click="submitEdit(index)" v-else>确定</span>
+            <span @click="showModal(index)">删除</span>
+            <span @click="carType(index)">系列车型></span>
+          </td>
+        </tr>
+      </tbody>
+    </table>
+    <DeleteModal
+      @detlet_data="detletData"
+      @hide_modal="closeModal"
+      :modalFlag="deleteModalFlag"
+    ></DeleteModal>
+  </div>
+</template>
+
+<script>
+import DeleteModal from "./DeleteModal";
+
+export default {
+  props: {
+    // 表数据
+    tableData: {
+      type: Array,
+      default: () => {
+        return [];
+      },
+    },
+    //  表格一页共有多少数据
+    pageSize: {
+      type: Number,
+      default: 2,
+    },
+  },
+  components: {
+    DeleteModal,
+  },
+  data() {
+    return {
+      deleteModalFlag: false,
+      index: 0,
+      editFlag: [],
+      newName: "", // 编辑之后的值
+    };
+  },
+  methods: {
+    // 点击编辑
+    edit: function (i) {
+      this.getEditArr(); // 确保只有一个在编辑
+      this.newName = this.tableData[i] && this.tableData[i].carSeries;
+      this.editFlag.splice(i, 1, true);
+    },
+    // 确认编辑
+    submitEdit: function (i) {
+      if (!this.newName) {
+        alert("姓名不能为空");
+      } else if (this.newName === this.tableData[i].carSeries) {
+        this.newName = ""; // 没有改
+      } else {
+        this.$emit("edit", i, this.newName);
+      }
+      this.newName = "";
+      this.editFlag.splice(i, 1, false);
+    },
+    // 点击删除,展示模态框
+    showModal: function (i) {
+      this.deleteModalFlag = true;
+      this.index = i;
+    },
+    carType: function (i) {
+      this.$emit("car_type", i);
+    },
+    // 模态框删除确认
+    detletData: function () {
+      this.$emit("delet_data", this.index);
+      this.deleteModalFlag = false;
+    },
+    // 模态框取消
+    closeModal: function () {
+      this.deleteModalFlag = false;
+    },
+    // 生成点击编辑按钮所用额flag,
+    getEditArr: function () {
+      let arr = new Array(this.pageSize).fill(false);
+      this.editFlag = arr;
+    },
+  },
+  created() {
+    this.getEditArr();
+  },
+};
+</script>
+
+<style scoped lang="less">
+.table {
+  background-color: #fff;
+  width: 100%;
+  margin-top: 10px;
+  text-align: center;
+  table {
+    width: 100%;
+    border-collapse: collapse;
+    border: none;
+    thead {
+      td {
+        background: #8d9092;
+        height: 36px;
+        color: #fff;
+        border: 1px solid #ccc;
+      }
+    }
+    tbody {
+      td {
+        height: 36px;
+        border: 1px solid #ccc;
+      }
+      .operation {
+        span {
+          color: #00f;
+          margin: 0 20px;
+          &:hover {
+            cursor: pointer;
+          }
+        }
+      }
+    }
+  }
+}
+.table_gray {
+  //   background: #f5f5f5
+}
+</style>

+ 153 - 0
src/views/parameter/components/CarType.vue

@@ -0,0 +1,153 @@
+<template>
+  <div>
+  <div class="car_series">
+    <div class="count">
+      <button @click="showModal">新增车型</button>
+      <Count :sum='sum'></Count>
+    </div>
+    <div class="table">
+      <Table
+        :tableData='tableData'
+        @edit='edit'
+        @delet_data='deleteData'
+        :pageSize='sum'
+      ></Table>
+    </div>
+    <div class="page">
+      <Tablepage
+        :totalPage='totalPage'
+        :currentPage='currentPage'
+        @change_page='changePage'
+        @jump_page='jumpPage'
+      ></Tablepage>
+    </div>
+    <div class="modal" v-if="modalFlag">
+      <Modal
+        :modalFlag='modalFlag'
+        @submit='submit'
+        @hide_modal='showModal'
+      ></Modal>
+    </div>
+  </div>
+  </div>
+</template>
+
+<script>
+import Count from '../../../components/Count';
+import Tablepage from '../../../components/TablePage';
+import Table from './CartTypeTable';
+import Modal from "./CarTypeModal";
+
+export default {
+  components: {
+    Count,
+    Table,
+    Tablepage,
+    Modal
+  },
+  data() {
+    return {
+      sum: 140, // 一共有多少条数据
+      pageSize: 20, // 每页展示的数据
+      currentPage: 1,
+      tableData: [],
+      getDate: [{carType: 'ES200', str: '123'},{carType: 'ES@@', str: '124'},{carType: 'ES4', str: '125'},],
+      functionData: [],
+      modalFlag: false, // 控制模态框展示
+    }
+  },
+  computed:{
+    // 表格总页数
+    totalPage() {
+      return Math.ceil(this.sum/this.pageSize);
+    },
+    // 获取路由参数
+    queryTag() {
+      console.log (111, this.$route.query);
+      return (this.$route.query && this.$route.query.tag) ? 0 : 1
+    }
+  },
+  methods: {
+    // 获取某一页面的数据,展示在表格
+    changePage: function(page) {
+      this.currentPage = page;
+      console.log(page);
+    },
+    // 点击上一页,下一页,首页,尾页
+    jumpPage: function(item) {
+      switch(item) {
+        case 1:
+          this.currentPage = 1;
+          break;
+        case 2:
+          this.currentPage = this.currentPage - 1;
+          break;
+        case 3:
+          this.currentPage = this.currentPage + 1;
+          break;
+        case 4:
+          this.currentPage = this.totalPage;
+          break;
+      }
+      console.log(this.currentPage);
+    },
+    // 获取数据
+    getData: function() {
+      this.tableData = [];
+      this.functionData = [];
+      this.getDate.forEach( (element) => {
+        this.tableData.push(
+          {
+            carType: element.carType
+          }
+        );
+        this.functionData.push(
+          {
+            str: element.str
+          }
+        )
+      });
+    },
+    // 展示、隐藏模态框
+    showModal: function() {
+      this.modalFlag = !this.modalFlag;
+    },
+    // 点击编辑
+    edit (index, newName) {
+      console.log(this.functionData[index].str, newName);
+    },
+    // 点击删除
+    deleteData (index) {
+      console.log('删除', this.functionData[index].str)
+    },
+    // 新增车型模态框 保存
+    submit: function(car) {
+        console.log('保存', car);
+        this.modalFlag = false;
+    },
+  },
+  mounted() {
+    this.getData();
+  }
+}
+</script>
+
+<style scoped lang="less">
+.car_series{
+  .count{
+    height: 40px;
+    width: 100%;
+    display: flex;
+    justify-content: space-between;
+    align-items: center;
+    button{
+      width: 86px;
+      height: 30px;
+      position: relative;
+      bottom: -5px;
+      margin: 0;
+      border-radius: 2px;
+    }
+  }
+}
+</style>

+ 89 - 0
src/views/parameter/components/CarTypeModal.vue

@@ -0,0 +1,89 @@
+<template>
+<div v-if="modalFlag">
+  <div class="vehicle_servies_modal">
+      <div class="modal_content">
+          <div class="input">
+              <p>车型名称</p>
+              <input type="text" v-model="carType">
+          </div>
+          <div class="btn">
+              <button @click="submit" style="margin:0">保存</button>
+              <button @click="hideModal" style="margin:0">取消</button>
+          </div>
+      </div>
+  </div>
+</div>
+
+</template>
+
+<script>
+export default {
+    props: {
+        modalFlag: {
+            type: Boolean,
+            default: false
+        }
+    },
+    data() {
+        return{
+            carType: '',
+        }
+    },
+    methods: {
+        submit: function() {
+            this.$emit('submit', this.carType)
+        },
+        hideModal: function() {
+            this.$emit('hide_modal');
+        }
+    }
+}
+</script>
+
+<style scoped lang="less">
+.vehicle_servies_modal{
+    position: fixed;
+    left: 0;
+    top: 0;
+    height: 100vh;
+    width: 100vw;
+    background-color: rgba(127, 127, 127, 0.7);
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    .modal_content{
+        width: 600px;
+        height: 300px;
+        background-color: #fff;
+        transform: translateY(-50px);
+        .input{
+            width: 280px;
+            margin: 0 auto;
+            margin-top: 80px;
+            display: flex;
+            height: 28px;
+            p{
+                width: 80px;
+                height: 28px;
+                line-height: 28px;
+            }
+            input{
+                width: 200px;
+                border: 1px solid #555;
+            }
+
+        }
+        .btn{
+            padding-left: 80px;
+            margin: 0 auto;
+            width: 200px;
+            margin-top: 30px;
+            display: flex;
+            justify-content: space-between;
+            button{
+                margin: 0!;
+            }
+        }
+    }
+}
+</style>

+ 152 - 0
src/views/parameter/components/CartTypeTable.vue

@@ -0,0 +1,152 @@
+<template>
+  <div class="table">
+    <table>
+      <thead>
+        <tr>
+          <td>车型</td>
+          <td>操作</td>
+        </tr>
+      </thead>
+      <tbody>
+        <tr
+          v-for="(obj, index) in tableData"
+          :key="index"
+          :class="{ table_gray: index % 2 === 0 }"
+        >
+          <td style="width: 50%">
+            <p v-if="!editFlag[index]">{{ obj.carType }}</p>
+            <input
+              type="text"
+              v-model="newName"
+              v-else
+              :placeholder="obj.carType"
+            />
+          </td>
+          <td style="width: 50%" class="operation">
+            <span @click="edit(index)" v-if="!editFlag[index]">编辑</span>
+            <span @click="submitEdit(index)" v-else>确定</span>
+            <span @click="showModal(index)">删除</span>
+          </td>
+        </tr>
+      </tbody>
+    </table>
+    <DeleteModal
+      @detlet_data="detletData"
+      @hide_modal="closeModal"
+      :modalFlag="deleteModalFlag"
+    ></DeleteModal>
+  </div>
+</template>
+
+<script>
+import DeleteModal from "./DeleteModal";
+export default {
+  props: {
+    // 表数据
+    tableData: {
+      type: Array,
+      default: () => {
+        return [];
+      },
+    },
+    //  表格一页共有多少数据
+    pageSize: {
+      type: Number,
+      default: 2,
+    },
+  },
+  components: {
+    DeleteModal,
+  },
+  data() {
+    return {
+      deleteModalFlag: false,
+      index: 0,
+      editFlag: [],
+      newName: "", // 编辑之后的值
+    };
+  },
+  methods: {
+    edit: function (i) {
+      this.getEditArr(); // 确保只有一个在编辑
+      this.newName = this.tableData[i] && this.tableData[i].carSeries;
+      console.log(this.newName);
+      this.editFlag.splice(i, 1, true);
+    },
+    // 确认编辑
+    submitEdit: function (i) {
+      if (!this.newName) {
+        alert("姓名不能为空");
+      } else if (this.newName === this.tableData[i].carSeries) {
+        this.newName = ""; // 没有改
+      } else {
+        this.$emit("edit", i, this.newName);
+      }
+      this.newName = "";
+      this.editFlag.splice(i, 1, false);
+    },
+    // 点击删除,展示模态框
+    showModal: function (i) {
+      this.deleteModalFlag = true;
+      this.index = i;
+    },
+    // 模态框确认删除
+    detletData: function () {
+      this.deleteModalFlag = false;
+      this.$emit("delet_data", this.index);
+    },
+    // 模态框取消
+    closeModal: function () {
+      this.deleteModalFlag = false;
+    },
+    // 生成点击编辑按钮所用额flag,
+    getEditArr: function () {
+      let arr = new Array(this.pageSize).fill(false);
+      this.editFlag = arr;
+    },
+    mounted() {
+      this.getEditArr();
+    },
+  },
+};
+</script>
+
+<style scoped lang="less">
+.table {
+  background-color: #fff;
+  width: 100%;
+  margin-top: 10px;
+  text-align: center;
+  table {
+    width: 100%;
+    border-collapse: collapse;
+    border: none;
+    thead {
+      td {
+        background: #8d9092;
+        height: 36px;
+        color: #fff;
+        border: 1px solid #ccc;
+      }
+    }
+    tbody {
+      td {
+        height: 36px;
+        border: 1px solid #ccc;
+      }
+      .operation {
+        span {
+          color: #00f;
+          margin: 0 20px;
+          &:hover {
+            cursor: pointer;
+          }
+        }
+      }
+    }
+  }
+}
+.table_gray {
+  //   background: #f5f5f5
+}
+</style>

+ 90 - 0
src/views/parameter/components/DeleteModal.vue

@@ -0,0 +1,90 @@
+<template>
+  <div class="delete_modal" v-if="modalFlag">
+    <div class="modal_content">
+      <div class="text">
+        <p>确定删除?</p>
+      </div>
+      <div class="btn">
+        <div
+            class="current_button"
+            @click="submit"
+            style="margin: 0"
+        >确定</div>
+        <div
+            class="current_button"
+            style="margin: 0"
+            @click="hideModal"
+        >取消
+        </div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+export default {
+  props: {
+    modalFlag: {
+      type: Boolean,
+      default: true,
+    }
+  },
+  data() {
+    return {
+      carType: "",
+    };
+  },
+  methods: {
+    submit: function () {
+      this.$emit("detlet_data");
+    },
+    hideModal: function () {
+      this.$emit("hide_modal");
+    },
+  },
+};
+</script>
+
+<style scoped lang="less">
+.delete_modal {
+  position: fixed;
+  left: 0;
+  top: 0;
+  height: 100vh;
+  width: 100vw;
+  background-color: rgba(127, 127, 127, 0.7);
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  .modal_content {
+    width: 600px;
+    height: 300px;
+    background-color: #fff;
+    transform: translateY(-50px);
+    .text {
+      margin: 0 auto;
+      margin-top: 80px;
+      display: flex;
+      height: 28px;
+      p {
+        width: 80px;
+        height: 28px;
+        font-size: 16px;
+        line-height: 28px;
+        margin-left: 150px;
+      }
+    }
+    .btn {
+      padding-left: 80px;
+      margin: 0 auto;
+      width: 150px;
+      margin-top: 30px;
+      display: flex;
+      justify-content: space-between;
+      button {
+        margin: 0!;
+      }
+    }
+  }
+}
+</style>

+ 0 - 50
src/views/parameter/components/modal.vue

@@ -1,50 +0,0 @@
-<template>
-  <div class="vehicle_servies_modal" v-if="modalFlag">
-      <div class="modal_content">
-          车系名称<input type="text" name="" id="">
-          <div class="btn">
-              <button >保存</button>
-              <button @click="hideModal">取消</button>
-          </div>
-      </div>
-  </div>
-</template>
-
-<script>
-export default {
-    props: {
-        modalFlag: {
-            type: Boolean,
-            default: false
-        }
-    },
-    methods: {
-        hideModal: function() {
-            this.$emit('hide_modal');
-        }
-    }
-}
-</script>
-
-<style scoped lang="less">
-.vehicle_servies_modal{
-    position: fixed;
-    left: 0;
-    top: 0;
-    height: 100vh;
-    width: 100vw;
-    background-color: rgba(127, 127, 127, 0.7);
-    display: flex;
-    justify-content: center;
-    align-items: center;
-    .modal_content{
-        width: 50vw;
-        height: 50vh;
-        background-color: #fff;
-        display: flex;
-        flex-direction: column;
-        justify-content: center;
-        align-items: center;
-    }
-}
-</style>