Commit bd0f2884 by 1377875331@qq.com

Merge remote-tracking branch 'origin/master'

parents a7296ab8 a4ab8039
...@@ -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() {
if(!this.isInDisplay){
this.ruleWatcher() this.ruleWatcher()
this.ruleCheck() 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
...@@ -204,6 +204,9 @@ export default { ...@@ -204,6 +204,9 @@ export default {
console.log(rtnmsg) console.log(rtnmsg)
Utils.copyValueFromVO(this.model,rtnmsg.data) Utils.copyValueFromVO(this.model,rtnmsg.data)
console.log(this.model); console.log(this.model);
if(this.isInDisplay)
this.restoreDisplay()
} }
else else
{ {
......
...@@ -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