Files
workflow/app/view/component/flow/editFlow.html
T

56 lines
1.7 KiB
HTML

<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>