Commit c34c8413 authored by wangxl's avatar wangxl

333

parent 2c369ed0
......@@ -14,7 +14,7 @@
<a-select-option value="女"></a-select-option>
</a-select>
</a-form-item>
<a-form-item v-if="isShow">
<a-form-item v-if="isTopGov">
<a-input v-model="searchForm.unitName" placeholder="单位" :maxLength="100" style="width: 130px" />
</a-form-item>
<a-form-item>
......@@ -23,9 +23,6 @@
<a-form-item>
<para-multi-select v-model="searchForm.title" @parentChange="titleChange" :title="'职称'" :objType="'project'" :typeId="7" :width="150" />
</a-form-item>
<a-form-item>
<para-multi-select v-model="searchForm.spec" @parentChange="specChange" :title="'评审专业'" :objType="'project'" :typeId="57" :width="150" />
</a-form-item>
<a-form-item>
<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>
......@@ -33,8 +30,8 @@
</a-form>
<a-divider style="height: 1px; background-color: #e8e8e8;" />
<div class="submit-btn">
<a-button type="primary" @click="addExpert">添加专家</a-button>
<a-button type="primary" @click="importExcel" v-if="isShow">导入</a-button>
<a-button type="primary" @click="addExpert">添加</a-button>
<a-button type="primary" @click="importExcel" v-if="isTopGov">导入</a-button>
<a-button type="primary" @click="exporExcel">导出excel</a-button>
</div>
<a-table :dataSource="tableData" :columns="columns" rowKey="id" :pagination="false" :loading="loading">
......@@ -52,8 +49,9 @@
<a-switch checked-children="启用" un-checked-children="停用" :checked="checkedState(record)" @change="switchChange($event,record)" />
</template>
<template slot="option" slot-scope="record">
<a-button type="link" size="small" @click="recordClick(record,'report')" v-if="!isTopGov&&record.reportState!=2">上报</a-button>
<a-button type="link" size="small" @click="recordClick(record,'edit')">修改</a-button>
<a-button type="link" size="small" @click="recordClick(record,'reset')">重置密码</a-button>
<a-button type="link" size="small" @click="recordClick(record,'reset')">重置密码</a-button>
<a-button type="link" size="small" @click="recordClick(record,'del')">删除</a-button>
</template>
</a-table>
......@@ -94,7 +92,6 @@ export default {
{ title: '单位', dataIndex: 'unitName', align: 'center' },
{ title: '用户名', dataIndex: 'username', align: 'center' },
{ title: '密码', dataIndex: 'password', align: 'center' },
{ title: '上报状态', scopedSlots: { customRender: 'reportState' }, align: 'center' },
{ title: '状态', scopedSlots: { customRender: 'stateSwitch' }, align: 'center' },
{ title: '操作', scopedSlots: { customRender: 'option' }, align: 'center', fixed: 'right', width: '180px', },
],
......@@ -115,7 +112,7 @@ export default {
visibleView: false,
visibleEdit: false,
visibleImport: false,
isShow: false,
isTopGov: false,
id: null
}
},
......@@ -123,7 +120,10 @@ export default {
let user = JSON.parse(window.sessionStorage.getItem('user'))
if (user && user.roles) {
if (user.roles.indexOf("0") != -1) {
this.isShow = true
this.isTopGov = true
}
else {
this.columns.splice(8, 0, { title: '上报状态', scopedSlots: { customRender: 'reportState' }, align: 'center' })
}
}
this.getListByPage()
......
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