Merge branch 'dev-1.2.0'

This commit is contained in:
suxiaoxin 2017-11-10 20:02:25 +08:00
commit 9dbeacc799
9 changed files with 42 additions and 25 deletions

View File

@ -2,10 +2,10 @@
#### Bug Fixed
1. 成员如果第一次添加成员时选择组长接着再添加下一个成员如果select是默认的开发者这时候会出现与上次select相同的值
2. 如果添加了一个不存在的成员还是会提示添加成功,并且发送的数据是原来发送成功的数据,这里需要重置初始值并在未找到对应用户名时对未找到的人名应该提示用户不存在
3. 测试集合中的左侧 Menu 拖动的时候右侧的List需要跟随变动
3. Fix 接口集自动化测试 header 没有解析 mock 和 变量参数
4. 在接口开发阶段,多个人并行改接口,如果最后一个人改之前没刷新页面,会把之前的人修改过的都冲掉了
5. 修复cross-requestresponse header字段重复bug
6. Fix 接口集自动化测试 header 没有解析 mock 和 变量参数
#### Feature
1. 优化了分组添加,编辑交互

View File

@ -259,27 +259,28 @@ export default class InterfaceColMenu extends Component {
const dragColId = this.props.interfaceColList[dragColIndex]._id;
if (id.indexOf('col') === -1) {
if (dropColId !== dragColId) {
await axios.post('/api/col/up_case', { id: id.split('_')[1], col_id: dropColId });
} else {
let caseList = this.props.interfaceColList[dropColIndex].caseList;
const dropIndex = e.node.props.pos.split('-')[2];
const dragIndex = e.dragNode.props.pos.split('-')[2];
// caseList[dropIndex] = [caseList[dragIndex], caseList[dragIndex] = caseList[dropIndex]][0]
let newArr = [].concat(caseList);
newArr[dragIndex] = caseList[dropIndex];
newArr[dropIndex] = caseList[dragIndex];
let changes = [];
newArr.forEach((item, index) => {
changes.push({
id: item._id,
index: index
})
})
axios.post('/api/col/up_col_index', changes).then()
}
if (id.indexOf('col') === -1 && dropColId !== dragColId) {
// if (dropColId !== dragColId) {
//
// }
// else {
// let caseList = this.props.interfaceColList[dropColIndex].caseList;
// const dropIndex = e.node.props.pos.split('-')[2];
// const dragIndex = e.dragNode.props.pos.split('-')[2];
// // caseList[dropIndex] = [caseList[dragIndex], caseList[dragIndex] = caseList[dropIndex]][0]
// let newArr = [].concat(caseList);
// newArr[dragIndex] = caseList[dropIndex];
// newArr[dropIndex] = caseList[dragIndex];
// let changes = [];
// newArr.forEach((item, index) => {
// changes.push({
// id: item._id,
// index: index
// })
// })
// axios.post('/api/col/up_col_index', changes).then()
// }
await axios.post('/api/col/up_case', { id: id.split('_')[1], col_id: dropColId });
this.props.fetchInterfaceColList(projectId);
this.props.setColData({ currColId: +this.props.currColId, isShowCol: true, isRander: true })

View File

@ -191,3 +191,11 @@ body, h1, h2, h3, h4, h5, h6 {
border: 1px solid;
border-color: #fff;
}
.ydoc .navbar-toggle{
color: #333;
}
.ydoc .ydoc-nav .navbar-left li:nth-child(1){
display: none;
}

View File

@ -191,3 +191,11 @@ body, h1, h2, h3, h4, h5, h6 {
border: 1px solid;
border-color: #fff;
}
.ydoc .navbar-toggle{
color: #333;
}
.ydoc .ydoc-nav .navbar-left li:nth-child(1){
display: none;
}

View File

@ -1 +1 @@
window.WEBPACK_ASSETS = {"index.js":{"js":"index@45bbc08f1c61a1014932.js","css":"index@45bbc08f1c61a1014932.css"},"lib":{"js":"lib@9521c6250635e5a8893a.js"},"lib2":{"js":"lib2@dbcc326d4fe3e4473316.js"},"manifest":{"js":"manifest@b67af9f8b578904e66c5.js"}}
window.WEBPACK_ASSETS = {"index.js":{"js":"index@3ea8285572a5ca4441ca.js","css":"index@3ea8285572a5ca4441ca.css"},"lib":{"js":"lib@9521c6250635e5a8893a.js"},"lib2":{"js":"lib2@dbcc326d4fe3e4473316.js"},"manifest":{"js":"manifest@b67af9f8b578904e66c5.js"}}

File diff suppressed because one or more lines are too long