界面,bug修改

master
anthonyywj2 3 years ago
parent addf41b073
commit 6638f40869

@ -1,5 +1,5 @@
{ {
"BASE_URL":"http://192.168.0.109:9989", "BASE_URL":"http://127.0.0.1:9989",
"SERVER_IP": "http://192.168.0.109:8080/", "SERVER_IP": "http://127.0.0.1:8080/",
"hosp_name": "平和县医院" "hosp_name": "诏安县总医院"
} }

@ -207,53 +207,6 @@ export const asyncRouterMap = [
}, },
] ]
}, },
// {
// path: "/udisync",
// redirect: "/udisync/udiInfoImport",
// component: Home,
// icon: "tongyong",
// name: "数据同步",
// hidden: false,
// noDropdown: false,
// meta: {
// authRule: ["udisync"]
// },
// children: [
// {
// path: "udiInfoImport",
// name: "医疗器械信息",
// component: udiInfoImport,
// meta: {
// authRule: ["udisync/udiInfoImport"]
// }
// },
// {
// path: "corpImport",
// name: "往来单位信息",
// component: corpImport,
// meta: {
// authRule: ["udisync/corpImport"]
// }
// },
// {
// path: "thrProductsImport",
// name: "第三方产品信息",
// component: thrProductsImport,
// meta: {
// authRule: ["udisync/thrProductsImport"]
// }
// },
// {
// path: "thrOrderImport",
// name: "第三方业务单据",
// component: thrOrderImport,
// meta: {
// authRule: ["udisync/thrOrderImport"]
// }
// },
//
// ]
// },
{ {
path: "/spsync", path: "/spsync",
@ -267,14 +220,6 @@ export const asyncRouterMap = [
authRule: ["spsync"] authRule: ["spsync"]
}, },
children: [ children: [
// {
// path: "udiInfoUpload",
// name: "医疗器械信息",
// component: udiInfoUpload,
// meta: {
// authRule: ["spsync/udiInfoUpload"]
// }
// },
{ {
path: "sysUploadData", path: "sysUploadData",
component: sysUploadData, component: sysUploadData,
@ -293,24 +238,6 @@ export const asyncRouterMap = [
authRule: ["spsync/sysDownloadData"] authRule: ["spsync/sysDownloadData"]
} }
}, },
// {
// path: "spOrderFloder",
// name: "扫码单据文件记录",
// component: spOrderFloder,
// meta: {
// authRule: ["spsync/spOrderFloder"]
// }
// },
// {
// path: "SpBasicFolder",
// name: "基础信息文件记录",
// component: SpBasicFolder,
// meta: {
// authRule: ["spsync/spOrderFloder"]
// }
// },
] ]
}, },

