소스 검색

修改显示列表

zs 1 년 전
부모
커밋
fceef85824
1개의 변경된 파일28개의 추가작업 그리고 2개의 파일을 삭제
  1. 28 2
      src/views/match/info/index.vue

+ 28 - 2
src/views/match/info/index.vue

@@ -9,6 +9,14 @@
       <template #type>
         <el-option v-for="i in typeList" :key="i._id" :label="i.label" :value="i.value"></el-option>
       </template>
+      <template #industry>
+        <el-option
+          v-for="i in industryList"
+          :key="i._id"
+          :label="i.label"
+          :value="i.value"
+        ></el-option>
+      </template>
     </custom-search-bar>
     <custom-button-bar :fields="buttonFields" @add="toAdd"></custom-button-bar>
     <custom-table
@@ -113,9 +121,19 @@
           </custom-form>
         </el-col>
         <el-col :span="24" v-if="dialog.type == '2'">
-          <custom-form v-model="examForm" :fields="examFormFields" :rules="examRules" @save="toExamSave">
+          <custom-form
+            v-model="examForm"
+            :fields="examFormFields"
+            :rules="examRules"
+            @save="toExamSave"
+          >
             <template #status>
-              <el-option v-for="i in statusList" :key="i._id" :label="i.label" :value="i.value"></el-option>
+              <el-option
+                v-for="i in statusList"
+                :key="i._id"
+                :label="i.label"
+                :value="i.value"
+              ></el-option>
             </template>
           </custom-form>
         </el-col>
@@ -147,6 +165,13 @@ const fields = [
     type: 'select',
     format: (i) => getDict(i, 'type')
   },
+  {
+    label: t('pages.match.industry'),
+    model: 'industry',
+    type: 'select',
+    isSearch: true,
+    format: (i) => getDict(i, 'industry')
+  },
   { label: t('pages.match.money'), model: 'money' },
   {
     label: t('pages.match.is_use'),
@@ -269,6 +294,7 @@ const getDict = (data, model) => {
   let res
   if (model == 'is_use') res = isUseList.value.find((f) => f.value == data)
   else if (model == 'status') res = statusList.value.find((f) => f.value == data)
+  else if (model == 'industry') res = industryList.value.find((f) => f.value == data)
   else if (model == 'type') res = typeList.value.find((f) => f.value == data)
   else if (model == 'match') res = matchList.value.find((f) => f.value == data)
   return get(res, 'label')