浏览代码

fenzhihebing

123456 3 年之前
父节点
当前提交
dc393e7d48
共有 2 个文件被更改,包括 18 次插入1 次删除
  1. 10 0
      src/components/article-item/ArticleItem.vue
  2. 8 1
      src/components/collect-info/CollectInfo.vue

+ 10 - 0
src/components/article-item/ArticleItem.vue

@@ -1,6 +1,7 @@
 <template>
   <div class="article-item" :class="{'style-for-gray': config.gray, 'style-for-table': config.table }">
     <input v-if="config.collect" @change="changeCheck" @click.stop class="custom-checkbox title-text-checkbox" name="bid-list" type="checkbox" :dataid="article._id">
+	<div v-if="article.site === '剑鱼信息发布平台' || article.spidercode === 'a_jyxxfbpt_gg'" class="yhfb">用户发布</div>
     <div class="a-i-con">
       <div class="a-i-left ellipsis visited-hd" @click="onClick" v-html="calcTitle"></div>
       <span v-if="config.gray&&article.ca_fileExists" class="haveFile">有附件</span>
@@ -228,5 +229,14 @@ export default {
       color: #797a7e;
       line-height: 24px;
     }
+  .yhfb{
+    background-color: rgba(255, 58, 32, 0.1);
+    padding: 2px 12px;
+    border-radius: 4px;
+    line-height: 22px;
+    font-size: 14px;
+    color: #FF3A20;
+    margin-right: 10px;
+  }
   }
 </style>

+ 8 - 1
src/components/collect-info/CollectInfo.vue

@@ -237,6 +237,13 @@ export default {
         }
       }
     }
+    var validComType = (rule, value, callback) => {
+      if (value.length === 0) {
+        return callback(new Error('公司类型为必填项'))
+      } else {
+        callback()
+      }
+    }
     var validJob = (rule, value, callback) => {
       if (value === '') {
         return callback(new Error('职位不能为空'))
@@ -305,7 +312,7 @@ export default {
         }],
         companyType: [{
           required: true,
-          message: '公司类型为必填项',
+          validator: validComType,
           trigger: 'blur'
         }],
         job: [{