rpj增加已关闭选项/人员高度不固定
This commit is contained in:
parent
8ee216165d
commit
1e1f79b99c
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -23,48 +23,41 @@
|
||||||
</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">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button
|
<el-button
|
||||||
link
|
link
|
||||||
type="primary"
|
type="primary"
|
||||||
size="small"
|
size="small"
|
||||||
@click="table_show(scope.row, scope.$index)"
|
@click="table_show(scope.row, scope.$index)"
|
||||||
>查看</el-button
|
>查看</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
link
|
link
|
||||||
type="warning"
|
type="warning"
|
||||||
size="small"
|
size="small"
|
||||||
@click="table_edit(scope.row, scope.$index)"
|
@click="table_edit(scope.row, scope.$index)"
|
||||||
>编辑</el-button
|
>编辑</el-button
|
||||||
>
|
>
|
||||||
<el-popconfirm
|
<el-popconfirm
|
||||||
title="确定删除吗?"
|
title="确定删除吗?"
|
||||||
@confirm="table_del(scope.row, scope.$index)"
|
@confirm="table_del(scope.row, scope.$index)"
|
||||||
>
|
>
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-button link type="danger" size="small">删除</el-button>
|
<el-button link type="danger" size="small">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</scTable>
|
</scTable>
|
||||||
|
@ -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 = {};
|
||||||
|
|
|
@ -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) => {
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue