页面优化

master
schry 2 years ago
parent ca96a3f746
commit 193ab67756

@ -9,7 +9,6 @@ export function authAdminList(query) {
}); });
} }
//根据当前角色,获取是否为客户角色 //根据当前角色,获取是否为客户角色
export function roleCustomers(query) { export function roleCustomers(query) {
return axios({ return axios({

@ -125,6 +125,7 @@
<el-table-column width="120" label="操作"> <el-table-column width="120" label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click.native.stop="handleModifyClick(scope.row)">详情</el-button> <el-button type="text" @click.native.stop="handleModifyClick(scope.row)">详情</el-button>
<el-button type="text" @click.native.stop="handleDeleteClick(scope.row.id)">移除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -485,7 +486,33 @@ export default {
}; };
this.checked = row.isUseDy == 1; this.checked = row.isUseDy == 1;
}, },
handleDeleteClick(rowId){
this.$confirm("此操作将删除该供应商器械信息, 是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
let dQuery = {
id: rowId,
};
deleteCompanyProductRelevance(dQuery)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.$message.success("删除成功");
} else {
this.$message.error(response.message);
}
this.getList();
})
.catch(() => {
this.loading = false;
});
})
.catch(() => {
});
},
lockProducts(status) { lockProducts(status) {
let selectData = this.multipleSelection; let selectData = this.multipleSelection;
let postQuery = { let postQuery = {

@ -1,10 +1,14 @@
<template> <template>
<div> <div>
<el-card> <el-card>
<el-form :inline="true" :model="query" size="mini"> <el-form :inline="true" :model="query" size="mini" v-show="showSearch">
<el-row>
<el-col :span="8">
<el-form-item label="用户账号:"> <el-form-item label="用户账号:">
<el-input v-model="query.userName" placeholder="用户账号" clearable></el-input> <el-input v-model="query.userName" placeholder="用户账号" clearable></el-input>
</el-form-item> </el-form-item>
</el-col>
<el-col :span="8">
<el-form-item class="query-form-item" label="账号状态:"> <el-form-item class="query-form-item" label="账号状态:">
<el-select v-model="query.userFlag" placeholder="请选择账号状态:"> <el-select v-model="query.userFlag" placeholder="请选择账号状态:">
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
@ -12,27 +16,27 @@
<el-option label="正常" value="1"></el-option> <el-option label="正常" value="1"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> </el-col>
<el-col :span="8">
<el-form-item label="所属部门:">
<el-input v-model="query.deptName" placeholder="所属部门" clearable></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div class="top-right-btn">
<el-button-group> <el-button-group>
<el-button <el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
type="primary" <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
icon="el-icon-refresh" <el-button type="primary" icon="el-icon-search" @click="onSubmit"></el-button>
@click="onReset"
>重置
</el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit"
>查询
</el-button
>
<el-button type="primary" @click.native="handleForm(null, null)" icon="el-icon-plus" <el-button type="primary" @click.native="handleForm(null, null)" icon="el-icon-plus"
:disabled="!configParms.sysUser && query.customerId == 110" :disabled="!configParms.sysUser && query.customerId == 110"
v-hasPermi="['system:user:add']" v-hasPermi="['system:user:add']">新增</el-button>
>新增
</el-button
>
</el-button-group> </el-button-group>
</el-form-item> </div>
</el-form>
<el-divider style="margin: 15px"></el-divider>
<el-table v-loading="loading" :data="list" <el-table v-loading="loading" :data="list"
style="width: 100%" style="width: 100%"
border highlight-current-row> border highlight-current-row>
@ -292,10 +296,12 @@ export default {
} }
}; };
return { return {
showSearch: true,
roles: [], roles: [],
query: { query: {
userName: "", userName: "",
userFlag: "1", userFlag: "1",
deptName: "",
page: 1, page: 1,
limit: 10, limit: 10,
roleId: "", roleId: "",
@ -363,6 +369,12 @@ export default {
}; };
}, },
methods: { methods: {
getDeptList(){
},
hideSearch() {
this.showSearch = !this.showSearch;
},
onReset() { onReset() {
this.$router.push({ this.$router.push({
path: "" path: ""
@ -370,6 +382,7 @@ export default {
this.query = { this.query = {
userName: "", userName: "",
userFlag: "1", userFlag: "1",
deptName: null,
page: 1, page: 1,
limit: 10, limit: 10,
roleId: "", roleId: "",

Loading…
Cancel
Save