Commit 2e1b8dc7 by 史敦盼

修改

1 parent baa27cf3
Showing with 38 additions and 38 deletions
...@@ -402,7 +402,7 @@ ...@@ -402,7 +402,7 @@
stripe stripe
border border
> >
<el-table-column type="selection" width="55"></el-table-column> <el-table-column align="center" type="selection" width="55"></el-table-column>
<el-table-column <el-table-column
type="index" type="index"
label="序号" label="序号"
...@@ -684,11 +684,11 @@ ...@@ -684,11 +684,11 @@
style="height: 400px; overflow-y: auto" style="height: 400px; overflow-y: auto"
> >
<div class="form_item_container"> <div class="form_item_container">
<el-form-item label="资产名称:" prop="let1"> <el-form-item label="资产名称:" prop="assetName">
<el-input <el-input
placeholder="请输入内容" placeholder="请输入内容"
v-no-backslash v-no-backslash
v-model="ruleForm.let1" v-model="ruleForm.assetName"
:disabled="is_add_edit == 'view' ? true : false" :disabled="is_add_edit == 'view' ? true : false"
maxlength="100" maxlength="100"
></el-input> ></el-input>
...@@ -702,26 +702,26 @@ ...@@ -702,26 +702,26 @@
maxlength="100" maxlength="100"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="排序:" prop="let2"> <el-form-item label="排序:" prop="sort">
<el-input-number <el-input-number
style="width: 200px" style="width: 200px"
v-model="ruleForm.let2" v-model="ruleForm.sort"
:disabled="is_add_edit == 'view' ? true : false" :disabled="is_add_edit == 'view' ? true : false"
:min="0" :min="0"
></el-input-number> ></el-input-number>
</el-form-item> </el-form-item>
<el-form-item label="是否首页展示:" prop="let3"> <el-form-item label="是否首页展示:" prop="isShow">
<el-radio-group <el-radio-group
:disabled="is_add_edit == 'view' ? true : false" :disabled="is_add_edit == 'view' ? true : false"
v-model="ruleForm.let3" v-model="ruleForm.isShow"
> >
<el-radio label="显示"></el-radio> <el-radio :label="0">显示</el-radio>
<el-radio label="隐藏"></el-radio> <el-radio :label="1">隐藏</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="所属元素:" prop="let4"> <el-form-item label="所属元素:" prop="archiEleId">
<el-select <el-select
v-model="ruleForm.let4" v-model="ruleForm.archiEleId"
@change="zuJianLeiXingSelectChange" @change="zuJianLeiXingSelectChange"
:disabled="is_add_edit == 'view' ? true : false" :disabled="is_add_edit == 'view' ? true : false"
filterable filterable
...@@ -740,7 +740,7 @@ ...@@ -740,7 +740,7 @@
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="上级元素:" label="上级元素:"
v-if="ruleForm.let3 && preArcList.length" v-if="ruleForm.archiEleId && preArcList.length"
> >
<el-select <el-select
@change="handlePreEleChange" @change="handlePreEleChange"
...@@ -1007,10 +1007,10 @@ export default { ...@@ -1007,10 +1007,10 @@ export default {
add_dialog3: false, add_dialog3: false,
is_add_edit: null, is_add_edit: null,
ruleForm: { ruleForm: {
let1: null, assetName: null,
let2: 0, sort: 0,
let3: '显示', isShow: 0,
let4: null, archiEleId: null,
dynamicForm_: [], dynamicForm_: [],
color: '', color: '',
icon: '', icon: '',
...@@ -1019,14 +1019,14 @@ export default { ...@@ -1019,14 +1019,14 @@ export default {
parentAssetName: '', parentAssetName: '',
}, },
rules: { rules: {
let1: [ assetName: [
{ required: true, message: '请输入架构组件名称', trigger: 'blur' }, { required: true, message: '请输入资产名称', trigger: 'blur' },
], ],
assetNumber: [ assetNumber: [
{ required: true, message: '请输入资产编号', trigger: 'blur' }, { required: true, message: '请输入资产编号', trigger: 'blur' },
], ],
let4: [ archiEleId: [
{ required: true, message: '请选择组件类型', trigger: 'change' }, { required: true, message: '请选择所属元素', trigger: 'change' },
], ],
icon: [{ required: true, message: '请选择图形', trigger: 'change' }], icon: [{ required: true, message: '请选择图形', trigger: 'change' }],
}, },
...@@ -1135,7 +1135,7 @@ export default { ...@@ -1135,7 +1135,7 @@ export default {
this.selectValue = selectedObject.assetId this.selectValue = selectedObject.assetId
this.selectLabel = selectedObject.assetName this.selectLabel = selectedObject.assetName
this.selectCode = selectedObject.assetCode this.selectCode = selectedObject.assetCode
this.ruleForm.let2 = selectedObject.assetName this.ruleForm.sort = selectedObject.assetName
}, },
findObjectById(items, id) { findObjectById(items, id) {
for (let i = 0; i < items.length; i++) { for (let i = 0; i < items.length; i++) {
...@@ -1557,14 +1557,14 @@ export default { ...@@ -1557,14 +1557,14 @@ export default {
this.getZuJianLeiXingSelect(null) this.getZuJianLeiXingSelect(null)
this.add_dialog3 = true this.add_dialog3 = true
this.is_add_edit = 'view' this.is_add_edit = 'view'
this.ruleForm.let1 = row.assetName this.ruleForm.assetName = row.assetName
this.ruleForm.let2 = row.sort this.ruleForm.sort = row.sort
this.ruleForm.let3 = row.isShow == 0 ? '显示' : '隐藏' this.ruleForm.isShow = row.isShow
this.ruleForm.preArc = row.parentElement?.replace(/\]|\[|\/?]/g, '') this.ruleForm.preArc = row.parentElement?.replace(/\]|\[|\/?]/g, '')
this.getShangJiJieDianSelect(this.ruleForm.preArc) this.getShangJiJieDianSelect(this.ruleForm.preArc)
this.cascaderValue = [row.parentAssetId + ''] this.cascaderValue = [row.parentAssetId + '']
this.ruleForm.assetNumber = row.assetNumber this.ruleForm.assetNumber = row.assetNumber
this.ruleForm.let4 = row.archiEleId this.ruleForm.archiEleId = row.archiEleId
this.editId = row.assetId this.editId = row.assetId
let fieldsValue = row.fieldsValue let fieldsValue = row.fieldsValue
this.ruleForm.color = row.color this.ruleForm.color = row.color
...@@ -1608,14 +1608,14 @@ export default { ...@@ -1608,14 +1608,14 @@ export default {
this.getZuJianLeiXingSelect(null) this.getZuJianLeiXingSelect(null)
this.add_dialog3 = true this.add_dialog3 = true
this.is_add_edit = 'edit' this.is_add_edit = 'edit'
this.ruleForm.let1 = row.assetName this.ruleForm.assetName = row.assetName
this.ruleForm.let2 = row.sort this.ruleForm.sort = row.sort
this.ruleForm.let3 = row.isShow == 0 ? '显示' : '隐藏' this.ruleForm.isShow = row.isShow
this.ruleForm.preArc = row.parentElement?.replace(/\]|\[|\/?]/g, '') this.ruleForm.preArc = row.parentElement?.replace(/\]|\[|\/?]/g, '')
this.getShangJiJieDianSelect(this.ruleForm.preArc) this.getShangJiJieDianSelect(this.ruleForm.preArc)
this.cascaderValue = [row.parentAssetId + ''] this.cascaderValue = [row.parentAssetId + '']
this.ruleForm.assetNumber = row.assetNumber this.ruleForm.assetNumber = row.assetNumber
this.ruleForm.let4 = row.archiEleId this.ruleForm.archiEleId = row.archiEleId
this.editId = row.assetId this.editId = row.assetId
let fieldsValue = row.fieldsValue let fieldsValue = row.fieldsValue
this.ruleForm.color = row.color this.ruleForm.color = row.color
...@@ -1759,7 +1759,7 @@ export default { ...@@ -1759,7 +1759,7 @@ export default {
eleName, eleName,
targetAsset = [] targetAsset = []
const items2 = this.zuJianLeiXingSelect.find( const items2 = this.zuJianLeiXingSelect.find(
(item) => item.elementId == this.ruleForm.let4, (item) => item.elementId == this.ruleForm.archiEleId,
) )
eleName = items2.elementName eleName = items2.elementName
...@@ -1782,11 +1782,11 @@ export default { ...@@ -1782,11 +1782,11 @@ export default {
archiBelongId: this.archiBelongId, archiBelongId: this.archiBelongId,
archiType: this.archiType, archiType: this.archiType,
// archiAssetTypeId: this.archiAssetTypeId, // archiAssetTypeId: this.archiAssetTypeId,
archiEleId: this.ruleForm.let4, archiEleId: this.ruleForm.archiEleId,
assetName: this.ruleForm.let1, assetName: this.ruleForm.assetName,
sort: this.ruleForm.let2, sort: this.ruleForm.sort,
assetId: this.is_add_edit == 'add' ? null : this.editId, assetId: this.is_add_edit == 'add' ? null : this.editId,
isShow: this.ruleForm.let3 == '显示' ? 0 : 1, isShow: this.ruleForm.isShow,
fieldsValue: fieldsValue, fieldsValue: fieldsValue,
eleName: eleName, eleName: eleName,
buildType: this.showSelectTitle.buildType, buildType: this.showSelectTitle.buildType,
...@@ -2039,10 +2039,10 @@ export default { ...@@ -2039,10 +2039,10 @@ export default {
this.getZuJianLeiXingSelect(null) this.getZuJianLeiXingSelect(null)
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.form.resetFields() this.$refs.form.resetFields()
this.ruleForm.let1 = null this.ruleForm.assetName = null
this.ruleForm.let2 = 0 this.ruleForm.sort = 0
this.ruleForm.let3 = '显示' this.ruleForm.isShow = 0
this.ruleForm.let4 = null this.ruleForm.archiEleId = null
this.ruleForm.dynamicForm_ = [] this.ruleForm.dynamicForm_ = []
this.ruleForm.color = '' this.ruleForm.color = ''
this.ruleForm.icon = '' this.ruleForm.icon = ''
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!