Merge branch 'huyt' of http://ufidahz.com.cn:9015/root/middleground_code_v2 into huyt
# Conflicts: # vue.config.js
This commit is contained in:
commit
bc96411829
|
@ -398,7 +398,7 @@ export default {
|
||||||
obj = item
|
obj = item
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.$emit('onSelect', val, index, indexRow, obj)
|
this.$emit('onSelect', val, index, indexRow, obj,options,this.ruleForm,row)
|
||||||
if (row.changeRemind) {
|
if (row.changeRemind) {
|
||||||
this.$emit('changeRemind', this.ruleForm)
|
this.$emit('changeRemind', this.ruleForm)
|
||||||
}
|
}
|
||||||
|
|
|
@ -292,7 +292,15 @@ export default {
|
||||||
{
|
{
|
||||||
label: '<',
|
label: '<',
|
||||||
value: '4'
|
value: '4'
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
label: 'like',
|
||||||
|
value: '5'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'notLike',
|
||||||
|
value: '6'
|
||||||
|
},
|
||||||
|
|
||||||
],//对比类型options
|
],//对比类型options
|
||||||
connectionSymbolOptions: [
|
connectionSymbolOptions: [
|
||||||
|
@ -557,7 +565,6 @@ export default {
|
||||||
label: item.name
|
label: item.name
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
//编辑获取数据
|
//编辑获取数据
|
||||||
async getrowDetails(id) {
|
async getrowDetails(id) {
|
||||||
|
|
|
@ -35,7 +35,7 @@ const tableColumnData = [
|
||||||
{
|
{
|
||||||
label: '名称',
|
label: '名称',
|
||||||
prop: 'rightName'
|
prop: 'rightName'
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
const tableVersionColumn = [
|
const tableVersionColumn = [
|
||||||
{
|
{
|
||||||
|
@ -65,34 +65,26 @@ const formRow = [
|
||||||
label: '左应用编码',
|
label: '左应用编码',
|
||||||
prop: 'leftAppCode',
|
prop: 'leftAppCode',
|
||||||
tag: 'elInput',
|
tag: 'elInput',
|
||||||
span: 12
|
span: 12,
|
||||||
|
disabled: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '左应用名称',
|
label: '左应用名称',
|
||||||
prop: 'leftAppName',
|
prop: 'leftAppName',
|
||||||
tag: 'elInput',
|
tag: 'elSelect',
|
||||||
span: 12
|
span: 12,
|
||||||
|
options: []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
elCol: [
|
elCol: [
|
||||||
{
|
|
||||||
label: '主键',
|
|
||||||
prop: 'leftId',
|
|
||||||
tag: 'elInput',
|
|
||||||
span: 12
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: '编码',
|
label: '编码',
|
||||||
prop: 'leftCode',
|
prop: 'leftCode',
|
||||||
tag: 'elInput',
|
tag: 'elInput',
|
||||||
span: 12
|
span: 12
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
|
||||||
elCol: [
|
|
||||||
{
|
{
|
||||||
label: '名称',
|
label: '名称',
|
||||||
prop: 'leftName',
|
prop: 'leftName',
|
||||||
|
@ -101,46 +93,44 @@ const formRow = [
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{},
|
||||||
{
|
{
|
||||||
elCol: [
|
elCol: [
|
||||||
{
|
{
|
||||||
label: '应用编码',
|
label: '右应用编码',
|
||||||
prop: 'rightAppCode',
|
prop: 'rightAppCode',
|
||||||
tag: 'elInput',
|
tag: 'elInput',
|
||||||
span: 12
|
span: 12,
|
||||||
|
disabled: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '应用名称',
|
label: '右应用名称',
|
||||||
prop: 'rightAppName',
|
prop: 'rightAppName',
|
||||||
tag: 'elInput',
|
tag: 'elSelect',
|
||||||
span: 12
|
span: 12,
|
||||||
|
options: []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
elCol: [
|
elCol: [
|
||||||
{
|
|
||||||
label: '主键',
|
|
||||||
prop: 'rightId',
|
|
||||||
tag: 'elInput',
|
|
||||||
span: 12
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: '编码',
|
label: '编码',
|
||||||
prop: 'rightCode',
|
prop: 'rightCode',
|
||||||
tag: 'elInput',
|
tag: 'elInput',
|
||||||
span: 12
|
span: 12
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
|
||||||
elCol: [
|
|
||||||
{
|
{
|
||||||
label: '名称',
|
label: '名称',
|
||||||
prop: 'rightName',
|
prop: 'rightName',
|
||||||
tag: 'elInput',
|
tag: 'elInput',
|
||||||
span: 12
|
span: 12
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
elCol: [
|
||||||
|
|
||||||
{
|
{
|
||||||
label: '排序',
|
label: '排序',
|
||||||
prop: 'sorts',
|
prop: 'sorts',
|
||||||
|
@ -159,40 +149,37 @@ const peopleFormRow = [
|
||||||
label: '左应用编码',
|
label: '左应用编码',
|
||||||
prop: 'leftAppCode',
|
prop: 'leftAppCode',
|
||||||
tag: 'elInput',
|
tag: 'elInput',
|
||||||
span: 12
|
span: 12,
|
||||||
|
disabled: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '左应用名称',
|
label: '左应用名称',
|
||||||
prop: 'leftAppName',
|
prop: 'leftAppName',
|
||||||
tag: 'elInput',
|
tag: 'elSelect',
|
||||||
span: 12
|
span: 12,
|
||||||
|
options: []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
elCol: [
|
elCol: [
|
||||||
{
|
|
||||||
label: '主键',
|
|
||||||
prop: 'leftId',
|
|
||||||
tag: 'elInput',
|
|
||||||
span: 12
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: '编码',
|
label: '编码',
|
||||||
prop: 'leftCode',
|
prop: 'leftCode',
|
||||||
tag: 'elInput',
|
tag: 'elInput',
|
||||||
span: 12
|
span: 12
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
|
||||||
elCol: [
|
|
||||||
{
|
{
|
||||||
label: '名称',
|
label: '名称',
|
||||||
prop: 'leftName',
|
prop: 'leftName',
|
||||||
tag: 'elInput',
|
tag: 'elInput',
|
||||||
span: 12
|
span: 12
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
elCol: [
|
||||||
|
|
||||||
{
|
{
|
||||||
label: '手机号',
|
label: '手机号',
|
||||||
prop: 'leftTel',
|
prop: 'leftTel',
|
||||||
|
@ -200,77 +187,70 @@ const peopleFormRow = [
|
||||||
type: 'number',
|
type: 'number',
|
||||||
span: 12
|
span: 12
|
||||||
},
|
},
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
elCol: [
|
|
||||||
{
|
{
|
||||||
label: '身份证号',
|
label: '身份证号',
|
||||||
prop: 'leftIc',
|
prop: 'leftIc',
|
||||||
tag: 'elInput',
|
tag: 'elInput',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
span: 12
|
span: 12
|
||||||
},
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
elCol: [
|
|
||||||
{
|
|
||||||
label: '应用编码',
|
|
||||||
prop: 'rightAppCode',
|
|
||||||
tag: 'elInput',
|
|
||||||
span: 12
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '应用名称',
|
|
||||||
prop: 'rightAppName',
|
|
||||||
tag: 'elInput',
|
|
||||||
span: 12
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
elCol: [
|
elCol: [
|
||||||
{
|
{
|
||||||
label: '主键',
|
label: '右应用编码',
|
||||||
prop: 'rightId',
|
prop: 'rightAppCode',
|
||||||
tag: 'elInput',
|
tag: 'elInput',
|
||||||
span: 12
|
span: 12,
|
||||||
|
disabled: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: '右应用名称',
|
||||||
|
prop: 'rightAppName',
|
||||||
|
tag: 'elSelect',
|
||||||
|
span: 12,
|
||||||
|
options: []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
elCol: [
|
||||||
{
|
{
|
||||||
label: '编码',
|
label: '编码',
|
||||||
prop: 'rightCode',
|
prop: 'rightCode',
|
||||||
tag: 'elInput',
|
tag: 'elInput',
|
||||||
span: 12
|
span: 12
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
|
||||||
elCol: [
|
|
||||||
{
|
{
|
||||||
label: '名称',
|
label: '名称',
|
||||||
prop: 'rightName',
|
prop: 'rightName',
|
||||||
tag: 'elInput',
|
tag: 'elInput',
|
||||||
span: 12
|
span: 12
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
elCol: [
|
||||||
|
|
||||||
{
|
{
|
||||||
label: '手机号',
|
label: '手机号',
|
||||||
prop: 'rightTel',
|
prop: 'rightTel',
|
||||||
tag: 'elInput',
|
tag: 'elInput',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
span: 12
|
span: 12
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
|
||||||
elCol: [
|
|
||||||
{
|
{
|
||||||
label: '身份证号',
|
label: '身份证号',
|
||||||
prop: 'rightIc',
|
prop: 'rightIc',
|
||||||
tag: 'elInput',
|
tag: 'elInput',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
span: 12
|
span: 12
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
elCol: [
|
||||||
{
|
{
|
||||||
label: '排序',
|
label: '排序',
|
||||||
prop: 'sorts',
|
prop: 'sorts',
|
||||||
|
@ -279,7 +259,7 @@ const peopleFormRow = [
|
||||||
span: 12
|
span: 12
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
const basicsRules = {
|
const basicsRules = {
|
||||||
leftCode: [{
|
leftCode: [{
|
||||||
|
@ -301,7 +281,7 @@ const basicsRules = {
|
||||||
required: true,
|
required: true,
|
||||||
message: '请填写名称',
|
message: '请填写名称',
|
||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
}],
|
}]
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查看
|
// 查看
|
||||||
|
|
|
@ -154,32 +154,38 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.initSelect()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 插件下拉
|
onSelect(val, index, indexRow, obj, op, form, row) {
|
||||||
async initSelect() {
|
if (row.prop === 'leftAppName') {
|
||||||
let res = await authApi(
|
this.$set(form, 'leftAppCode', obj.code)
|
||||||
'pluginService',
|
this.$set(form, 'leftAppId', obj.value)
|
||||||
'plugins',
|
this.$set(form, 'leftAppName', obj.label)
|
||||||
'queryPluginsByType',
|
|
||||||
'',
|
|
||||||
{
|
|
||||||
'pluginType': '1'
|
|
||||||
}
|
}
|
||||||
)
|
if (row.prop === 'rightAppName') {
|
||||||
if (res.status == 200) {
|
this.$set(form, 'rightAppCode', obj.code)
|
||||||
console.log(res.attribute)
|
this.$set(form, 'rightAppId', obj.value)
|
||||||
res.attribute.forEach(item => {
|
this.$set(form, 'rightAppName', obj.label)
|
||||||
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) {
|
async initSelect() {
|
||||||
this.$set(this.$refs.basicsForm.ruleForm, 'plugName', this.select_dist[val]['pluginName'])
|
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) {
|
openDialog(type, row, treeType) {
|
||||||
this.treeType = treeType
|
this.treeType = treeType
|
||||||
|
@ -189,6 +195,7 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
this.formRow = configData.formRow
|
this.formRow = configData.formRow
|
||||||
}
|
}
|
||||||
|
this.initSelect()
|
||||||
// this.queryProductClassfy();
|
// this.queryProductClassfy();
|
||||||
this.submitShow = true
|
this.submitShow = true
|
||||||
this.isEdit = false
|
this.isEdit = false
|
||||||
|
|
Loading…
Reference in New Issue