1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<div class="row">
    <div class="col-lg-12">
        <div class="ibox">
            <div class="ibox-title">
                <h5><span><vc:i18n name="编辑" namespace="newOaWorkflowFormEdit"></vc:i18n></span></h5>
                <div class="ibox-tools" style="top:10px;">
 
                </div>
            </div>
            <div class="ibox-content">
                <div v-for="(item,index) in newOaWorkflowFormEditInfo.components">
                    <div class="form-group row" v-if="item.type== 'textfield'">
                        <label class="col-sm-2 col-form-label">{{item.label}}</label>
                        <div class="col-sm-10">
                            <input v-model="item.value" type="text" :placeholder="item.description" class="form-control">
                        </div>
                    </div>
                    <div class="form-group row" v-if="item.type== 'number'">
                        <label class="col-sm-2 col-form-label">{{item.label}}</label>
                        <div class="col-sm-10">
                            <input v-model="item.value" type="number" :placeholder="item.description" class="form-control">
                        </div>
                    </div>
                    <div class="form-group row" v-if="item.type== 'textarea'">
                        <label class="col-sm-2 col-form-label">{{item.label}}</label>
                        <div class="col-sm-10">
                            <textarea v-model="item.value" :placeholder="item.description"></textarea>
                        </div>
                    </div>
                    <div class="form-group row" v-if="item.type== 'textdate'">
                        <label class="col-sm-2 col-form-label">{{item.label}}</label>
                        <div class="col-sm-10">
                            <input v-model="item.value" type="date" :placeholder="item.description" class="form-control">
                        </div>
                    </div>
                    <div class="form-group row" v-if="item.type== 'textdatetime'">
                        <label class="col-sm-2 col-form-label">{{item.label}}</label>
                        <div class="col-sm-10">
                            <input v-model="item.value" type="time" :placeholder="item.description" class="form-control">
                        </div>
                    </div>
 
                    <div class="form-group row" v-if="item.type== 'checkbox'">
                        <label class="col-sm-2 col-form-label">{{item.label}}</label>
                        <div class="col-sm-10">
                            <div class="checkbox custom-control-inline">
                                <label>
                                    <input type="checkbox" v-model="item.value"
                                           :value="item.value">{{item.label}}
                                </label>
                            </div>
                        </div>
                    </div>
                </div>
                <vc:create path="frame/uploadFile" callBackListener="newOaWorkflowFormEdit" callBackFunction="fileName" namespace="newOaWorkflowFormEdit">
                </vc:create>
                <div class="ibox-content">
                    <button class="btn btn-primary float-right" type="button" v-on:click="_submitFormData()"><i
                            class="fa fa-check"></i>&nbsp;提交
                    </button>
                    <button type="button" class="btn btn-warning float-right" style="margin-right:20px;" v-on:click="closeEditInfo()"><span><vc:i18n name="取消" namespace="newOaWorkflowFormEdit"></vc:i18n></span>
                    </button>
                </div>
 
            </div>
        </div>
    </div>
</div>