baizonghao
2023-05-25 3c4d54bcb66d7cec4a35defc999250e200b4fdd2
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,11 +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();
      })
    },
@@ -242,11 +249,12 @@
      this.detailsVisible = true;
            this.detailsRow = Object.assign({}, val);
    },
    // 更新
    update(){
      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();
      }
      )
@@ -306,6 +314,7 @@
      let param = {}
      param.realName = this.queryInfo.realName
      param.userMobile = this.queryInfo.userMobile
      param.current = this.queryInfo.current
      param.size = this.queryInfo.size
      getPublicityList(param).then(res => {
        this.publicityList = res.records;
@@ -322,4 +331,4 @@
::v-deep(.el-table thead) {
  color: #000000;
}
</style>
</style>