浏览代码

添加远程搜索的候选列表

Michael Wang 6 年之前
父节点
当前提交
22327d4076

+ 2 - 0
src/modules/basic/view/course.vue

@@ -60,6 +60,7 @@
               class="input_width_lg"
               remote
               :remote-method="getSpecialtyList4Search"
+              @focus="e => getSpecialtyList4Search(e.target.value)"
               :loading="specialtyLoading4Search"
               filterable
               clearable
@@ -356,6 +357,7 @@
                   class="input"
                   remote
                   :remote-method="getSpecialtyList4AddRelation"
+                  @focus="e => getSpecialtyList4AddRelation(e.target.value)"
                   :loading="specialtyLoading4AddRelation"
                   filterable
                   clearable

+ 3 - 1
src/modules/basic/view/specially.vue

@@ -21,6 +21,7 @@
             <el-select
               class="input"
               :remote-method="getCourses"
+              @focus="e => getCourses(e.target.value)"
               :loading="courseLoading"
               remote
               filterable
@@ -202,7 +203,7 @@
             </span>
           </el-table-column>
         </el-table>
-        <div class="page pull-right">
+        <div class="pull-right">
           <el-pagination
             @current-change="handleCourseCurrentChange"
             :current-page="currentCoursePage"
@@ -230,6 +231,7 @@
               <el-select
                 class="input"
                 :remote-method="getCourses4AddRelation"
+                @focus="e => getCourses4AddRelation(e.target.value)"
                 :loading="courseLoading4AddRelation"
                 remote
                 filterable

+ 2 - 0
src/modules/basic/view/user.vue

@@ -173,6 +173,7 @@
                 <el-select
                   class="input_width_lg"
                   :remote-method="getOrgList4InsertOrUpdate"
+                  @focus="e => getOrgList4InsertOrUpdate(e.target.value)"
                   :loading="orgLoading4InsertOrUpdate"
                   remote
                   filterable
@@ -298,6 +299,7 @@
                 <el-select
                   class="input_width_lg"
                   :remote-method="getOrgList4InsertOrUpdate"
+                  @focus="e => getOrgList4InsertOrUpdate(e.target.value)"
                   :loading="orgLoading4InsertOrUpdate"
                   remote
                   filterable

+ 1 - 1
src/modules/portal/store/currentPaths.js

@@ -4,7 +4,7 @@ export default {
   state: [],
   mutations: {
     [UPDATE_CURRENT_PATHS](state, paths) {
-      console.log(state, paths);
+      // console.log(state, paths);
       // state = paths;
       // Object.assign(state, paths);
       state.length = 0;

+ 1 - 1
src/modules/portal/store/menuList.js

@@ -4,7 +4,7 @@ export default {
   state: [],
   mutations: {
     [UPDATE_MENU_LIST](state, menuList) {
-      console.log(state, menuList);
+      // console.log(state, menuList);
       state.length = 0;
       state.push(...menuList);
     }

+ 8 - 1
src/plugins/vueLifecylceLogs.js

@@ -4,6 +4,8 @@ const ignoreComponents = [undefined, "transition", "router-link", "Bar"];
 
 const ignoreComponentsNameRegexArray = [/^El[A-Z].*/, /^fa-.*/];
 
+const groupCollapsed = true;
+
 function getParentNumber(that) {
   let parentNumber = 0;
   while (that) {
@@ -75,7 +77,12 @@ for (const m of injecRoutertMethods) {
   lifeCycleMixins[m.name] = function(to, from, next) {
     if (!startLogging) {
       startLogging = true;
-      console.group("Vue lifecyle logs");
+      if (groupCollapsed) {
+        console.groupCollapsed("Vue lifecyle logs");
+      } else {
+        console.group("Vue lifecyle logs");
+      }
+
       loggingTime = Date.now();
     }