@ -8,13 +8,12 @@
<el-form :inline="true" :model="query" class="query-form" size="mini"> <el-form :inline="true" :model="query" class="query-form" size="mini">
<el-row> <el-row>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-input v-model="filterQuery.taskId" placeholder="记录ID"></el-input> <el-input v-model="filterQuery.taskId" placeholder="记录ID" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-select v-model="filterQuery.status" placeholder="处理状态"> <el-select v-model="filterQuery.status" placeholder="处理状态">
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option label="等待处理" value="0"></el-option>
<el-option label="等待下载" value="3"></el-option> <el-option label="等待下载" value="3"></el-option>
<el-option label="已处理" value="1"></el-option> <el-option label="已处理" value="1"></el-option>
<el-option label="异常" value="2"></el-option> <el-option label="异常" value="2"></el-option>
@ -149,7 +148,7 @@ export default {
filterQuery: { filterQuery: {
taskId: null, taskId: null,
id: null, id: null,
status: "0", status: "3",
page: 1, page: 1,
limit: 10, limit: 10,
syncTime: null, syncTime: null,

@ -9,7 +9,7 @@
<el-form :inline="true" :model="query" class="query-form" size="mini"> <el-form :inline="true" :model="query" class="query-form" size="mini">
<el-row> <el-row>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-input v-model="filterQuery.taskId" placeholder="记录ID"></el-input> <el-input v-model="filterQuery.taskId" placeholder="记录ID" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">

@ -1,445 +1,451 @@
<template> <template>
<div> <div>
<el-form :inline="true" :model="query" class="query-form" size="mini">
<el-form-item class="query-form-item">
<el-input v-model="query.userName" placeholder="用户名"></el-input>
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="query.userFlag" placeholder="状态">
<el-option label="全部" value=""></el-option>
<el-option label="禁用" value="0"></el-option>
<el-option label="正常" value="1"></el-option>
<el-option label="未验证" value="2"></el-option>
</el-select>
</el-form-item>
<!--
<el-form-item class="query-form-item">
<el-select v-model="query.roleId" placeholder="角色">
<el-option label="全部角色" value=""></el-option>
<el-option v-for="item in roles" :key="item.id" :label="item.name" :value="item.id"></el-option>
</el-select>
</el-form-item>
-->
<el-form-item>
<el-button-group>
<el-button
type="primary"
icon="el-icon-refresh"
@click="onReset"
></el-button>
<el-button type="primary" icon="search" @click="onSubmit"
>查询
</el-button
>
<!--<el-button type="primary" @click.native="handleForm(null, null)"
>新增</el-button
>-->
</el-button-group>
</el-form-item>
</el-form>
<el-table v-loading="loading" :data="list" style="width: 100%">
<el-table-column label="用户名" prop="userName" fixed></el-table-column>
<el-table-column label="用户昵称" prop="employeeName" fixed>
</el-table-column>
<el-table-column label="状态" fixed="">
<template slot-scope="scope">
<el-tag :type="scope.row.userFlag | statusFilterType">{{
scope.row.userFlag | statusFilterName
}}
</el-tag>
</template>
</el-table-column>
<el-table-column label="备注" prop="comments" fixed></el-table-column>
<el-table-column
label="登录时间"
with="300"
:show-overflow-tooltip="true"
>
<template slot-scope="scope">
<i class="el-icon-time"></i>
<span> {{ scope.row.lastLoginTime }}</span>
<!-- <span>{{ formatTime(scope.row.lastLoginTime,"yyyy-MM-dd") }}</span> -->
</template>
</el-table-column>
<el-table-column label="操作" fixed="right"> <el-card>
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click.native="handleForm(scope.$index, scope.row)"
>编辑
</el-button>
<el-button
type="text"
size="small"
:disabled="scope.row.id === 1"
@click.native="handleDel(scope.$index, scope.row)"
>删除
</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination
:page-size="query.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
>
</el-pagination>
<!--表单--> <el-form :inline="true" :model="query" class="query-form" size="mini">
<el-dialog <el-form-item class="query-form-item">
:title="formMap[formName]" <el-input v-model="query.userName" placeholder="用户名"></el-input>
:visible.sync="formVisible" </el-form-item>
:before-close="hideForm" <el-form-item class="query-form-item">
:close-on-click-modal="false" <el-select v-model="query.userFlag" placeholder="状态">
:close-on-press-escape="false" <el-option label="全部" value=""></el-option>
width="70%" <el-option label="禁用" value="0"></el-option>
top="5vh" <el-option label="正常" value="1"></el-option>
<el-option label="未验证" value="2"></el-option>
</el-select>
</el-form-item>
<!--
<el-form-item class="query-form-item">
<el-select v-model="query.roleId" placeholder="角色">
<el-option label="全部角色" value=""></el-option>
<el-option v-for="item in roles" :key="item.id" :label="item.name" :value="item.id"></el-option>
</el-select>
</el-form-item>
-->
<el-form-item>
<el-button-group>
<el-button
type="primary"
icon="el-icon-refresh"
@click="onReset"
></el-button>
<el-button type="primary" icon="search" @click="onSubmit"
>查询
</el-button
>
<!--<el-button type="primary" @click.native="handleForm(null, null)"
>新增</el-button
>-->
</el-button-group>
</el-form-item>
</el-form>
<el-table v-loading="loading" :data="list" style="width: 100%">
<el-table-column label="用户名" prop="userName" fixed></el-table-column>
<el-table-column label="用户昵称" prop="employeeName" fixed>
</el-table-column>
<el-table-column label="状态" fixed="">
<template slot-scope="scope">
<el-tag :type="scope.row.userFlag | statusFilterType">{{
scope.row.userFlag | statusFilterName
}}
</el-tag>
</template>
</el-table-column>
<el-table-column label="备注" prop="comments" fixed></el-table-column>
<el-table-column
label="登录时间"
with="300"
:show-overflow-tooltip="true"
> >
<el-form :model="formData" :rules="formRules" ref="dataForm"> <template slot-scope="scope">
<el-row :gutter="20" class="el-row" type="flex"> <i class="el-icon-time"></i>
<el-col :span="10" class="el-col" type="flex"> <span> {{ scope.row.lastLoginTime }}</span>
<div class="text item"> <!-- <span>{{ formatTime(scope.row.lastLoginTime,"yyyy-MM-dd") }}</span> -->
<el-form-item label="用户名" prop="userName"> </template>
<el-input v-model="formData.userName" size="small"></el-input> </el-table-column>
</el-form-item>
</div>
</el-col>
<el-col :span="10" class="el-col">
<div class="text item">
<div class="text item">
<el-form-item label="用户昵称" prop="employeeName">
<el-input v-model="formData.employeeName" size="small"></el-input>
</el-form-item>
</div>
</div>
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex"> <el-table-column label="操作" fixed="right">
<el-col :span="10" class="el-col" type="flex"> <template slot-scope="scope">
<div class="text item"> <el-button
<el-form-item label="登录密码" prop="passWord"> type="text"
<el-input size="small"
type="password" @click.native="handleForm(scope.$index, scope.row)"
size="small" >编辑
v-model="formData.passWord" </el-button>
></el-input> <el-button
</el-form-item> type="text"
</div> size="small"
</el-col> :disabled="scope.row.id === 1"
<el-col :span="10" class="el-col"> @click.native="handleDel(scope.$index, scope.row)"
<div class="text item"> >删除
<div class="text item"> </el-button>
<el-form-item label="确认密码" prop="checkPassword"> </template>
<el-input </el-table-column>
type="password" </el-table>
size="small"
v-model="formData.checkPassword"
></el-input>
</el-form-item>
</div>
</div>
</el-col>
</el-row>
<el-form-item label="状态" prop="userFlag"> <el-pagination
<el-radio-group v-model="formData.userFlag" :disabled="formData.id === 1"> :page-size="query.limit"
<el-radio :label="0">禁用</el-radio> @current-change="handleCurrentChange"
<el-radio :label="1">正常</el-radio> layout="prev, pager, next"
<el-radio :label="2">未验证</el-radio> :total="total"
</el-radio-group> >
</el-pagination>
<!--表单-->
<el-dialog
:title="formMap[formName]"
:visible.sync="formVisible"
:before-close="hideForm"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="70%"
top="5vh"
>
<el-form :model="formData" :rules="formRules" ref="dataForm">
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="10" class="el-col" type="flex">
<div class="text item">
<el-form-item label="用户名" prop="userName">
<el-input v-model="formData.userName" size="small"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="角色"> </div>
<el-checkbox-group v-model="formData.roles" :disabled="formData.id === 1"> </el-col>
<el-checkbox <el-col :span="10" class="el-col">
v-for="item in roles" <div class="text item">
:key="item.id" <div class="text item">
:label="item.id" <el-form-item label="用户昵称" prop="employeeName">
>{{ item.name }} <el-input v-model="formData.employeeName" size="small"></el-input>
</el-checkbox </el-form-item>
> </div>
</el-checkbox-group> </div>
</el-col>
</el-row>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="10" class="el-col" type="flex">
<div class="text item">
<el-form-item label="登录密码" prop="passWord">
<el-input
type="password"
size="small"
v-model="formData.passWord"
></el-input>
</el-form-item> </el-form-item>
</el-form> </div>
<div slot="footer" class="dialog-footer"> </el-col>
<el-button @click.native="hideForm" size="small">取消</el-button> <el-col :span="10" class="el-col">
<el-button <div class="text item">
type="primary" <div class="text item">
size="small" <el-form-item label="确认密码" prop="checkPassword">
@click.native="formSubmit()" <el-input
:loading="formLoading" type="password"
>提交 size="small"
</el-button v-model="formData.checkPassword"
> ></el-input>
</div> </el-form-item>
</el-dialog> </div>
</div> </div>
</el-col>
</el-row>
<el-form-item label="状态" prop="userFlag">
<el-radio-group v-model="formData.userFlag" :disabled="formData.id === 1">
<el-radio :label="0">禁用</el-radio>
<el-radio :label="1">正常</el-radio>
<el-radio :label="2">未验证</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="角色">
<el-checkbox-group v-model="formData.roles" :disabled="formData.id === 1">
<el-checkbox
v-for="item in roles"
:key="item.id"
:label="item.id"
>{{ item.name }}
</el-checkbox
>
</el-checkbox-group>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click.native="hideForm" size="small">取消</el-button>
<el-button
type="primary"
size="small"
@click.native="formSubmit()"
:loading="formLoading"
>提交
</el-button
>
</div>
</el-dialog>
</el-card>
</div>
</template> </template>
<script> <script>
import { import {
authAdminList, authAdminList,
authAdminSave, authAdminSave,
authAdminDelete, authAdminDelete,
roleCustomers roleCustomers
} from "../../../api/auth/authAdmin"; } from "../../../api/auth/authAdmin";
import store from "../../../store/index"; import store from "../../../store/index";
const formJson = { const formJson = {
id: "", id: "",
passWord: "", passWord: "",
userName: "", userName: "",
checkPassword: "", checkPassword: "",
employeeName: "", employeeName: "",
userFlag: 1, userFlag: 1,
roles: [] roles: []
}; };
export default { export default {
data() { data() {
let validatePass = (rule, value, callback) => { let validatePass = (rule, value, callback) => {
if (value === "") { if (value === "") {
callback(new Error("请输入密码")); callback(new Error("请输入密码"));
} else { } else {
callback(); callback();
} }
}; };
let validatePass2 = (rule, value, callback) => { let validatePass2 = (rule, value, callback) => {
if (value === "") { if (value === "") {
callback(new Error("请再次输入密码")); callback(new Error("请再次输入密码"));
} else if (value !== this.formData.passWord) { } else if (value !== this.formData.passWord) {
callback(new Error("两次输入密码不一致!")); callback(new Error("两次输入密码不一致!"));
} else { } else {
callback(); callback();
} }
}; };
return { return {
roles: [], roles: [],
query: { query: {
userName: "", userName: "",
userFlag: "", userFlag: "",
page: 1, page: 1,
limit: 20, limit: 20,
roleId: "", roleId: "",
customerId: store.getters.customerId, customerId: store.getters.customerId,
}, },
list: [], list: [],
total: 0, total: 0,
loading: true, loading: true,
index: null, index: null,
formName: null, formName: null,
formMap: { formMap: {
add: "新增", add: "新增",
edit: "编辑" edit: "编辑"
}, },
formLoading: false, formLoading: false,
formVisible: false, formVisible: false,
formData: formJson, formData: formJson,
formRules: {}, formRules: {},
addRules: { addRules: {
userName: [ userName: [
{required: true, message: "请输入姓名", trigger: "blur"} {required: true, message: "请输入姓名", trigger: "blur"}
], ],
passWord: [ passWord: [
{required: true, message: "请输入密码", trigger: "blur"}, {required: true, message: "请输入密码", trigger: "blur"},
{validator: validatePass, trigger: "blur"} {validator: validatePass, trigger: "blur"}
], ],
checkPassword: [ checkPassword: [
{ {
required: true, required: true,
message: "请再次输入密码", message: "请再次输入密码",
trigger: "blur" trigger: "blur"
}, },
{validator: validatePass2, trigger: "blur"} {validator: validatePass2, trigger: "blur"}
], ],
userFlag: [ userFlag: [
{required: true, message: "请选择状态", trigger: "change"} {required: true, message: "请选择状态", trigger: "change"}
] ]
}, },
editRules: { editRules: {
userName: [ userName: [
{required: true, message: "请输入姓名", trigger: "blur"} {required: true, message: "请输入姓名", trigger: "blur"}
], ],
userFlag: [ userFlag: [
{required: true, message: "请选择状态", trigger: "change"} {required: true, message: "请选择状态", trigger: "change"}
] ]
}, },
deleteLoading: false deleteLoading: false
}; };
},
methods: {
onReset() {
this.$router.push({
path: ""
});
this.query = {
userName: "",
userFlag: "",
page: 1,
limit: 20,
roleId: "",
customerId: store.getters.customerId,
};
this.getList();
}, },
methods: { onSubmit() {
onReset() { this.$router.push({
this.$router.push({ path: "",
path: "" query: this.query
}); });
this.query = { this.getList();
userName: "", },
userFlag: "", handleCurrentChange(val) {
page: 1, this.query.page = val;
limit: 20, this.getList();
roleId: "", },
customerId: store.getters.customerId, getList() {
}; this.loading = true;
this.getList(); authAdminList(this.query)
}, .then(response => {
onSubmit() { this.loading = false;
this.$router.push({ this.list = response.data.list || [];
path: "", this.total = response.data.total || 0;
query: this.query })
}); .catch(() => {
this.getList(); this.loading = false;
}, this.list = [];
handleCurrentChange(val) { this.total = 0;
this.query.page = val; this.roles = [];
this.getList(); });
}, },
getList() { getRoleList() {
this.loading = true; roleCustomers(this.query)
authAdminList(this.query) .then(response => {
.then(response => { this.roles = response.data.list || [];
this.loading = false; })
this.list = response.data.list || []; .catch(() => {
this.total = response.data.total || 0; this.roles = [];
}) });
.catch(() => { },
this.loading = false; //
this.list = []; resetForm() {
this.total = 0; if (this.$refs["dataForm"]) {
this.roles = []; //
}); this.$refs["dataForm"].clearValidate();
},
getRoleList() {
roleCustomers(this.query)
.then(response => {
this.roles = response.data.list || [];
})
.catch(() => {
this.roles = [];
});
},
// //
resetForm() { this.$refs["dataForm"].resetFields();
if (this.$refs["dataForm"]) { }
// },
this.$refs["dataForm"].clearValidate(); //
// hideForm() {
this.$refs["dataForm"].resetFields(); //
} this.formVisible = !this.formVisible;
}, //
// this.$refs["dataForm"].resetFields();
hideForm() { return true;
// },
this.formVisible = !this.formVisible; //
// handleForm(index, row) {
this.$refs["dataForm"].resetFields(); this.formVisible = true;
return true; this.formData = JSON.parse(JSON.stringify(formJson));
}, if (row !== null) {
// this.formData = Object.assign({}, row);
handleForm(index, row) { }
this.formVisible = true; this.formName = "add";
this.formData = JSON.parse(JSON.stringify(formJson)); this.formRules = this.addRules;
if (row !== null) { if (index !== null) {
this.formData = Object.assign({}, row); this.index = index;
} this.formName = "edit";
this.formName = "add"; this.formRules = this.editRules;
this.formRules = this.addRules; }
if (index !== null) { },
this.index = index; formSubmit() {
this.formName = "edit"; this.$refs["formData"].validate(valid => {
this.formRules = this.editRules; if (valid) {
this.formLoading = true;
let data = Object.assign({}, this.formData);
authAdminSave(data, this.formName).then(response => {
this.formLoading = false;
if (response.code !== 20000) {
this.$message.error(response.message);
return false;
} }
}, this.$message.success("操作成功");
formSubmit() { this.formVisible = false;
this.$refs["formData"].validate(valid => { if (this.formName === "add") {
if (valid) { //
this.formLoading = true; if (response.data && response.data.id) {
let data = Object.assign({}, this.formData); data.id = response.data.id;
authAdminSave(data, this.formName).then(response => { this.list.unshift(data);
this.formLoading = false; }
if (response.code !== 20000) { } else {
this.$message.error(response.message); this.list.splice(this.index, 1, data);
return false;
}
this.$message.success("操作成功");
this.formVisible = false;
if (this.formName === "add") {
//
if (response.data && response.data.id) {
data.id = response.data.id;
this.list.unshift(data);
}
} else {
this.list.splice(this.index, 1, data);
}
//
this.resetForm();
});
}
});
},
//
handleDel(index, row) {
if (row.id) {
this.$confirm("确认删除该记录吗?", "提示", {
type: "warning"
})
.then(() => {
let para = {id: row.id};
this.deleteLoading = true;
authAdminDelete(para)
.then(response => {
this.deleteLoading = false;
if (response.code !== 20000) {
this.$message.error(response.message);
return false;
}
this.$message.success("操作成功");
//
this.list.splice(index, 1);
})
.catch(() => {
this.deleteLoading = false;
});
})
.catch(() => {
this.$message.info("取消删除");
});
} }
//
this.resetForm();
});
} }
});
}, },
filters: { //
statusFilterType(status) { handleDel(index, row) {
const statusMap = { if (row.id) {
0: "gray", this.$confirm("确认删除该记录吗?", "提示", {
1: "success", type: "warning"
2: "danger" })
}; .then(() => {
return statusMap[status]; let para = {id: row.id};
}, this.deleteLoading = true;
statusFilterName(status) { authAdminDelete(para)
const statusMap = { .then(response => {
0: "禁用", this.deleteLoading = false;
1: "正常", if (response.code !== 20000) {
2: "未验证" this.$message.error(response.message);
}; return false;
return statusMap[status]; }
} this.$message.success("操作成功");
}, //
mounted() { this.list.splice(index, 1);
})
.catch(() => {
this.deleteLoading = false;
});
})
.catch(() => {
this.$message.info("取消删除");
});
}
}
},
filters: {
statusFilterType(status) {
const statusMap = {
0: "gray",
1: "success",
2: "danger"
};
return statusMap[status];
}, },
created() { statusFilterName(status) {
// const statusMap = {
let query = this.$route.query; 0: "禁用",
this.query = Object.assign(this.query, query); 1: "正常",
this.query.limit = parseInt(this.query.limit); 2: "未验证"
// };
this.getList(); return statusMap[status];
//
this.getRoleList();
} }
},
mounted() {
},
created() {
//
let query = this.$route.query;
this.query = Object.assign(this.query, query);
this.query.limit = parseInt(this.query.limit);
//
this.getList();
//
this.getRoleList();
}
}; };
</script> </script>

@ -1,76 +1,80 @@
<template> <template>
<div> <div>
<el-card>
<el-table v-loading="loading" :data="list" style="width: 100%">
<el-table-column type="index" label="序号" width="50"></el-table-column> <el-table v-loading="loading" :data="list" style="width: 100%">
<el-table-column label="参数名" prop="paramName" width="200"></el-table-column> <el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="参数键" prop="paramKey" width="200"></el-table-column> <el-table-column label="参数名" prop="paramName" width="200"></el-table-column>
<el-table-column label="参数值" prop="paramValue" width="300"></el-table-column> <el-table-column label="参数键" prop="paramKey" width="200"></el-table-column>
<el-table-column label="参数说明" :show-overflow-tooltip="true"> <el-table-column label="参数值" prop="paramValue" width="300"></el-table-column>
<template slot-scope="scope"> <el-table-column label="参数说明" :show-overflow-tooltip="true">
<span>{{ scope.row.paramExplain }}</span> <template slot-scope="scope">
</template> <span>{{ scope.row.paramExplain }}</span>
</el-table-column> </template>
<el-table-column label="操作" fixed="right" width="200"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="操作" fixed="right" width="200">
<template slot-scope="scope">
<el-button
type="text"
size="small"
@click.native="handleForm(scope.$index, scope.row)"
>设置
</el-button
>
</template>
</el-table-column>
</el-table>
<el-pagination
:page-size="query.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
>
</el-pagination>
<!--表单-->
<el-dialog
:title="formMap[formName]"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="formVisible"
:before-close="hideForm"
width="85%"
top="5vh"
>
<el-form :model="formData" :rules="formRules" ref="dataForm">
<el-form-item label="参数名" prop="paramName">
<el-input v-model="formData.paramName" auto-complete="off" :disabled="true"></el-input>
</el-form-item>
<el-form-item label="参数键" prop="paramKey">
<el-input v-model="formData.paramKey" auto-complete="off" :disabled="true"></el-input>
</el-form-item>
<el-form-item label="参数值" prop="paramValue">
<el-input
type=""
v-model="formData.paramValue"
auto-complete="off"
></el-input>
</el-form-item>
<el-form-item label="参数说明">
<el-input type="textarea" v-model="formData.paramExplain" :disabled="true" rows=6></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click.native="hideForm">取消</el-button>
<el-button <el-button
type="text" type="primary"
size="small" @click.native="formSubmit()"
@click.native="handleForm(scope.$index, scope.row)" :loading="formLoading"
>设置 >提交
</el-button </el-button
> >
</template> </div>
</el-table-column> </el-dialog>
</el-table>
<el-pagination
:page-size="query.limit"
@current-change="handleCurrentChange"
layout="prev, pager, next"
:total="total"
>
</el-pagination>
<!--表单--> </el-card>
<el-dialog
:title="formMap[formName]"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="formVisible"
:before-close="hideForm"
width="85%"
top="5vh"
>
<el-form :model="formData" :rules="formRules" ref="dataForm">
<el-form-item label="参数名" prop="paramName">
<el-input v-model="formData.paramName" auto-complete="off" :disabled="true"></el-input>
</el-form-item>
<el-form-item label="参数键" prop="paramKey">
<el-input v-model="formData.paramKey" auto-complete="off" :disabled="true"></el-input>
</el-form-item>
<el-form-item label="参数值" prop="paramValue">
<el-input
type=""
v-model="formData.paramValue"
auto-complete="off"
></el-input>
</el-form-item>
<el-form-item label="参数说明">
<el-input type="textarea" v-model="formData.paramExplain" :disabled="true" rows=6></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click.native="hideForm">取消</el-button>
<el-button
type="primary"
@click.native="formSubmit()"
:loading="formLoading"
>提交
</el-button
>
</div>
</el-dialog>
</div> </div>
</template> </template>

Loading…
Cancel
Save