|
@@ -106,8 +106,12 @@ Enterprise.formParam = function () {
|
|
|
queryData['checkState'] = $("#checkState").val();
|
|
|
queryData['active'] = $("#active").val();
|
|
|
queryData['street'] = $("#street").val();
|
|
|
- queryData['enterpriseTag'] = $("#enterpriseTag").val();
|
|
|
+ queryData['special'] = $("#special").val();
|
|
|
+ queryData['agencyType'] = $("#agencyType").val();
|
|
|
queryData['industryFieldNew'] = $("#industryFieldNew").val();
|
|
|
+ queryData['industryFieldOld'] = $("#industryFieldOld").val();
|
|
|
+ queryData['enterpriseTag'] = $("#enterpriseTag").val();
|
|
|
+ queryData['enterpriseType'] = $("#enterpriseType").val();
|
|
|
return queryData;
|
|
|
}
|
|
|
|
|
@@ -125,8 +129,12 @@ Enterprise.reset = function () {
|
|
|
$("#checkState").val("");
|
|
|
$("#active").val("");
|
|
|
$("#street").val("");
|
|
|
- $("#talentType").val("");
|
|
|
- $("#industryField").val("");
|
|
|
+ $("#special").val("");
|
|
|
+ $("#agencyType").val("");
|
|
|
+ $("#industryFieldNew").val("");
|
|
|
+ $("#industryFieldOld").val("");
|
|
|
+ $("#enterpriseTag").val("");
|
|
|
+ $("#enterpriseType").val("");
|
|
|
};
|
|
|
|
|
|
Enterprise.gotoEnterpriseDetailPage = function () {
|
|
@@ -183,6 +191,7 @@ Enterprise.doExamine = function () {
|
|
|
area: ['830px', '500px'], //宽高
|
|
|
fix: false, //不固定
|
|
|
maxmin: true,
|
|
|
+ shade: 0,
|
|
|
content: Feng.ctxPath + '/admin/enterprise/gotoExaminePage?id=' + Enterprise.seItem.id,
|
|
|
btn: ['<i class="fa fa-check"></i> 提交', '<i class="fa fa-eraser"></i> 取消'],
|
|
|
btnAlign: 'c',
|
|
@@ -250,10 +259,15 @@ Enterprise.doExport = function () {
|
|
|
var checkState = $("#checkState").val();
|
|
|
var active = $("#active").val();
|
|
|
var street = $("#street").val();
|
|
|
- var talentType = $("#talentType").val();
|
|
|
- var industryField = $("#industryField").val();
|
|
|
+ var special = $("#special").val();
|
|
|
+ var agencyType = $("#agencyType").val();
|
|
|
+ var industryFieldNew = $("#industryFieldNew").val();
|
|
|
+ var industryFieldOld = $("#industryFieldOld").val();
|
|
|
+ var enterpriseTag = $("#enterpriseTag").val();
|
|
|
+ var enterpriseType = $("#enterpriseType").val();
|
|
|
var arr = {"name": name, "idCard": idCard, "legal": legal, "ephone": ephone, "agentName": agentName,
|
|
|
- "agentPhone": agentPhone, "checkState": checkState, "active": active, "street": street, "talentType": talentType, "industryField": industryField};
|
|
|
+ "agentPhone": agentPhone, "checkState": checkState, "active": active, "street": street,
|
|
|
+ "special": special, "agencyType": agencyType, "industryFieldNew": industryFieldNew, "industryFieldOld": industryFieldOld, "enterpriseTag": enterpriseTag, "enterpriseType": enterpriseType};
|
|
|
window.location.href = Feng.setUrlParam(Feng.ctxPath + "/admin/enterprise/export", arr);
|
|
|
}
|
|
|
|
|
@@ -304,6 +318,68 @@ Enterprise.showLog = function (id) {
|
|
|
Feng.getCheckLog(id, {"type": 10, "enterpriseId": id, "typeFileId": "", "active": 1})
|
|
|
}
|
|
|
});
|
|
|
+};
|
|
|
+Enterprise.onSpecialChange = function () {
|
|
|
+ var special = $("#special").val();
|
|
|
+ var arr = [];
|
|
|
+ $("#enterpriseTag").html("");
|
|
|
+ switch (special) {
|
|
|
+ case "0":
|
|
|
+ $("#agencyType").parents(".hiddenElement").css("display", "block");
|
|
|
+ $("#industryFieldNew").parents(".hiddenElement").css("display", "block");
|
|
|
+ $("#industryFieldOld").parents(".hiddenElement").css("display", "block");
|
|
|
+ $("#enterpriseType").parents(".hiddenElement").css("display", "block");
|
|
|
+ var arr = [
|
|
|
+ {"name": "agencyType", "code": "agency_type"},
|
|
|
+ {"name": "industryFieldNew", "code": "industry_field"},
|
|
|
+ ];
|
|
|
+ Feng.findChildDictBatch(JSON.stringify(arr));
|
|
|
+ break;
|
|
|
+ case "1":
|
|
|
+ $("#agencyType").val("").parents(".hiddenElement").css("display", "none");
|
|
|
+ $("#industryFieldNew").val("").parents(".hiddenElement").css("display", "none");
|
|
|
+ $("#industryFieldOld").val("").parents(".hiddenElement").css("display", "none");
|
|
|
+ $("#enterpriseType").val("").parents(".hiddenElement").css("display", "none");
|
|
|
+ var arr = [
|
|
|
+ {"name": "enterpriseTag", "code": "institution_tag"}
|
|
|
+ ];
|
|
|
+ Feng.findChildDictBatch(JSON.stringify(arr));
|
|
|
+ break;
|
|
|
+ case "3":
|
|
|
+ $("#agencyType").val("").parents(".hiddenElement").css("display", "none");
|
|
|
+ $("#industryFieldNew").val("").parents(".hiddenElement").css("display", "none");
|
|
|
+ $("#industryFieldOld").val("").parents(".hiddenElement").css("display", "none");
|
|
|
+ $("#enterpriseType").val("").parents(".hiddenElement").css("display", "none");
|
|
|
+ var arr = [
|
|
|
+ {"name": "enterpriseTag", "code": "organization_tag"}
|
|
|
+ ];
|
|
|
+ Feng.findChildDictBatch(JSON.stringify(arr));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+};
|
|
|
+Enterprise.onAgencyTypeChange = function () {
|
|
|
+ var agencyType = $("#agencyType").val();
|
|
|
+ if (agencyType == 1) {
|
|
|
+ var arr = [
|
|
|
+ {"name": "enterpriseTag", "code": "enterprise_tag"},
|
|
|
+ {"name": "enterpriseType", "code": "enterprise_type"}
|
|
|
+ ];
|
|
|
+ Feng.findChildDictBatch(JSON.stringify(arr));
|
|
|
+ } else {
|
|
|
+ $("#enterpriseTag").val("");
|
|
|
+ $("#enterpriseType").val("");
|
|
|
+ $("#enterpriseTag").html("");
|
|
|
+ $("#enterpriseType").html("");
|
|
|
+
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+Enterprise.onIndustryFieldNewChange = function () {
|
|
|
+ var industryNew = $("#industryFieldNew").val();
|
|
|
+ var arr = [
|
|
|
+ {"name": "industryFieldOld", "code": industryNew + "_field"}
|
|
|
+ ];
|
|
|
+ Feng.findChildDictBatch(JSON.stringify(arr));
|
|
|
}
|
|
|
|
|
|
$(function () {
|
|
@@ -312,10 +388,17 @@ $(function () {
|
|
|
table.setPaginationType("server");
|
|
|
Enterprise.table = table.init();
|
|
|
var arr = [
|
|
|
- {"name": "street", "code": "street"},
|
|
|
- {"name": "enterpriseTag", "code": "enterprise_tag"},
|
|
|
- {"name": "industryFieldNew", "code": "industry_field"},
|
|
|
- {"name": "enterpriseType", "code": "enterprise_type"}];
|
|
|
+ {"name": "street", "code": "street"}
|
|
|
+ ];
|
|
|
+ if ($("#special").val() != "") {
|
|
|
+ Enterprise.onSpecialChange();
|
|
|
+ if ($("#agencyType").val() != "") {
|
|
|
+ Enterprise.onAgencyTypeChange();
|
|
|
+ }
|
|
|
+ if ($("#industryFieldNew").val() != "") {
|
|
|
+ Enterprise.onIndustryFieldNewChange();
|
|
|
+ }
|
|
|
+ }
|
|
|
Feng.findChildDictBatch(JSON.stringify(arr));
|
|
|
// Feng.addAjaxSelect({
|
|
|
// "id": "street",
|