@egova/egova-api 1.1.6 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.common.js +130 -62
- package/dist/index.umd.js +130 -62
- package/dist/index.umd.min.js +2 -2
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1208,7 +1208,7 @@ module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
|
1208
1208
|
/***/ "7640":
|
|
1209
1209
|
/***/ (function(module, exports) {
|
|
1210
1210
|
|
|
1211
|
-
module.exports = "<article class=\"params-setting\">\r\n <i-collapse v-model=\"value\" simple>\r\n <i-panel name=\"1\">\r\n <span>Query参数</span>\r\n <span class=\"status\">{{getExpand('1') ? \"收起\" : \"展开\"}}</span>\r\n <div slot=\"content\" class=\"setting-content\">\r\n <header>\r\n <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onAddRequestParam\"> <i class=\"api-icon icon-add\"></i>新增参数 </i-button>\r\n </header>\r\n <main>\r\n <i-table height=\"200\" width=\"1280\" class=\"diy-table\" @on-selection-change=\"onQuerySelectionChange\" :columns=\"paramColumns\" :data=\"queryDataList\">\r\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\r\n <i-switch size=\"large\" :value=\"!queryDataList[index].disabled\" @on-change=\"onChangeDisabled($event,queryDataList[index])\">\r\n <span slot=\"open\">开启</span>\r\n <span slot=\"close\">禁用</span>\r\n </i-switch>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"name\">\r\n <i-input class=\"diy-input\" placeholder=\"输入参数名称\" v-model=\"queryDataList[index].name\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"valueContent\">\r\n <i-input class=\"diy-input\" placeholder=\"输入参数值\" v-model=\"queryDataList[index].valueContent\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"required\">\r\n <i-switch v-model=\"queryDataList[index].requireFlag\" :disabled=\"queryDataList[index].disabled\" :true-value=\"1\" :false-value=\"0\">\r\n <span slot=\"open\">是</span>\r\n <span slot=\"close\">否</span>\r\n </i-switch>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"text\">\r\n <i-input class=\"diy-input\" placeholder=\"输入备注\" v-model=\"queryDataList[index].text\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"action\">\r\n <i-poptip class=\"action-btn delete\" title=\"确认删除这条数据吗?\" confirm @on-ok=\"onDelete(queryDataList,row.indexFlag)\" transfer>\r\n <i class=\"iconfont icon-delete\" title=\"删除\"></i>\r\n </i-poptip>\r\n <span>\r\n <i v-if=\"index>0\" class=\"iconfont icon-up\" @click=\"onUp(queryDataList,index)\" title=\"上移\"></i>\r\n <i v-if=\"index>0\" class=\"iconfont icon-top\" title=\"置顶\" @click=\"onTop(queryDataList,index)\"></i>\r\n <i v-if=\"index < queryDataList.length - 1\" @click=\"onDown(queryDataList,index)\" class=\"iconfont icon-down\" title=\"下移\"></i>\r\n <i v-if=\"index < queryDataList.length - 1\" @click=\"onBottom(queryDataList,index)\" class=\"iconfont icon-bottom\" title=\"置底\"></i>\r\n </span>\r\n </template>\r\n </i-table>\r\n </main>\r\n </div>\r\n </i-panel>\r\n <i-panel name=\"2\">\r\n <span>Body参数</span>\r\n <span class=\"status\">{{getExpand('2') ? \"收起\" : \"展开\"}}</span>\r\n <div slot=\"content\" class=\"setting-content\">\r\n <header>\r\n <i-button v-if=\"isFormData\" type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onAddBodyParam\"> <i class=\"api-icon icon-add\"></i>新增参数 </i-button>\r\n <i-button v-else type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onBeautify\"> <i class=\"api-icon icon-view\"></i>格式化 </i-button>\r\n <i-select transfer v-model=\"interfaceModel.info.requestBodyType\" class=\"diy-select\">\r\n <i-option v-for=\"item in requestBodyTypeList\" :value=\"item.name\" :key=\"item.name\">{{item.text}}</i-option>\r\n </i-select>\r\n </header>\r\n <main>\r\n <i-table\r\n height=\"200\"\r\n width=\"1280\"\r\n class=\"diy-table\"\r\n @on-selection-change=\"onBodySelectionChange\"\r\n :columns=\"
|
|
1211
|
+
module.exports = "<article class=\"params-setting\">\r\n <i-collapse v-model=\"value\" simple>\r\n <i-panel name=\"1\">\r\n <span>Query参数</span>\r\n <span class=\"status\">{{getExpand('1') ? \"收起\" : \"展开\"}}</span>\r\n <div slot=\"content\" class=\"setting-content\">\r\n <header>\r\n <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onAddRequestParam\"> <i class=\"api-icon icon-add\"></i>新增参数 </i-button>\r\n </header>\r\n <main>\r\n <i-table height=\"200\" width=\"1280\" class=\"diy-table\" @on-selection-change=\"onQuerySelectionChange\" :columns=\"paramColumns\" :data=\"queryDataList\">\r\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\r\n <i-switch size=\"large\" :value=\"!queryDataList[index].disabled\" @on-change=\"onChangeDisabled($event,queryDataList[index],'query')\">\r\n <span slot=\"open\">开启</span>\r\n <span slot=\"close\">禁用</span>\r\n </i-switch>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"name\">\r\n <i-input class=\"diy-input\" placeholder=\"输入参数名称\" v-model=\"queryDataList[index].name\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"valueContent\">\r\n <i-input class=\"diy-input\" placeholder=\"输入参数值\" v-model=\"queryDataList[index].valueContent\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"required\">\r\n <i-switch v-model=\"queryDataList[index].requireFlag\" :disabled=\"queryDataList[index].disabled\" :true-value=\"1\" :false-value=\"0\">\r\n <span slot=\"open\">是</span>\r\n <span slot=\"close\">否</span>\r\n </i-switch>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"text\">\r\n <i-input class=\"diy-input\" placeholder=\"输入备注\" v-model=\"queryDataList[index].text\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"action\">\r\n <i-poptip class=\"action-btn delete\" title=\"确认删除这条数据吗?\" confirm @on-ok=\"onDelete(queryDataList,row.indexFlag,'query')\" transfer>\r\n <i class=\"iconfont icon-delete\" title=\"删除\"></i>\r\n </i-poptip>\r\n <span>\r\n <i v-if=\"index>0\" class=\"iconfont icon-up\" @click=\"onUp(queryDataList,index)\" title=\"上移\"></i>\r\n <i v-if=\"index>0\" class=\"iconfont icon-top\" title=\"置顶\" @click=\"onTop(queryDataList,index)\"></i>\r\n <i v-if=\"index < queryDataList.length - 1\" @click=\"onDown(queryDataList,index)\" class=\"iconfont icon-down\" title=\"下移\"></i>\r\n <i v-if=\"index < queryDataList.length - 1\" @click=\"onBottom(queryDataList,index)\" class=\"iconfont icon-bottom\" title=\"置底\"></i>\r\n </span>\r\n </template>\r\n </i-table>\r\n </main>\r\n </div>\r\n </i-panel>\r\n <i-panel name=\"2\">\r\n <span>Body参数</span>\r\n <span class=\"status\">{{getExpand('2') ? \"收起\" : \"展开\"}}</span>\r\n <div slot=\"content\" class=\"setting-content\">\r\n <header>\r\n <i-button v-if=\"isFormData\" type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onAddBodyParam\"> <i class=\"api-icon icon-add\"></i>新增参数 </i-button>\r\n <i-button v-else type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onBeautify\"> <i class=\"api-icon icon-view\"></i>格式化 </i-button>\r\n <i-select transfer v-model=\"interfaceModel.info.requestBodyType\" class=\"diy-select\">\r\n <i-option v-for=\"item in requestBodyTypeList\" :value=\"item.name\" :key=\"item.name\">{{item.text}}</i-option>\r\n </i-select>\r\n </header>\r\n <main>\r\n <i-table\r\n height=\"200\"\r\n width=\"1280\"\r\n class=\"diy-table\"\r\n @on-selection-change=\"onBodySelectionChange\"\r\n :columns=\"bodyColumns\"\r\n :data=\"bodyDataList\"\r\n v-if=\"isFormData\"\r\n >\r\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\r\n <i-switch size=\"large\" :value=\"!bodyDataList[index].disabled\" @on-change=\"onChangeDisabled($event,bodyDataList[index],'body')\">\r\n <span slot=\"open\">开启</span>\r\n <span slot=\"close\">禁用</span>\r\n </i-switch>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"name\">\r\n <div class=\"body-name-row\">\r\n <i-input class=\"diy-input\" placeholder=\"输入参数名称\" v-model=\"bodyDataList[index].name\"></i-input>\r\n <i-select class=\"diy-select\" v-if=\"bodyType === 'Form'\" v-model=\"row.valueType\" @on-change=\"onChangeFormParamType(index, row)\" transfer>\r\n <i-option v-for=\"item in formParamTypeList\" :value=\"item.name\" :key=\"item.name\">{{item.text}}</i-option>\r\n </i-select>\r\n </div>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"valueContent\">\r\n <i-input v-if=\"row.valueType !== 'FILE'\" class=\"diy-input\" placeholder=\"输入参数值\" v-model=\"bodyDataList[index].valueContent\"></i-input>\r\n <i-upload v-if=\"row.valueType === 'FILE' && !row.fileName\" action=\"\" :before-upload=\"onImport\" :show-upload-list=\"false\">\r\n <i-button class=\"file-btn\" icon=\"ios-cloud-upload-outline\" @click=\"onClickRow(row)\">选择文件</i-button>\r\n </i-upload>\r\n <div class=\"file-wrap\" v-if=\"row.valueType === 'FILE' && row.fileName\">\r\n <div class=\"file-name\" :title=\"row.fileName\">{{ row.fileName }}</div>\r\n <i-icon type=\"ios-close\" @click=\"onClearFile(row)\" />\r\n </div>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"required\">\r\n <i-switch v-model=\"bodyDataList[index].requireFlag\" :disabled=\"bodyDataList[index].disabled\" :true-value=\"1\" :false-value=\"0\">\r\n <span slot=\"open\">是</span>\r\n <span slot=\"close\">否</span>\r\n </i-switch>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"text\">\r\n <i-input class=\"diy-input\" placeholder=\"输入备注\" v-model=\"bodyDataList[index].remark\"></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"action\">\r\n <i-poptip class=\"action-btn delete\" title=\"确认删除这条数据吗?\" confirm @on-ok=\"onDeleteBodyParam(interfaceModel.formParams,row.indexFlag,'body')\" transfer>\r\n <i class=\"iconfont icon-delete\" title=\"删除\"></i>\r\n </i-poptip>\r\n <span>\r\n <i v-if=\"index > 0\" class=\"iconfont icon-up\" @click=\"onUpBodyParam(interfaceModel.formParams,row.id)\" title=\"上移\"></i>\r\n <i v-if=\"index > 0\" class=\"iconfont icon-top\" @click=\"onTopBodyParam(interfaceModel.formParams,row.id)\" title=\"置顶\"></i>\r\n <i v-if=\"index < bodyDataList.length - 1\" @click=\"onDownBodyParam(interfaceModel.formParams,row.id)\" class=\"iconfont icon-down\" title=\"下移\"></i>\r\n <i\r\n v-if=\"index < bodyDataList.length - 1\"\r\n @click=\"onBottomBodyParam(interfaceModel.formParams,row.id)\"\r\n class=\"iconfont icon-bottom\"\r\n title=\"置底\"\r\n ></i>\r\n </span>\r\n </template>\r\n </i-table>\r\n <u-editor v-else :value.sync=\"interfaceModel.json\" lang=\"json\" @inited=\"onEditorInited\"></u-editor>\r\n </main>\r\n </div>\r\n </i-panel>\r\n </i-collapse>\r\n</article>\r\n"
|
|
1212
1212
|
|
|
1213
1213
|
/***/ }),
|
|
1214
1214
|
|
|
@@ -10907,11 +10907,53 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
10907
10907
|
function ParamsSetting() {
|
|
10908
10908
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
10909
10909
|
_this.value = [];
|
|
10910
|
+
_this.commonColuns = [{
|
|
10911
|
+
title: "参数名",
|
|
10912
|
+
slot: "name",
|
|
10913
|
+
align: "left"
|
|
10914
|
+
}, {
|
|
10915
|
+
title: "参数值",
|
|
10916
|
+
slot: "valueContent",
|
|
10917
|
+
align: "left"
|
|
10918
|
+
}, {
|
|
10919
|
+
title: "必填",
|
|
10920
|
+
slot: "required",
|
|
10921
|
+
width: 95,
|
|
10922
|
+
align: "left",
|
|
10923
|
+
renderHeader: function (h, params) {
|
|
10924
|
+
return h("div", {
|
|
10925
|
+
class: "th-tip"
|
|
10926
|
+
}, [h("i-poptip", {
|
|
10927
|
+
props: {
|
|
10928
|
+
trigger: "hover",
|
|
10929
|
+
content: "参数启用同时非必填时,若调用方未传具体参数值,将使用当前定义的参数值。",
|
|
10930
|
+
placement: "top",
|
|
10931
|
+
transfer: true,
|
|
10932
|
+
"word-wrap": true
|
|
10933
|
+
}
|
|
10934
|
+
}, [h("i-icon", {
|
|
10935
|
+
props: {
|
|
10936
|
+
type: "ios-information-circle-outline"
|
|
10937
|
+
}
|
|
10938
|
+
})]), h("span", "必填")]);
|
|
10939
|
+
}
|
|
10940
|
+
}, {
|
|
10941
|
+
title: "备注",
|
|
10942
|
+
slot: "text",
|
|
10943
|
+
align: "left"
|
|
10944
|
+
}, {
|
|
10945
|
+
title: "操作",
|
|
10946
|
+
slot: "action",
|
|
10947
|
+
align: "left",
|
|
10948
|
+
width: 300
|
|
10949
|
+
}];
|
|
10910
10950
|
_this.queryDataList = [];
|
|
10911
10951
|
// public bodyDataList: Array<any> = [];
|
|
10912
10952
|
_this.requestBodyTypeList = [];
|
|
10913
|
-
_this.
|
|
10914
|
-
_this.
|
|
10953
|
+
_this.hasQueryChecked = false;
|
|
10954
|
+
_this.hasQueryMidChecked = false;
|
|
10955
|
+
_this.hasBodyChecked = false;
|
|
10956
|
+
_this.hasBodyMidChecked = false;
|
|
10915
10957
|
_this.typeMap = {
|
|
10916
10958
|
Form: "FormData",
|
|
10917
10959
|
X_www_form_urlencoded: "FormUrlEncoded"
|
|
@@ -10930,63 +10972,47 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
10930
10972
|
Object.defineProperty(ParamsSetting.prototype, "paramColumns", {
|
|
10931
10973
|
get: function () {
|
|
10932
10974
|
var _this = this;
|
|
10933
|
-
return [{
|
|
10975
|
+
return __spreadArray([{
|
|
10934
10976
|
slot: "selection",
|
|
10935
|
-
|
|
10936
|
-
width: 80,
|
|
10977
|
+
width: 100,
|
|
10937
10978
|
align: "center",
|
|
10938
10979
|
title: "启用",
|
|
10939
10980
|
renderHeader: function (h, params) {
|
|
10940
10981
|
return h(project_detail_params_setting_switch, {
|
|
10941
10982
|
props: {
|
|
10942
|
-
value: _this.
|
|
10943
|
-
midState: _this.
|
|
10983
|
+
value: _this.hasQueryChecked,
|
|
10984
|
+
midState: _this.hasQueryMidChecked
|
|
10944
10985
|
},
|
|
10945
10986
|
on: {
|
|
10946
|
-
onChange: _this.
|
|
10987
|
+
onChange: _this.onQueryChange
|
|
10947
10988
|
}
|
|
10948
10989
|
});
|
|
10949
10990
|
}
|
|
10950
|
-
},
|
|
10951
|
-
|
|
10952
|
-
|
|
10953
|
-
|
|
10954
|
-
|
|
10955
|
-
|
|
10956
|
-
|
|
10957
|
-
|
|
10958
|
-
|
|
10959
|
-
|
|
10960
|
-
|
|
10961
|
-
|
|
10962
|
-
|
|
10991
|
+
}], this.commonColuns, true);
|
|
10992
|
+
},
|
|
10993
|
+
enumerable: false,
|
|
10994
|
+
configurable: true
|
|
10995
|
+
});
|
|
10996
|
+
Object.defineProperty(ParamsSetting.prototype, "bodyColumns", {
|
|
10997
|
+
get: function () {
|
|
10998
|
+
var _this = this;
|
|
10999
|
+
return __spreadArray([{
|
|
11000
|
+
slot: "selection",
|
|
11001
|
+
width: 100,
|
|
11002
|
+
align: "center",
|
|
11003
|
+
title: "启用",
|
|
10963
11004
|
renderHeader: function (h, params) {
|
|
10964
|
-
return h(
|
|
10965
|
-
class: "th-tip"
|
|
10966
|
-
}, [h("i-poptip", {
|
|
10967
|
-
props: {
|
|
10968
|
-
trigger: "hover",
|
|
10969
|
-
content: "参数启用同时非必填时,若调用方未传具体参数值,将使用当前定义的参数值。",
|
|
10970
|
-
placement: "top",
|
|
10971
|
-
transfer: true,
|
|
10972
|
-
"word-wrap": true
|
|
10973
|
-
}
|
|
10974
|
-
}, [h("i-icon", {
|
|
11005
|
+
return h(project_detail_params_setting_switch, {
|
|
10975
11006
|
props: {
|
|
10976
|
-
|
|
11007
|
+
value: _this.hasBodyChecked,
|
|
11008
|
+
midState: _this.hasBodyMidChecked
|
|
11009
|
+
},
|
|
11010
|
+
on: {
|
|
11011
|
+
onChange: _this.onBodyChange
|
|
10977
11012
|
}
|
|
10978
|
-
})
|
|
10979
|
-
}
|
|
10980
|
-
},
|
|
10981
|
-
title: "备注",
|
|
10982
|
-
slot: "text",
|
|
10983
|
-
align: "left"
|
|
10984
|
-
}, {
|
|
10985
|
-
title: "操作",
|
|
10986
|
-
slot: "action",
|
|
10987
|
-
align: "left",
|
|
10988
|
-
width: 300
|
|
10989
|
-
}];
|
|
11013
|
+
});
|
|
11014
|
+
}
|
|
11015
|
+
}], this.commonColuns, true);
|
|
10990
11016
|
},
|
|
10991
11017
|
enumerable: false,
|
|
10992
11018
|
configurable: true
|
|
@@ -10998,14 +11024,13 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
10998
11024
|
var index = paramList.findIndex(function (v) {
|
|
10999
11025
|
return v.indexFlag === id;
|
|
11000
11026
|
});
|
|
11001
|
-
// paramList.splice(index, 1);
|
|
11002
11027
|
paramList.splice(index, 1);
|
|
11003
|
-
this.
|
|
11028
|
+
this.buildQueryCheckedState();
|
|
11004
11029
|
};
|
|
11005
11030
|
/**
|
|
11006
11031
|
* [true,true]: 第一个代表是否勾选,第二个代表是否半勾选
|
|
11007
11032
|
*/
|
|
11008
|
-
ParamsSetting.prototype.
|
|
11033
|
+
ParamsSetting.prototype.buildQueryCheckedState = function () {
|
|
11009
11034
|
var checked = 0;
|
|
11010
11035
|
for (var _i = 0, _a = this.queryDataList; _i < _a.length; _i++) {
|
|
11011
11036
|
var o = _a[_i];
|
|
@@ -11014,11 +11039,27 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
11014
11039
|
}
|
|
11015
11040
|
}
|
|
11016
11041
|
if (checked > 0 && checked !== this.queryDataList.length) {
|
|
11017
|
-
this.
|
|
11018
|
-
this.
|
|
11042
|
+
this.hasQueryChecked = true;
|
|
11043
|
+
this.hasQueryMidChecked = true;
|
|
11044
|
+
} else {
|
|
11045
|
+
this.hasQueryChecked = checked > 0;
|
|
11046
|
+
this.hasQueryMidChecked = false;
|
|
11047
|
+
}
|
|
11048
|
+
};
|
|
11049
|
+
ParamsSetting.prototype.buildBodyCheckedState = function () {
|
|
11050
|
+
var checked = 0;
|
|
11051
|
+
for (var _i = 0, _a = this.bodyDataList; _i < _a.length; _i++) {
|
|
11052
|
+
var o = _a[_i];
|
|
11053
|
+
if (!o.disabled) {
|
|
11054
|
+
checked = checked + 1;
|
|
11055
|
+
}
|
|
11056
|
+
}
|
|
11057
|
+
if (checked > 0 && checked !== this.bodyDataList.length) {
|
|
11058
|
+
this.hasBodyChecked = true;
|
|
11059
|
+
this.hasBodyMidChecked = true;
|
|
11019
11060
|
} else {
|
|
11020
|
-
this.
|
|
11021
|
-
this.
|
|
11061
|
+
this.hasBodyChecked = checked > 0;
|
|
11062
|
+
this.hasBodyMidChecked = false;
|
|
11022
11063
|
}
|
|
11023
11064
|
};
|
|
11024
11065
|
ParamsSetting.prototype.onUp = function (paramList, index) {
|
|
@@ -11044,6 +11085,7 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
11044
11085
|
return v.indexFlag === id;
|
|
11045
11086
|
});
|
|
11046
11087
|
paramList.splice(index, 1);
|
|
11088
|
+
this.buildBodyCheckedState();
|
|
11047
11089
|
};
|
|
11048
11090
|
ParamsSetting.prototype.onUpBodyParam = function (paramList, id) {
|
|
11049
11091
|
var index = paramList.findIndex(function (v) {
|
|
@@ -11075,9 +11117,13 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
11075
11117
|
var obj = paramList.splice(index, 1);
|
|
11076
11118
|
paramList.push(obj[0]);
|
|
11077
11119
|
};
|
|
11078
|
-
ParamsSetting.prototype.onChangeDisabled = function (value, item) {
|
|
11120
|
+
ParamsSetting.prototype.onChangeDisabled = function (value, item, type) {
|
|
11079
11121
|
item.disabled = !value;
|
|
11080
|
-
|
|
11122
|
+
if (type === "query") {
|
|
11123
|
+
this.buildQueryCheckedState();
|
|
11124
|
+
} else {
|
|
11125
|
+
this.buildBodyCheckedState();
|
|
11126
|
+
}
|
|
11081
11127
|
};
|
|
11082
11128
|
ParamsSetting.prototype.init = function () {
|
|
11083
11129
|
var _this = this;
|
|
@@ -11096,8 +11142,8 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
11096
11142
|
}
|
|
11097
11143
|
item._checked = !item.disabled;
|
|
11098
11144
|
});
|
|
11099
|
-
this.
|
|
11100
|
-
|
|
11145
|
+
this.buildQueryCheckedState();
|
|
11146
|
+
this.buildBodyCheckedState();
|
|
11101
11147
|
};
|
|
11102
11148
|
Object.defineProperty(ParamsSetting.prototype, "bodyDataList", {
|
|
11103
11149
|
get: function () {
|
|
@@ -11123,7 +11169,7 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
11123
11169
|
disabled: false,
|
|
11124
11170
|
_checked: true
|
|
11125
11171
|
});
|
|
11126
|
-
this.
|
|
11172
|
+
this.buildQueryCheckedState();
|
|
11127
11173
|
};
|
|
11128
11174
|
ParamsSetting.prototype.onAddBodyParam = function () {
|
|
11129
11175
|
this.interfaceModel.formParams.push({
|
|
@@ -11133,10 +11179,12 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
11133
11179
|
text: "",
|
|
11134
11180
|
type: this.typeMap[this.bodyType],
|
|
11135
11181
|
valueContent: "",
|
|
11182
|
+
requireFlag: 0,
|
|
11136
11183
|
_checked: true,
|
|
11137
11184
|
disabled: false,
|
|
11138
11185
|
valueType: "String"
|
|
11139
11186
|
});
|
|
11187
|
+
this.buildBodyCheckedState();
|
|
11140
11188
|
};
|
|
11141
11189
|
Object.defineProperty(ParamsSetting.prototype, "bodyType", {
|
|
11142
11190
|
get: function () {
|
|
@@ -11225,14 +11273,14 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
11225
11273
|
}
|
|
11226
11274
|
});
|
|
11227
11275
|
};
|
|
11228
|
-
ParamsSetting.prototype.
|
|
11276
|
+
ParamsSetting.prototype.onQueryChange = function () {
|
|
11229
11277
|
var _this = this;
|
|
11230
|
-
if (this.
|
|
11278
|
+
if (this.hasQueryMidChecked) {
|
|
11231
11279
|
this.queryDataList.forEach(function (item) {
|
|
11232
11280
|
_this.$set(item, "disabled", true);
|
|
11233
11281
|
_this.$set(item, "_checked", false);
|
|
11234
11282
|
});
|
|
11235
|
-
} else if (this.
|
|
11283
|
+
} else if (this.hasQueryChecked) {
|
|
11236
11284
|
this.queryDataList.forEach(function (item) {
|
|
11237
11285
|
_this.$set(item, "disabled", true);
|
|
11238
11286
|
_this.$set(item, "_checked", false);
|
|
@@ -11243,7 +11291,27 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
11243
11291
|
_this.$set(item, "_checked", true);
|
|
11244
11292
|
});
|
|
11245
11293
|
}
|
|
11246
|
-
this.
|
|
11294
|
+
this.buildQueryCheckedState();
|
|
11295
|
+
};
|
|
11296
|
+
ParamsSetting.prototype.onBodyChange = function () {
|
|
11297
|
+
var _this = this;
|
|
11298
|
+
if (this.hasBodyMidChecked) {
|
|
11299
|
+
this.bodyDataList.forEach(function (item) {
|
|
11300
|
+
_this.$set(item, "disabled", true);
|
|
11301
|
+
_this.$set(item, "_checked", false);
|
|
11302
|
+
});
|
|
11303
|
+
} else if (this.hasBodyChecked) {
|
|
11304
|
+
this.bodyDataList.forEach(function (item) {
|
|
11305
|
+
_this.$set(item, "disabled", true);
|
|
11306
|
+
_this.$set(item, "_checked", false);
|
|
11307
|
+
});
|
|
11308
|
+
} else {
|
|
11309
|
+
this.bodyDataList.forEach(function (item) {
|
|
11310
|
+
_this.$set(item, "disabled", false);
|
|
11311
|
+
_this.$set(item, "_checked", true);
|
|
11312
|
+
});
|
|
11313
|
+
}
|
|
11314
|
+
this.buildBodyCheckedState();
|
|
11247
11315
|
};
|
|
11248
11316
|
ParamsSetting.prototype.onBodySelectionChange = function (rows) {
|
|
11249
11317
|
var _this = this;
|