|
|
@@ -14,7 +14,7 @@
|
|
|
style="margin-left: 60px"
|
|
|
>
|
|
|
<el-input
|
|
|
- placeholder="填写状态词"
|
|
|
+ :placeholder="placeholder"
|
|
|
size="large"
|
|
|
v-model="status"
|
|
|
class="input"
|
|
|
@@ -56,6 +56,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
status: '',
|
|
|
+ placeholder: '请填写状态(最长6个字符)',
|
|
|
icons: [
|
|
|
{
|
|
|
icon: new URL('../../../assets/svg/task/work.svg', import.meta.url)
|
|
|
@@ -84,7 +85,19 @@ export default {
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
+ created() {
|
|
|
+ this.info()
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ info() {
|
|
|
+ this.$api.dash.workInfo().then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.placeholder = res.data.workStatusDescribe
|
|
|
+ } else {
|
|
|
+ console.log(res)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
update() {
|
|
|
this.$api.dash.submit({ workStatusDescribe: this.status }).then(res => {
|
|
|
if (res.code === 200) {
|