Commit 34c99a07 authored by chenqikuai's avatar chenqikuai

store

parent 2420969e
This diff is collapsed.
...@@ -139,7 +139,7 @@ export default class Index extends Mixins(TemplateMixin) { ...@@ -139,7 +139,7 @@ export default class Index extends Mixins(TemplateMixin) {
return [edit, rename, move, copy, del]; return [edit, rename, move, copy, del];
} }
} }
private async getUserFolders() { private async getTemplateListByFolderId() {
const id = +this.id; const id = +this.id;
const res = await this.$api.template.list({ id: [id] }); const res = await this.$api.template.list({ id: [id] });
this.list = res.results[0].detail || []; this.list = res.results[0].detail || [];
...@@ -147,7 +147,7 @@ export default class Index extends Mixins(TemplateMixin) { ...@@ -147,7 +147,7 @@ export default class Index extends Mixins(TemplateMixin) {
private async callbackAction(cb: any) { private async callbackAction(cb: any) {
// cb是什么东西? // cb是什么东西?
this.isShowRename = await cb.call(this, this.currentTem); this.isShowRename = await cb.call(this, this.currentTem);
this.getUserFolders(); this.getTemplateListByFolderId();
} }
private getTemplateById(id: number){ private getTemplateById(id: number){
...@@ -162,7 +162,7 @@ export default class Index extends Mixins(TemplateMixin) { ...@@ -162,7 +162,7 @@ export default class Index extends Mixins(TemplateMixin) {
private async onConfirm() { private async onConfirm() {
const params = this.currentTem; const params = this.currentTem;
await this.$api.template.updateCustomize(params); await this.$api.template.updateCustomize(params);
this.getUserFolders(); this.getTemplateListByFolderId();
} }
private handleClickMoveToCurrent() { private handleClickMoveToCurrent() {
...@@ -177,7 +177,7 @@ export default class Index extends Mixins(TemplateMixin) { ...@@ -177,7 +177,7 @@ export default class Index extends Mixins(TemplateMixin) {
.then(() => { .then(() => {
this.setMovedTemplateId(null); this.setMovedTemplateId(null);
Toast('移动成功'); Toast('移动成功');
this.getUserFolders(); this.getTemplateListByFolderId();
}); });
} }
} }
......
...@@ -118,6 +118,10 @@ export default class BaseInfo extends Vue { ...@@ -118,6 +118,10 @@ export default class BaseInfo extends Vue {
this.showSelectFolder = false; this.showSelectFolder = false;
this.folder = value; this.folder = value;
} }
private onPickerChange(picker: any, value: any, index: number){
console.log(index);
}
private handleFileChange(e: any) { private handleFileChange(e: any) {
const [file] = e.target.files; const [file] = e.target.files;
if (file) { if (file) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment