|
@@ -82,8 +82,8 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="公司LOGO" prop="logo" ref="img">
|
|
<el-form-item label="公司LOGO" prop="logo" ref="img">
|
|
<!-- <el-checkbox-group v-model="form.logo" v-show="false"></el-checkbox-group> -->
|
|
<!-- <el-checkbox-group v-model="form.logo" v-show="false"></el-checkbox-group> -->
|
|
- <el-upload
|
|
|
|
- action="#"
|
|
|
|
|
|
+ <el-upload
|
|
|
|
+ action="#"
|
|
accept="image/png,image/jpg,image/jpeg"
|
|
accept="image/png,image/jpg,image/jpeg"
|
|
:http-request="uploadFile"
|
|
:http-request="uploadFile"
|
|
:limit = limit
|
|
:limit = limit
|
|
@@ -94,7 +94,7 @@
|
|
:auto-upload="true">
|
|
:auto-upload="true">
|
|
<i slot="default" class="el-icon-plus"></i>
|
|
<i slot="default" class="el-icon-plus"></i>
|
|
<div slot="file" slot-scope="{file}">
|
|
<div slot="file" slot-scope="{file}">
|
|
- <img class="el-upload-list__item-thumbnail imgupload" :src="file.url" alt="" >
|
|
|
|
|
|
+ <img class="el-upload-list__item-thumbnail imgupload" :src="file.url" alt="" >
|
|
<span class="el-upload-list__item-actions">
|
|
<span class="el-upload-list__item-actions">
|
|
<span v-if="!disabled" class="el-upload-list__item-delete" @click="handleRemove(file)">
|
|
<span v-if="!disabled" class="el-upload-list__item-delete" @click="handleRemove(file)">
|
|
<i class="el-icon-delete"></i>
|
|
<i class="el-icon-delete"></i>
|
|
@@ -106,14 +106,14 @@
|
|
<img width="100%" :src="dialogImageUrl" alt="">
|
|
<img width="100%" :src="dialogImageUrl" alt="">
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
-
|
|
|
|
|
|
+
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button type="primary" @click="submitForm" v-if="!loading">确 定</el-button>
|
|
<el-button type="primary" @click="submitForm" v-if="!loading">确 定</el-button>
|
|
<el-button :loading="loading" type="primary" @click="submitForm" v-else>提交中...</el-button>
|
|
<el-button :loading="loading" type="primary" @click="submitForm" v-else>提交中...</el-button>
|
|
<el-button @click="cancel">取 消</el-button>
|
|
<el-button @click="cancel">取 消</el-button>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -123,7 +123,7 @@ import { addChannel, updataChannel, delChannel, listChannel, fileId, uploadFileA
|
|
export default {
|
|
export default {
|
|
name: "admin",
|
|
name: "admin",
|
|
data() {
|
|
data() {
|
|
- return {
|
|
|
|
|
|
+ return {
|
|
// 遮罩层
|
|
// 遮罩层
|
|
loading: true,
|
|
loading: true,
|
|
// 导出遮罩层
|
|
// 导出遮罩层
|
|
@@ -231,11 +231,11 @@ export default {
|
|
this.total = response.data.total;
|
|
this.total = response.data.total;
|
|
this.logo = arrBig.logo;
|
|
this.logo = arrBig.logo;
|
|
},1000)
|
|
},1000)
|
|
-
|
|
|
|
|
|
+
|
|
}else{
|
|
}else{
|
|
|
|
+ this.adminList = []
|
|
this.loading = false;
|
|
this.loading = false;
|
|
}
|
|
}
|
|
-
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 移出图片
|
|
// 移出图片
|
|
@@ -296,7 +296,7 @@ export default {
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
this.reset();
|
|
this.reset();
|
|
-
|
|
|
|
|
|
+
|
|
// const id = row.id || this.ids
|
|
// const id = row.id || this.ids
|
|
// getadmin(id).then(response => {
|
|
// getadmin(id).then(response => {
|
|
Object.assign(this.form, row.id ? this.adminList.find(val=>val.id === row.id) : this.adminList.find(val=>val.id === this.ids[0]))
|
|
Object.assign(this.form, row.id ? this.adminList.find(val=>val.id === row.id) : this.adminList.find(val=>val.id === this.ids[0]))
|
|
@@ -325,7 +325,7 @@ export default {
|
|
let valid = img.width === width && img.height === height;
|
|
let valid = img.width === width && img.height === height;
|
|
valid ? resolve() : reject();
|
|
valid ? resolve() : reject();
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
img.src = _URL.createObjectURL(file);
|
|
img.src = _URL.createObjectURL(file);
|
|
}).then(() => {
|
|
}).then(() => {
|
|
return file;
|
|
return file;
|