|
@@ -38,7 +38,7 @@
|
|
|
@click="openMainForm('edit', scope.row.websitId)">编辑</el-button>
|
|
|
<el-button type="primary" size="mini" icon="el-icon-edit"
|
|
|
@click="handleDelete(scope.row.websitId)">删除</el-button>
|
|
|
- <el-button v-if="scope.row.level < 3" :type="['primary', 'warning'][scope.row.level - 1]" plain size="mini"
|
|
|
+ <el-button v-if="scope.row.level == 2" :type="['primary', 'warning'][scope.row.level - 1]" plain size="mini"
|
|
|
icon="el-icon-plus" @click="openMainForm('add', scope.row.websitId)">添加{{ scope.row.level == 1 ? '商户' :
|
|
|
scope.row.level == 2 ? '网点' : '网点' }}</el-button>
|
|
|
</template>
|
|
@@ -67,6 +67,9 @@
|
|
|
<el-form-item label="名称" prop="name">
|
|
|
<el-input placeholder="请输入网点名称" v-model="mainForm.name"></el-input>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="地址">
|
|
|
+ <el-input placeholder="请输入地址" v-model="mainForm.address"></el-input>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="状态" prop="status">
|
|
|
<el-radio-group v-model="mainForm.status">
|
|
|
<el-radio :label="true">启用</el-radio>
|
|
@@ -101,6 +104,7 @@ export default {
|
|
|
mainForm: {
|
|
|
parentId: '',
|
|
|
name: '',
|
|
|
+ address:'',
|
|
|
status: true,
|
|
|
},
|
|
|
mainFormRules: {
|
|
@@ -210,6 +214,7 @@ export default {
|
|
|
this.mainForm = {
|
|
|
parentId: res.data.parentId,
|
|
|
name: res.data.name,
|
|
|
+ address:res.data.address,
|
|
|
status: res.data.status,
|
|
|
}
|
|
|
})
|
|
@@ -220,6 +225,8 @@ export default {
|
|
|
cancelMainForm() {
|
|
|
this.mainFormVisible = false
|
|
|
this.$refs.mainForm.resetFields()
|
|
|
+ this.mainForm.parentId = ''
|
|
|
+ this.mainForm.address = ''
|
|
|
this.mainForm.name = ''
|
|
|
},
|
|
|
|
|
@@ -236,6 +243,7 @@ export default {
|
|
|
let params = {
|
|
|
parentId,
|
|
|
name: this.mainForm.name,
|
|
|
+ address: this.mainForm.address,
|
|
|
status: this.mainForm.status,
|
|
|
}
|
|
|
if (this.mainFormType == 'edit') {
|