Commit bd0f2884 by 1377875331@qq.com

Merge remote-tracking branch 'origin/master'

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