Commit 2740cfdd authored by 张俊's avatar 张俊

筛选去除

parent 78a21ae2
...@@ -112,7 +112,7 @@ export default { ...@@ -112,7 +112,7 @@ export default {
if(this.selected_arr[index].indexOf(id)==-1){ if(this.selected_arr[index].indexOf(id)==-1){
this.selected_arr[index].push(id) this.selected_arr[index].push(id)
}else{ }else{
this.selected_arr.splice(this.selected_arr[index].indexOf(id), 1) this.selected_arr[index].splice(this.selected_arr[index].indexOf(id), 1)
} }
} }
this.post_value() this.post_value()
......
...@@ -278,6 +278,9 @@ export default { ...@@ -278,6 +278,9 @@ export default {
showDialog() { showDialog() {
this.$refs.dialog.show(); this.$refs.dialog.show();
}, },
detailAction(item){
this.$router.push('/message/banner_detail?id='+item.serial_num)
},
addNew() { addNew() {
console.log("新建模板"); console.log("新建模板");
this.$router.push('/message/banner_add') this.$router.push('/message/banner_add')
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<el-select <el-select
v-model="detail.state" v-model="detail.state"
placeholder="请选择状态" placeholder="请选择状态"
:disabled="disabled" :disabled="disabled1"
> >
<el-option <el-option
v-for="item in types" v-for="item in types"
...@@ -108,6 +108,7 @@ ...@@ -108,6 +108,7 @@
type="primary" type="primary"
@click="primaryAction" @click="primaryAction"
:loading="submitLoading" :loading="submitLoading"
v-if="pageType!==2"
> >
确定 确定
</el-button> </el-button>
...@@ -219,12 +220,17 @@ export default { ...@@ -219,12 +220,17 @@ export default {
disabled() { disabled() {
return this.pageType === 2; return this.pageType === 2;
}, },
disabled1(){
return this.pageType !== 1;
}
}, },
created() { created() {
if (this.$route.name === "banner_edit") { if (this.$route.name === "banner_edit") {
this.pageType = 1; this.pageType = 1;
} else if (this.$route.name === "banner_detail") { } else if (this.$route.name === "banner_detail") {
this.pageType = 2; this.pageType = 2;
}else{
this.detail.state = 1
} }
if (this.pageType !== 0) { if (this.pageType !== 0) {
......
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