This commit is contained in:
parent
fe4be749e3
commit
ae0e8da35f
|
@ -124,13 +124,6 @@
|
||||||
<el-tag type="danger" effect="plain" v-else>未确认</el-tag>
|
<el-tag type="danger" effect="plain" v-else>未确认</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column label="改动内容">
|
|
||||||
<template #default="scope">
|
|
||||||
<span v-if="scope.row.value2.name">{{ scope.row.value2.name }}</span>
|
|
||||||
<span v-else-if="typeof scope.row.value2=='String'">{{ scope.row.value2 }}</span>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
</el-table-column>-->
|
|
||||||
<el-table-column label="报送文件">
|
<el-table-column label="报送文件">
|
||||||
<template slot-scope="scope" v-if="scope.row.files">
|
<template slot-scope="scope" v-if="scope.row.files">
|
||||||
<el-link
|
<el-link
|
||||||
|
@ -321,21 +314,15 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="备案城市" v-if="qualiForm.type==='OTHER'">
|
<el-form-item label="备案城市" v-if="qualiForm.type==='OTHER'">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="qualiForm.province"
|
v-model="qualiForm.citys"
|
||||||
placeholder="省份"
|
placeholder="备案城市"
|
||||||
clearable
|
style="width: 100%;"
|
||||||
@change="getCites(qualiForm.province)"
|
filterable
|
||||||
>
|
remote
|
||||||
<el-option
|
multiple
|
||||||
v-for="item in proviceOptions"
|
reserve-keyword
|
||||||
:key="item.id"
|
:remote-method="searchCity"
|
||||||
:label="item.name"
|
:loading="loading"
|
||||||
:value="item.id">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
<el-select
|
|
||||||
v-model="qualiForm.city"
|
|
||||||
placeholder="所在市"
|
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in cityOptions"
|
v-for="item in cityOptions"
|
||||||
|
@ -366,6 +353,11 @@
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
v-model="qualiForm.city"
|
v-model="qualiForm.city"
|
||||||
placeholder="所在市"
|
placeholder="所在市"
|
||||||
|
filterable
|
||||||
|
remote
|
||||||
|
reserve-keyword
|
||||||
|
:remote-method="searchCity"
|
||||||
|
:loading="loading"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in cityOptions"
|
v-for="item in cityOptions"
|
||||||
|
@ -467,22 +459,14 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="备案城市" v-if="qualiForm.type==='OTHER'">
|
<el-form-item label="备案城市" v-if="qualiForm.type==='OTHER'">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="qualiForm.province"
|
v-model="qualiForm.citys"
|
||||||
placeholder="省份"
|
placeholder="备案城市"
|
||||||
clearable
|
style="width: 100%;"
|
||||||
disabled
|
filterable
|
||||||
>
|
remote
|
||||||
<el-option
|
multiple
|
||||||
v-for="item in proviceOptions"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.id">
|
|
||||||
</el-option>
|
|
||||||
</el-select>
|
|
||||||
<el-select
|
|
||||||
v-model="qualiForm.city"
|
|
||||||
placeholder="所在市"
|
|
||||||
disabled
|
disabled
|
||||||
|
reserve-keyword
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in cityOptions"
|
v-for="item in cityOptions"
|
||||||
|
@ -496,7 +480,6 @@
|
||||||
<el-select
|
<el-select
|
||||||
v-model="qualiForm.province"
|
v-model="qualiForm.province"
|
||||||
placeholder="省份"
|
placeholder="省份"
|
||||||
clearable
|
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
disabled
|
disabled
|
||||||
>
|
>
|
||||||
|
@ -598,6 +581,7 @@
|
||||||
taskList: {count: 0,},
|
taskList: {count: 0,},
|
||||||
recordList: {count: 0,},
|
recordList: {count: 0,},
|
||||||
drawer: false,
|
drawer: false,
|
||||||
|
loading: false,
|
||||||
showForm: false,
|
showForm: false,
|
||||||
multiple: true,
|
multiple: true,
|
||||||
listLoading: false,
|
listLoading: false,
|
||||||
|
@ -684,8 +668,22 @@
|
||||||
getProvince(){
|
getProvince(){
|
||||||
provinceLists({page:1,page_size:60}).then(res=>{
|
provinceLists({page:1,page_size:60}).then(res=>{
|
||||||
this.proviceOptions = res.data.results;
|
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){
|
getCites(province){
|
||||||
this.qualiForm.city ='';
|
this.qualiForm.city ='';
|
||||||
cityLists({parent:province,page:1,page_size:100}).then(res=>{
|
cityLists({parent:province,page:1,page_size:100}).then(res=>{
|
||||||
|
@ -818,6 +816,7 @@
|
||||||
that.$refs[form].validate((valid) => {
|
that.$refs[form].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if(that.qualiForm.type==='OTHER'){
|
if(that.qualiForm.type==='OTHER'){
|
||||||
|
that.qualiForm.citys=[];
|
||||||
let city = parseInt(that.qualiForm.city);
|
let city = parseInt(that.qualiForm.city);
|
||||||
let province = parseInt(that.qualiForm.province);
|
let province = parseInt(that.qualiForm.province);
|
||||||
that.qualiForm.citys.push(province);
|
that.qualiForm.citys.push(province);
|
||||||
|
@ -827,7 +826,7 @@
|
||||||
obj.qtask = that.qtask;
|
obj.qtask = that.qtask;
|
||||||
obj.value2 = that.qualiForm;
|
obj.value2 = that.qualiForm;
|
||||||
if(obj.value2.grade===''){
|
if(obj.value2.grade===''){
|
||||||
obj.value2.grade=null
|
obj.value2.grade=null;
|
||||||
}
|
}
|
||||||
const isEdit = that.dialogType === "edit";
|
const isEdit = that.dialogType === "edit";
|
||||||
if (isEdit) {
|
if (isEdit) {
|
||||||
|
|
Loading…
Reference in New Issue