odc.xiaohui
2023-03-23 05df4f202c9a21b384e4b6109f22901c00859a9a
删除用户提醒
1个文件已修改
32 ■■■■■ 已修改文件
src/views/manager/Police.vue 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/manager/Police.vue
@@ -80,14 +80,14 @@
              label-width="100px">
              <el-col :span="12">
                <el-form-item label="姓名" prop="realName">
                  <el-input v-model="detailsRow.realName"
                  <el-input v-model="detailsRow.realName"
                    :style="{ width: '100%' }">
                  </el-input>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="手机号" prop="phoneNumber">
                  <el-input v-model="detailsRow.userMobile"
                  <el-input v-model="detailsRow.userMobile"
                    :style="{ width: '100%' }">
                  </el-input>
                </el-form-item>
@@ -99,7 +99,7 @@
                  </el-input>
                </el-form-item>
              </el-col>
            </el-form>
          </el-row>
          <span slot="footer" class="dialog-footer">
@@ -150,7 +150,7 @@
      //详细内容弹框
      detailsVisible: false,
      //详细内容
      detailsRow:
      detailsRow:
        {
        }
      ,
@@ -204,10 +204,18 @@
    //删除
    remove(val) {
      this.$http.delete('/api/user/manager', { params: { id: val } }).then(res => {
        this.$message({
          message: '删除成功',
          type: 'success'
        })
        console.log(res)
        if (res.data.code==200){
          this.$message({
            message: '删除成功',
            type: 'success'
          })
        }else {
          this.$message({
            message: res.data.msg,
            type: 'error'
          })
        }
        this.search();
      })
@@ -246,7 +254,7 @@
      this.detailsRow.phoneNumber=this.detailsRow.userMobile
          this.$http.put('/api/user/manager',this.detailsRow).then(res => {this.$message({
        message: '编辑成功',
        type: 'success'}
        type: 'success'}
        )
         this.search();}
        );
@@ -265,13 +273,13 @@
        this.$refs.addPublicityForm.validate(async (vaild) => {
        if (!vaild) return this.$message.error('输入有误')
      let param = null;
      param = this.addPublicityForm;
      param = this.addPublicityForm;
      addPublicityList(param).then(res => {
        this.$message({
          message: '操作成功',
          type: 'success'
        });
        this.addPublicityForm={};
        this.addPublicityForm={};
        this.init();
      }
      )
@@ -322,4 +330,4 @@
::v-deep(.el-table thead) {
  color: #000000;
}
</style>
</style>