Переглянути джерело

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

余思翰 2 місяці тому
джерело
коміт
f2548b576a

+ 3
- 1
oa-ui/src/views/flowable/form/budget/siteExpenses.vue Переглянути файл

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

Завантаження…
Відмінити
Зберегти