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())
def asset_create(): return render_template('asset_create.html', idcs=asset.get_idc_list())
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)
def assets(): #获取所有资产信息 _assets = asset.get_asset_list() return render_template("assets.html", assets=_assets, idcs_dict=dict(asset.get_idc_list()))
def assets(): _cnt, _assets = asset.get_list() return render_template('assets.html', assets=_assets, idcs=asset.get_idc_list())