This commit is contained in:
2019-08-15 10:45:28 +08:00
parent 830ef4c5b5
commit c656ba349e
4 changed files with 40 additions and 18 deletions

View File

@@ -191,8 +191,12 @@
</select>
</td>
<td style="padding: 1px;" title="格式化类型为funs或qtask的时候需要填写附加参数">
<input v-show="item.inType == 'FUNC' || item.inType == 'QTASK' || item.inType == 'DICT'" v-model="item.inExt" class="form-control" style="width: 130px;padding: 0px">
<input v-show="item.inType == 'FUNC' || item.inType == 'QTASK'" v-model="item.inExt" class="form-control" style="width: 130px;padding: 0px">
<input disabled v-show="item.inType != 'FUNC' && item.inType != 'QTASK' && item.inType != 'DICT'" v-model="item.inExt" class="form-control" style="width: 130px;padding: 0px">
<select v-show="item.inType == 'DICT'" v-model="item.inExt" class="form-control" style="width: 130px">
<option></option>
<option v-for="x in dictType" :value="x.value">{{x.label}}</option>
</select>
</td>
<!--
<td style="padding: 1px;"><input v-model="item.fmt" class="form-control" style="width: 130px;padding: 0px"></td>
@@ -510,10 +514,13 @@
<script>
let {getServiceInfo, getServiceDetail, getServiceList, tableLinkList, serviceSave, showSave, filterSave, exportSave, detailSave, editSave, delSave} = meta;
let {showOk} = red
let {list:dictList} = dict
var vm = new Vue({
el: ".meta-service",
data: {
dictType: [], //字典类型
//new
sheetArr: ["a"],//别名
sheet: "a",//别名
@@ -1087,7 +1094,12 @@
},
mounted: function () {
this.serviceList();
this.serviceList()
dictList({type:"dict"}).then(res => {
this.dictType = res
console.log(res)
})
}
});