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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<template>
<div class="eibs-tab">
<el-form label-width="120px" label-position="right" size="small" :model="model.textTempData">
<c-col :span="24">
<c-col :span="Number(item.showwidth)" v-for="(item, index) in codes.frameList" :key="index">
<el-form-item :label="item.name" style="width: 100%" disabled>
<c-input
v-if="['NUMBER','STRING'].includes(item.showtype)"
v-model.trim="model.textTempData[`#${item.cod}`]"
style="width:100%"
:placeholder="`请输入${item.name}`"
></c-input>
</el-form-item>
<!-- <c-date-picker
v-if="['datepicker'].includes(item.showtype)"
type="date"
v-model.trim="item.cod"
style="width: 100%"
placeholder="请选择日期"
:disabled="item.showenable === 'Y'"
></c-date-picker> -->
<!-- <c-select
v-if="['select'].includes(item.showtype)"
v-model.trim="item.cod"
style="width: 100%"
:placeholder="`请选择${item.name}`"
:disabled="item.showenable === 'Y'"
>
<el-option
v-for="item in item.codeList"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select> -->
</c-col>
</c-col>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonFunctions from "~/mixin/commonFunctions.js";
export default {
name: "Nidtxt",
inject: ["root"],
props: ["model", "codes"],
mixins: [commonFunctions],
provide() {
return {
root: this
};
},
data() {
return {};
},
mounted() {
},
methods: {}
};
</script>
<style lang="less" scoped>
.page-wrap {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
padding: 2px;
box-sizing: border-box;
display: flex;
align-items: flex-start;
justify-content: flex-start;
flex-direction: column;
border: 1px solid #707070;
.form-content {
width: 100%;
flex: 1;
position: relative;
border: 1px solid #b1b1b1;
overflow-y: auto;
background-color: #fff;
padding: 5px 0;
}
}
</style>