Commit 17d9785e authored by wangxl's avatar wangxl

呃呃呃呃呃

parent 1ead41ec
...@@ -18,9 +18,16 @@ ...@@ -18,9 +18,16 @@
<a-button type="primary" icon="search" @click="search">搜索</a-button> <a-button type="primary" icon="search" @click="search">搜索</a-button>
<a-button icon="reload" style="margin-left: 10px" @click="reset" class="bt-normal">重置</a-button> <a-button icon="reload" style="margin-left: 10px" @click="reset" class="bt-normal">重置</a-button>
</a-form-item> </a-form-item>
<a-form-item>
<a-tag :color="'#2db7f5'">{{ '技术专家' }}</a-tag>&nbsp;<a-tag :color="'#f50'">{{ '财务专家' }}</a-tag>
</a-form-item>
</a-form> </a-form>
<a-divider style="height: 1px; background-color: #e8e8e8;" /> <a-divider style="height: 1px; background-color: #e8e8e8;" />
<a-table :dataSource="tableData" :columns="columns" rowKey="id" :pagination="false" :loading="loading"> <a-table :dataSource="tableData" :columns="columns" rowKey="id" :pagination="false" :loading="loading">
<template slot="personName" slot-scope="record">
<a-tag :color="'#2db7f5'" v-if="record.expertType==1">{{record.personName}}</a-tag>
<a-tag :color="'#f50'" v-if="record.expertType==2">{{record.personName}}</a-tag>
</template>
<template slot="spec" slot-scope="record"> <template slot="spec" slot-scope="record">
<span v-for="data in record.specList" :key="data.id" :color="'green'">{{data.specName+' '}}</span> <span v-for="data in record.specList" :key="data.id" :color="'green'">{{data.specName+' '}}</span>
</template> </template>
...@@ -63,7 +70,7 @@ export default { ...@@ -63,7 +70,7 @@ export default {
searchForm: { projId: null, personName: null, certId: null, sex: "", projType: getType() }, searchForm: { projId: null, personName: null, certId: null, sex: "", projType: getType() },
tableData: [], tableData: [],
columns: [ columns: [
{ title: '姓名', dataIndex: 'personName', align: 'center' }, { title: "姓名", scopedSlots: { customRender: 'personName' }, align: 'center' },
{ title: '性别', dataIndex: 'sex', align: 'center' }, { title: '性别', dataIndex: 'sex', align: 'center' },
{ title: '职称', dataIndex: 'titleName', align: 'center' }, { title: '职称', dataIndex: 'titleName', align: 'center' },
{ title: "专家单位", dataIndex: "workUnit", align: 'center' }, { title: "专家单位", dataIndex: "workUnit", align: 'center' },
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<btn-group :data="tabDate" :itemCount="itemCount" v-model="activekey" @change="callback" /> <btn-group :data="tabDate" :itemCount="itemCount" v-model="activekey" @change="callback" />
</div> </div>
<div style="display: inline-block;width:50%;text-align: right;"> <div style="display: inline-block;width:50%;text-align: right;">
<a-tag :color="technology">{{ '技术专家' }}</a-tag>&nbsp;<a-tag :color="finance">{{ '财务专家' }}</a-tag> <a-tag :color="'#2db7f5'">{{ '技术专家' }}</a-tag>&nbsp;<a-tag :color="'#f50'">{{ '财务专家' }}</a-tag>
<a-button type="primary" @click="exportData" icon="download">Excel</a-button> <a-button type="primary" @click="exportData" icon="download">Excel</a-button>
</div> </div>
</div> </div>
...@@ -54,7 +54,8 @@ ...@@ -54,7 +54,8 @@
<p slot="expandedRowRender" slot-scope="record" style="margin: 0;"> <p slot="expandedRowRender" slot-scope="record" style="margin: 0;">
<a-table :dataSource="record.assignList" :columns="innerColumns" rowKey="id" :pagination="false"> <a-table :dataSource="record.assignList" :columns="innerColumns" rowKey="id" :pagination="false">
<template slot="personName" slot-scope="obj"> <template slot="personName" slot-scope="obj">
<a-tag :color="obj.expertType == 1 ? technology : finance">{{obj.personName}}</a-tag> <a-tag :color="'#2db7f5'" v-if="obj.expertType==1">{{obj.personName}}</a-tag>
<a-tag :color="'#f50'" v-if="obj.expertType==2">{{obj.personName}}</a-tag>
</template> </template>
<template slot="evaluationType" slot-scope="obj"> <template slot="evaluationType" slot-scope="obj">
<a-tag :color="'#87d068'" v-if="obj.evaluationType==1">A类(通过)</a-tag> <a-tag :color="'#87d068'" v-if="obj.evaluationType==1">A类(通过)</a-tag>
...@@ -105,8 +106,6 @@ export default { ...@@ -105,8 +106,6 @@ export default {
}, },
data () { data () {
return { return {
technology: "#2db7f5",
finance: "#f50",
// 选项卡 // 选项卡
panes: { count1: 0, count2: 0, count3: 0, count4: 0, count5: 0, }, panes: { count1: 0, count2: 0, count3: 0, count4: 0, count5: 0, },
form: this.$form.createForm(this, { name: 'advanced_search' }), form: this.$form.createForm(this, { name: 'advanced_search' }),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment