修改vue代码生成模板
This commit is contained in:
parent
37174398c3
commit
44ab0f2141
@ -107,6 +107,7 @@ export default {
|
|||||||
// this.getDicts("sys_normal_disable").then((response) => {
|
// this.getDicts("sys_normal_disable").then((response) => {
|
||||||
// this.statusOptions = response.data;
|
// this.statusOptions = response.data;
|
||||||
// });
|
// });
|
||||||
|
{MountedMethod}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 查询数据
|
// 查询数据
|
||||||
@ -166,7 +167,8 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
del{ModelTypeName}(row.{primaryKey}).then((res) => {
|
const ${primaryKey}s = row.${primaryKey} || this.ids;
|
||||||
|
del{ModelTypeName}(${primaryKey}s).then((res) => {
|
||||||
this.msgSuccess("删除成功");
|
this.msgSuccess("删除成功");
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
});
|
});
|
||||||
@ -184,7 +186,6 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
beforeFileUpload(file) { },
|
beforeFileUpload(file) { },
|
||||||
//文件上传成功方法
|
|
||||||
{vueJsMethod}
|
{vueJsMethod}
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm: function () {
|
submitForm: function () {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user