Merge remote-tracking branch 'origin/pet' into dev

liujun-267公司新增人员定位
shanao 2024-12-11 18:01:03 +08:00
commit 1c729eb851
5 changed files with 10 additions and 4 deletions

View File

@ -157,6 +157,7 @@ export default {
return false return false
} }
this.$emit('selectPeople', _selectData[0]) this.$emit('selectPeople', _selectData[0])
Object.assign(this.$data, this.$options.data.call(this))
this.visible = false this.visible = false
}, },
getList(DEPARTMENT_ID) { getList(DEPARTMENT_ID) {

View File

@ -6,6 +6,7 @@
<el-date-picker <el-date-picker
v-model="monthvalue" v-model="monthvalue"
:clearable="false" :clearable="false"
:editable="false"
type="month" type="month"
value-format="yyyy-MM" value-format="yyyy-MM"
placeholder="选择月"/> placeholder="选择月"/>

View File

@ -92,8 +92,8 @@ export default {
TELEPHONE: [ TELEPHONE: [
{ required: true, message: '请输入办公电话', trigger: 'blur' }, { required: true, message: '请输入办公电话', trigger: 'blur' },
{ {
pattern: /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/, pattern: /^1[3-9]\d{9}$|^0\d{2,3}-\d{7,8}$/,
message: '请输入正确的手机号码' message: '请输入正确的手机号码或座机号码'
} }
], ],
TEAM_POSITION: [ TEAM_POSITION: [

View File

@ -475,8 +475,8 @@ export default {
RESPONSIBLE_OFFICE_PHONE: [ RESPONSIBLE_OFFICE_PHONE: [
{ required: true, message: '负责人办公电话不能为空', trigger: 'blur' }, { required: true, message: '负责人办公电话不能为空', trigger: 'blur' },
{ {
pattern: /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/, pattern: /^1[3-9]\d{9}$|^0\d{2,3}-\d{7,8}$/,
message: '请输入正确的手机号码' message: '请输入正确的手机号码或座机号码'
} }
] ]
}, },

View File

@ -283,9 +283,11 @@ export default {
if (data.result === 'success') { if (data.result === 'success') {
this.listLoading = false this.listLoading = false
this.getList() this.getList()
this.$message.success('删除成功')
} }
}).catch((e) => { }).catch((e) => {
this.listLoading = false this.listLoading = false
this.$message.error('删除失败')
}) })
}).catch(() => { }).catch(() => {
}) })
@ -317,12 +319,14 @@ export default {
ids: ids ids: ids
} }
).then(() => { ).then(() => {
this.$message.success('删除成功')
this.listLoading = false this.listLoading = false
this.varList = [] this.varList = []
this.listQuery.page = 1 this.listQuery.page = 1
this.$refs.multipleTable.clearSelection() this.$refs.multipleTable.clearSelection()
this.getList() this.getList()
}).catch((e) => { }).catch((e) => {
this.$message.error('删除失败')
this.listLoading = false this.listLoading = false
}) })
}).catch(() => { }).catch(() => {