Beispiel #1
0
def asset_modify():
    _id = request.args.get('id', '')
    _asset = asset.get_by_id(_id)
    return render_template('asset_modify.html',
                           asset=_asset,
                           idcs=asset.get_idc_list())
Beispiel #2
0
def asset_create():

    return render_template('asset_create.html', idcs=asset.get_idc_list())
Beispiel #3
0
def modify_asset():
    _id = request.args.get('id', '')
    _count, _asset = asset.get_by_id(_id)
    _idcs = asset.get_idc_list()
    return render_template('asset_modify.html', asset=_asset[0], idcs=_idcs)
Beispiel #4
0
def assets():
    #获取所有资产信息
    _assets = asset.get_asset_list()
    return render_template("assets.html",
                           assets=_assets,
                           idcs_dict=dict(asset.get_idc_list()))
Beispiel #5
0
def assets():
    _cnt, _assets = asset.get_list()
    return render_template('assets.html',
                           assets=_assets,
                           idcs=asset.get_idc_list())