Commit 2876ce68 authored by obt's avatar obt

代码更新

parent 9af32ed2
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2020-12-01 09:54:12 * @Date: 2020-12-01 09:54:12
* @LastEditTime: 2020-12-08 09:59:45 * @LastEditTime: 2020-12-10 16:12:21
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\index.vue * @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\index.vue
...@@ -28,6 +28,12 @@ export default { ...@@ -28,6 +28,12 @@ export default {
componentName: 'nebulaDynamics', componentName: 'nebulaDynamics',
regions:[], regions:[],
info: null, info: null,
currentEditPage: 1,
}
},
watch:{
currentEditPage(newVal){
console.log("currentEditPage=>",newVal)
} }
}, },
mounted() { mounted() {
......
<!-- <!--
* @Author: Jenkins * @Author: Jenkins
* @Date: 2020-12-01 09:54:12 * @Date: 2020-12-01 09:54:12
* @LastEditTime: 2020-12-10 14:46:34 * @LastEditTime: 2020-12-10 17:05:11
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 星云动态 * @Description: 星云动态
* @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\index.vue * @FilePath: \rs-cloud-platform-ui\src\views\webSiteManagement\newsCategory\index.vue
...@@ -90,7 +90,19 @@ ...@@ -90,7 +90,19 @@
append-to-body append-to-body
> >
<div id="typeCreator"> <div id="typeCreator">
<div class="content"> <el-form ref="form" :rules="createRules" :model="editorType" label-width="80px">
<el-form-item label="类型名称" prop="name">
<el-col :span="14">
<el-input v-model="editorType.name" placeholder="请输入类型名称" size="100px"></el-input>
</el-col>
</el-form-item>
<el-form-item label="类型排序" prop="sort">
<el-col :span="14">
<el-input v-model="editorType.sort" placeholder="请设置排序0-10000,数值越大排序越靠前"></el-input>
</el-col>
</el-form-item>
</el-form>
<!-- <div class="content">
<span>*中文名称</span> <span>*中文名称</span>
<el-col :span="14"> <el-col :span="14">
<el-input <el-input
...@@ -99,7 +111,7 @@ ...@@ -99,7 +111,7 @@
size="100px" size="100px"
></el-input> ></el-input>
</el-col> </el-col>
</div> </div> -->
<!-- <div class="content"> <!-- <div class="content">
<span>*英文名称</span> <span>*英文名称</span>
<el-col :span="14"> <el-col :span="14">
...@@ -109,7 +121,7 @@ ...@@ -109,7 +121,7 @@
></el-input> ></el-input>
</el-col> </el-col>
</div> --> </div> -->
<div class="content"> <!-- <div class="content">
<span>*类型排序</span> <span>*类型排序</span>
<el-col :span="14"> <el-col :span="14">
<el-input <el-input
...@@ -117,7 +129,7 @@ ...@@ -117,7 +129,7 @@
placeholder="请设置排序0-10000,数值越大排序越靠前" placeholder="请设置排序0-10000,数值越大排序越靠前"
></el-input> ></el-input>
</el-col> </el-col>
</div> </div> -->
<div class="operators"> <div class="operators">
<div class="cancel" @click.stop="cancelEditor">取消</div> <div class="cancel" @click.stop="cancelEditor">取消</div>
<div class="confirm" @click.stop="confirmEditor">确定</div> <div class="confirm" @click.stop="confirmEditor">确定</div>
...@@ -307,6 +319,10 @@ export default { ...@@ -307,6 +319,10 @@ export default {
}, },
data() { data() {
return { return {
createRules: {
name: [{ required: true, message: '请输入类型名称', trigger: 'blur' }],
sort: [{ required: true, message: '请设置排序号', trigger: 'blur' }],
},
// 功能按钮 // 功能按钮
topControls: [ topControls: [
{ {
...@@ -394,7 +410,7 @@ export default { ...@@ -394,7 +410,7 @@ export default {
], ],
tableDataState: [],// 缓存当前的表格数据 tableDataState: [],// 缓存当前的表格数据
infoPagination: { infoPagination: {
currentPage: 1,// 当前页码 currentPage: this.$parent.currentEditPage,// 当前页码
pageSize: 10,// 每页查询数量 pageSize: 10,// 每页查询数量
total: 0,// 总记录数量 total: 0,// 总记录数量
}, },
...@@ -440,7 +456,7 @@ export default { ...@@ -440,7 +456,7 @@ export default {
// 当前页码有改变时重新拉取分页数据 // 当前页码有改变时重新拉取分页数据
"infoPagination.currentPage": { "infoPagination.currentPage": {
deep: true, deep: true,
handler: function(){ handler: function(newVal){
this.pullListNewsInfo() this.pullListNewsInfo()
} }
}, },
...@@ -548,6 +564,7 @@ export default { ...@@ -548,6 +564,7 @@ export default {
// 编辑资讯 // 编辑资讯
editorInfo(info){ editorInfo(info){
console.log("Info=>",info) console.log("Info=>",info)
this.$parent.currentEditPage = this.infoPagination.currentPage
this.$parent.componentName = "newsCreator"; this.$parent.componentName = "newsCreator";
this.$parent.regions = this.typesState this.$parent.regions = this.typesState
this.$parent.info = info this.$parent.info = info
......
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