|
@@ -1,83 +1,20 @@
|
|
<template>
|
|
<template>
|
|
- <div id="auditList">
|
|
|
|
- <el-row>
|
|
|
|
- <el-col :span="24" class="info">
|
|
|
|
- <el-col :span="24" class="list" v-for="(item, index) in list" :key="index">
|
|
|
|
- <el-col :span="16" class="textOver">
|
|
|
|
- {{ item.name }}
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="8" v-if="item.status == '0'">
|
|
|
|
- <el-button type="text" size="mini" @click="sussess(item)">审核通过</el-button>
|
|
|
|
- <el-button type="text" size="mini" @click="fail(item)">审核拒绝</el-button>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="24" class="listInfo">
|
|
|
|
- <span>类型:</span><span>{{ item.status == '0' ? '技术' : item.status == '1' ? '产品' : '服务' }}</span>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="24" class="listInfo">
|
|
|
|
- <span>联系人:</span><span>{{ item.contact_user }}</span>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :span="24" class="listInfo">
|
|
|
|
- <span>审核状态:</span><span>{{ item.status == '0' ? '待审核' : item.status == '1' ? '审核成功' : item.status == '2' ? '审核拒绝' : '草稿' }}</span>
|
|
|
|
- </el-col>
|
|
|
|
- </el-col>
|
|
|
|
- </el-col>
|
|
|
|
- </el-row>
|
|
|
|
|
|
+ <div id="list">
|
|
|
|
+ <p>list</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
-const { mapActions: product } = createNamespacedHelpers('marketproduct');
|
|
|
|
-
|
|
|
|
export default {
|
|
export default {
|
|
- name: 'auditList',
|
|
|
|
|
|
+ name: 'list',
|
|
props: {},
|
|
props: {},
|
|
components: {},
|
|
components: {},
|
|
data: function() {
|
|
data: function() {
|
|
- return {
|
|
|
|
- list: [{ name: '1' }],
|
|
|
|
- };
|
|
|
|
- },
|
|
|
|
- created() {
|
|
|
|
- this.searchInfo();
|
|
|
|
- },
|
|
|
|
- methods: {
|
|
|
|
- ...product(['query', 'update', 'comquery']),
|
|
|
|
- async searchInfo() {
|
|
|
|
- if (this.user.role == '0') {
|
|
|
|
- const arr = await this.query();
|
|
|
|
- this.$set(this, `list`, arr.data);
|
|
|
|
- } else {
|
|
|
|
- let code = this.user.code;
|
|
|
|
- let pid = this.user.uid;
|
|
|
|
- const arr = await this.comquery({ code, pid });
|
|
|
|
- const arr1 = await this.comquery({ status: 1, code, pid });
|
|
|
|
- const arr2 = await this.comquery({ status: 2, code, pid });
|
|
|
|
- var Data = arr1.data.concat(arr.data);
|
|
|
|
- var newData = arr2.data.concat(Data);
|
|
|
|
- this.$set(this, `list`, newData);
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- async sussess(item) {
|
|
|
|
- item.status = '1';
|
|
|
|
- let res = await this.update(item);
|
|
|
|
- this.$message({
|
|
|
|
- message: '信息审核成功',
|
|
|
|
- type: 'success',
|
|
|
|
- });
|
|
|
|
- this.searchInfo();
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- async fail(item) {
|
|
|
|
- item.status = '2';
|
|
|
|
- let res = await this.update(item);
|
|
|
|
- this.$message({
|
|
|
|
- message: '信息审核成功',
|
|
|
|
- type: 'success',
|
|
|
|
- });
|
|
|
|
- this.searchInfo();
|
|
|
|
- },
|
|
|
|
|
|
+ return {};
|
|
},
|
|
},
|
|
|
|
+ created() {},
|
|
|
|
+ methods: {},
|
|
computed: {
|
|
computed: {
|
|
...mapState(['user']),
|
|
...mapState(['user']),
|
|
pageTitle() {
|
|
pageTitle() {
|
|
@@ -90,30 +27,4 @@ export default {
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
-<style lang="less" scoped>
|
|
|
|
-.newuser {
|
|
|
|
- float: right;
|
|
|
|
- padding: 10px 0 10px 10px;
|
|
|
|
-}
|
|
|
|
-.info {
|
|
|
|
- border-top: 1px solid #f5f5f5;
|
|
|
|
- .list {
|
|
|
|
- background: #fff;
|
|
|
|
- padding: 5px 10px;
|
|
|
|
- border-bottom: 1px solid #ccc;
|
|
|
|
- .listInfo {
|
|
|
|
- font-size: 14px;
|
|
|
|
- color: #000;
|
|
|
|
- padding: 5px 0 0 0;
|
|
|
|
- span:first-child {
|
|
|
|
- color: #ccc;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-.content {
|
|
|
|
- padding: 16px 16px 160px;
|
|
|
|
- height: 160px;
|
|
|
|
- background-color: aqua;
|
|
|
|
-}
|
|
|
|
-</style>
|
|
|
|
|
|
+<style lang="less" scoped></style>
|