# Conflicts:
#	vue.config.js
This commit is contained in:
username 2024-09-10 13:43:22 +08:00
commit bc96411829
4 changed files with 103 additions and 109 deletions

View File

@ -398,7 +398,7 @@ export default {
obj = item
}
})
this.$emit('onSelect', val, index, indexRow, obj)
this.$emit('onSelect', val, index, indexRow, obj,options,this.ruleForm,row)
if (row.changeRemind) {
this.$emit('changeRemind', this.ruleForm)
}

View File

@ -292,7 +292,15 @@ export default {
{
label: '<',
value: '4'
}
},
{
label: 'like',
value: '5'
},
{
label: 'notLike',
value: '6'
},
],//options
connectionSymbolOptions: [
@ -557,7 +565,6 @@ export default {
label: item.name
})
})
},
//
async getrowDetails(id) {

View File

@ -35,7 +35,7 @@ const tableColumnData = [
{
label: '名称',
prop: 'rightName'
},
}
]
const tableVersionColumn = [
{
@ -65,34 +65,26 @@ const formRow = [
label: '左应用编码',
prop: 'leftAppCode',
tag: 'elInput',
span: 12
span: 12,
disabled: true
},
{
label: '左应用名称',
prop: 'leftAppName',
tag: 'elInput',
span: 12
tag: 'elSelect',
span: 12,
options: []
}
]
},
{
elCol: [
{
label: '主键',
prop: 'leftId',
tag: 'elInput',
span: 12
},
{
label: '编码',
prop: 'leftCode',
tag: 'elInput',
span: 12
}
]
},
{
elCol: [
},
{
label: '名称',
prop: 'leftName',
@ -101,46 +93,44 @@ const formRow = [
}
]
},
{},
{
elCol: [
{
label: '应用编码',
label: '应用编码',
prop: 'rightAppCode',
tag: 'elInput',
span: 12
span: 12,
disabled: true
},
{
label: '应用名称',
label: '应用名称',
prop: 'rightAppName',
tag: 'elInput',
span: 12
tag: 'elSelect',
span: 12,
options: []
}
]
},
{
elCol: [
{
label: '主键',
prop: 'rightId',
tag: 'elInput',
span: 12
},
{
label: '编码',
prop: 'rightCode',
tag: 'elInput',
span: 12
}
]
},
{
elCol: [
},
{
label: '名称',
prop: 'rightName',
tag: 'elInput',
span: 12
},
}
]
},
{
elCol: [
{
label: '排序',
prop: 'sorts',
@ -159,40 +149,37 @@ const peopleFormRow = [
label: '左应用编码',
prop: 'leftAppCode',
tag: 'elInput',
span: 12
span: 12,
disabled: true
},
{
label: '左应用名称',
prop: 'leftAppName',
tag: 'elInput',
span: 12
tag: 'elSelect',
span: 12,
options: []
}
]
},
{
elCol: [
{
label: '主键',
prop: 'leftId',
tag: 'elInput',
span: 12
},
{
label: '编码',
prop: 'leftCode',
tag: 'elInput',
span: 12
}
]
},
{
elCol: [
},
{
label: '名称',
prop: 'leftName',
tag: 'elInput',
span: 12
},
}
]
},
{
elCol: [
{
label: '手机号',
prop: 'leftTel',
@ -200,77 +187,70 @@ const peopleFormRow = [
type: 'number',
span: 12
},
]
},
{
elCol: [
{
label: '身份证号',
prop: 'leftIc',
tag: 'elInput',
type: 'number',
span: 12
},
]
},
{
elCol: [
{
label: '应用编码',
prop: 'rightAppCode',
tag: 'elInput',
span: 12
},
{
label: '应用名称',
prop: 'rightAppName',
tag: 'elInput',
span: 12
}
]
},
{
elCol: [
{
label: '主键',
prop: 'rightId',
label: '右应用编码',
prop: 'rightAppCode',
tag: 'elInput',
span: 12
span: 12,
disabled: true
},
{
label: '右应用名称',
prop: 'rightAppName',
tag: 'elSelect',
span: 12,
options: []
}
]
},
{
elCol: [
{
label: '编码',
prop: 'rightCode',
tag: 'elInput',
span: 12
}
]
},
{
elCol: [
},
{
label: '名称',
prop: 'rightName',
tag: 'elInput',
span: 12
},
}
]
},
{
elCol: [
{
label: '手机号',
prop: 'rightTel',
tag: 'elInput',
type: 'number',
span: 12
}
]
},
{
elCol: [
},
{
label: '身份证号',
prop: 'rightIc',
tag: 'elInput',
type: 'number',
span: 12
},
}
]
},
{
elCol: [
{
label: '排序',
prop: 'sorts',
@ -279,7 +259,7 @@ const peopleFormRow = [
span: 12
}
]
},
}
]
const basicsRules = {
leftCode: [{
@ -301,7 +281,7 @@ const basicsRules = {
required: true,
message: '请填写名称',
trigger: 'blur'
}],
}]
}
// 查看

View File

@ -154,32 +154,38 @@ export default {
}
},
mounted() {
this.initSelect()
},
methods: {
//
async initSelect() {
let res = await authApi(
'pluginService',
'plugins',
'queryPluginsByType',
'',
{
'pluginType': '1'
}
)
if (res.status == 200) {
console.log(res.attribute)
res.attribute.forEach(item => {
this.$set(this.select_dist, item.pluginId, item)
})
console.log(res.attribute, 'res.attribute插件返回')
this.formRow[0].elCol[0].options = res.attribute
onSelect(val, index, indexRow, obj, op, form, row) {
if (row.prop === 'leftAppName') {
this.$set(form, 'leftAppCode', obj.code)
this.$set(form, 'leftAppId', obj.value)
this.$set(form, 'leftAppName', obj.label)
}
if (row.prop === 'rightAppName') {
this.$set(form, 'rightAppCode', obj.code)
this.$set(form, 'rightAppId', obj.value)
this.$set(form, 'rightAppName', obj.label)
}
},
//
onSelect(val, index, indexRow, obj) {
this.$set(this.$refs.basicsForm.ruleForm, 'plugName', this.select_dist[val]['pluginName'])
//
async initSelect() {
const res = await authApi('sysApplicationService', '', 'queryEntity', '', {})
console.log(res)
this.formRow[0].elCol[1].options = []
res.attribute.forEach(item => {
this.formRow[0].elCol[1].options.push({
value: item.id,
label: item.name,
code: item.appId
})
this.formRow[3].elCol[1].options.push({
value: item.id,
label: item.name,
code: item.appId
})
})
},
openDialog(type, row, treeType) {
this.treeType = treeType
@ -189,6 +195,7 @@ export default {
} else {
this.formRow = configData.formRow
}
this.initSelect()
// this.queryProductClassfy();
this.submitShow = true
this.isEdit = false