|
|
|
|
@ -72,7 +72,7 @@
|
|
|
|
|
<template
|
|
|
|
|
v-if="scope.row.id_fill_datas_fill_id_relation && scope.row.id_fill_datas_fill_id_relation.length>0">
|
|
|
|
|
<template v-for="item in scope.row.id_fill_datas_fill_id_relation">
|
|
|
|
|
<div class="product-item">{{item.business_type_id}}</div>
|
|
|
|
|
<div class="product-item">{{item.business_type.name}}</div>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
@ -82,7 +82,7 @@
|
|
|
|
|
<template
|
|
|
|
|
v-if="scope.row.id_fill_datas_fill_id_relation && scope.row.id_fill_datas_fill_id_relation.length>0">
|
|
|
|
|
<template v-for="item in scope.row.id_fill_datas_fill_id_relation">
|
|
|
|
|
<div class="product-item">{{item.business_data_id}}</div>
|
|
|
|
|
<div class="product-item">{{item.business_data.name}}</div>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
</template>
|
|
|
|
|
@ -103,9 +103,9 @@
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
<el-table-column align='center' fixed="right" label="操作" width="240" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="primary" size="small"
|
|
|
|
|
<el-button v-if="stateObj.login_id===scope.row.admin_id || stateObj.is_admin" type="primary" size="small"
|
|
|
|
|
@click="editIndex('editor',scope.row.id,scope.row.business_id)">编辑</el-button>
|
|
|
|
|
<el-popconfirm style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="确定删除吗?">
|
|
|
|
|
<el-popconfirm v-if="stateObj.login_id===scope.row.admin_id || stateObj.is_admin" style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="确定删除吗?">
|
|
|
|
|
<el-button type="danger" size="small" slot="reference">删除</el-button>
|
|
|
|
|
</el-popconfirm>
|
|
|
|
|
</template>
|
|
|
|
|
@ -124,6 +124,7 @@
|
|
|
|
|
index,
|
|
|
|
|
destroy
|
|
|
|
|
} from "@/api/system/baseForm.js"
|
|
|
|
|
import state from '@/store/modules/user.js'
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
addFill
|
|
|
|
|
@ -139,6 +140,7 @@
|
|
|
|
|
year:'',
|
|
|
|
|
month:''
|
|
|
|
|
},
|
|
|
|
|
stateObj:{},
|
|
|
|
|
list_bus: [],
|
|
|
|
|
monthArr: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
|
|
|
|
total: 0,
|
|
|
|
|
@ -188,6 +190,7 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.stateObj = state.state
|
|
|
|
|
if (this.$route.query.id) {
|
|
|
|
|
this.select.business_id = parseInt(this.$route.query.id)
|
|
|
|
|
}
|
|
|
|
|
@ -248,7 +251,8 @@
|
|
|
|
|
var that = this;
|
|
|
|
|
destroy({
|
|
|
|
|
id: id,
|
|
|
|
|
table_name: this.select.table_name
|
|
|
|
|
table_name: this.select.table_name,
|
|
|
|
|
destroy_relation:['id_fill_datas_fill_id_relation']
|
|
|
|
|
}).then(response => {
|
|
|
|
|
this.$Message.success('操作成功');
|
|
|
|
|
this.getList()
|
|
|
|
|
|