Commit 9b4a5b3e authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 992dff22 20ebfd64
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<slot name="table-head-left"></slot> <slot name="table-head-left"></slot>
<slot name="table-head-center"> <slot name="table-head-center">
<el-button <el-button
v-show="isshowadd"
v-if="isShowButton('notAdd')" v-if="isShowButton('notAdd')"
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
...@@ -284,6 +285,7 @@ export default { ...@@ -284,6 +285,7 @@ export default {
loading: this.config.loading, loading: this.config.loading,
showSearch: this.isShowSearch(this.$route.query), showSearch: this.isShowSearch(this.$route.query),
showType: "table", showType: "table",
isshowadd:true
}; };
}, },
}; };
......
...@@ -109,7 +109,11 @@ ...@@ -109,7 +109,11 @@
> >
</el-col> </el-col>
</el-row> </el-row>
<el-row>
<div class="tishi">
提示:设置状态应中文名在前,英文名在后,用“_”隔开。例如:在线_online
</div>
</el-row>
<el-table <el-table
:data="basicStatusList" :data="basicStatusList"
:row-class-name="rowBasicStatusIndex" :row-class-name="rowBasicStatusIndex"
...@@ -128,6 +132,14 @@ ...@@ -128,6 +132,14 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="自定义颜色" prop="statusColor">
<template slot-scope="scope">
<el-input
v-model="scope.row.statusColor"
placeholder="请输入状态颜色值"
/>
</template>
</el-table-column>
<el-table-column label="状态颜色值" prop="statusColor"> <el-table-column label="状态颜色值" prop="statusColor">
<template slot-scope="scope"> <template slot-scope="scope">
<el-color-picker <el-color-picker
...@@ -146,7 +158,6 @@ ...@@ -146,7 +158,6 @@
</el-form> </el-form>
</el-drawer> </el-drawer>
</template> </template>
<script> <script>
import form from "@/assets/mixins/formdialog"; import form from "@/assets/mixins/formdialog";
export default { export default {
...@@ -300,3 +311,9 @@ export default { ...@@ -300,3 +311,9 @@ export default {
}, },
}; };
</script> </script>
<style scoped>
.tishi{
padding: 10px;
}
</style>
\ No newline at end of file
<template> <template>
<div class="page"> <div class="page">
<LayoutTable :data="tableData" :config="tableConfig"> <LayoutTable :data="tableData" :config="tableConfig" ref="layoutTable">
</LayoutTable> </LayoutTable>
...@@ -52,6 +52,18 @@ ...@@ -52,6 +52,18 @@
this.$refs.drawerform.view(row); this.$refs.drawerform.view(row);
}, },
},
watch:{
'tableData'(newval){
if (newval.data && newval.data.length>0) {
this.$refs.layoutTable.isshowadd=false
this.$forceUpdate()
}else{
this.$refs.layoutTable.isshowadd=true
}
},
deep:true,
}, },
data() { data() {
return { return {
......
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