整体结构变更 新增方法数据错乱问题修复

This commit is contained in:
pixel
2020-10-29 17:57:29 +08:00
parent c570c095b9
commit 02f155f497
7 changed files with 348 additions and 122 deletions

View File

@@ -5,7 +5,7 @@
<div class="panelRow">
<div>{{i18n['process.id']}}</div>
<el-input style="width:90%; font-size:12px"
:disabled="readOnly"
:disabled="readOnly || this.$route.query.type!='create'"
placeholder="必填(唯一标识)"
:value="model.id"
@input="(value) => {onChange('id', value)}" />

View File

@@ -8,7 +8,7 @@
v-if="!isView"
:height="height"
:model="selectedModel"
:readOnly="mode !== 'edit'"
:readOnly="$route.query.type == 'view'"
:users="users"
:authorities="authorities"
:groups="groups"
@@ -84,9 +84,9 @@
type: Array,
default: () => ([])
},
processModel:{
propProcessModel:{
type: Object,
default: () => ({
default: () => ({
id: '',
name: '',
category: '',
@@ -99,6 +99,7 @@
},
data() {
return {
processModel:{},
resizeFunc: ()=>{},
selectedModel: {},
graph:null,
@@ -245,7 +246,10 @@
this.graph.fitView(5)
}
this.initEvents();
}
},
created() {
this.processModel = this.propProcessModel
},
};
</script>
<style lang="scss" scoped>