|
@@ -283,7 +283,7 @@
|
|
|
|
|
|
<a-form-item :wrapperCol="{ span: 24 }"
|
|
|
style="text-align: center">
|
|
|
- <a-button htmlType="submit" type="primary">提交</a-button>
|
|
|
+ <a-button htmlType="submit" type="primary" :loading="loading">提交</a-button>
|
|
|
<a-button style="margin-left: 8px">保存</a-button>
|
|
|
</a-form-item>
|
|
|
|
|
@@ -305,6 +305,8 @@
|
|
|
components: {AFormItem},
|
|
|
data() {
|
|
|
return {
|
|
|
+ loading:false,
|
|
|
+ templateName:'',
|
|
|
title: "操作",
|
|
|
visible: false,
|
|
|
model: {},
|
|
@@ -363,7 +365,6 @@
|
|
|
showOpenUrlCreateMode: false,
|
|
|
openUrlCreateMode: 'hand_create',
|
|
|
name: '',
|
|
|
- confirmLoading: false,
|
|
|
showDateFlowRange: false,
|
|
|
showDateQuantumRange: false,
|
|
|
price: 0,
|
|
@@ -574,6 +575,7 @@
|
|
|
params.pricing = this.pricing;
|
|
|
params.convertPrice = this.convertPrice;
|
|
|
params.itratorNum = this.itratorNum;
|
|
|
+ params.templateName = this.templateName;
|
|
|
if (this.time != [] && this.time.length == 2) {
|
|
|
params.startDate = moment(this.time[0]).format('YYYY-MM-DD HH:mm')
|
|
|
params.endDate = moment(this.time[1]).format('YYYY-MM-DD HH:mm')
|
|
@@ -600,6 +602,7 @@
|
|
|
params.convertPrice = this.convertPrice;
|
|
|
params.filterType = this.filterType;
|
|
|
params.dateQuantumRange = this.dateQuantumRange;*/
|
|
|
+ this.loading = true;
|
|
|
console.log(params)
|
|
|
postAction(this.url.insertUrl, params).then((res) => {
|
|
|
console.log(res)
|
|
@@ -610,7 +613,7 @@
|
|
|
} else {
|
|
|
this.$message.warning(res.message);
|
|
|
}
|
|
|
- this.confirmLoading = false;
|
|
|
+ this.loading = false;
|
|
|
|
|
|
});
|
|
|
}
|