From 777411294c6272ac3fc98bdbc37f9ae21f0b692f Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 21 Jun 2024 17:56:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E7=94=A8=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xbot/AppTaskAi/components/TaskAdd.vue | 43 ++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/packages/xbot/AppTaskAi/components/TaskAdd.vue b/packages/xbot/AppTaskAi/components/TaskAdd.vue index bc060a00..78b4d156 100644 --- a/packages/xbot/AppTaskAi/components/TaskAdd.vue +++ b/packages/xbot/AppTaskAi/components/TaskAdd.vue @@ -113,6 +113,20 @@ + +
+ {{item.areaName}} + +
+
+ 111 + +
+
+ 111 + +
+
@@ -425,7 +439,8 @@ export default { label: '23点到24点', value: 0 } - ] + ], + areaList: [], } }, @@ -444,6 +459,14 @@ export default { }, created() { + this.instance.post(`/app/appmasssendingtaskbaidu/queryAreaList`).then(res => { + if (res.code === 0) { + res.data.map((item) => { + item.proportion = 0 + }) + this.areaList = res.data + } + }) if (this.params && this.params.id) { this.id = this.params.id this.getInfo(this.params.id) @@ -736,6 +759,7 @@ export default { examineUserName: v.name } }) : [], + questionConfig: this.areaList }).then(res => { if (res.code == 0) { this.$message.success('提交成功') @@ -809,6 +833,13 @@ export default { this.isShowDay = false }, + areaNumChange(index) { + if(!/^(?:[0-1]+\.[0-9]*|[0-9]*\.[0-9]+|1\.?0*)$/.test(this.areaList[index].proportion)) { + this.areaList[index].proportion = 0 + return this.$message.error('请输入小于1的数字或小数') + } + }, + cancel(isRefresh) { this.$emit('change', { type: 'TaskList', @@ -1089,5 +1120,15 @@ export default { color: #999; cursor: pointer; } + .area-flex { + display: inline-block; + margin-right: 32px; + .area-label { + display: inline-block; + font-size: 14px; + color: #666; + margin-right: 8px; + } + } }