提交先锋
This commit is contained in:
1 parent
571ba2a8a1
commit
b7bbcca9dc
19 files changed
+19786
No files matched your search
@@ -0,0 +1,88 @@
|
||||
<template id="edit-line">
|
||||
<!-- <el-form :model="line" ref="dataForm" label-width="100px" class="flowEditForm margin13" size="mini">
|
||||
<el-form-item label="GUID">
|
||||
<el-input disabled v-model="line.id"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="源活动">
|
||||
<el-input disabled v-model="line.from"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="目标活动">
|
||||
<el-input disabled v-model="line.to"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="名称">
|
||||
<el-input v-model="line.label"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注说明">
|
||||
<el-input v-model="line.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="pa-0 ma-0 pa-xs-4 pb-xs-4 flex-none">
|
||||
<v-col cols="12" class="pa-xs-0 pb-xs-4 pb-3">
|
||||
<v-text-field class="cus-v-input mr-2" dense outlined label="GUID" v-model="line.id"></v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="12" class="pa-xs-0 pb-xs-4 pb-3">
|
||||
<v-text-field class="cus-v-input mr-2" dense outlined disabled label="源活动" v-model="line.from"></v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="12" class="pa-xs-0 pb-xs-4 pb-3">
|
||||
<v-text-field class="cus-v-input mr-2" dense outlined disabled label="目标活动" v-model="line.to"></v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="12" class="pa-xs-0 pb-xs-4 pb-3">
|
||||
<v-text-field class="cus-v-input mr-2" dense outlined label="名称" v-model="line.label"></v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="12" class="pa-xs-0 pb-xs-4 pb-3">
|
||||
<v-select
|
||||
:items="lineTypeList"
|
||||
dense outlined
|
||||
class="cus-v-input mr-2"
|
||||
label="操作类型"
|
||||
outlined
|
||||
v-model="line.type"
|
||||
></v-select>
|
||||
</v-col>
|
||||
<v-col cols="12" class="pa-xs-0 pb-xs-4 pb-3">
|
||||
<v-text-field class="cus-v-input mr-2" dense outlined label="任务Resource" v-model="line.hook"></v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="12" class="pa-xs-0 pb-xs-4 pb-3">
|
||||
<v-text-field class="cus-v-input mr-2" dense outlined label="备注说明" v-model="line.Remark"></v-text-field>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-form>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
Vue.component("edit-line", {
|
||||
template: '#edit-line',
|
||||
vuetify: new Vuetify(),
|
||||
name: 'editLine',
|
||||
data() {
|
||||
return {
|
||||
line: { label: '' },
|
||||
isUpdate: false,
|
||||
isFormValid: true,
|
||||
lineTypeList: []
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
line: {
|
||||
handler(val) {
|
||||
if (this.isUpdate) {
|
||||
this.$emit('line-save', this.line);
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
init(item, lineTypeList) {
|
||||
this.isUpdate = false;
|
||||
this.line = item;
|
||||
this.lineTypeList = lineTypeList;
|
||||
this.$nextTick(function () {
|
||||
this.isUpdate = true;
|
||||
});
|
||||
},
|
||||
}
|
||||
})
|
||||
</script>
|
||||
Reference in new issue
Block a user