修改配置数据格式

This commit is contained in:
2019-06-12 11:26:39 +08:00
parent f3e5ef4ad7
commit 7590f73651
3 changed files with 24 additions and 10 deletions

View File

@@ -283,7 +283,8 @@
<th></th> <th></th>
<th>数据字段</th> <th>数据字段</th>
<th>展示名称</th> <th>展示名称</th>
<th>格式化</th> <th>格式化类型</th>
<th>附加参数</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@@ -293,7 +294,16 @@
</td> </td>
<td v-text="item.col" style="background-color: rgb(235, 235, 228);"></td> <td v-text="item.col" style="background-color: rgb(235, 235, 228);"></td>
<td style="padding: 1px;"><input v-model="item.label" class="form-control" style="width: 130px;padding: 0px"></td> <td style="padding: 1px;"><input v-model="item.label" class="form-control" style="width: 130px;padding: 0px"></td>
<td style="padding: 1px;"><input v-model="item.fmt" class="form-control" style="width: 130px;padding: 0px"></td> <td style="padding: 1px;">
<select v-model="item.inType" class="form-control" style="width: 130px">
<option></option>
<option v-for="x in inTypes" :value="x">{{x}}</option>
</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 disabled v-show="item.inType != 'FUNC' && item.inType != 'QTASK' && item.inType != 'DICT'" v-model="item.inExt" class="form-control" style="width: 130px;padding: 0px">
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@@ -326,8 +336,9 @@
<option v-for="x in inTypes" :value="x">{{x}}</option> <option v-for="x in inTypes" :value="x">{{x}}</option>
</select> </select>
</td> </td>
<td style="padding: 1px;"> <td style="padding: 1px;" title="格式化类型为funs或qtask的时候需要填写附加参数">
<input v-model="item.fmt" class="form-control" style="width: 130px;padding: 0px"> <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 disabled v-show="item.inType != 'FUNC' && item.inType != 'QTASK' && item.inType != 'DICT'" v-model="item.inExt" class="form-control" style="width: 130px;padding: 0px">
</td> </td>
<td style="padding: 1px;overflow: inherit;"> <td style="padding: 1px;overflow: inherit;">
<div class="dropdown dropdown-hover"> <div class="dropdown dropdown-hover">

View File

@@ -338,7 +338,7 @@ public final class MetaKit {
.set("pk", _pks.toString()) .set("pk", _pks.toString())
.set("title", comment) .set("title", comment)
.set("items", _items2) .set("items", _items2)
.set("shows", _shows) .set("shows", shows)
.set("filters", _filters) .set("filters", _filters)
.set("edits", edits) .set("edits", edits)
.set("details", details); .set("details", details);

View File

@@ -6,6 +6,7 @@ import org.redkale.util.ResourceFactory;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.io.File; import java.io.File;
import java.util.concurrent.CompletableFuture;
/** /**
* @author: liangxianyou * @author: liangxianyou
@@ -19,12 +20,14 @@ public class MetaListenter implements ApplicationListener {
@Override @Override
public void preStart(Application application) { public void preStart(Application application) {
ResourceFactory rf = application.getResourceFactory(); CompletableFuture.runAsync(()-> {
rf.inject(this); ResourceFactory rf = application.getResourceFactory();
rf.inject(this);
MetaKit.dcate = dcate; MetaKit.dcate = dcate;
MetaKit.init(); MetaKit.init();
TplKit.use(true).addTpl(new File(FileKit.rootPath(), tplPath)); TplKit.use(true).addTpl(new File(FileKit.rootPath(), tplPath));
});
} }
@Override @Override