|
|
@ -0,0 +1,145 @@ |
|
|
|
|
|
<template> |
|
|
|
|
|
<div class="ytbd-list"> |
|
|
|
|
|
<div class="ytbd-search"> |
|
|
|
|
|
<el-form :model="searchForm" ref="searchForm" :inline="true"> |
|
|
|
|
|
<el-form-item :label="$t('page.business.form.bdmc')" prop="name"> |
|
|
|
|
|
<el-input v-model="searchForm.name" :placeholder="$t('form.placeholderInput')" clearable style="width: 150px" @keyup.enter.native="search" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="$t('page.business.form.bdbh')" prop="sn"> |
|
|
|
|
|
<el-input v-model="searchForm.sn" :placeholder="$t('form.placeholderInput')" clearable style="width: 150px" @keyup.enter.native="search" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="$t('page.business.form.gsr')" prop="ownerName"> |
|
|
|
|
|
<el-input v-model="searchForm.ownerName" :placeholder="$t('form.placeholderInput')" clearable style="width: 150px" @keyup.enter.native="search" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="$t('page.business.form.xtmbmc')" prop="templateName"> |
|
|
|
|
|
<el-input v-model="searchForm.templateName" :placeholder="$t('form.placeholderInput')" clearable style="width: 150px" @keyup.enter.native="search" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item :label="$t('page.business.form.cjsj')"> |
|
|
|
|
|
<el-date-picker v-model="daterange" clearable type="daterange" range-separator="-" :start-placeholder="$t('page.business.form.startDate')" |
|
|
|
|
|
:end-placeholder="$t('page.business.form.endDate')" value-format="yyyy-MM-dd" @change="search" style="width: 220px" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="search">{{ $t('form.search') }}</el-button> |
|
|
|
|
|
<el-button icon="el-icon-refresh" @click="reset">{{ $t('form.reset') }}</el-button> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <div> |
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="search">{{ $t('form.search') }}</el-button> |
|
|
|
|
|
<el-button icon="el-icon-refresh" @click="reset">{{ $t('form.reset') }}</el-button> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</div> --> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="ytbd-content"> |
|
|
|
|
|
<el-row class="add-box"> |
|
|
|
|
|
<el-col> |
|
|
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="edit(null)" v-hasPermi="['business:study:add']">{{ $t('page.business.form.xzytbd') }}</el-button> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="list"> |
|
|
|
|
|
<el-table-column :label="$t('page.business.form.bh')" prop="sn" /> |
|
|
|
|
|
<el-table-column :label="$t('page.business.form.bdmc')" prop="name" /> |
|
|
|
|
|
<el-table-column :label="$t('page.business.form.xtmbmc')" prop="templateName" /> |
|
|
|
|
|
<el-table-column :label="$t('page.business.form.cjsj')" align="center" prop="createTime" width="140" /> |
|
|
|
|
|
<el-table-column :label="$t('page.business.form.cjr')" align="center" prop="leaderName" width="100" /> |
|
|
|
|
|
|
|
|
|
|
|
<el-table-column :label="$t('page.business.form.status')" prop="status" width="100"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<span v-if="scope.row.status===1">{{$t('page.business.form.statusTbz')}}</span> |
|
|
|
|
|
<span v-if="scope.row.status===3">{{$t('page.business.form.statusYtj')}}</span> |
|
|
|
|
|
<span v-if="scope.row.status===5">{{$t('page.business.form.statusWtg')}}</span> |
|
|
|
|
|
<span v-if="scope.row.status===10">{{$t('page.business.form.statusYtg')}}</span> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column :label="$t('form.operate')" fixed="right" align="center" width="200"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<!-- 详情 --> |
|
|
|
|
|
<el-button type="text" @click="detail(scope.row)" v-hasPermi="['business:study:detail']">{{$t('page.business.form.detail')}}</el-button> |
|
|
|
|
|
<!-- 编辑 --> |
|
|
|
|
|
<el-button type="text" @click="edit(scope.row)" v-hasPermi="['business:study:edit']" v-if="scope.row.status===1">{{$t('page.business.form.edit')}}</el-button> |
|
|
|
|
|
<!-- 审核 --> |
|
|
|
|
|
<el-button type="text" @click="audit(scope.row)" v-hasPermi="['business:study:audit']" v-if="scope.row.status===3 || scope.row.status===5">{{$t('page.business.form.audit')}}</el-button> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
</el-table> |
|
|
|
|
|
|
|
|
|
|
|
<pagination |
|
|
|
|
|
v-show="total>0" |
|
|
|
|
|
:total="total" |
|
|
|
|
|
:page.sync="searchForm.pageNum" |
|
|
|
|
|
:limit.sync="searchForm.pageSize" |
|
|
|
|
|
@pagination="getList" |
|
|
|
|
|
/> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
import { |
|
|
|
|
|
study_list, |
|
|
|
|
|
study_info, |
|
|
|
|
|
study_save, |
|
|
|
|
|
study_delete |
|
|
|
|
|
} from '@/api/business/study/study' |
|
|
|
|
|
export default { |
|
|
|
|
|
name: 'YtbdList', |
|
|
|
|
|
props: { |
|
|
|
|
|
study:{ |
|
|
|
|
|
type:Object, |
|
|
|
|
|
default:()=>{ |
|
|
|
|
|
return {} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
components: {}, |
|
|
|
|
|
computed: {}, |
|
|
|
|
|
filters: {}, |
|
|
|
|
|
data() { |
|
|
|
|
|
return { |
|
|
|
|
|
daterange:[], |
|
|
|
|
|
searchForm: { |
|
|
|
|
|
pageNum: 1, |
|
|
|
|
|
pageSize: 10, |
|
|
|
|
|
sn:'', |
|
|
|
|
|
name:'', |
|
|
|
|
|
ownerName:'', |
|
|
|
|
|
templateName:'', |
|
|
|
|
|
startDate:'', |
|
|
|
|
|
endDate:'', |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
loading: false, |
|
|
|
|
|
total: 0, |
|
|
|
|
|
list: [], |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
created() {}, |
|
|
|
|
|
methods: { |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
</script> |
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
|
.ytbd-list { |
|
|
|
|
|
.ytbd-search{ |
|
|
|
|
|
background: #fff; |
|
|
|
|
|
padding: 20px; |
|
|
|
|
|
margin-bottom: 10px; |
|
|
|
|
|
.right-btn{ |
|
|
|
|
|
text-align:right |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
.ytbd-content{ |
|
|
|
|
|
padding: 20px; |
|
|
|
|
|
background: #fff; |
|
|
|
|
|
.add-box{ |
|
|
|
|
|
margin-bottom: 10px; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
</style> |