Commit b06b9a52 authored by zhengke's avatar zhengke

修改

parent 13af6f78
...@@ -186,10 +186,8 @@ ...@@ -186,10 +186,8 @@
this.$refs.CategoryName.validate(); this.$refs.CategoryName.validate();
this.$refs.CatetoryType.validate(); this.$refs.CatetoryType.validate();
if (!this.$refs.CategoryName.hasError&&!this.$refs.CatetoryType.hasError) { if (!this.$refs.CategoryName.hasError&&!this.$refs.CatetoryType.hasError) {
this.saveCustomLoading = true;
saveCustomerCategory(this.objOption).then(res => { saveCustomerCategory(this.objOption).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.saveCustomLoading = false;
this.$q.notify({ this.$q.notify({
icon: "iconfont icon-chenggong", icon: "iconfont icon-chenggong",
color: "accent", color: "accent",
......
...@@ -384,6 +384,9 @@ ...@@ -384,6 +384,9 @@
return return
} }
if (!this.$refs.CustomerName.hasError) { if (!this.$refs.CustomerName.hasError) {
if(this.objOption.CategoryId>0){
this.objOption.CategoryName = '';
}
SetCustomer(this.objOption).then(res => { SetCustomer(this.objOption).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.$q.notify({ this.$q.notify({
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</q-field> </q-field>
</div> </div>
<div> <div>
<q-btn color="accent" class="q-mr-md" size="sm" icon="download" style="margin-top:15px;" label="下载" /> <q-btn color="accent" class="q-mr-md" size="sm" icon="download" style="margin-top:15px;display:none;" label="下载" />
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</q-field> </q-field>
</div> </div>
<div> <div>
<q-btn color="accent" class="q-mr-md" size="sm" icon="download" style="margin-top:15px;" label="下载" /> <q-btn color="accent" class="q-mr-md" size="sm" icon="download" style="margin-top:15px;display:none;" label="下载" />
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</q-field> </q-field>
</div> </div>
<div> <div>
<q-btn color="accent" class="q-mr-md" size="sm" icon="download" style="margin-top:15px;" label="下载" /> <q-btn color="accent" class="q-mr-md" size="sm" icon="download" style="margin-top:15px;display:none;" label="下载" />
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</q-field> </q-field>
</div> </div>
<div> <div>
<q-btn color="accent" class="q-mr-md" size="sm" icon="download" style="margin-top:15px;" label="下载" /> <q-btn color="accent" class="q-mr-md" size="sm" icon="download" style="margin-top:15px;display:none;" label="下载" />
</div> </div>
</div> </div>
<yearFirst :dataList="dataList" :tabCheck="tabCheck"></yearFirst> <yearFirst :dataList="dataList" :tabCheck="tabCheck"></yearFirst>
......
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