购物车返回第一页bug
This commit is contained in:
parent
66a5d33609
commit
eadcfdceaf
|
@ -67,7 +67,7 @@
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
<el-input v-if="agreeOrList ==='同意' " v-model="inputAgree" placeholder="请输入同意意见"></el-input>
|
<el-input v-if="agreeOrList ==='同意' " v-model="inputAgree" placeholder="请输入同意意见"></el-input>
|
||||||
<el-input v-if="agreeOrList ==='退回'" v-model="inputNo" placeholder="请输入退回意见"></el-input>
|
<el-input v-if="agreeOrList ==='退回'" v-model="inputNo" placeholder="请输入退回意见"></el-input>
|
||||||
<el-button class="inputBule" @click="agreeOrNot">提交</el-button>
|
<el-button class="inputBule"@click.native="agreeOrNot($store.state.contentTabsActiveName)">提交</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -79,14 +79,22 @@
|
||||||
<script>
|
<script>
|
||||||
// 引入工作流公共方法
|
// 引入工作流公共方法
|
||||||
import processModule from '@/mixins/process-module'
|
import processModule from '@/mixins/process-module'
|
||||||
|
import mixinViewModule from '@/mixins/view-module'
|
||||||
import debounce from 'lodash/debounce'
|
import debounce from 'lodash/debounce'
|
||||||
import qs from 'qs'
|
import qs from 'qs'
|
||||||
import RenProcessDetail from '@/components/ren-process-detail/src/ren-process-detail'
|
import RenProcessDetail from '@/components/ren-process-detail/src/ren-process-detail'
|
||||||
export default {
|
export default {
|
||||||
// 注入公共方法
|
// 注入公共方法
|
||||||
mixins: [processModule],
|
mixins: [mixinViewModule, processModule],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
// mixinViewModuleOptions: {
|
||||||
|
// getDataListURL: '/act/task/myToDoTaskPage',
|
||||||
|
// getDataListIsPage: true,
|
||||||
|
// activatedIsNeed: true,
|
||||||
|
// deleteIsBatch: true,
|
||||||
|
// deleteIsBatchKey: 'deploymentId'
|
||||||
|
// },
|
||||||
visible: true,
|
visible: true,
|
||||||
showKey: 0,
|
showKey: 0,
|
||||||
// 表单属性是否可编辑
|
// 表单属性是否可编辑
|
||||||
|
@ -227,7 +235,8 @@ export default {
|
||||||
.catch(() => {})
|
.catch(() => {})
|
||||||
},
|
},
|
||||||
// 同意与退回
|
// 同意与退回
|
||||||
agreeOrNot: debounce(function () {
|
agreeOrNot: debounce(function (data) {
|
||||||
|
console.log(data)
|
||||||
if (this.agreeOrList === '同意') {
|
if (this.agreeOrList === '同意') {
|
||||||
console.log('this.dataForm', this.dataForm)
|
console.log('this.dataForm', this.dataForm)
|
||||||
const params = qs.stringify({
|
const params = qs.stringify({
|
||||||
|
@ -281,7 +290,35 @@ export default {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
this.tabRemoveHandle(data)
|
||||||
|
// this.getDataList(data)
|
||||||
}, 1000, { leading: true, trailing: false }),
|
}, 1000, { leading: true, trailing: false }),
|
||||||
|
tabRemoveHandle (tabName) {
|
||||||
|
console.log(tabName, 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
|
||||||
|
if (tabName === 'home') {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
this.$store.state.contentTabs = this.$store.state.contentTabs.filter(
|
||||||
|
(item) => item.name !== tabName
|
||||||
|
)
|
||||||
|
if (this.$store.state.contentTabs.length <= 0) {
|
||||||
|
this.$store.state.sidebarMenuActiveName =
|
||||||
|
this.$store.state.contentTabsActiveName = 'home'
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
// 当前选中tab被删除
|
||||||
|
if (tabName === this.$store.state.contentTabsActiveName) {
|
||||||
|
const tab =
|
||||||
|
this.$store.state.contentTabs[
|
||||||
|
this.$store.state.contentTabs.length - 1
|
||||||
|
]
|
||||||
|
this.$router.push({
|
||||||
|
name: /^iframe_.+/.test(tab.name) ? 'iframe' : tab.name,
|
||||||
|
params: { ...tab.params },
|
||||||
|
query: { ...tab.query }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
// 启动流程出错回调
|
// 启动流程出错回调
|
||||||
startProcessErrorCallback (data) {
|
startProcessErrorCallback (data) {
|
||||||
console.log(data)
|
console.log(data)
|
||||||
|
|
|
@ -1141,6 +1141,9 @@
|
||||||
console.log('paramsGetResources', paramsGetResources)
|
console.log('paramsGetResources', paramsGetResources)
|
||||||
})
|
})
|
||||||
mybus.on('changeSelcted', () => {
|
mybus.on('changeSelcted', () => {
|
||||||
|
// 添加申购车后,返回第一页
|
||||||
|
paramsGetResources.pageNum = 1
|
||||||
|
currentPage.value = 1
|
||||||
getAppResources()
|
getAppResources()
|
||||||
})
|
})
|
||||||
mybus.on('changeInfo', (info) => {
|
mybus.on('changeInfo', (info) => {
|
||||||
|
@ -1161,6 +1164,9 @@
|
||||||
getAppResources()
|
getAppResources()
|
||||||
})
|
})
|
||||||
mybus.on('changeCondition', (condition) => {
|
mybus.on('changeCondition', (condition) => {
|
||||||
|
// 回到第一页,分页页码为1
|
||||||
|
paramsGetResources.pageNum = 1
|
||||||
|
currentPage.value = 1
|
||||||
// orderField: 'total' total 综合 visits 访问量 applyCount 申请量 score 评分 collectCount 收藏量
|
// orderField: 'total' total 综合 visits 访问量 applyCount 申请量 score 评分 collectCount 收藏量
|
||||||
// orderType: 'ASC' ASC 升序 DESC 降序
|
// orderType: 'ASC' ASC 升序 DESC 降序
|
||||||
paramsGetResources.orderField = condition.orderField
|
paramsGetResources.orderField = condition.orderField
|
||||||
|
|
Loading…
Reference in New Issue