|
@@ -98,24 +98,7 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
return {
|
|
|
- options: [
|
|
|
- {
|
|
|
- value: "1",
|
|
|
- label: "回票明细报表",
|
|
|
- },
|
|
|
- {
|
|
|
- value: "2",
|
|
|
- label: "回票公司订单明细报表",
|
|
|
- },
|
|
|
- {
|
|
|
- value: "3",
|
|
|
- label: "库存出入库明细报表",
|
|
|
- },
|
|
|
- {
|
|
|
- value: "4",
|
|
|
- label: "收入成本明细报表",
|
|
|
- },
|
|
|
- ],
|
|
|
+ options: [],
|
|
|
loading: false,
|
|
|
title: "添加账号",
|
|
|
showModelThis: this.showModel,
|
|
@@ -162,6 +145,7 @@ export default {
|
|
|
},
|
|
|
async initForm() {
|
|
|
this.loading = true;
|
|
|
+ this.options = [];
|
|
|
this.rulesThis = this.rules;
|
|
|
await this.resetForm();
|
|
|
this.loading = false;
|
|
@@ -184,11 +168,17 @@ export default {
|
|
|
if (this.$refs.ruleForm) {
|
|
|
this.$refs.ruleForm.resetFields();
|
|
|
this.$refs.ruleForm.clearValidate();
|
|
|
- const { start, end, id } = this.sitem;
|
|
|
- console.log(this.sitem);
|
|
|
+ const { start, end, id, name } = this.sitem;
|
|
|
+ // console.log(this.sitem);
|
|
|
+ this.options = [
|
|
|
+ {
|
|
|
+ value: id,
|
|
|
+ label: name,
|
|
|
+ },
|
|
|
+ ];
|
|
|
this.ruleForm = {
|
|
|
- start: "",
|
|
|
- end: "",
|
|
|
+ start: "",
|
|
|
+ end: "",
|
|
|
id: id || "",
|
|
|
};
|
|
|
console.log(this.ruleForm);
|