Browse Source

修改模板内部接口

master
xiaobai 3 years ago
parent
commit
d0f610ecd5
  1. 22
      src/components/drawerDialog/index.vue

22
src/components/drawerDialog/index.vue

@ -808,7 +808,7 @@ export default {
this.listQuery.templateId = this.id this.listQuery.templateId = this.id
this.form.templateId = this.id this.form.templateId = this.id
this.formLabelAlign.templateId = this.id this.formLabelAlign.templateId = this.id
console.log(this.id, 6666)
if (this.id) { if (this.id) {
this.loadFormData(this.index) this.loadFormData(this.index)
this.getList() this.getList()
@ -823,7 +823,7 @@ export default {
this.getTemplateIdentification() this.getTemplateIdentification()
}, },
getJylbList() { getJylbList() {
this.getCategoryList('jylb', null, null) this.getNeibuList('jylb', null, null)
}, },
addTemFn() { addTemFn() {
this.dialogVisible1 = true this.dialogVisible1 = true
@ -1002,7 +1002,7 @@ export default {
getNblbListByJylb(val) { getNblbListByJylb(val) {
const sbzl = this.formTemplate.shebeizhongleidaima const sbzl = this.formTemplate.shebeizhongleidaima
this.neibuleibie = [] this.neibuleibie = []
this.getCategoryList('nblb', val, sbzl) this.getNeibuList('nblb', val, sbzl)
}, },
handleClick(e) { handleClick(e) {
this.activeName = e.index this.activeName = e.index
@ -1015,8 +1015,7 @@ export default {
// //
const jylb = this.formTemplate.jianyanleibie const jylb = this.formTemplate.jianyanleibie
this.neibuleibie = [] this.neibuleibie = []
this.getCategoryList('nblb', jylb, val) this.getNeibuList('nblb', jylb, val)
this.shebeipinzhongdaima = [] this.shebeipinzhongdaima = []
this.sbpzLevelStatus = false this.sbpzLevelStatus = false
this.getSbList( this.getSbList(
@ -1066,23 +1065,16 @@ export default {
} }
} }
}, },
getCategoryList(type, parentCode, species) { getNeibuList(type, parentCode, species) {
this.api({ this.api({
url: '/category/all', url: '/category/getCategoryList',
method: 'get', method: 'get',
params: { params: {
parentCode: parentCode, parentCode: parentCode,
species: species species: species
} }
}).then((data) => { }).then((data) => {
switch (type) {
case 'jylb':
this.jylbList = data
return ''
case 'nblb':
this.nblbList = data this.nblbList = data
return ''
}
}) })
}, },
loadFormData(index) { loadFormData(index) {
@ -1099,7 +1091,7 @@ export default {
) )
this.neibuleibie = JSON.parse(this.formTemplate.neibuleibie) this.neibuleibie = JSON.parse(this.formTemplate.neibuleibie)
this.getDicCodeList(this.formTemplate.bglx) this.getDicCodeList(this.formTemplate.bglx)
this.getCategoryList( this.getNeibuList(
'nblb', 'nblb',
this.formTemplate.jianyanleibie, this.formTemplate.jianyanleibie,
this.formTemplate.shebeizhongleidaima this.formTemplate.shebeizhongleidaima

Loading…
Cancel
Save