|
|
@ -1,21 +1,45 @@ |
|
|
<template> |
|
|
<template> |
|
|
<section class="page-container"> |
|
|
|
|
|
<el-row class="page-main page-height-80"> |
|
|
|
|
|
|
|
|
<section class="page-container padding"> |
|
|
|
|
|
<el-row v-if="showType!='simple'"> |
|
|
|
|
|
<el-checkbox v-model="filters.isMy" false-label="" true-label="1">我的模板</el-checkbox> |
|
|
|
|
|
<el-input style="width:300px;" v-model="filters.key" placeholder="模板名字"></el-input> |
|
|
|
|
|
<el-button @click="searchXmProjects" icon="el-icon-search"></el-button> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row v-if="showType=='simple'"> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-checkbox v-model="filters.isMy" false-label="0" true-label="1">我的模板</el-checkbox> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row> |
|
|
|
|
|
<el-input style="width:80%;" v-model="filters.key" placeholder="模板名字"></el-input> <el-button @click="searchXmProjects" icon="el-icon-search"></el-button> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
</el-row> |
|
|
|
|
|
<el-row class="page-main page-height-70" > |
|
|
<!--列表 XmProduct 产品表--> |
|
|
<!--列表 XmProduct 产品表--> |
|
|
<el-table ref="table" :height="tableHeight" :data="xmProducts" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;"> |
|
|
<el-table ref="table" :height="tableHeight" :data="xmProducts" @sort-change="sortChange" highlight-current-row v-loading="load.list" border @selection-change="selsChange" @row-click="rowClick" style="width: 100%;"> |
|
|
<el-table-column prop="productName" label="产品模板(参考学习用)" min-width="200" sortable> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="序号" width="60" type="index"> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column prop="productName" label="产品模板(参考学习用)" min-width="200" sortable> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-link type="primary" @click="intoInfo(scope.row)">{{scope.row.productName}}</el-link> |
|
|
<el-link type="primary" @click="intoInfo(scope.row)">{{scope.row.productName}}</el-link> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="" width="100" fixed="right"> |
|
|
|
|
|
|
|
|
<el-table-column prop="code" v-if="showType!='simple'" label="产品编码" width="200" sortable> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column prop="assistantUsername" v-if="showType!='simple'" label="创建人" width="200" sortable> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column prop="ctime" v-if="showType!='simple'" label="创建时间" width="200" sortable> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column prop="remark" v-if="showType!='simple'" label="备注" width="200" sortable> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<el-table-column label="操作" width="100" fixed="right"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-button type="text" title="通过复制创建新的项目" @click="onCopyToBtnClick(scope.row)" :disabled="load.add" v-loading="load.add">复制</el-button> |
|
|
<el-button type="text" title="通过复制创建新的项目" @click="onCopyToBtnClick(scope.row)" :disabled="load.add" v-loading="load.add">复制</el-button> |
|
|
<el-button type="text" title="删除该模板" @click="handleDel(scope.row)" :disabled="load.del" v-loading="load.del">删除</el-button> |
|
|
<el-button type="text" title="删除该模板" @click="handleDel(scope.row)" :disabled="load.del" v-loading="load.del">删除</el-button> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
</el-row> |
|
|
<el-pagination layout="total, sizes, prev, pager, next" @current-change="handleCurrentChange" @size-change="handleSizeChange" :page-sizes="[10,20, 50, 100, 500]" :current-page="pageInfo.pageNum" :page-size="pageInfo.pageSize" :total="pageInfo.total" style="float:right;"></el-pagination> |
|
|
<el-pagination layout="total, sizes, prev, pager, next" @current-change="handleCurrentChange" @size-change="handleSizeChange" :page-sizes="[10,20, 50, 100, 500]" :current-page="pageInfo.pageNum" :page-size="pageInfo.pageSize" :total="pageInfo.total" style="float:right;"></el-pagination> |
|
|
|
|
|
|
|
|
<!--编辑 XmProduct 产品表界面--> |
|
|
<!--编辑 XmProduct 产品表界面--> |
|
|
@ -62,7 +86,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
props:['selProject','xmIteration'], |
|
|
|
|
|
|
|
|
props:['selProject','xmIteration','showType'], |
|
|
computed: { |
|
|
computed: { |
|
|
...mapGetters([ |
|
|
...mapGetters([ |
|
|
'userInfo','roles' |
|
|
'userInfo','roles' |
|
|
@ -77,9 +101,11 @@ |
|
|
return { |
|
|
return { |
|
|
filters: { |
|
|
filters: { |
|
|
key: '', |
|
|
key: '', |
|
|
queryScope:'compete',//compete/branchId/''/productId |
|
|
|
|
|
|
|
|
queryScope:'',//compete/branchId/''/productId |
|
|
id:'',//产品编号 |
|
|
id:'',//产品编号 |
|
|
pmUser:null,//产品经理 |
|
|
pmUser:null,//产品经理 |
|
|
|
|
|
isMy:'', |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
xmProducts: [],//查询结果 |
|
|
xmProducts: [],//查询结果 |
|
|
pageInfo:{//分页数据 |
|
|
pageInfo:{//分页数据 |
|
|
@ -185,7 +211,12 @@ |
|
|
} |
|
|
} |
|
|
params.orderBy= orderBys.join(",") |
|
|
params.orderBy= orderBys.join(",") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(this.filters.key){ |
|
|
|
|
|
params.key=this.filters.key |
|
|
|
|
|
} |
|
|
|
|
|
if(this.filters.isMy=='1'){ |
|
|
|
|
|
params.assistantUserid=this.userInfo.userid |
|
|
|
|
|
} |
|
|
params.isTpl="1" |
|
|
params.isTpl="1" |
|
|
this.load.list = true; |
|
|
this.load.list = true; |
|
|
listXmProductWithState(params).then((res) => { |
|
|
listXmProductWithState(params).then((res) => { |
|
|
|