Merge remote-tracking branch 'origin/build' into build
This commit is contained in:
@@ -395,19 +395,15 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
back(params) {
|
back() {
|
||||||
if (!!params) {
|
const {id} = this.$route.query
|
||||||
const {id} = this.$route.query
|
this.$router.push({hash: "#add", params, query: {id}})
|
||||||
this.$router.push({hash: "#add", params, query: {id}})
|
|
||||||
} else {
|
|
||||||
this.$router.back()
|
|
||||||
}
|
|
||||||
this.closePage()
|
this.closePage()
|
||||||
},
|
},
|
||||||
save() {
|
save() {
|
||||||
const {did: id} = this.$route.query, {dashboard} = this
|
const {did: id, id: pid} = this.$route.query, {dashboard} = this
|
||||||
this.instance.post(`/app/appdiylargescreen/addOrUpdateLargeScreen`, {
|
this.instance.post(`/app/appdiylargescreen/addOrUpdateLargeScreen`, {
|
||||||
id,
|
id, pid,
|
||||||
config: JSON.stringify({
|
config: JSON.stringify({
|
||||||
config: this.componentList,
|
config: this.componentList,
|
||||||
dashboard,
|
dashboard,
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</template>
|
</template>
|
||||||
</ai-list>
|
</ai-list>
|
||||||
<ai-dialog :visible.sync="dialog" title="菜单设置" width="500px" @onConfirm="handleSubmit"
|
<ai-dialog :visible.sync="dialog" title="菜单设置" width="500px" @onConfirm="handleSubmit" :close-on-click-modal="false"
|
||||||
@closed="form={status:1},selected={}">
|
@closed="form={status:1},selected={}">
|
||||||
<el-form ref="MenuForm" :model="form" size="small" label-width="100px" :rules="rules">
|
<el-form ref="MenuForm" :model="form" size="small" label-width="100px" :rules="rules">
|
||||||
<el-form-item label="菜单名称" prop="name">
|
<el-form-item label="菜单名称" prop="name">
|
||||||
@@ -163,7 +163,7 @@ export default {
|
|||||||
},
|
},
|
||||||
addMenu(row) {
|
addMenu(row) {
|
||||||
this.dialog = true
|
this.dialog = true
|
||||||
this.form = {parentId: row.id}
|
this.form = {parentId: row.id, status: "1"}
|
||||||
this.selected = row
|
this.selected = row
|
||||||
},
|
},
|
||||||
handleEdit(row) {
|
handleEdit(row) {
|
||||||
|
|||||||
@@ -116,7 +116,7 @@
|
|||||||
<el-form-item label="地区分布" style="width: 100%;">
|
<el-form-item label="地区分布" style="width: 100%;">
|
||||||
<div class="area-flex" v-for="(item, index) in areaList" :key="index">
|
<div class="area-flex" v-for="(item, index) in areaList" :key="index">
|
||||||
<span class="area-label">{{item.areaName}}</span>
|
<span class="area-label">{{item.areaName}}</span>
|
||||||
<el-input placeholder="请输入" size="small" style="width:100px" v-model="item.proportion" @change="areaNumChange(index)" maxlength="3"></el-input>
|
<el-input placeholder="请输入" size="small" style="width:100px" v-model="item.proportion" @change="areaNumChange(index)" maxlength="4"></el-input>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user