Commit 102d9fe7 by 董有沛

细节修改

parent a7eeecc2
...@@ -409,7 +409,7 @@ ...@@ -409,7 +409,7 @@
if(this.modifyForm.roleId.substring(0,2) == '0,'){ if(this.modifyForm.roleId.substring(0,2) == '0,'){
// 剔除 '0,' // 剔除 '0,'
this.addForm.roleId = this.addForm.roleId.substring(2); this.modifyForm.roleId = this.modifyForm.roleId.substring(2);
} }
//修改数据 //修改数据
...@@ -554,11 +554,7 @@ ...@@ -554,11 +554,7 @@
let textlist = new Array(); let textlist = new Array();
let pObj = {}; let pObj = {};
list.forEach(element => { list.forEach(element => {
/*if(element.plist){
element.plist.forEach(item2 =>{
textlist.push(item2);
})
}*/
if(element !== undefined){ if(element !== undefined){
if(!pObj[element.pId]){ if(!pObj[element.pId]){
pObj[element.pId] = {len:element.plen,list:[element.id]} pObj[element.pId] = {len:element.plen,list:[element.id]}
...@@ -566,7 +562,6 @@ ...@@ -566,7 +562,6 @@
pObj[element.pId].list.push(element.id) pObj[element.pId].list.push(element.id)
} }
} }
//textlist.push(element.id);
}); });
for (let name in pObj) { for (let name in pObj) {
if(pObj[name].len === pObj[name].list.length){ if(pObj[name].len === pObj[name].list.length){
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</a-col> </a-col>
<span class="table-page-search-submitButtons" style="float: left; overflow: hidden;"> <span class="table-page-search-submitButtons" style="float: left; overflow: hidden;">
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
<a-button @click="search()" type="primary">查询</a-button> <a-button @click="search()" type="primary">查询1</a-button>
<a-button @click="openAllocation()" style="margin-left: 8px" icon="plus" type="primary">新增</a-button> <a-button @click="openAllocation()" style="margin-left: 8px" icon="plus" type="primary">新增</a-button>
</a-col> </a-col>
</span> </span>
...@@ -171,9 +171,10 @@ ...@@ -171,9 +171,10 @@
}, },
methods:{ methods:{
onLoad(){ onLoad(){
alert(); let params = [];
params.substName = "";
// 获取县分下拉清单 // 获取县分下拉清单
getSubstList(Object.assign(params,obj)).then(res => { getSubstList(params).then(res => {
if (res.state == 'success') { if (res.state == 'success') {
res.data.forEach((key)=>{ res.data.forEach((key)=>{
this.subNameList.push(key.sub_name) this.subNameList.push(key.sub_name)
...@@ -185,7 +186,7 @@ ...@@ -185,7 +186,7 @@
this.$refs.table.refresh({search: true}) this.$refs.table.refresh({search: true})
}, },
openAllocation() { openAllocation() {
this.titleName = "添加学校分配"; this.titleName = "添加学校2323分配";
this.modifyvisible = true; this.modifyvisible = true;
}, },
//提交表单 //提交表单
...@@ -228,9 +229,9 @@ ...@@ -228,9 +229,9 @@
this.$message.error(res.data ? res.data : '删除失败!', 5); this.$message.error(res.data ? res.data : '删除失败!', 5);
}) })
}, },
changeSubst(type){ changeSubst(){
let schoolParams = {}; let schoolParams = {};
schoolParams.subName = this.modifyForm.subName; schoolParams.substName = this.modifyForm.subName;
this.schoolList = []; this.schoolList = [];
getSchoolList(schoolParams).then(res => { getSchoolList(schoolParams).then(res => {
...@@ -243,7 +244,7 @@ ...@@ -243,7 +244,7 @@
}, },
changeSchool(schoolId){ changeSchool(schoolId){
let schoolParams = {}; let schoolParams = {};
schoolParams.subName = this.modifyForm.subName; schoolParams.substName = this.modifyForm.subName;
this.schoolList = []; this.schoolList = [];
getSchoolList(schoolParams).then(res => { getSchoolList(schoolParams).then(res => {
......
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