diff --git a/client/src/views/ability/mQualityTask.vue b/client/src/views/ability/mQualityTask.vue
index 5ad8c34..f516dc4 100644
--- a/client/src/views/ability/mQualityTask.vue
+++ b/client/src/views/ability/mQualityTask.vue
@@ -124,13 +124,6 @@
未确认
-
-
-
-
-
-
-
-
-
@@ -598,6 +581,7 @@
taskList: {count: 0,},
recordList: {count: 0,},
drawer: false,
+ loading: false,
showForm: false,
multiple: true,
listLoading: false,
@@ -684,8 +668,22 @@
getProvince(){
provinceLists({page:1,page_size:60}).then(res=>{
this.proviceOptions = res.data.results;
+ });
+ cityLists().then(res=>{
+ this.cityOptions = res.data.results;
})
},
+ searchCity(query){
+ if (query !== '') {
+ this.loading = true;
+ cityLists({search:query}).then(res=>{
+ this.cityOptions = res.data.results;
+ this.loading = false;
+ })
+ } else {
+ this.cityOptions = [];
+ }
+ },
getCites(province){
this.qualiForm.city ='';
cityLists({parent:province,page:1,page_size:100}).then(res=>{
@@ -818,6 +816,7 @@
that.$refs[form].validate((valid) => {
if (valid) {
if(that.qualiForm.type==='OTHER'){
+ that.qualiForm.citys=[];
let city = parseInt(that.qualiForm.city);
let province = parseInt(that.qualiForm.province);
that.qualiForm.citys.push(province);
@@ -827,7 +826,7 @@
obj.qtask = that.qtask;
obj.value2 = that.qualiForm;
if(obj.value2.grade===''){
- obj.value2.grade=null
+ obj.value2.grade=null;
}
const isEdit = that.dialogType === "edit";
if (isEdit) {