Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test_ls
This commit is contained in:
commit
832d26709f
@ -16,7 +16,6 @@
|
|||||||
v-if="inputVisible"
|
v-if="inputVisible"
|
||||||
ref="saveTagInput"
|
ref="saveTagInput"
|
||||||
v-model="inputValue"
|
v-model="inputValue"
|
||||||
autofocus
|
|
||||||
class="input-new-tag"
|
class="input-new-tag"
|
||||||
size="small"
|
size="small"
|
||||||
@keyup.enter.native="handleInputConfirm"
|
@keyup.enter.native="handleInputConfirm"
|
||||||
@ -99,6 +98,9 @@ export default {
|
|||||||
},
|
},
|
||||||
showInput() {
|
showInput() {
|
||||||
this.inputVisible = true;
|
this.inputVisible = true;
|
||||||
|
this.$nextTick(_ => {
|
||||||
|
this.$refs.saveTagInput.$refs.input.focus();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
handleInputConfirm() {
|
handleInputConfirm() {
|
||||||
const inputValue = this.inputValue;
|
const inputValue = this.inputValue;
|
||||||
|
@ -182,7 +182,7 @@ export default {
|
|||||||
updateTrainingStep(this.editData.id, list).then(res => {
|
updateTrainingStep(this.editData.id, list).then(res => {
|
||||||
console.log('保存步骤成功!', res);
|
console.log('保存步骤成功!', res);
|
||||||
this.$message.success('保存步骤成功!');
|
this.$message.success('保存步骤成功!');
|
||||||
this.doClose();
|
// this.doClose();
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log('保存步骤失败', err);
|
console.log('保存步骤失败', err);
|
||||||
this.$message.error('保存步骤失败');
|
this.$message.error('保存步骤失败');
|
||||||
|
@ -111,7 +111,11 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
queryFunction(params) {
|
queryFunction(param) {
|
||||||
|
const params = {
|
||||||
|
...param,
|
||||||
|
mapId: this.$route.query.mapId
|
||||||
|
};
|
||||||
return getTrainingList(params);
|
return getTrainingList(params);
|
||||||
},
|
},
|
||||||
doShow() {
|
doShow() {
|
||||||
|
Loading…
Reference in New Issue
Block a user