Skip to content

Commit 50eff2f

Browse files
committed
1.1.0
1.修复了query列表里复选框不能更改的bug 2.新增了在接口编写页和测试页面可以粘贴path路径,系统会自动识别path和query的功能
1 parent 05f6da4 commit 50eff2f

File tree

12 files changed

+94
-11
lines changed

12 files changed

+94
-11
lines changed

SBDocClient/dist/projectinfo.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SBDocClient/dist/projectinfo.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SBDocClient/dist/run.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SBDocClient/dist/run.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SBDocClient/dist/vendor.bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SBDocClient/dist/vendor.bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SBDocClient/web/component/inparamQuery.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<el-input style="width: 90%" placeholder="请填写参数名称" v-model="item.name"></el-input>
88
</td>
99
<td style="width: 10%;" >
10-
<el-checkbox v-model="item.must" :true-value="1" :false-value="0">必选</el-checkbox>
10+
<el-checkbox v-model="item.must" :true-label="1" :false-label="0">必选</el-checkbox>
1111
</td>
1212
<td style="width: 55%">
1313
<el-input style="width: 90%" placeholder="请填写备注" v-model="item.remark"></el-input>

SBDocClient/web/projectinfo/projectinfo.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@
8383
路径
8484
</el-col>
8585
<el-col class="col" :span="10">
86-
<el-popover placement="bottom" title="路径信息" width="400" trigger="focus" content="路径不包含baseUrl,baseUrl请前往右上角项目管理里面设置。例如http://abc.com/login,http://abc.com是baseUrl,这里输入/login即可,支持restful url形式,例如:/info/{name}">
87-
<el-input style="width: 90%" placeholder="请输入接口路径(不包含BaseUrl)" v-model="interfaceEdit.url" slot="reference" @change="changeUrl"></el-input>
86+
<el-popover placement="bottom" title="路径信息" width="500" trigger="focus" content="路径不包含baseUrl,baseUrl请前往右上角项目管理里面设置。例如http://abc.com/login,http://abc.com是baseUrl,这里输入/login即可,支持restful url形式,例如:/info/{name} 支持路径参数的粘贴,系统会自动识别路径和query参数">
87+
<el-input style="width: 90%" placeholder="请输入接口路径(不包含BaseUrl)" v-model="interfaceEdit.url" slot="reference" @change="changeUrl" @paste.native="paste"></el-input>
8888
</el-popover>
8989
</el-col>
9090
<el-col class="col" :span="2" style="text-align: center;color: gray">

SBDocClient/web/projectinfo/projectinfo.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,45 @@ var vue=new Vue({
231231
},
232232
methodColor:function (val) {
233233
return helper.methodColor(val);
234+
},
235+
paste:function () {
236+
setTimeout(function () {
237+
var path=store.state.interfaceEdit.url;
238+
var arrStoreQuery=store.state.query;
239+
arrStoreQuery.splice(0,arrStoreQuery.length);
240+
var index=path.indexOf("?");
241+
if(index>-1)
242+
{
243+
var arr=path.split("?");
244+
if(arr[1])
245+
{
246+
var query=arr[1];
247+
var arrQuery=query.split("&");
248+
for(var i=0;i<arrQuery.length;i++)
249+
{
250+
if(arrQuery[i])
251+
{
252+
var arrQuery1=arrQuery[i].split("=");
253+
arrStoreQuery.push({
254+
name:arrQuery1[0],
255+
value:arrQuery1[1]?[arrQuery1[1]]:[],
256+
must:1,
257+
remark:""
258+
})
259+
}
260+
}
261+
}
262+
store.state.interfaceEdit.url=store.state.interfaceEdit.url.substring(0,index);
263+
}
264+
else
265+
{
266+
arrStoreQuery.push({
267+
name:"",
268+
must:0,
269+
remark:""
270+
})
271+
}
272+
},100)
234273
}
235274
},
236275
created:function () {

SBDocClient/web/run/run.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
</el-button>
5454
</el-col>
5555
<el-col class="col" :span="session.role==0?8:10" style="line-height: 50px;text-align: center">
56-
<el-input style="width: 90%" placeholder="请填入你请求的路由地址" v-model="interface.url" @change="changeUrl"></el-input>
56+
<el-input style="width: 90%" placeholder="请填入你请求的路由地址" v-model="interface.url" @change="changeUrl" @paste.native="paste"></el-input>
5757
</el-col>
5858
<el-col class="col" :span="2" style="line-height: 50px;text-align: center">
5959
<el-button type="primary" @click="run" title="运行" id="run" :loading="runPending">

0 commit comments

Comments
 (0)