Quellcode durchsuchen

修改评分管理列表高度问题,修改导航栏图标问题,修改我的资料接口问题

SanHQin vor 1 Jahr
Ursprung
Commit
27825d6610

+ 6 - 3
src/components/pages/disAdmin/score.vue

@@ -87,10 +87,9 @@
           ref="table"
           :data="tableData"
           border
-          :height="tableHeight"
           :fit="true"
           v-loading="isLoading"
-          style="width: 100%"
+          style="width: 100%;"
 					@sort-change="ownScoreSort"
           :header-cell-style="{ background: '#f1f1f1', fontSize: '17px' }"
           :row-class-name="tableRowClassName"
@@ -479,7 +478,7 @@ export default {
       page: 1,
       total: 0,
       // anliType: "",
-      tableHeight: "100%",
+      tableHeight: "",
       isLoading: false,
       CourseType: [],
       CourseTypeJson: {},
@@ -581,6 +580,7 @@ export default {
 		}
 	},
   mounted() {
+
     this.$nextTick(function () {
       this.tableHeight =
         window.innerHeight - this.$refs.table.$el.offsetTop - 200;
@@ -598,6 +598,9 @@ export default {
       };
     });
   },
+
+	
+
   methods: {
     tableRowClassName({ row, rowIndex }) {
       if ((rowIndex + 1) % 2 === 0) {

+ 1 - 1
src/components/pages/munAdmin/data.vue

@@ -238,7 +238,7 @@ export default {
             },
           ];
           this.ajax
-            .post(this.$store.state.api + "updateRaceUser1", params)
+            .post(this.$store.state.api + "updateRaceUser", params)
             .then((res) => {
               this.$message({
                 message: "修改成功",

+ 7 - 2
src/components/tools/leftBar.vue

@@ -4,7 +4,7 @@
       <el-col :span="12">
         <el-menu :default-active="path" background-color="#fff" text-color="#777" active-text-color="#fff" router v-if="$store.state.userInfo.type == 4">
           <el-menu-item index="/score" v-if="nav.indexOf('/score') != -1">
-            <div class="img" v-if="path == '/score'">
+            <div class="img" v-if="path == '/score1'">
               <img src="../../assets/icon/works-active.png" alt="" />
             </div>
             <div class="img" v-else>
@@ -192,9 +192,14 @@ export default {
   },
   data() {
     return {
-      path: this.$route.path,
+      // path: this.$route.path,
     };
   },
+	computed:{
+		path(){
+			return this.$route.path
+		}
+	},
   methods: {
     clickItem: function (path) {
       this.$router.push(path);