|
@@ -4,8 +4,19 @@
|
|
|
<div class="squrt"></div>版本控制
|
|
|
</h2>
|
|
|
<div class="m-core">
|
|
|
- <!-- v-permission="'cooperationOrgan/add'" -->
|
|
|
- <div class="newBand" @click="createEdi">新建</div>
|
|
|
+ <!-- -->
|
|
|
+ <div class="newBand" @click="createEdi" v-permission="'appVersionInfo/add'">新建</div>
|
|
|
+ <el-form :inline="true" :model="searchForm">
|
|
|
+ <el-form-item label="客户端">
|
|
|
+ <el-select clearable v-model="searchForm.search">
|
|
|
+ <el-option v-for="(item,index) in sectionList" :key='index' :value="item.value" :label="item.label"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item >
|
|
|
+ <el-button type="danger" @click="search">搜索</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+
|
|
|
<div class="tableWrap">
|
|
|
<el-table :data="tableList" :header-cell-style="{background:'#EDEEF0',color:'#444'}">
|
|
|
<el-table-column align="center" prop="id" label="编号"></el-table-column>
|
|
@@ -30,7 +41,7 @@
|
|
|
<el-table-column align="center" label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
- <el-button type="text"@click="resetEdit(scope.row)">修改</el-button>
|
|
|
+ <el-button v-permission="'appVersionInfo/update'" type="text"@click="resetEdit(scope.row)">修改</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -53,7 +64,7 @@
|
|
|
label-width="80px"
|
|
|
:inline="true"
|
|
|
>
|
|
|
- <el-form-item label="客户端" prop="platform" >
|
|
|
+ <el-form-item label="客户端" prop="platform" v-if="isNew">
|
|
|
<el-select v-model="sectionForm.platform" clearable>
|
|
|
<el-option v-for="(item,index) in sectionList" :key="index" :label="item.label" :value="item.value"></el-option>
|
|
|
</el-select>
|
|
@@ -106,6 +117,9 @@ export default {
|
|
|
total: 0, // 总条数
|
|
|
page_size: [10, 20, 40, 50] // 选择限制显示条数
|
|
|
},
|
|
|
+ searchForm:{
|
|
|
+ search:null
|
|
|
+ },
|
|
|
sectionList: [{value:'ios-teacher',label:'苹果-老师端'},
|
|
|
{value:'ios-student',label:'苹果-学生端'},{value:'ios-education',label:'苹果-教务端'},{value:'android-teacher',label:'安卓-老师端'},
|
|
|
{value:'android-student',label:'安卓-学生端'},{value:'android-education',label:'安卓-教务端'}],
|
|
@@ -141,11 +155,16 @@ export default {
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
+ search(){
|
|
|
+ this.rules.page = 1;
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
init() {
|
|
|
this.getList();
|
|
|
},
|
|
|
getList() {
|
|
|
- appVersionInfo().then(res => {
|
|
|
+ this.searchForm.search?this.searchForm.search:this.searchForm.search = null;
|
|
|
+ appVersionInfo({search:this.searchForm.search}).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.tableList = res.data.rows;
|
|
|
this.rules.total = res.data.total;
|