|
@@ -3,14 +3,20 @@
|
|
|
<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">
|
|
|
- <span @click="$router.push({ path: '/userCenter/myProduct/detailinfo' })">{{ item.name }}</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>
|
|
|
+ <el-col :span="19" class="messag">
|
|
|
+ <p>
|
|
|
+ <span class="textOver">{{ item.name }}</span>
|
|
|
+ <span>{{ item.status == '1' ? '审核通过' : '未识别' }}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span class="two"><span>产品类型:</span>{{ item.product_type_name || '暂无' }}</span>
|
|
|
+ <span class="two"><span>研发阶段:</span>{{ item.phase == 1 ? '阶段成果' : item.phase == 2 ? '最终成果' : '暂无' }}</span>
|
|
|
+ </p>
|
|
|
+ <p class="textOver"><span class="three">应用领域:</span>{{ item.field || '暂无' }}</p>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="5" class="btn">
|
|
|
+ <el-button type="danger" size="mini" @click="deleteBtn(item.id)">删除</el-button>
|
|
|
+ </el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -19,39 +25,37 @@
|
|
|
|
|
|
<script>
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
-const { mapActions: product } = createNamespacedHelpers('marketproduct');
|
|
|
+const { mapActions: mapMarketproduct } = createNamespacedHelpers('marketproduct');
|
|
|
export default {
|
|
|
name: 'noauditList',
|
|
|
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: 1, userid, ...info });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `list`, res.data);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ async deleteBtn(id) {
|
|
|
+ const res = await this.productdeltet(id);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$message({
|
|
|
+ message: '删除信息成功',
|
|
|
+ type: 'success',
|
|
|
+ });
|
|
|
+ this.searchInfo();
|
|
|
+ }
|
|
|
},
|
|
|
},
|
|
|
computed: {
|
|
@@ -73,24 +77,50 @@ 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%;
|
|
|
+ .messag {
|
|
|
+ padding: 10px 0;
|
|
|
+ p:first-child {
|
|
|
+ font-size: 16px;
|
|
|
+ padding: 0 0 8px 0;
|
|
|
+ span:first-child {
|
|
|
+ display: inline-block;
|
|
|
+ width: 75%;
|
|
|
+ }
|
|
|
+ span:nth-child(2) {
|
|
|
+ display: inline-block;
|
|
|
+ width: 25%;
|
|
|
+ color: #ff0000;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ p:nth-child(2) {
|
|
|
+ font-size: 14px;
|
|
|
+ padding: 0 0 10px 0;
|
|
|
+ .two {
|
|
|
+ display: inline-block;
|
|
|
+ width: 50%;
|
|
|
+ span {
|
|
|
+ color: #ccc;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ p:nth-child(3) {
|
|
|
+ font-size: 14px;
|
|
|
+ padding: 0 0 10px 0;
|
|
|
+ .three {
|
|
|
+ color: #ccc;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- p:nth-child(2) .ptwo span:first-child {
|
|
|
- color: #ccc;
|
|
|
- }
|
|
|
- p:last-child span {
|
|
|
- color: #ccc;
|
|
|
+ .btn {
|
|
|
+ text-align: center;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+/deep/.el-button + .el-button {
|
|
|
+ margin-left: 0;
|
|
|
+}
|
|
|
+/deep/.el-button {
|
|
|
+ margin: 5px 0;
|
|
|
+}
|
|
|
</style>
|