Commit cdcea7bb by 西瓜

Merge branch 'gab_bz' of http://47.92.108.28/changchao/founder_vue into gab_bz

parents fc2d0b9a 479cddc9
......@@ -260,11 +260,13 @@ export default {
},
initCode() {
let self = this;
debugger
self.ajxxDefaultField.data.forEach((val,index) => {
if (val.type == "code"||val.type == "codeTreeDialog") {
if (val.codeOptions.length == 0) {
axios.get(`JsonData/${val.codeTree}.json`).then(response => {
if (response.success === true) {
debugger
self.$set(val, "codeOptions", response.data.rows);
}
});
......@@ -278,7 +280,7 @@ export default {
if (val.type == "code"||val.type == "codeTreeDialog") {
if (val.codeOptions.length == 0) {
axios.get(`JsonData/${val.codeTree}.json`).then(response => {
if (response.success === true) {
if (response.success) {
self.$set(val, "codeOptions", response.data.rows);
}
});
......
......@@ -205,6 +205,19 @@ export default {
},
newValue(val) {
// if (val != '') {
// let value = this.queryTree(this.curItem.codeOptions, val)[0];
// this.codeTreeConfig.fieldItem = [];
// this.$set(
// this.curFormData,
// this.curItem.id,
// value == undefined ? '' : val
// );
// this.codeTreeConfig.fieldItem.push({
// id: val,
// label: value == undefined ? '' : value
// })
// }
if (val != '') {
let value = this.queryTree(this.curItem.codeOptions, val)[0];
this.codeTreeConfig.fieldItem = [];
......@@ -218,7 +231,6 @@ export default {
label: value == undefined ? '' : value
})
}
}
/*curFormData(val){
if(val[this.id]!=''){
......
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