feat: 发布1.4.1版本

This commit is contained in:
2025-10-23 18:01:46 +08:00
parent 13e8b3ab93
commit 1146959052
30 changed files with 664 additions and 1057 deletions
@@ -10,6 +10,7 @@
:disabled="disabled"
:options="deptOptions"
style="width: 100%"
placeholder="请选择产品线"
@change="handleChange"
/>
</template>
@@ -1,81 +1,81 @@
<!--
* 单用户选择组件
* @author odboy
* @email tianjun@odboy.cn
* @created 2025-07-29
-->
<template>
<el-select
v-model="user"
style="width: 100%"
filterable
remote
clearable
reserve-keyword
placeholder="支持用户姓名、手机号、邮箱、用户名查询"
:remote-method="remoteMethod"
:loading="loading"
@change="onChange"
>
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</template>
<script>
import UserService from '@/api/system/user'
export default {
name: 'CuteOneUserSelect',
props: {
value: {
type: String,
required: false,
default: null
}
},
data() {
return {
user: this.value,
loading: false,
options: []
}
},
watch: {
value(newVal) {
this.user = newVal
}
},
methods: {
remoteMethod(query) {
if (query !== '') {
this.loading = true
setTimeout(() => {
this.loading = false
this.queryUserMetaPage(query)
}, 200)
} else {
this.options = []
}
},
queryUserMetaPage(query, options) {
const that = this
UserService.queryUserMetaPage(query).then(res => {
that.options = res
})
},
onChange(value) {
// 绑定change事件
this.$emit('change', value)
// 绑定form value
this.$emit('input', value)
}
}
}
</script>
<!--
* 单用户选择组件
* @author odboy
* @email tianjun@odboy.cn
* @created 2025-07-29
-->
<template>
<el-select
v-model="user"
style="width: 100%"
filterable
remote
clearable
reserve-keyword
placeholder="支持用户姓名、手机号、邮箱、用户名查询"
:remote-method="remoteMethod"
:loading="loading"
@change="onChange"
>
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</template>
<script>
import UserService from '@/api/system/user'
export default {
name: 'CuteSingleUserSelect',
props: {
value: {
type: String,
required: false,
default: null
}
},
data() {
return {
user: this.value,
loading: false,
options: []
}
},
watch: {
value(newVal) {
this.user = newVal
}
},
methods: {
remoteMethod(query) {
if (query !== '') {
this.loading = true
setTimeout(() => {
this.loading = false
this.queryUserMetaPage(query)
}, 200)
} else {
this.options = []
}
},
queryUserMetaPage(query, options) {
const that = this
UserService.queryUserMetaPage(query).then(res => {
that.options = res
})
},
onChange(value) {
// 绑定change事件
this.$emit('change', value)
// 绑定form value
this.$emit('input', value)
}
}
}
</script>
@@ -15,7 +15,7 @@ export default {
props: {
desc: {
type: String,
required: true,
required: false,
default: '暂无匹配数据'
}
}
@@ -17,7 +17,7 @@
截图并下载
</el-button>
</div>
<div id="elementIdSelector">
<div id="elementIdSelector" style="padding: 15px">
<slot />
</div>
</div>