|
@@ -51,69 +51,113 @@
|
|
|
</el-autocomplete>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+
|
|
|
<el-card class="box-card" v-if="!isShowMore">
|
|
|
<div slot="header" class="clearfix">
|
|
|
- <span>{{ selectDepartName }} 法律法规规定资料</span>
|
|
|
+ <span>{{ selectDepartName }} 法律法规类资料</span>
|
|
|
<el-button style="float: right; padding: 3px 0;color: #999;font-size: 12px;" type="text" @click="handleOpenMore(1)">更多></el-button>
|
|
|
</div>
|
|
|
- <div v-for="o in 4" :key="o" class="text item">
|
|
|
- <div style="display: inline-block;width: 100%;">
|
|
|
- <el-link target="_blank" download="下载文件名" :href="require('@/icons/img/logo-apple.png')" :underline="false">
|
|
|
- <el-button class="fl" type="text">{{ selectDepartName + ' 文件名文件名' + o }}</el-button>
|
|
|
+ <div v-for="(o,index) in restaurants.laws" :key="o.id" class="text item">
|
|
|
+ <div style="display: inline-block;width: 100%;" >
|
|
|
+ <el-link target="_blank" download="下载文件名" :href="require('@/icons/img/logo-apple.png')" :underline="false">
|
|
|
+ <span class="oneline" >
|
|
|
+ {{ (index+1)}} 、 {{o.title|filterTitle}}
|
|
|
+ </span>
|
|
|
</el-link>
|
|
|
- <span class="fr" style="color: #b4b4b4;">{{'2021-05-14 08:49:5' + o }}</span>
|
|
|
+
|
|
|
+ <!-- <span class="fr" style="color: #b4b4b4;">{{o.createAt }}</span> -->
|
|
|
+ <el-button @click="applyDoc()"> 申请材料 </el-button>
|
|
|
<span style="clear: both;"></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-card>
|
|
|
+
|
|
|
<el-card class="box-card" v-if="!isShowMore">
|
|
|
<div slot="header" class="clearfix">
|
|
|
- <span>{{ selectDepartName }} 制度机制类资料</span>
|
|
|
+ <span>{{ selectDepartName }} 机制类资料</span>
|
|
|
<el-button style="float: right; padding: 3px 0;color: #999;font-size: 12px;" type="text" @click="handleOpenMore(2)">更多></el-button>
|
|
|
</div>
|
|
|
- <div v-for="o in 4" :key="o" class="text item">
|
|
|
+ <div v-for="(o,index) in restaurants.mechanism" :key="o.id" class="text item">
|
|
|
<div style="display: inline-block;width: 100%;">
|
|
|
- <el-link target="_blank" download="下载文件名" :href="require('@/icons/img/logo-apple.png')" :underline="false">
|
|
|
- <el-button class="fl" type="text">{{ selectDepartName + ' 文件名文件名' + o }}</el-button>
|
|
|
+ <el-link target="_blank" download="下载文件名" :href="require('@/icons/img/logo-apple.png')" :underline="false">
|
|
|
+ <span class="oneline" >
|
|
|
+ {{ (index+1)}} 、 {{o.title|filterTitle}}
|
|
|
+ </span>
|
|
|
</el-link>
|
|
|
- <span class="fr" style="color: #b4b4b4;">{{'2021-05-14 08:49:5' + o }}</span>
|
|
|
+
|
|
|
+ <span class="fr" style="color: #b4b4b4;">{{o.createAt }}</span>
|
|
|
<span style="clear: both;"></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-card>
|
|
|
+
|
|
|
+
|
|
|
<el-card class="box-card" v-if="!isShowMore">
|
|
|
<div slot="header" class="clearfix">
|
|
|
- <span>{{ selectDepartName }} 基础性数据资料</span>
|
|
|
+ <span>{{ selectDepartName }} 成果类资料</span>
|
|
|
<el-button style="float: right; padding: 3px 0;color: #999;font-size: 12px;" type="text" @click="handleOpenMore(3)">更多></el-button>
|
|
|
</div>
|
|
|
- <div v-for="o in 4" :key="o" class="text item">
|
|
|
+ <div v-for="(o,index) in restaurants.result" :key="o.id" class="text item">
|
|
|
<div style="display: inline-block;width: 100%;">
|
|
|
- <el-link target="_blank" download="下载文件名" :href="require('@/icons/img/logo-apple.png')" :underline="false">
|
|
|
- <el-button class="fl" type="text">{{ selectDepartName + ' 文件名文件名' + o }}</el-button>
|
|
|
+ <el-link target="_blank" download="下载文件名" :href="require('@/icons/img/logo-apple.png')" :underline="false">
|
|
|
+ <span class="oneline" >
|
|
|
+ {{ (index+1)}} 、 {{o.title|filterTitle}}
|
|
|
+ </span>
|
|
|
</el-link>
|
|
|
- <span class="fr" style="color: #b4b4b4;">{{'2021-05-14 08:49:5' + o }}</span>
|
|
|
+ <span class="fr" style="color: #b4b4b4;">{{o.createAt }}</span>
|
|
|
<span style="clear: both;"></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-card>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<el-card class="box-card" v-if="isShowMore">
|
|
|
<div slot="header" class="clearfix">
|
|
|
- <span>{{ selectDepartName }} 其他类</span>
|
|
|
- <el-button style="float: right; padding: 3px 0;color: #999;font-size: 12px;" type="text" @click="handleCloseMore">返回</el-button>
|
|
|
+ <span>{{ selectDepartName }} 成果类资料</span>
|
|
|
</div>
|
|
|
- <div v-for="o in 20" :key="o" class="text item">
|
|
|
+ <div v-for="(o,index) in restaurants.result" :key="o.id" class="text item">
|
|
|
<div style="display: inline-block;width: 100%;">
|
|
|
- <el-link target="_blank" download="下载文件名" :href="require('@/icons/img/logo-apple.png')" :underline="false">
|
|
|
- <el-button class="fl" type="text">{{ selectDepartName + ' 文件名文件名' + o }}</el-button>
|
|
|
+ <el-link target="_blank" :download="o.filename" :href="'/'+o.filename" :underline="false">
|
|
|
+ <span class="oneline" >
|
|
|
+ {{ (index+1)}} 、 {{o.title|filterTitle}}
|
|
|
+ </span>
|
|
|
</el-link>
|
|
|
- <span class="fr" style="color: #b4b4b4;">{{'2021-05-14 08:49:5' + o }}</span>
|
|
|
+ <span class="fr" style="color: #b4b4b4;">{{o.createAt }}</span>
|
|
|
<span style="clear: both;"></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <el-pagination
|
|
|
+ :current-page="1"
|
|
|
+ :page-size="10"
|
|
|
+ :page-sizes="[10, 30, 50, 100]"
|
|
|
+ :style="{float:'right',padding:'20px'}"
|
|
|
+ :total="315"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ ></el-pagination>
|
|
|
</el-card>
|
|
|
</div>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</div>
|
|
|
+ <el-dialog title="申请材料" center :visible.sync="dialogFormVisible" >
|
|
|
+ <h3> 本材料非公开,需要向对应科室申请</h3>
|
|
|
+ <div class="dialog-footer" slot="footer">
|
|
|
+ <el-button type="warning" size="medium" style="width: 100px; padding: 10px; margin: 20px;" @click="dialogFormVisible=false">取 消</el-button>
|
|
|
+ <el-button type="primary" size="medium" style="width: 100px; padding: 10px; margin: 20px;" @click="dialogFormVisible=false">确认申请</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
<IFooter />
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -122,6 +166,8 @@ import IHeader from "./components/IHeader";
|
|
|
import IFooter from "./components/IFooter";
|
|
|
import glIcon from '@/icons/img/2016smyjj_gl_icon.jpg'
|
|
|
import data from '../data/data.js'
|
|
|
+import {getHotArticalList,getArticalList} from '@/api/article'
|
|
|
+
|
|
|
export default {
|
|
|
name: 'application',
|
|
|
components: {
|
|
@@ -130,18 +176,29 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ dialogFormVisible: false,
|
|
|
glIcon: glIcon,
|
|
|
list: data.departs,
|
|
|
searchDepartId: "",
|
|
|
- restaurants: [],
|
|
|
+ restaurants: {},
|
|
|
state3: '',
|
|
|
selectDepartId:1,
|
|
|
- selectDepartName: '局办公室',
|
|
|
+ selectDepartName: '',
|
|
|
+ category:'',
|
|
|
isShowMore: false
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.restaurants = this.loadAll();
|
|
|
+ this.getHotArticalList();
|
|
|
+ },
|
|
|
+ filters:{
|
|
|
+ filterTitle(val){
|
|
|
+ if( val.length > 35) {
|
|
|
+ return val.substr(0,32)+"..."
|
|
|
+ }else{
|
|
|
+ return val
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
watch: {
|
|
|
selectDepartId: function(newDepartId, oldDepartId) {
|
|
@@ -160,13 +217,23 @@ export default {
|
|
|
// 调用 callback 返回建议列表的数据
|
|
|
cb(results);
|
|
|
},
|
|
|
+ applyDoc(){
|
|
|
+ this.dialogFormVisible = true
|
|
|
+ },
|
|
|
createFilter(queryString) {
|
|
|
return (restaurant) => {
|
|
|
return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
|
|
|
};
|
|
|
},
|
|
|
- loadAll() {
|
|
|
- return data.filelist;
|
|
|
+ getHotArticalList() {
|
|
|
+ let param = {
|
|
|
+ "department": this.selectDepartName,
|
|
|
+ "category": this.category
|
|
|
+ }
|
|
|
+ getHotArticalList( param ).then( res=>{
|
|
|
+ this.restaurants = res.data
|
|
|
+ console.log("getHotArticalList", res)
|
|
|
+ })
|
|
|
},
|
|
|
querySearchAsync(queryString, cb) {
|
|
|
var restaurants = this.restaurants;
|
|
@@ -248,4 +315,11 @@ export default {
|
|
|
width: 200px;
|
|
|
min-height: 400px;
|
|
|
}
|
|
|
+
|
|
|
+ .oneline {
|
|
|
+ line-height: 30px;
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ }
|
|
|
</style>
|