dev
e 3 years ago
parent 89f080c9f5
commit 75e523724e
  1. 10
      package-lock.json
  2. 1
      package.json
  3. 2
      src/views/customer/customer.vue
  4. 24
      src/views/user/User.vue

10
package-lock.json generated

@ -1988,6 +1988,16 @@
"object.assign": "^4.1.0"
}
},
"babel-plugin-import": {
"version": "1.13.3",
"resolved": "https://registry.nlark.com/babel-plugin-import/download/babel-plugin-import-1.13.3.tgz",
"integrity": "sha1-nbu6fRrHK9QSkXqDDUReAJQdJtc=",
"dev": true,
"requires": {
"@babel/helper-module-imports": "^7.0.0",
"@babel/runtime": "^7.0.0"
}
},
"babel-plugin-module-resolver": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/babel-plugin-module-resolver/-/babel-plugin-module-resolver-3.2.0.tgz",

@ -28,6 +28,7 @@
"devDependencies": {
"@vue/cli-plugin-babel": "^3.9.0",
"@vue/cli-service": "^3.9.0",
"babel-plugin-import": "^1.13.3",
"element-theme-chalk": "^2.13.0",
"sass-loader": "^8.0.0",
"vue-template-compiler": "^2.6.10"

@ -33,7 +33,7 @@
</el-col>
<el-col :span="6">
<el-form-item>
<el-input placeholder="请输入客户名称/管理员姓名/电话" prefix-icon="el-icon-search" v-model="form.keyword" clearable></el-input>
<el-input placeholder="支持客户,联系人,账号搜索" prefix-icon="el-icon-search" v-model="form.keyword" clearable></el-input>
</el-form-item>
</el-col>
</el-form>

@ -218,10 +218,6 @@ export default {
value: 2,
label: '数据平台'
},
{
value: 3,
label: '中台'
}
],
page: 1,
pageSize: 10,
@ -373,7 +369,11 @@ export default {
id: row.userId,
isEnable: val
}).then(res => {
this.$message.success(val ? '启用成功' : '禁用成功')
if(res.code == '200') {
this.$message.success(val ? '启用成功' : '禁用成功')
}else{
this.$message.success(res.message)
}
}).catch(res => {})
},
handleSelectionChange(val) {
@ -386,10 +386,16 @@ export default {
type: 'warning'
}).then(() => {
this.$post(this.api.delUserAccounts,delList).then(res => {
this.multipleSelection = [];
this.$message.success('删除成功')
this.getData()
}).catch(res => {})
}).catch(res => {
if(res.code == '200') {
this.multipleSelection = [];
this.$message.success('删除成功')
this.getData()
}else{
this.$message.success(res.message)
}
})
}).catch(() => {})
}else{
this.$message.error('请先选择客户 !')

Loading…
Cancel
Save