소스 검색

修改没有协同则显示暂无

zengyicheng 2 년 전
부모
커밋
79cd54623e
1개의 변경된 파일9개의 추가작업 그리고 4개의 파일을 삭제
  1. 9 4
      src/components/pages/tencent/school.vue

+ 9 - 4
src/components/pages/tencent/school.vue

@@ -57,7 +57,12 @@
               >
                 <el-table-column prop="name" label="学校名称" min-width="30">
                 </el-table-column>
-                <el-table-column prop="cname" label="联结学校" min-width="30">
+                <el-table-column label="联结学校" min-width="10" align="center">
+                  <template slot-scope="scope">
+                    <div>
+                      {{ scope.row.cname ? scope.row.cname : "暂无" }}
+                    </div>
+                  </template>
                 </el-table-column>
                 <el-table-column prop="date" label="操作" min-width="30">
                   <template slot-scope="scope">
@@ -66,7 +71,7 @@
                         class="btnClassGM"
                         size="mini"
                         type="primary"
-                        @click="openNoCSchool(scope.row.id,scope.row.cname)"
+                        @click="openNoCSchool(scope.row.id, scope.row.cname)"
                         >联结</el-button
                       >
                       <el-button
@@ -551,10 +556,10 @@ export default {
       this.selectedOptions = [];
       this.sType = t;
     },
-    openNoCSchool(id,oname) {
+    openNoCSchool(id, oname) {
       this.dialogVisible2 = true;
       this.updateId = id;
-      if(oname != null || oname != ''){
+      if (oname != null || oname != "") {
         this.isCSchool = oname;
       }
       this.selectNoSChool();