.
This commit is contained in:
@@ -314,21 +314,18 @@
|
||||
let v = bean[colFmt["col"]]
|
||||
if (colFmt.inType == "DICT") {
|
||||
// 取字典值返回
|
||||
}
|
||||
else if (colFmt.inType == "INPUT_DAY") {
|
||||
|
||||
}
|
||||
else if (colFmt.inType == "INPUT_TIME") {
|
||||
} else if (colFmt.inType == "INPUT_DAY") {
|
||||
return red.timeFmt(new Date(v), 'yyyy-MM-dd')
|
||||
} else if (colFmt.inType == "INPUT_TIME") {
|
||||
// 时间戳格式化
|
||||
return red.timeFmt(new Date(v))
|
||||
}
|
||||
else if (colFmt.inType == "INPUT_FUNC") {
|
||||
|
||||
}
|
||||
else if (colFmt.inType == "FILE" && v) {
|
||||
} else if (colFmt.inType == "INPUT_FUNC") {
|
||||
return eval(colFmt.inExt)
|
||||
} else if (colFmt.inType == "FUNC") {
|
||||
return funDept(bean, v)
|
||||
} else if (colFmt.inType == "FILE" && v) {
|
||||
return '<a href="{0}" target="_blank">查看</a>'.format(v)
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -197,8 +197,8 @@
|
||||
</select>
|
||||
</td>
|
||||
<td style="padding: 1px;" title="格式化类型为:funs或qtask的时候需要填写附加参数">
|
||||
<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">
|
||||
<input v-show="item.inType == 'FUNC' || item.inType == 'QTASK' || item.inType == 'INPUT_FUNC'" v-model="item.inExt" class="form-control" style="width: 130px;padding: 0px">
|
||||
<input disabled v-show="item.inType != 'FUNC' && item.inType != 'INPUT_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>
|
||||
@@ -534,7 +534,7 @@
|
||||
EQUAL:"等于", NOTEQUAL:"不等于", IN: "包含", NOTIN:"不包含", LIKE: "模糊查询", RANGE: "范围"
|
||||
},
|
||||
findTypes: ["INPUT", "DICT", "CHECKBOX", "RADIO", "DAY", "TIME"],
|
||||
inTypes: ["INPUT", "DICT", "INPUT_DAY", "INPUT_TIME", "FUNC", "QTASK", "HIDDEN", "FILE"],
|
||||
inTypes: ["INPUT", "DICT", "INPUT_DAY", "INPUT_TIME", "INPUT_FUNC", "FUNC", "QTASK", "HIDDEN", "FILE"],
|
||||
ckTypes: [{label:"必填", name: "NOTNULL"},{label:"IP", name: "IP"},{label:"IPv4", name: "IPv4"},{label:"电话号码", name: "phone"}],
|
||||
dataTypes: ["bigint(20)", "varchar(255)", "varchar(64)", "varchar(32)", "varchar(16)", "int(11)", "int(3)", "int(2)", "datetime"],
|
||||
filterCate: ["EQUAL", "NOTEQUAL", "LIKE", "IN"],
|
||||
@@ -928,7 +928,7 @@
|
||||
});
|
||||
|
||||
|
||||
if (this.status == 1) {
|
||||
if (this.status === 1) {
|
||||
$('#sortableList,table>tbody').sortable({
|
||||
selector: '.list-group-item, tr',
|
||||
finish: function (e) {
|
||||
@@ -1108,6 +1108,7 @@
|
||||
},
|
||||
mounted: function () {
|
||||
this.serviceList()
|
||||
this.setMove(this.status)
|
||||
|
||||
dictList({type:"dict"}).then(res => {
|
||||
this.dictType = res
|
||||
|
||||
Reference in New Issue
Block a user