@egova/egova-api 1.1.7 → 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 +129 -61
- package/dist/index.umd.js +129 -61
- package/dist/index.umd.min.js +2 -2
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -1199,7 +1199,7 @@ module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
|
1199
1199
|
/***/ "7640":
|
|
1200
1200
|
/***/ (function(module, exports) {
|
|
1201
1201
|
|
|
1202
|
-
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=\"
|
|
1202
|
+
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"
|
|
1203
1203
|
|
|
1204
1204
|
/***/ }),
|
|
1205
1205
|
|
|
@@ -10898,11 +10898,53 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
10898
10898
|
function ParamsSetting() {
|
|
10899
10899
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
10900
10900
|
_this.value = [];
|
|
10901
|
+
_this.commonColuns = [{
|
|
10902
|
+
title: "参数名",
|
|
10903
|
+
slot: "name",
|
|
10904
|
+
align: "left"
|
|
10905
|
+
}, {
|
|
10906
|
+
title: "参数值",
|
|
10907
|
+
slot: "valueContent",
|
|
10908
|
+
align: "left"
|
|
10909
|
+
}, {
|
|
10910
|
+
title: "必填",
|
|
10911
|
+
slot: "required",
|
|
10912
|
+
width: 95,
|
|
10913
|
+
align: "left",
|
|
10914
|
+
renderHeader: function (h, params) {
|
|
10915
|
+
return h("div", {
|
|
10916
|
+
class: "th-tip"
|
|
10917
|
+
}, [h("i-poptip", {
|
|
10918
|
+
props: {
|
|
10919
|
+
trigger: "hover",
|
|
10920
|
+
content: "参数启用同时非必填时,若调用方未传具体参数值,将使用当前定义的参数值。",
|
|
10921
|
+
placement: "top",
|
|
10922
|
+
transfer: true,
|
|
10923
|
+
"word-wrap": true
|
|
10924
|
+
}
|
|
10925
|
+
}, [h("i-icon", {
|
|
10926
|
+
props: {
|
|
10927
|
+
type: "ios-information-circle-outline"
|
|
10928
|
+
}
|
|
10929
|
+
})]), h("span", "必填")]);
|
|
10930
|
+
}
|
|
10931
|
+
}, {
|
|
10932
|
+
title: "备注",
|
|
10933
|
+
slot: "text",
|
|
10934
|
+
align: "left"
|
|
10935
|
+
}, {
|
|
10936
|
+
title: "操作",
|
|
10937
|
+
slot: "action",
|
|
10938
|
+
align: "left",
|
|
10939
|
+
width: 300
|
|
10940
|
+
}];
|
|
10901
10941
|
_this.queryDataList = [];
|
|
10902
10942
|
// public bodyDataList: Array<any> = [];
|
|
10903
10943
|
_this.requestBodyTypeList = [];
|
|
10904
|
-
_this.
|
|
10905
|
-
_this.
|
|
10944
|
+
_this.hasQueryChecked = false;
|
|
10945
|
+
_this.hasQueryMidChecked = false;
|
|
10946
|
+
_this.hasBodyChecked = false;
|
|
10947
|
+
_this.hasBodyMidChecked = false;
|
|
10906
10948
|
_this.typeMap = {
|
|
10907
10949
|
Form: "FormData",
|
|
10908
10950
|
X_www_form_urlencoded: "FormUrlEncoded"
|
|
@@ -10921,63 +10963,47 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
10921
10963
|
Object.defineProperty(ParamsSetting.prototype, "paramColumns", {
|
|
10922
10964
|
get: function () {
|
|
10923
10965
|
var _this = this;
|
|
10924
|
-
return [{
|
|
10966
|
+
return __spreadArray([{
|
|
10925
10967
|
slot: "selection",
|
|
10926
|
-
// type: "selection",
|
|
10927
10968
|
width: 100,
|
|
10928
10969
|
align: "center",
|
|
10929
10970
|
title: "启用",
|
|
10930
10971
|
renderHeader: function (h, params) {
|
|
10931
10972
|
return h(project_detail_params_setting_switch, {
|
|
10932
10973
|
props: {
|
|
10933
|
-
value: _this.
|
|
10934
|
-
midState: _this.
|
|
10974
|
+
value: _this.hasQueryChecked,
|
|
10975
|
+
midState: _this.hasQueryMidChecked
|
|
10935
10976
|
},
|
|
10936
10977
|
on: {
|
|
10937
|
-
onChange: _this.
|
|
10978
|
+
onChange: _this.onQueryChange
|
|
10938
10979
|
}
|
|
10939
10980
|
});
|
|
10940
10981
|
}
|
|
10941
|
-
},
|
|
10942
|
-
|
|
10943
|
-
|
|
10944
|
-
|
|
10945
|
-
|
|
10946
|
-
|
|
10947
|
-
|
|
10948
|
-
|
|
10949
|
-
|
|
10950
|
-
|
|
10951
|
-
|
|
10952
|
-
|
|
10953
|
-
|
|
10982
|
+
}], this.commonColuns, true);
|
|
10983
|
+
},
|
|
10984
|
+
enumerable: false,
|
|
10985
|
+
configurable: true
|
|
10986
|
+
});
|
|
10987
|
+
Object.defineProperty(ParamsSetting.prototype, "bodyColumns", {
|
|
10988
|
+
get: function () {
|
|
10989
|
+
var _this = this;
|
|
10990
|
+
return __spreadArray([{
|
|
10991
|
+
slot: "selection",
|
|
10992
|
+
width: 100,
|
|
10993
|
+
align: "center",
|
|
10994
|
+
title: "启用",
|
|
10954
10995
|
renderHeader: function (h, params) {
|
|
10955
|
-
return h(
|
|
10956
|
-
class: "th-tip"
|
|
10957
|
-
}, [h("i-poptip", {
|
|
10958
|
-
props: {
|
|
10959
|
-
trigger: "hover",
|
|
10960
|
-
content: "参数启用同时非必填时,若调用方未传具体参数值,将使用当前定义的参数值。",
|
|
10961
|
-
placement: "top",
|
|
10962
|
-
transfer: true,
|
|
10963
|
-
"word-wrap": true
|
|
10964
|
-
}
|
|
10965
|
-
}, [h("i-icon", {
|
|
10996
|
+
return h(project_detail_params_setting_switch, {
|
|
10966
10997
|
props: {
|
|
10967
|
-
|
|
10998
|
+
value: _this.hasBodyChecked,
|
|
10999
|
+
midState: _this.hasBodyMidChecked
|
|
11000
|
+
},
|
|
11001
|
+
on: {
|
|
11002
|
+
onChange: _this.onBodyChange
|
|
10968
11003
|
}
|
|
10969
|
-
})
|
|
10970
|
-
}
|
|
10971
|
-
},
|
|
10972
|
-
title: "备注",
|
|
10973
|
-
slot: "text",
|
|
10974
|
-
align: "left"
|
|
10975
|
-
}, {
|
|
10976
|
-
title: "操作",
|
|
10977
|
-
slot: "action",
|
|
10978
|
-
align: "left",
|
|
10979
|
-
width: 300
|
|
10980
|
-
}];
|
|
11004
|
+
});
|
|
11005
|
+
}
|
|
11006
|
+
}], this.commonColuns, true);
|
|
10981
11007
|
},
|
|
10982
11008
|
enumerable: false,
|
|
10983
11009
|
configurable: true
|
|
@@ -10989,14 +11015,13 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
10989
11015
|
var index = paramList.findIndex(function (v) {
|
|
10990
11016
|
return v.indexFlag === id;
|
|
10991
11017
|
});
|
|
10992
|
-
// paramList.splice(index, 1);
|
|
10993
11018
|
paramList.splice(index, 1);
|
|
10994
|
-
this.
|
|
11019
|
+
this.buildQueryCheckedState();
|
|
10995
11020
|
};
|
|
10996
11021
|
/**
|
|
10997
11022
|
* [true,true]: 第一个代表是否勾选,第二个代表是否半勾选
|
|
10998
11023
|
*/
|
|
10999
|
-
ParamsSetting.prototype.
|
|
11024
|
+
ParamsSetting.prototype.buildQueryCheckedState = function () {
|
|
11000
11025
|
var checked = 0;
|
|
11001
11026
|
for (var _i = 0, _a = this.queryDataList; _i < _a.length; _i++) {
|
|
11002
11027
|
var o = _a[_i];
|
|
@@ -11005,11 +11030,27 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
11005
11030
|
}
|
|
11006
11031
|
}
|
|
11007
11032
|
if (checked > 0 && checked !== this.queryDataList.length) {
|
|
11008
|
-
this.
|
|
11009
|
-
this.
|
|
11033
|
+
this.hasQueryChecked = true;
|
|
11034
|
+
this.hasQueryMidChecked = true;
|
|
11035
|
+
} else {
|
|
11036
|
+
this.hasQueryChecked = checked > 0;
|
|
11037
|
+
this.hasQueryMidChecked = false;
|
|
11038
|
+
}
|
|
11039
|
+
};
|
|
11040
|
+
ParamsSetting.prototype.buildBodyCheckedState = function () {
|
|
11041
|
+
var checked = 0;
|
|
11042
|
+
for (var _i = 0, _a = this.bodyDataList; _i < _a.length; _i++) {
|
|
11043
|
+
var o = _a[_i];
|
|
11044
|
+
if (!o.disabled) {
|
|
11045
|
+
checked = checked + 1;
|
|
11046
|
+
}
|
|
11047
|
+
}
|
|
11048
|
+
if (checked > 0 && checked !== this.bodyDataList.length) {
|
|
11049
|
+
this.hasBodyChecked = true;
|
|
11050
|
+
this.hasBodyMidChecked = true;
|
|
11010
11051
|
} else {
|
|
11011
|
-
this.
|
|
11012
|
-
this.
|
|
11052
|
+
this.hasBodyChecked = checked > 0;
|
|
11053
|
+
this.hasBodyMidChecked = false;
|
|
11013
11054
|
}
|
|
11014
11055
|
};
|
|
11015
11056
|
ParamsSetting.prototype.onUp = function (paramList, index) {
|
|
@@ -11035,6 +11076,7 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
11035
11076
|
return v.indexFlag === id;
|
|
11036
11077
|
});
|
|
11037
11078
|
paramList.splice(index, 1);
|
|
11079
|
+
this.buildBodyCheckedState();
|
|
11038
11080
|
};
|
|
11039
11081
|
ParamsSetting.prototype.onUpBodyParam = function (paramList, id) {
|
|
11040
11082
|
var index = paramList.findIndex(function (v) {
|
|
@@ -11066,9 +11108,13 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
11066
11108
|
var obj = paramList.splice(index, 1);
|
|
11067
11109
|
paramList.push(obj[0]);
|
|
11068
11110
|
};
|
|
11069
|
-
ParamsSetting.prototype.onChangeDisabled = function (value, item) {
|
|
11111
|
+
ParamsSetting.prototype.onChangeDisabled = function (value, item, type) {
|
|
11070
11112
|
item.disabled = !value;
|
|
11071
|
-
|
|
11113
|
+
if (type === "query") {
|
|
11114
|
+
this.buildQueryCheckedState();
|
|
11115
|
+
} else {
|
|
11116
|
+
this.buildBodyCheckedState();
|
|
11117
|
+
}
|
|
11072
11118
|
};
|
|
11073
11119
|
ParamsSetting.prototype.init = function () {
|
|
11074
11120
|
var _this = this;
|
|
@@ -11087,8 +11133,8 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
11087
11133
|
}
|
|
11088
11134
|
item._checked = !item.disabled;
|
|
11089
11135
|
});
|
|
11090
|
-
this.
|
|
11091
|
-
|
|
11136
|
+
this.buildQueryCheckedState();
|
|
11137
|
+
this.buildBodyCheckedState();
|
|
11092
11138
|
};
|
|
11093
11139
|
Object.defineProperty(ParamsSetting.prototype, "bodyDataList", {
|
|
11094
11140
|
get: function () {
|
|
@@ -11114,7 +11160,7 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
11114
11160
|
disabled: false,
|
|
11115
11161
|
_checked: true
|
|
11116
11162
|
});
|
|
11117
|
-
this.
|
|
11163
|
+
this.buildQueryCheckedState();
|
|
11118
11164
|
};
|
|
11119
11165
|
ParamsSetting.prototype.onAddBodyParam = function () {
|
|
11120
11166
|
this.interfaceModel.formParams.push({
|
|
@@ -11124,10 +11170,12 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
11124
11170
|
text: "",
|
|
11125
11171
|
type: this.typeMap[this.bodyType],
|
|
11126
11172
|
valueContent: "",
|
|
11173
|
+
requireFlag: 0,
|
|
11127
11174
|
_checked: true,
|
|
11128
11175
|
disabled: false,
|
|
11129
11176
|
valueType: "String"
|
|
11130
11177
|
});
|
|
11178
|
+
this.buildBodyCheckedState();
|
|
11131
11179
|
};
|
|
11132
11180
|
Object.defineProperty(ParamsSetting.prototype, "bodyType", {
|
|
11133
11181
|
get: function () {
|
|
@@ -11216,14 +11264,14 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
11216
11264
|
}
|
|
11217
11265
|
});
|
|
11218
11266
|
};
|
|
11219
|
-
ParamsSetting.prototype.
|
|
11267
|
+
ParamsSetting.prototype.onQueryChange = function () {
|
|
11220
11268
|
var _this = this;
|
|
11221
|
-
if (this.
|
|
11269
|
+
if (this.hasQueryMidChecked) {
|
|
11222
11270
|
this.queryDataList.forEach(function (item) {
|
|
11223
11271
|
_this.$set(item, "disabled", true);
|
|
11224
11272
|
_this.$set(item, "_checked", false);
|
|
11225
11273
|
});
|
|
11226
|
-
} else if (this.
|
|
11274
|
+
} else if (this.hasQueryChecked) {
|
|
11227
11275
|
this.queryDataList.forEach(function (item) {
|
|
11228
11276
|
_this.$set(item, "disabled", true);
|
|
11229
11277
|
_this.$set(item, "_checked", false);
|
|
@@ -11234,7 +11282,27 @@ var params_setting_ParamsSetting = /** @class */function (_super) {
|
|
|
11234
11282
|
_this.$set(item, "_checked", true);
|
|
11235
11283
|
});
|
|
11236
11284
|
}
|
|
11237
|
-
this.
|
|
11285
|
+
this.buildQueryCheckedState();
|
|
11286
|
+
};
|
|
11287
|
+
ParamsSetting.prototype.onBodyChange = function () {
|
|
11288
|
+
var _this = this;
|
|
11289
|
+
if (this.hasBodyMidChecked) {
|
|
11290
|
+
this.bodyDataList.forEach(function (item) {
|
|
11291
|
+
_this.$set(item, "disabled", true);
|
|
11292
|
+
_this.$set(item, "_checked", false);
|
|
11293
|
+
});
|
|
11294
|
+
} else if (this.hasBodyChecked) {
|
|
11295
|
+
this.bodyDataList.forEach(function (item) {
|
|
11296
|
+
_this.$set(item, "disabled", true);
|
|
11297
|
+
_this.$set(item, "_checked", false);
|
|
11298
|
+
});
|
|
11299
|
+
} else {
|
|
11300
|
+
this.bodyDataList.forEach(function (item) {
|
|
11301
|
+
_this.$set(item, "disabled", false);
|
|
11302
|
+
_this.$set(item, "_checked", true);
|
|
11303
|
+
});
|
|
11304
|
+
}
|
|
11305
|
+
this.buildBodyCheckedState();
|
|
11238
11306
|
};
|
|
11239
11307
|
ParamsSetting.prototype.onBodySelectionChange = function (rows) {
|
|
11240
11308
|
var _this = this;
|