rpj增加已关闭选项/人员高度不固定

This commit is contained in:
曹前明 2022-09-27 12:43:58 +08:00
parent 8ee216165d
commit 1e1f79b99c
5 changed files with 40 additions and 49 deletions

View File

@ -7,8 +7,8 @@ VUE_APP_TITLE = '曲阳金隅安全智能管控平台'
# 接口地址 # 接口地址
#VUE_APP_API_BASEURL = http://1.203.161.103:2800/api #VUE_APP_API_BASEURL = http://1.203.161.103:2800/api
#VUE_APP_WS_API = 'ws://localhost:8000' #VUE_APP_WS_API = 'ws://localhost:8000'
#VUE_APP_API_BASEURL = http://222.222.144.147:6013/api VUE_APP_API_BASEURL = http://222.222.144.147:6013/api
VUE_APP_API_BASEURL = http://127.0.0.1:8000/api #VUE_APP_API_BASEURL = http://127.0.0.1:8000/api
#VUE_APP_BASEURL = http://127.0.0.1:8000 #VUE_APP_BASEURL = http://127.0.0.1:8000

View File

@ -129,6 +129,7 @@
<el-select <el-select
v-model="form.vchannels" v-model="form.vchannels"
:multiple = "true" :multiple = "true"
filterable
> >
<el-option <el-option
v-for="item in vchannelOptions" v-for="item in vchannelOptions"

View File

@ -23,22 +23,15 @@
</div> </div>
</el-header> </el-header>
<el-main class="nopadding"> <el-main class="nopadding">
<scTable <scTable ref="table" :apiObj="apiObj" row-key="id" stripe>
ref="table"
:apiObj="apiObj"
row-key="id"
stripe
>
<el-table-column label="#" type="index" width="50"></el-table-column> <el-table-column label="#" type="index" width="50"></el-table-column>
<el-table-column label="单位" prop="rparty_name" ></el-table-column> <el-table-column label="单位" prop="rparty_name"></el-table-column>
<el-table-column label="姓名" prop="name" ></el-table-column> <el-table-column label="姓名" prop="name"></el-table-column>
<el-table-column label="手机号" prop="phone" ></el-table-column> <el-table-column label="手机号" prop="phone"></el-table-column>
<el-table-column label="身份证号" prop="id_number" ></el-table-column> <el-table-column label="身份证号" prop="id_number"></el-table-column>
<el-table-column label="证件照" prop="photo" > <el-table-column label="证件照" prop="photo">
<template #default="scope"> <template #default="scope">
<el-avatar :size="50" :src="scope.row.photo" shape="square"/> <el-avatar :size="50" :src="scope.row.photo" shape="square" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" fixed="right" align="left" width="170"> <el-table-column label="操作" fixed="right" align="left" width="170">
@ -91,8 +84,8 @@ export default {
save: false, save: false,
permission: false, permission: false,
}, },
adminform:{ adminform: {
username:"", username: "",
}, },
apiObj: this.$API.rpm.remployee.list, apiObj: this.$API.rpm.remployee.list,
query: {}, query: {},
@ -100,8 +93,6 @@ export default {
search: { search: {
keyword: null, keyword: null,
}, },
}; };
}, },
methods: { methods: {
@ -136,12 +127,11 @@ export default {
}, },
// //
async table_del(row) { async table_del(row) {
this.$API.rpm.remployee.delete this.$API.rpm.remployee.delete
.req(row.id) .req(row.id)
.then((res) => { .then((res) => {
this.$message.success("删除成功"); this.$message.success("删除成功");
this.$refs.table.refresh();
return res; return res;
}) })
.catch((err) => { .catch((err) => {
@ -158,7 +148,7 @@ export default {
} }
}, },
handleQuery() { handleQuery() {
this.$refs.table.queryData(this.query) this.$refs.table.queryData(this.query);
}, },
resetQuery() { resetQuery() {
this.query = {}; this.query = {};

View File

@ -271,6 +271,7 @@ export default {
30: "待入厂", 30: "待入厂",
40: "进行中", 40: "进行中",
50: "已完成", 50: "已完成",
60: "已关闭"
}, },
act_states: { act_states: {
0: "草稿中", 0: "草稿中",
@ -334,7 +335,7 @@ export default {
.req(row.id) .req(row.id)
.then((res) => { .then((res) => {
this.$message.success("删除成功"); this.$message.success("删除成功");
this.$refs.table.refresh();
return res; return res;
}) })
.catch((err) => { .catch((err) => {

View File

@ -59,7 +59,6 @@
stripe stripe
hideDo hideDo
hidePagination hidePagination
style="height:200px"
> >
<el-table-column label="#" fixed="left" type="index" width="50"></el-table-column> <el-table-column label="#" fixed="left" type="index" width="50"></el-table-column>
<el-table-column label="姓名" prop="remployee_.name"> <el-table-column label="姓名" prop="remployee_.name">