Commit a4ab8039 by fukai

快照提交2

parent da0b10e0
...@@ -6,7 +6,7 @@ export default { ...@@ -6,7 +6,7 @@ export default {
return {} return {}
}, },
mounted(){ mounted(){
this.restoreDisplay() //this.restoreDisplay()
}, },
methods:{ methods:{
init(params){ init(params){
......
...@@ -9,8 +9,10 @@ export default { ...@@ -9,8 +9,10 @@ export default {
}, },
created: function () {}, created: function () {},
mounted() { mounted() {
this.ruleWatcher() if(!this.isInDisplay){
this.ruleCheck() this.ruleWatcher()
this.ruleCheck()
}
}, },
methods: { methods: {
ruleWatcher() { ruleWatcher() {
...@@ -45,5 +47,10 @@ export default { ...@@ -45,5 +47,10 @@ export default {
} }
this.rules = res; this.rules = res;
} }
},
computed:{
isInDisplay(){
return this.$store.state.Status.mode === 'display'
}
} }
} }
\ No newline at end of file
...@@ -6,9 +6,22 @@ ...@@ -6,9 +6,22 @@
<script> <script>
import businessContainer from "../Business" import businessContainer from "../Business"
import { mapMutations } from 'vuex'
export default { export default {
components:{ components:{
businessContainer //复用业务容器 businessContainer //复用业务容器
},
created: function () {
console.log("进入快照界面")
this.setMode('display')
},
destroyed: function () {
this.setMode('normal')
},
methods: {
...mapMutations([
'setMode'
])
} }
} }
</script> </script>
......
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