forked from mrwill84/DOClever
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinparamQuery.vue
More file actions
executable file
·62 lines (61 loc) · 2.28 KB
/
inparamQuery.vue
File metadata and controls
executable file
·62 lines (61 loc) · 2.28 KB
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
<template>
<el-row class="row">
<table width="100%">
<template v-for="(item,index) in arr">
<tr style="text-align: center;vertical-align: middle">
<td style="width: 20%;text-align: center;vertical-align: middle;height: 50px">
<el-input style="width: 90%" placeholder="请填写参数名称" v-model.trim="item.name" :disabled="true"></el-input>
</td>
<td style="width: 10%;" >
<el-checkbox v-model="item.must" :true-label="1" :false-label="0" :disabled="true">必选</el-checkbox>
</td>
<td style="width: 55%">
<el-input style="width: 90%" placeholder="请填写备注" v-model="item.remark" :disabled="true"></el-input>
</td>
<td style="width: 15%">
<el-button type="text" style="font-size: 15px" size="small" @click="configValue(item)">{{(item.value && (item.value.data.length>0 || item.value.status))?"已填值":"未填值"}}</el-button>
</td>
</tr>
</template>
</table>
</el-row>
</template>
<script>
var valueList=require("./valueList.vue")
module.exports={
props:["index","item"],
data:function () {
return {
}
},
computed: {
arr:function () {
return this.item.query
}
},
components:{
"valuelist":valueList
},
methods:{
remove:function (index) {
this.arr.splice(index,1)
},
configValue:function (item) {
if(!item.value)
{
Vue.set(item,"value", {
type: 0,
data: [],
status: ""
});
}
var child=$.showBox(this.$parent,require("./valueList.vue"),{
"source":item.value
});
child.$on("save",function (value) {
item.value=value;
});
}
}
}
</script>