商户更新industry 筛选

master
dalong306 3 years ago
parent b1cbc4fc14
commit ad4c97913c

@ -549,6 +549,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
if ($state.params.commitCrossBorderPayment) { if ($state.params.commitCrossBorderPayment) {
$scope.enablePaymentType('enable_cross_payment'); $scope.enablePaymentType('enable_cross_payment');
} }
$scope.partner.industry=$filter('industryMapFilter')($scope.partner.industry)
function hasRole() { function hasRole() {
var rolenum; var rolenum;
@ -917,5 +918,19 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
} }
} }
}]); }]);
app.filter('industryMapFilter', [
'industryMap',
function (industryMap) {
return function (values) {
var vxindustry = ''
angular.forEach(industryMap.configs(), function (industry) {
if (industry.value == values) {
vxindustry = industry.value
}
})
return vxindustry
}
},
])
return app; return app;
}); });

Loading…
Cancel
Save