Merge branch 'CTP'

ywj_dev
CTP 2 years ago
commit 4b31c1131a

@ -753,10 +753,7 @@ export default {
findConfig() findConfig()
.then((response) => { .then((response) => {
this.configQuery = response.data; this.configQuery = response.data;
console.log( // console.log("this.configQuery", this.configQuery);
"this.configQuery",
<this className="configQuery"></this>
);
this.checkedBusTypes = this.configQuery.busTypes; this.checkedBusTypes = this.configQuery.busTypes;
this.checkedToInBusTypes = this.configQuery.toInBusTypes; this.checkedToInBusTypes = this.configQuery.toInBusTypes;
this.checkedChangeBusTypes = this.configQuery.changeBusTypes; this.checkedChangeBusTypes = this.configQuery.changeBusTypes;

@ -52,6 +52,7 @@
</el-form> </el-form>
<el-table <el-table
v-loading="loading" v-loading="loading"
ref="list"
:data="list" :data="list"
style="width: 100%" style="width: 100%"
highlight-current-row highlight-current-row
@ -576,10 +577,6 @@ export default {
let depList = response.data.list || []; let depList = response.data.list || [];
this.deptOptions = this.handleTree(depList, "code", "pcode"); this.deptOptions = this.handleTree(depList, "code", "pcode");
}); });
console.log(row.id);
// this.$nextTick(() => {
// this.$refs.deptTableRef.setCurrentRow(this.list[row.pid]);
// });
}, },
/* 获取列表 */ /* 获取列表 */
getList() { getList() {
@ -588,12 +585,7 @@ export default {
.then((response) => { .then((response) => {
this.loading = false; this.loading = false;
let depList = response.data.list || []; let depList = response.data.list || [];
// console.log("deplist", depList);
this.list = this.handleTree(depList, "code", "pcode"); this.list = this.handleTree(depList, "code", "pcode");
this.$nextTick(() => {
this.$refs.deptTableRef.setCurrentRow(this.list[0]);
});
console.log(this.list);
}) })
.catch(() => { .catch(() => {
this.loading = false; this.loading = false;
@ -601,7 +593,6 @@ export default {
}); });
}, },
cancelDialog() { cancelDialog() {
tQuer;
this.formVisible = false; this.formVisible = false;
// //
this.$refs["dataForm"].resetFields(); this.$refs["dataForm"].resetFields();

Loading…
Cancel
Save