guhongwei преди 4 години
родител
ревизия
9e1622133a

+ 1 - 3
src/views/userCenter/productInfo/index.vue

@@ -19,7 +19,7 @@
             <el-button type="primary" size="mini" class="add" @click="add">信息发布</el-button>
           </el-col>
           <el-col :span="24" class="infoTwo" v-else>
-            <infoRelease @back="back" :form="form" :product_args="product_args" @draftBtn="draftBtn" @submitBtn="submitBtn"></infoRelease>
+            <infoRelease @back="back" :form="form" @draftBtn="draftBtn" @submitBtn="submitBtn"></infoRelease>
           </el-col>
         </el-col>
       </el-col>
@@ -49,7 +49,6 @@ export default {
       // 发布信息
       display: true,
       form: {},
-      product_args: [],
     };
   },
   created() {},
@@ -57,7 +56,6 @@ export default {
     ...mapMarketproduct({ productFetch: 'fetch', productCreate: 'create', productUpdate: 'update' }),
     // 保存草稿
     async draftBtn({ data }) {
-      data.product_args = this.product_args;
       data.userid = this.user.uid;
       if (data.id) {
         let res = await this.productUpdate(data);

+ 12 - 29
src/views/userCenter/productInfo/part/already.vue

@@ -16,32 +16,19 @@
               </el-col>
             </el-col>
             <el-col :span="6" class="product">
-              <p>类别:{{ item.totaltype === '0' ? '技术' : item.totaltype === '1' ? '产品' : item.totaltype === '2' ? '服务' : 'underdind' }}</p>
-              <p>
-                所属领域:{{
-                  item.field == '0'
-                    ? '先进制造'
-                    : item.field == '1'
-                    ? '新材料'
-                    : item.field == '2'
-                    ? '光电子'
-                    : item.field == '3'
-                    ? '信息技术'
-                    : item.field == '4'
-                    ? '文化和科技融合'
-                    : '暂无'
-                }}
-              </p>
-              <p class="textOver" v-if="item.business">
-                交易方式:{{ item.business == '0' ? '公用' : item.business == '1' ? '竞用' : item.business == '2' ? '转让' : '未识别' }}
-              </p>
-              <p v-if="item.price">
-                {{ item.price }}/{{ item.priceunit == '0' ? '公斤' : item.priceunit == '1' ? '套' : item.priceunit == '2' ? '件' : '暂无' }}
-              </p>
+              <p>类型:{{ item.type === '0' ? '技术' : item.type === '1' ? '产品' : item.type === '2' ? '服务' : 'underdind' }}</p>
+              <p>所属领域:{{ item.field }}</p>
+              <p>合作方式:{{ item.cooperation }}</p>
             </el-col>
             <el-col :span="9" class="intro">
-              <p>产品简介:</p>
-              <p>{{ item.introduction }}</p>
+              <span v-if="item.type == '0'">
+                <p>技术难题&需求说明:</p>
+                <p>{{ item.requirementdesc }}</p>
+              </span>
+              <span v-else-if="item.type == '1'">
+                <p>产品简介:</p>
+                <p>{{ item.achievebrief }}</p>
+              </span>
             </el-col>
             <el-col :span="6" class="status">
               <p>状态:{{ item.status === '1' ? '审核成功' : '未识别' }}</p>
@@ -166,13 +153,9 @@ export default {
       padding: 0 15px;
       border-right: 1px dashed #ccc;
       p {
-        padding: 4px 0;
+        padding: 6px 0;
         font-size: 14px;
       }
-      p:last-child {
-        color: #ff0000;
-        font-weight: bold;
-      }
     }
     .intro {
       height: 100px;

+ 1 - 2
src/views/userCenter/productInfo/part/infoRelease.vue

@@ -314,8 +314,7 @@ export default {
     submitBtn(formName) {
       this.$refs[formName].validate(valid => {
         if (valid) {
-          console.log(this.form);
-          // this.$emit('submitBtn', { data: this.form });
+          this.$emit('submitBtn', { data: this.form });
         } else {
           console.log('error submit!!');
           return false;

+ 12 - 29
src/views/userCenter/productInfo/part/statusIn.vue

@@ -16,32 +16,19 @@
               </el-col>
             </el-col>
             <el-col :span="6" class="product">
-              <p>类别:{{ item.totaltype === '0' ? '技术' : item.totaltype === '1' ? '产品' : item.totaltype === '2' ? '服务' : 'underdind' }}</p>
-              <p>
-                所属领域:{{
-                  item.field == '0'
-                    ? '先进制造'
-                    : item.field == '1'
-                    ? '新材料'
-                    : item.field == '2'
-                    ? '光电子'
-                    : item.field == '3'
-                    ? '信息技术'
-                    : item.field == '4'
-                    ? '文化和科技融合'
-                    : '暂无'
-                }}
-              </p>
-              <p class="textOver" v-if="item.business">
-                交易方式:{{ item.business == '0' ? '公用' : item.business == '1' ? '竞用' : item.business == '2' ? '转让' : '未识别' }}
-              </p>
-              <p v-if="item.price">
-                {{ item.price }}/{{ item.priceunit == '0' ? '公斤' : item.priceunit == '1' ? '套' : item.priceunit == '2' ? '件' : '暂无' }}
-              </p>
+              <p>类型:{{ item.type === '0' ? '技术' : item.type === '1' ? '产品' : item.type === '2' ? '服务' : 'underdind' }}</p>
+              <p>所属领域:{{ item.field }}</p>
+              <p>合作方式:{{ item.cooperation }}</p>
             </el-col>
             <el-col :span="9" class="intro">
-              <p>产品简介:</p>
-              <p>{{ item.introduction }}</p>
+              <span v-if="item.type == '0'">
+                <p>技术难题&需求说明:</p>
+                <p>{{ item.requirementdesc }}</p>
+              </span>
+              <span v-else-if="item.type == '1'">
+                <p>产品简介:</p>
+                <p>{{ item.achievebrief }}</p>
+              </span>
             </el-col>
             <el-col :span="6" class="status">
               <p>状态:{{ item.status === '0' ? '审核中' : '未识别' }}</p>
@@ -166,13 +153,9 @@ export default {
       padding: 0 15px;
       border-right: 1px dashed #ccc;
       p {
-        padding: 4px 0;
+        padding: 6px 0;
         font-size: 14px;
       }
-      p:last-child {
-        color: #ff0000;
-        font-weight: bold;
-      }
     }
     .intro {
       height: 100px;

+ 12 - 29
src/views/userCenter/productInfo/part/stay.vue

@@ -16,32 +16,19 @@
               </el-col>
             </el-col>
             <el-col :span="6" class="product">
-              <p>类别:{{ item.totaltype === '0' ? '技术' : item.totaltype === '1' ? '产品' : item.totaltype === '2' ? '服务' : 'underdind' }}</p>
-              <p>
-                所属领域:{{
-                  item.field === '0'
-                    ? '先进制造'
-                    : item.field === '1'
-                    ? '新材料'
-                    : item.field === '2'
-                    ? '光电子'
-                    : item.field === '3'
-                    ? '信息技术'
-                    : item.field === '4'
-                    ? '文化和科技融合'
-                    : '暂无'
-                }}
-              </p>
-              <p class="textOver" v-if="item.business">
-                交易方式:{{ item.business == '0' ? '公用' : item.business == '1' ? '竞用' : item.business == '2' ? '转让' : '未识别' }}
-              </p>
-              <p v-if="item.price">
-                {{ item.price }}/{{ item.priceunit == '0' ? '公斤' : item.priceunit == '1' ? '套' : item.priceunit == '2' ? '件' : '暂无' }}
-              </p>
+              <p>类型:{{ item.type === '0' ? '技术' : item.type === '1' ? '产品' : item.type === '2' ? '服务' : 'underdind' }}</p>
+              <p>所属领域:{{ item.field }}</p>
+              <p>合作方式:{{ item.cooperation }}</p>
             </el-col>
             <el-col :span="9" class="intro">
-              <p>产品简介:</p>
-              <p>{{ item.introduction }}</p>
+              <span v-if="item.type == '0'">
+                <p>技术难题&需求说明:</p>
+                <p>{{ item.requirementdesc }}</p>
+              </span>
+              <span v-else-if="item.type == '1'">
+                <p>产品简介:</p>
+                <p>{{ item.achievebrief }}</p>
+              </span>
             </el-col>
             <el-col :span="6" class="status">
               <p>状态:{{ item.status === '2' ? '审核拒绝' : item.status === '3' ? '草稿' : '未识别' }}</p>
@@ -188,13 +175,9 @@ export default {
       padding: 0 15px;
       border-right: 1px dashed #ccc;
       p {
-        padding: 4px 0;
+        padding: 6px 0;
         font-size: 14px;
       }
-      p:last-child {
-        color: #ff0000;
-        font-weight: bold;
-      }
     }
     .intro {
       height: 100px;