|
|
@@ -216,7 +216,7 @@
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <dialog-template ref="modalTemplate" @ok="getList"></dialog-template>
|
|
|
+ <dialog-template ref="modalTemplate" @ok="afterSaveTemplate"></dialog-template>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -521,10 +521,18 @@ export default {
|
|
|
this.queryParams.checkSub = !this.queryParams.checkSub;
|
|
|
this.getList();
|
|
|
},
|
|
|
+ afterSaveTemplate()
|
|
|
+ {
|
|
|
+ this.loading = true;
|
|
|
+ //延时1.5秒,修改模板后,会异步重新生成模板效期后的作息,可能存在查询时,新作息还未生成完的情况
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.getList();
|
|
|
+ },1000)
|
|
|
+ },
|
|
|
/** 查询列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
- console.log(this.queryParams, "pages");
|
|
|
+ // console.log(this.queryParams, "pages");
|
|
|
tableList(this.queryParams)
|
|
|
.then((response) => {
|
|
|
this.tableList = response.rows;
|
|
|
@@ -535,6 +543,8 @@ export default {
|
|
|
.catch((err) => {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
|
|
|
// 节点单击事件
|