|
@@ -3,16 +3,31 @@
|
|
|
<el-row>
|
|
|
<el-col :span="24" class="info">
|
|
|
<el-col :span="24" class="list" v-for="(item, index) in list" :key="index">
|
|
|
- <p class="textOver">
|
|
|
+ <!-- <p class="textOver">
|
|
|
<span @click="$router.push({ path: '/userCenter/myProduct/detailinfo' })">{{ item.name }}</span>
|
|
|
<span style="float:right"><van-button type="info" size="small" @click="submit">删除</van-button></span>
|
|
|
</p>
|
|
|
-
|
|
|
<p>
|
|
|
<span class="ptwo"><span>产品类型:</span>{{ item.product_type_name || '暂无' }}</span>
|
|
|
<span class="ptwo"><span>研发阶段:</span>{{ item.phase == 1 ? '阶段成果' : item.phase == 2 ? '最终成果' : '暂无' }}</span>
|
|
|
</p>
|
|
|
- <p class="textOver"><span>应用领域:</span>{{ item.field || '暂无' }}</p>
|
|
|
+ <p class="textOver"><span>应用领域:</span>{{ item.field || '暂无' }}</p> -->
|
|
|
+ <el-col :span="19" class="messag">
|
|
|
+ <p>
|
|
|
+ <span>{{ item.name }}</span>
|
|
|
+ <span>{{ item.status == '2' ? '审核拒绝' : item.status == '3' ? '草稿' : '未识别' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span><span>产品类型:</span>{{ item.product_type_name || '暂无' }}</span>
|
|
|
+ <span><span>研发阶段:</span>{{ item.phase == 1 ? '阶段成果' : item.phase == 2 ? '最终成果' : '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p class="textOver"><span>应用领域:</span>{{ item.field || '暂无' }}</p>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="5" class="btn">
|
|
|
+ <el-button type="primary" size="mini">编辑</el-button>
|
|
|
+ <el-button type="success" size="mini">发布</el-button>
|
|
|
+ <el-button type="danger" size="mini">删除</el-button>
|
|
|
+ </el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -21,39 +36,29 @@
|
|
|
|
|
|
<script>
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
-const { mapActions: product } = createNamespacedHelpers('marketproduct');
|
|
|
+const { mapActions: mapMarketproduct } = createNamespacedHelpers('marketproduct');
|
|
|
export default {
|
|
|
name: 'technologyList',
|
|
|
props: {},
|
|
|
components: {},
|
|
|
data: function() {
|
|
|
return {
|
|
|
- list: [
|
|
|
- {
|
|
|
- name: '技术技术技术技术',
|
|
|
- product_type_name: '技术',
|
|
|
- phase: '1',
|
|
|
- field: '技术技术技术技术',
|
|
|
- },
|
|
|
- {
|
|
|
- name: '技术技术技术技术',
|
|
|
- product_type_name: '技术',
|
|
|
- phase: '1',
|
|
|
- field: '技术技术技术技术',
|
|
|
- },
|
|
|
- ],
|
|
|
+ list: [],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.searchInfo();
|
|
|
},
|
|
|
methods: {
|
|
|
- ...product(['newquery']),
|
|
|
- async searchInfo() {
|
|
|
- // let res = await this.newquery({ skip: 0, limit: 6, totaltype: '0', status: '1' });
|
|
|
- // if (this.$checkRes(res)) {
|
|
|
- // this.$set(this, `list`, res.data);
|
|
|
- // }
|
|
|
+ ...mapMarketproduct({ productList: 'query', columnInfo: 'fetch', marketcerate: 'create', productdeltet: 'delete', upup: 'update' }),
|
|
|
+ async searchInfo({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
+ let userid = this.user.uid;
|
|
|
+ const res = await this.productList({ skip, limit, status: 2, userid, ...info });
|
|
|
+ const resTwo = await this.productList({ skip, limit, status: 3, userid, ...info });
|
|
|
+ var newData = res.data.concat(resTwo.data);
|
|
|
+ if (newData.length != 0) {
|
|
|
+ this.$set(this, `list`, newData);
|
|
|
+ }
|
|
|
},
|
|
|
submit() {},
|
|
|
},
|
|
@@ -76,23 +81,10 @@ export default {
|
|
|
background: #fff;
|
|
|
padding: 0 10px;
|
|
|
border-bottom: 1px solid #ccc;
|
|
|
- p {
|
|
|
- font-size: 14px;
|
|
|
- color: #000;
|
|
|
- padding: 5px 0;
|
|
|
- }
|
|
|
- p:first-child {
|
|
|
- font-size: 16px;
|
|
|
- }
|
|
|
- p:nth-child(2) .ptwo {
|
|
|
- display: inline-block;
|
|
|
- width: 50%;
|
|
|
- }
|
|
|
- p:nth-child(2) .ptwo span:first-child {
|
|
|
- color: #ccc;
|
|
|
+ .messag {
|
|
|
}
|
|
|
- p:last-child span {
|
|
|
- color: #ccc;
|
|
|
+ .btn {
|
|
|
+ text-align: center;
|
|
|
}
|
|
|
}
|
|
|
}
|