公司
This commit is contained in:
@@ -345,10 +345,8 @@
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item @click.native="toUpdate(scope.row.id)">
|
||||
<el-button
|
||||
v-permission="['company:info:base']"
|
||||
:size="$store.getters.size"
|
||||
type="text"
|
||||
>
|
||||
type="text">
|
||||
<svg-icon icon-class="iconicon-" />
|
||||
基础资料
|
||||
</el-button>
|
||||
@@ -433,13 +431,19 @@
|
||||
</general-details>
|
||||
</el-drawer>
|
||||
|
||||
|
||||
|
||||
<!-- 修改弹窗 -->
|
||||
<el-dialog v-el-drag-dialog title="修改" :visible.sync="updateDialog" width="55%">
|
||||
<OilCompanyInfoUpdate v-if="updateDialog" :oil-company-info="oilCompanyInfo" @getByPage="getByPage" @closeDialog="closeDialog" />
|
||||
</el-dialog>
|
||||
|
||||
<!-- 添加弹窗 -->
|
||||
<el-dialog
|
||||
v-el-drag-dialog
|
||||
title="添加"
|
||||
:visible.sync="addDialog"
|
||||
width="55%"
|
||||
>
|
||||
width="55%">
|
||||
<OilCompanyInfoAdd
|
||||
v-if="addDialog"
|
||||
@getByPage="getByPage"
|
||||
@@ -463,7 +467,7 @@
|
||||
import OilCompanyInfoAdd from "@/views/customerManagement/companyManagement/OilCompanyInfoAdd";
|
||||
import serve from "api/financialCenter/enterpriseRechargeDetails.js";
|
||||
import commonServe from "api/common.js";
|
||||
|
||||
import OilCompanyInfoUpdate from "@/views/customerManagement/companyManagement/OilCompanyInfoUpdate";
|
||||
import oilCompanyInfoApi from "@/api/customerManagement/oilCompanyInfo";
|
||||
|
||||
import autocomplete from "components/autocomplete/index.vue";
|
||||
@@ -478,6 +482,7 @@ import {
|
||||
|
||||
export default {
|
||||
components: {
|
||||
OilCompanyInfoUpdate,
|
||||
OilCompanyInfoAdd,
|
||||
pagination,
|
||||
autocomplete,
|
||||
@@ -697,8 +702,6 @@ export default {
|
||||
methods: {
|
||||
search() {
|
||||
this.parameter.currentPage = 1;
|
||||
console.log("111111111111111111111");
|
||||
console.log(this.parameter);
|
||||
this.getByPage();
|
||||
},
|
||||
closeDialog() {
|
||||
@@ -752,7 +755,6 @@ export default {
|
||||
// },
|
||||
// 启用禁用点击
|
||||
enableMarkClike(row) {
|
||||
console.log("111111111111111111111");
|
||||
const data = [row];
|
||||
oilCompanyInfoApi.updateBatchEnable(data).then((res) => {
|
||||
if (res.code === 20000) {
|
||||
@@ -825,6 +827,17 @@ export default {
|
||||
this.oilCompanyInfo = {};
|
||||
this.addDialog = true;
|
||||
},
|
||||
toUpdate(id) {
|
||||
console.log(id)
|
||||
console.log(this.updateDialog)
|
||||
// 跳转到更新
|
||||
oilCompanyInfoApi.get(id).then(res => {
|
||||
console.log(res)
|
||||
this.oilCompanyInfo = res.data
|
||||
this.updateDialog = true
|
||||
console.log(this.updateDialog)
|
||||
});
|
||||
},
|
||||
toAddAuth(id) {
|
||||
// 跳转添加认证信息
|
||||
oilCompanyInfoApi.get(id).then((res) => {
|
||||
|
||||
Reference in New Issue
Block a user