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

网页端:修改现场开支新增项的排序

余思翰 7 месяцев назад
Родитель
Сommit
f2548b576a
1 измененных файлов: 3 добавлений и 1 удалений
  1. 3
    1
      oa-ui/src/views/flowable/form/budget/siteExpenses.vue

+ 3
- 1
oa-ui/src/views/flowable/form/budget/siteExpenses.vue Просмотреть файл

171
     submitNewExpense() {
171
     submitNewExpense() {
172
       this.$refs["newExpenseForm"].validate(valid => {
172
       this.$refs["newExpenseForm"].validate(valid => {
173
         if (valid) {
173
         if (valid) {
174
+          let length = this.dict.type.cmc_borrow_expense.length;
174
           this.newExpenseForm.dictType = 'cmc_borrow_expense';
175
           this.newExpenseForm.dictType = 'cmc_borrow_expense';
175
           this.newExpenseForm.dictLabel = this.newExpenseForm.name;
176
           this.newExpenseForm.dictLabel = this.newExpenseForm.name;
176
           this.newExpenseForm.dictValue = this.newExpenseForm.name;
177
           this.newExpenseForm.dictValue = this.newExpenseForm.name;
177
-          this.newExpenseForm.listClass = 'default'
178
+          this.newExpenseForm.listClass = 'default';
179
+          this.newExpenseForm.dictSort = length;
178
           addData(this.newExpenseForm).then(response => {
180
           addData(this.newExpenseForm).then(response => {
179
             this.$modal.msgSuccess("新增成功");
181
             this.$modal.msgSuccess("新增成功");
180
             this.open = false;
182
             this.open = false;

Загрузка…
Отмена
Сохранить