|
@@ -12,15 +12,20 @@
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="common two">
|
|
|
- <el-col :span="12" class="left"
|
|
|
- ><top topText="高企政策服务"></top>
|
|
|
+ <el-col :span="12" class="left">
|
|
|
+ <top topText="高企政策服务" :userMore="false"></top>
|
|
|
<list type="1" :list="oneList"></list>
|
|
|
</el-col>
|
|
|
- <el-col :span="12" class="left"><top topText="创新劵服务"></top>创新劵服务</el-col>
|
|
|
+ <el-col :span="12" class="left"
|
|
|
+ ><top topText="创新劵服务" :userMore="false"></top>
|
|
|
+ <list type="2" :list="twoList"></list>
|
|
|
+ </el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="common thr">
|
|
|
- <el-col :span="12" class="left"><top topText="科技成果服务"></top>科技成果服务</el-col>
|
|
|
- <el-col :span="12" class="left"><top topText="科技成果服务"></top>科技成果服务</el-col>
|
|
|
+ <el-col :span="24" class="left"
|
|
|
+ ><top topText="科技成果服务" :userMore="false"></top>
|
|
|
+ <list type="3" :list="thrList"></list>
|
|
|
+ </el-col>
|
|
|
</el-col>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -47,6 +52,8 @@ import list from './parts/list.vue';
|
|
|
import { btnList } from './btnList.js';
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
const { mapActions: organization } = createNamespacedHelpers('organization');
|
|
|
+const { mapActions: policy } = createNamespacedHelpers('policy');
|
|
|
+const { mapActions: ticket } = createNamespacedHelpers('ticket');
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
props: {},
|
|
@@ -61,23 +68,51 @@ export default {
|
|
|
phone: [{ required: true, message: '请输入用户账号', trigger: 'blur' }],
|
|
|
password: [{ required: true, message: '请输入登录密码', trigger: 'blur' }],
|
|
|
},
|
|
|
+ dialogTitle: '高企政策服务',
|
|
|
+ dialogType: undefined,
|
|
|
// 高企政策服务-列表
|
|
|
- oneList: [
|
|
|
+ oneList: [],
|
|
|
+ // 创新券服务-列表
|
|
|
+ twoList: [
|
|
|
{
|
|
|
- company: '11111',
|
|
|
+ company: '22',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ company: '十条数据',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ // 科技成果评价服务-列表
|
|
|
+ thrList: [
|
|
|
+ {
|
|
|
+ basic: {
|
|
|
+ achieve_name: '成果名称',
|
|
|
+ achieve_date: '2021-01-01 01:00:00',
|
|
|
+ achieve_type: '城固了捏',
|
|
|
+ achieve_form: '成果形式',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ basic: {
|
|
|
+ achieve_name: '10条数据',
|
|
|
+ achieve_date: '2021-01-01 01:00:00',
|
|
|
+ achieve_type: '城固了捏',
|
|
|
+ achieve_form: '成果形式',
|
|
|
+ },
|
|
|
},
|
|
|
],
|
|
|
- dialogTitle: '高企政策服务',
|
|
|
- dialogType: undefined,
|
|
|
};
|
|
|
},
|
|
|
- created() {},
|
|
|
+ async created() {
|
|
|
+ await this.search();
|
|
|
+ },
|
|
|
methods: {
|
|
|
- ...organization(['login']),
|
|
|
+ ...policy({ policyQuery: 'query' }),
|
|
|
+ ...ticket({ ticketQuery: 'query' }),
|
|
|
+ ...organization(['login', 'fetch']),
|
|
|
link(data) {
|
|
|
const { type, name } = data;
|
|
|
if (type == '1') {
|
|
|
- console.log('1');
|
|
|
+ window.open('http://www.jlkjxm.com');
|
|
|
} else if (type == '2') {
|
|
|
this.dialog2 = true;
|
|
|
this.dialogTitle = name;
|
|
@@ -87,7 +122,7 @@ export default {
|
|
|
this.dialogTitle = name;
|
|
|
this.dialogType = type;
|
|
|
} else if (type == '4') {
|
|
|
- window.location.href = 'http://broadcast.waityou24.cn/liveAchieve';
|
|
|
+ window.open('http://broadcast.waityou24.cn/liveAchieve');
|
|
|
} else if (type == '5') {
|
|
|
this.$router.push({ path: '/service/register', query: { type: type } });
|
|
|
} else if (type == '6') {
|
|
@@ -116,6 +151,24 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ // 查询列表信息
|
|
|
+ async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
+ // 高企政策服务
|
|
|
+ let res = await this.policyQuery({ skip, limit: 7, status: 1, ...info });
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `oneList`, res.data);
|
|
|
+ res = await this.ticketQuery({ skip, limit: 7, status: 1, ...info });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `twoList`, res.data);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 查询企业详细信息
|
|
|
+ async searchCompany(data) {
|
|
|
+ let res = await this.fetch(data.user_id);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ data.company = res.data.name;
|
|
|
+ return data;
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|
|
@@ -185,6 +238,12 @@ export default {
|
|
|
margin: 0 0 10px 0;
|
|
|
}
|
|
|
}
|
|
|
+ .thr {
|
|
|
+ width: 100%;
|
|
|
+ .left {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.dialog2 {
|
|
|
.btn {
|