Commit 97414985 authored by wdy's avatar wdy

Merge remote-tracking branch 'origin/project1' into project1

parents 288a6428 26a77c75
...@@ -85,6 +85,8 @@ export default { ...@@ -85,6 +85,8 @@ export default {
name: 'Role', name: 'Role',
data() { data() {
return { return {
// 判断是否存在缓存
exist: false,
form: { form: {
pn: '', pn: '',
phd: '', phd: '',
...@@ -118,7 +120,17 @@ export default { ...@@ -118,7 +120,17 @@ export default {
this.$refs.input1.$refs.input.focus() this.$refs.input1.$refs.input.focus()
}) })
}, },
// 路由跳转,是存储页面的值
beforeRouteLeave(to, from, next) {
console.log('form')
localStorage.setItem('form', JSON.stringify(this.form))
next()
},
created() { created() {
localStorage.getItem('form') ? this.exist = true : this.exist = false
if (this.exist) {
this.form = JSON.parse(localStorage.getItem('form'))
}
this.init() this.init()
}, },
methods: { methods: {
......
...@@ -267,6 +267,9 @@ export default { ...@@ -267,6 +267,9 @@ export default {
name: 'Role', name: 'Role',
data() { data() {
return { return {
Rowform: {
},
abandonTitle: '', abandonTitle: '',
abandonOpen: false, abandonOpen: false,
abandonFrom: { abandonFrom: {
...@@ -779,7 +782,18 @@ export default { ...@@ -779,7 +782,18 @@ export default {
handleDelete(row) { handleDelete(row) {
console.log('row', row) console.log('row', row)
this.abandonTitle = '废弃表单信息' this.abandonTitle = '废弃表单信息'
this.Rowform = row
this.abandonFrom.businessId = row.businessId this.abandonFrom.businessId = row.businessId
this.abandonFrom.pn = row.pn
this.abandonFrom.createBy = row.createBy
this.abandonFrom.createDate = row.createDate
this.abandonFrom.delFlag = row.delFlag
this.abandonFrom.lot = row.lot
this.abandonFrom.phd = row.phd
this.abandonFrom.plocation = row.plocation
this.abandonFrom.prank = row.prank
this.abandonFrom.psm = row.psm
this.abandonFrom.pzl = row.pzl
this.abandonOpen = true this.abandonOpen = true
// const EquipmentIds = row.businessId || this.ids; // const EquipmentIds = row.businessId || this.ids;
......
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