Commit 2436494d authored by 赵伟庚's avatar 赵伟庚

update:字典配置、推荐管理

parent 28eb0704
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<page404></page404> <page404></page404>
</div> </div>
</div> </div>
<msg v-model="readFlag"></msg> <!-- <msg v-model="readFlag"></msg> -->
</el-config-provider> </el-config-provider>
</div> </div>
</template> </template>
...@@ -93,7 +93,7 @@ export default { ...@@ -93,7 +93,7 @@ export default {
} }
}, },
created(){ created(){
this.initMsg() // this.initMsg()
}, },
mounted() { mounted() {
}, },
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</bg-table-btn> </bg-table-btn>
<a <a
class="bg-table-btn" class="bg-table-btn"
@mouseenter="showMOreBtns" @mouseenter="showMoreBtns"
@mouseleave="hideMoreBtns" @mouseleave="hideMoreBtns"
v-if="otherOperations.length > 0" v-if="otherOperations.length > 0"
> >
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<bg-icon style="font-size: 12px; color: #2b4695;" icon="#bg-ic-s-more" /> <bg-icon style="font-size: 12px; color: #2b4695;" icon="#bg-ic-s-more" />
<bg-table-btns-more <bg-table-btns-more
:operations="otherOperations" :operations="otherOperations"
@mouseenter="showMOreBtns" @mouseenter="showMoreBtns"
@mouseleave="hideMoreBtns" @mouseleave="hideMoreBtns"
v-if="showMore" v-if="showMore"
/> />
...@@ -50,7 +50,7 @@ export default { ...@@ -50,7 +50,7 @@ export default {
return this.operations.slice(0, this.operations.length > 3 ? 2 : 3); return this.operations.slice(0, this.operations.length > 3 ? 2 : 3);
}, },
otherOperations() { otherOperations() {
return this.operations.slice(2, this.operations.length); return this.operations.slice(this.operations.length > 3 ? 2 : 3, this.operations.length);
}, },
}, },
methods: { methods: {
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
return name; return name;
} }
}, },
showMOreBtns() { showMoreBtns() {
if (this.timer) clearTimeout(this.timer); if (this.timer) clearTimeout(this.timer);
this.showMore = true; this.showMore = true;
......
...@@ -46,7 +46,7 @@ function getMsgAppid() { ...@@ -46,7 +46,7 @@ function getMsgAppid() {
}) })
} }
getMsgAppid() // getMsgAppid()
for (const [key, component] of Object.entries(ElementPlusIconsVue)) { for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
createVue.component(key, component) createVue.component(key, component)
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<div class="flex_right"> <div class="flex_right">
<div class="main_container"> <div class="main_container">
<bg-filter-group @search="changeSearch" v-model="filter.search" placeholder="请输入关键字"> <bg-filter-group @search="changeSearch" v-model="filter.search" placeholder="请输入关键字">
<template v-slot:left_action> <template v-slot:left_action v-if="nodeClassifyId != '263758a4-0349-4d49-a816-e8ff8d33a8bb'">
<div class="apaas_button"> <div class="apaas_button">
<el-button class="register_btn" type="primary" @click="register"> <el-button class="register_btn" type="primary" @click="register">
<bg-icon style="font-size: 12px; color: #fff; margin-right: 8px" icon="#bg-ic-add"></bg-icon> <bg-icon style="font-size: 12px; color: #fff; margin-right: 8px" icon="#bg-ic-add"></bg-icon>
...@@ -317,6 +317,25 @@ const filterClear = () => { ...@@ -317,6 +317,25 @@ const filterClear = () => {
} // 重置筛选项 } // 重置筛选项
const getOperations = (row) => { const getOperations = (row) => {
if (state.nodeClassifyId == '263758a4-0349-4d49-a816-e8ff8d33a8bb') {
return [
{
name: "编辑",
callback: () => edit_row(row),
disabled: row.state == 1,
},
{
name: "上移",
callback: () => moveRow(row,1),
disabled: !row.canMoveUp,
},
{
name: "下移",
callback: () => moveRow(row,2),
disabled: !row.canMoveDown,
},
]
}else {
return [ return [
{ {
name: "编辑", name: "编辑",
...@@ -339,6 +358,7 @@ const getOperations = (row) => { ...@@ -339,6 +358,7 @@ const getOperations = (row) => {
disabled: !row.canMoveDown, disabled: !row.canMoveDown,
}, },
]; ];
}
} // 表格操作按钮 } // 表格操作按钮
const getTableRows = () => { const getTableRows = () => {
......
...@@ -177,23 +177,43 @@ const state = reactive({ ...@@ -177,23 +177,43 @@ const state = reactive({
}) })
const getDetail = (id) => { const getDetail = (id) => {
// axios axios
// .get(`/apaas/system/v5/banner/${id}`) .get(`/apaas/system/v5/recommend/ability/detail/${id}`)
// .then(res => { .then(res => {
// if (res.data.code == 200) { if (res.data.code == 200) {
// const data = res.data.data const data = res.data.data
// typeFormRef.value.setForm({ console.log(data)
// business_type_id: data.business_type_id, typeFormRef.value.setForm({
// logo: data.logo ? [{url: data.logo}] : [], business_type_id: data.business_type_id,
// }) logo: data.logo ? [{url: data.logo}] : [],
// state.formData.state = data.state })
// }else { state.selectArr = []
// ElMessage.error(res.data.data) state.selectArrNew = []
// } state.formData.state = data.state
// }) state.formData.business_type_id = data.business_type_id
// .catch(err => { state.selectArrNew = data.ability_list || []
// console.log(err) state.selectArrNew.forEach((e,i) => {
// }) e.canDown = true
e.canUp = true
if (i == 0) {
e.canUp = false
}
if (i == state.selectArrNew.length - 1) {
e.canDown = false
}
})
state.selectArr.push(...state.selectArrNew)
for (var i = 0; i < 9-state.selectArrNew.length;i++) {
state.selectArr.push("")
}
console.log(state.selectArr)
}else {
ElMessage.error(res.data.data)
}
})
.catch(err => {
console.log(err)
})
} }
const getOrgList = () => { const getOrgList = () => {
...@@ -378,6 +398,7 @@ const submitFormData = (data) => { ...@@ -378,6 +398,7 @@ const submitFormData = (data) => {
id: +route.query.id, id: +route.query.id,
abilitys: abilitys abilitys: abilitys
} }
delete params.business_type_id
params.logo = params.logo && params.logo.length > 0 ? params.logo[0].url : '' params.logo = params.logo && params.logo.length > 0 ? params.logo[0].url : ''
console.log(params) console.log(params)
axios axios
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment