Просмотр исходного кода

批量完结提示修改提交

LAPTOP-16IUEB3P\Lenovo 2 лет назад
Родитель
Сommit
400b0824c0
1 измененных файлов с 13 добавлено и 5 удалено
  1. 13 5
      src/views/produceOrder/index.vue

+ 13 - 5
src/views/produceOrder/index.vue

@@ -366,11 +366,19 @@
           this.selection.map((item) => {
             ids.push(item.id);
           });
-          this.$confirm(`是否要完结${this.selection.length}条工单?`, '提醒', {
-            confirmButtonText: '确认',
-            cancelButtonText: '取消',
-            type: 'warning'
-          })
+		  const h = this.$createElement;
+           this.$msgbox({
+			  title: '提醒',
+			  message: h('p', null, [
+				h('span', null, '是否要完结 '),
+				h('span', { style: 'color: #70B603' }, `${this.selection.length}`),
+				h('span', null, ' 条工单?'),
+			  ]),
+			  showCancelButton: true,
+			  confirmButtonText: '确认',
+			  cancelButtonText: '取消',
+			  type: 'warning'
+			})
             .then(() => {
               batchCompletion(ids).then((res) => {
                 this.$message.success('成功');