|
@@ -84,6 +84,12 @@
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
</div>
|
|
|
+ <div>
|
|
|
+ <u-modal :show="show123" @confirm="confirm" @cancel="cancel" @close="close" asyncClose
|
|
|
+ closeOnClickOverlay showCancelButton confirmColor="red" title="是否删除该数据项" content="确认删除?"
|
|
|
+ ref="uModal"></u-modal>
|
|
|
+ </div>
|
|
|
+ <!-- <button @click="show123 = true">11</button> -->
|
|
|
<button class="circleBtn" @click="addNewPeople">+</button>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -135,9 +141,16 @@
|
|
|
phoneRules: false,
|
|
|
tableSure: true,
|
|
|
tableSure1: false,
|
|
|
+ showDel: false,
|
|
|
+ makeDelId: "",
|
|
|
+ show123: false
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ open() {
|
|
|
+ // 通过组件定义的ref调用uni-popup方法 ,如果传入参数 ,type 属性将失效 ,仅支持 ['top','left','bottom','right','center']
|
|
|
+ this.$refs.popup.open('center')
|
|
|
+ },
|
|
|
getUser() {
|
|
|
getUserProfile().then(res => {
|
|
|
this.doorId = res.data.dept.id
|
|
@@ -149,11 +162,11 @@
|
|
|
pageNo: 1,
|
|
|
pageSize: 10
|
|
|
}).then(res => {
|
|
|
- if(res.data.list.length != 0){
|
|
|
+ if (res.data.list.length != 0) {
|
|
|
this.tableList = res.data.list
|
|
|
this.tableSure = true
|
|
|
this.tableSure1 = false
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.tableSure = false
|
|
|
this.tableSure1 = true
|
|
|
}
|
|
@@ -230,24 +243,11 @@
|
|
|
|
|
|
},
|
|
|
delUser(row) {
|
|
|
- console.log(row, '123');
|
|
|
- delPeople(row.id).then(res => {
|
|
|
- if (res.data) {
|
|
|
- uni.showToast({
|
|
|
- title: '删除成功',
|
|
|
- icon: 'success', // 图标类型,可选值:'success', 'loading', 'none'
|
|
|
- duration: 2000, // 持续时间,单位为毫秒,默认值为 1500
|
|
|
- mask: false, // 是否显示透明蒙层,防止触摸穿透,默认值为 false
|
|
|
- success() {
|
|
|
- console.log('toast消息提示显示成功');
|
|
|
- },
|
|
|
- fail(err) {
|
|
|
- console.error('toast消息提示显示失败', err);
|
|
|
- }
|
|
|
- });
|
|
|
- this.getAllPeople()
|
|
|
- }
|
|
|
- })
|
|
|
+ this.makeDelId = row.id
|
|
|
+ this.show123 = true
|
|
|
+ },
|
|
|
+ makeSureDel() {
|
|
|
+
|
|
|
},
|
|
|
editUser(row) {
|
|
|
getOne({
|
|
@@ -339,6 +339,32 @@
|
|
|
},
|
|
|
noAdd() {
|
|
|
this.meetList = []
|
|
|
+ },
|
|
|
+ confirm() {
|
|
|
+ delPeople(this.makeDelId).then(res => {
|
|
|
+ if (res.data) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '删除成功',
|
|
|
+ icon: 'success', // 图标类型,可选值:'success', 'loading', 'none'
|
|
|
+ duration: 2000, // 持续时间,单位为毫秒,默认值为 1500
|
|
|
+ mask: false, // 是否显示透明蒙层,防止触摸穿透,默认值为 false
|
|
|
+ success() {
|
|
|
+ console.log('toast消息提示显示成功');
|
|
|
+ },
|
|
|
+ fail(err) {
|
|
|
+ console.error('toast消息提示显示失败', err);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.getAllPeople()
|
|
|
+ this.show123 = false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ cancel() {
|
|
|
+ this.show123 = false//取消
|
|
|
+ },
|
|
|
+ close() {
|
|
|
+ this.show123 = false //遮罩层
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
@@ -472,11 +498,25 @@
|
|
|
/* background-color: red; */
|
|
|
border: 2rpx solid #4DB1B6;
|
|
|
}
|
|
|
- .noMesBox{
|
|
|
+
|
|
|
+ .noMesBox {
|
|
|
width: 400rpx;
|
|
|
height: 400rpx;
|
|
|
margin: 0 auto;
|
|
|
text-align: center;
|
|
|
line-height: 400rpx;
|
|
|
}
|
|
|
+
|
|
|
+ /deep/ .antherBtn {
|
|
|
+ width: 50%;
|
|
|
+ height: 50rpx;
|
|
|
+ margin-bottom: 30rpx;
|
|
|
+ border: none;
|
|
|
+ /* background-color: #4DB1B6; */
|
|
|
+ color: black;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 50rpx;
|
|
|
+ font-size: 30rpx;
|
|
|
+ /* border-radius: 0rpx; */
|
|
|
+ }
|
|
|
</style>
|