review 清理,变量方法名修改
This commit is contained in:
1 parent
5d4aac843b
commit
47c871a740
10 files changed
+524
-3088
No files matched your search
@@ -1,55 +0,0 @@
|
||||
<template id="edit-flow">
|
||||
|
||||
<!-- <el-form :model="flowData" ref="dataForm" label-width="100px" class="flowEditForm margin13" size="mini">
|
||||
<el-form-item label="GUID">
|
||||
<el-input disabled v-model="flowData.Id"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="流程名称">
|
||||
<el-input v-model="flowData.Name"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注">
|
||||
<el-input v-model="flowData.Remark" type="textarea" :autosize="{ minRows: 2, maxRows: 4}"></el-input>
|
||||
</el-form-item>
|
||||
</el-form> -->
|
||||
|
||||
<v-form v-model="isFormValid" ref="dataForm" lazy-validation>
|
||||
<v-row class="px-2" :class="{'pb-7': isMobile}">
|
||||
<v-col cols="12" class=" pb-3">
|
||||
<span class="inputLabel">GUID</span>
|
||||
<v-text-field class="jh-v-input mr-2" dense filled single-line label="GUID" v-model="flowData.Id"></v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="12" class=" pb-3">
|
||||
<span class="inputLabel">流程名称</span>
|
||||
<v-text-field class="jh-v-input mr-2" dense filled single-line label="流程名称" v-model="flowData.Name"></v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="12" class=" pb-3">
|
||||
<span class="inputLabel">备注</span>
|
||||
<v-text-field class="jh-v-input mr-2" dense filled single-line label="备注" v-model="flowData.Remark"></v-text-field>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-form>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
Vue.component("edit-flow", {
|
||||
template: '#edit-flow',
|
||||
vuetify: new Vuetify(),
|
||||
name: 'editFlow',
|
||||
data() {
|
||||
return {
|
||||
flowData: {},
|
||||
isFormValid: true
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
isMobile() {
|
||||
return window.innerWidth < 600;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
init(data) {
|
||||
this.flowData = data;
|
||||
},
|
||||
}
|
||||
})
|
||||
</script>
|
||||
@@ -142,12 +142,12 @@
|
||||
return []
|
||||
}
|
||||
},
|
||||
tpl: {
|
||||
type: Array,
|
||||
default: () => {
|
||||
return []
|
||||
}
|
||||
},
|
||||
// tpl: {
|
||||
// type: Array,
|
||||
// default: () => {
|
||||
// return []
|
||||
// }
|
||||
// },
|
||||
mode: {
|
||||
type: String,
|
||||
default: 'serial'
|
||||
@@ -181,9 +181,6 @@
|
||||
isMobile() {
|
||||
return window.innerWidth < 600;
|
||||
},
|
||||
showTask() {
|
||||
return ['userTask', 'receiveTask'].includes(this.node.type);
|
||||
},
|
||||
assignType() {
|
||||
if (!this.node.assignType) return '请选择指派类型';
|
||||
return this.assignTypeList.find(e => e.value === this.node.assignType).text;
|
||||
@@ -204,17 +201,6 @@
|
||||
init(node) {
|
||||
this.node = node.properties;
|
||||
},
|
||||
getOptionList() {
|
||||
if (!this.node.assignType) {
|
||||
return []
|
||||
}
|
||||
if (!this.node.assignType === 'person') {
|
||||
return this.user
|
||||
}
|
||||
if (!this.node.assignType === 'group') {
|
||||
return this.group
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user