|
|
@ -31,7 +31,7 @@
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-form-item label="租户参数类别" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-form-item label="租户参数类别" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-select
|
|
|
|
<!-- <a-select
|
|
|
|
placeholder="请选择租户参数类别"
|
|
|
|
placeholder="请选择租户参数类别"
|
|
|
|
v-decorator="['paraCode', { rules: [{ required: true, message: '请选择租户参数类别!' }] }]"
|
|
|
|
v-decorator="['paraCode', { rules: [{ required: true, message: '请选择租户参数类别!' }] }]"
|
|
|
|
@change="FnChangeTypeCode"
|
|
|
|
@change="FnChangeTypeCode"
|
|
|
@ -39,6 +39,21 @@
|
|
|
|
<a-select-option v-for="item in TypeData" :key="item.id" :value="item.paraCode">
|
|
|
|
<a-select-option v-for="item in TypeData" :key="item.id" :value="item.paraCode">
|
|
|
|
{{ item.paraName }}
|
|
|
|
{{ item.paraName }}
|
|
|
|
</a-select-option>
|
|
|
|
</a-select-option>
|
|
|
|
|
|
|
|
</a-select> -->
|
|
|
|
|
|
|
|
<a-select
|
|
|
|
|
|
|
|
placeholder="请选择租户参数类别"
|
|
|
|
|
|
|
|
v-decorator="['paraCode', { rules: [{ required: true, message: '请选择租户参数类别!' }] }]"
|
|
|
|
|
|
|
|
@change="FnChangeTypeCode"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-select-opt-group
|
|
|
|
|
|
|
|
v-for="(item, index) in WTypeData"
|
|
|
|
|
|
|
|
:key="`W${index}`"
|
|
|
|
|
|
|
|
:label="FnTypeD(item[0].type)"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a-select-option v-for="item2 in item" :key="item2.id" :value="item2.paraCode">
|
|
|
|
|
|
|
|
{{ item2.paraName }}
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
|
|
|
|
</a-select-opt-group>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
@ -62,11 +77,16 @@
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="19">
|
|
|
|
<a-col :span="8">
|
|
|
|
<a-form-item label="备注" :labelCol="labelCol2" :wrapperCol="wrapperCol2" has-feedback>
|
|
|
|
<a-form-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
<a-input placeholder="请输入备注" v-decorator="['remark']" />
|
|
|
|
<a-input placeholder="请输入备注" v-decorator="['remark']" />
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
|
|
|
<a-form-item label="排序" :labelCol="labelCol" :wrapperCol="wrapperCol" has-feedback>
|
|
|
|
|
|
|
|
<a-input-number v-decorator="['sort']" />
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
</a-row>
|
|
|
|
</a-form>
|
|
|
|
</a-form>
|
|
|
|
</a-spin>
|
|
|
|
</a-spin>
|
|
|
@ -80,10 +100,12 @@ import {
|
|
|
|
SysTenantPage,
|
|
|
|
SysTenantPage,
|
|
|
|
DJYTenantParamGetParamItem
|
|
|
|
DJYTenantParamGetParamItem
|
|
|
|
} from '@/api/modular/main/DJYTenantParam'
|
|
|
|
} from '@/api/modular/main/DJYTenantParam'
|
|
|
|
|
|
|
|
import { sysDictDataPage } from '@/api/modular/system/dictDataManage'
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
TypeData: [],
|
|
|
|
TypeData: [],
|
|
|
|
|
|
|
|
WTypeData: [],
|
|
|
|
labelCol: {
|
|
|
|
labelCol: {
|
|
|
|
xs: { span: 24 },
|
|
|
|
xs: { span: 24 },
|
|
|
|
sm: { span: 7 }
|
|
|
|
sm: { span: 7 }
|
|
|
@ -107,20 +129,54 @@ export default {
|
|
|
|
data: {},
|
|
|
|
data: {},
|
|
|
|
TenantData: [],
|
|
|
|
TenantData: [],
|
|
|
|
ItemData: [],
|
|
|
|
ItemData: [],
|
|
|
|
ItemCodeDisabled: true
|
|
|
|
ItemCodeDisabled: true,
|
|
|
|
|
|
|
|
YWData: []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
DJYTenantParamGet({ pageNo: 1, pageSize: 999 }).then(res => {
|
|
|
|
DJYTenantParamGet({ pageNo: 1, pageSize: 999 }).then(res => {
|
|
|
|
this.TypeData = res.data
|
|
|
|
this.TypeData = res.data
|
|
|
|
console.log(this.TypeData)
|
|
|
|
let data = []
|
|
|
|
|
|
|
|
let type = ''
|
|
|
|
|
|
|
|
let num = -1
|
|
|
|
|
|
|
|
res.data.forEach(item => {
|
|
|
|
|
|
|
|
if (type != item.type) {
|
|
|
|
|
|
|
|
num = num + 1
|
|
|
|
|
|
|
|
type = item.type
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// if (data.length == 0) {
|
|
|
|
|
|
|
|
if (data[num]) {
|
|
|
|
|
|
|
|
data[num].push(item)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
data[num] = []
|
|
|
|
|
|
|
|
data[num].push(item)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
this.WTypeData = data
|
|
|
|
|
|
|
|
console.log(data)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
sysDictDataPage({ pageNo: 1, pageSize: 999, typeId: '353559512399941' }).then(res => {
|
|
|
|
|
|
|
|
this.YWData = res.data.rows
|
|
|
|
})
|
|
|
|
})
|
|
|
|
SysTenantPage({ pageNo: 1, pageSize: 9999, name: '' }).then(res => {
|
|
|
|
SysTenantPage({ pageNo: 1, pageSize: 9999, name: '' }).then(res => {
|
|
|
|
this.TenantData = res.data.rows
|
|
|
|
this.TenantData = res.data.rows
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
FnTypeD(data) {
|
|
|
|
|
|
|
|
let Rdata = ''
|
|
|
|
|
|
|
|
this.YWData.forEach(item => {
|
|
|
|
|
|
|
|
if (item.code == data) {
|
|
|
|
|
|
|
|
Rdata = item.value
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
return Rdata
|
|
|
|
|
|
|
|
},
|
|
|
|
FnChangeTypeCode(e) {
|
|
|
|
FnChangeTypeCode(e) {
|
|
|
|
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
|
|
|
|
itemCode: ''
|
|
|
|
|
|
|
|
})
|
|
|
|
if (e) {
|
|
|
|
if (e) {
|
|
|
|
this.ItemCodeDisabled = false
|
|
|
|
this.ItemCodeDisabled = false
|
|
|
|
DJYTenantParamGetParamItem({ paraCode: e }).then(res => {
|
|
|
|
DJYTenantParamGetParamItem({ paraCode: e }).then(res => {
|
|
|
@ -149,6 +205,7 @@ export default {
|
|
|
|
itemCode: record.itemCode,
|
|
|
|
itemCode: record.itemCode,
|
|
|
|
itemName: record.itemName,
|
|
|
|
itemName: record.itemName,
|
|
|
|
remark: record.remark,
|
|
|
|
remark: record.remark,
|
|
|
|
|
|
|
|
sort: record.sort,
|
|
|
|
tenantId: record.tenantId
|
|
|
|
tenantId: record.tenantId
|
|
|
|
})
|
|
|
|
})
|
|
|
|
console.log(this.form.getFieldsValue())
|
|
|
|
console.log(this.form.getFieldsValue())
|
|
|
|