|
@@ -1,907 +1,472 @@
|
|
|
<template>
|
|
|
- <div class="mainBox">
|
|
|
- <!--搜索功能 start------------------------------------------------------------>
|
|
|
- <div class="layerBox_search">
|
|
|
- <div class="layerBoxLine">
|
|
|
+ <!-- 路由白名单位管理 -->
|
|
|
+ <div>
|
|
|
+ <!-- 头部搜索框部分 -->
|
|
|
+ <div class="title">
|
|
|
<el-row>
|
|
|
- <el-col :span="8">
|
|
|
- <div class="searchBox">
|
|
|
- <div class="searchTitle">分类:</div>
|
|
|
- <el-input placeholder="请输入网站名称" autocomplete="off" v-model="getApiData.keyword" />
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <div class="searchBox">
|
|
|
- <div class="searchTitle">商圈名称:</div>
|
|
|
- <el-cascader v-model="getApiData.website_column_id" :props="{ checkStrictly: true }"
|
|
|
- :options="website_column_arr" clearable></el-cascader>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8">
|
|
|
+
|
|
|
+ <el-col :span="6" class="left">
|
|
|
+ <div class="searchBox">
|
|
|
+ <div class="searchTitle">分类</div>
|
|
|
+ <el-select v-model="type" clearable placeholder="请选择">
|
|
|
+ <el-option
|
|
|
+ v-for="item in classList"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6" class="left">
|
|
|
+
|
|
|
+ <div class="searchBox">
|
|
|
+ <div class="searchTitle">商圈名称</div>
|
|
|
+ <el-input v-model="title" class="input" clearable placeholder="请输入商圈名称"></el-input>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6" class="left">
|
|
|
+
|
|
|
<div class="searchBox">
|
|
|
- <div class="searchTitle">日期:</div>
|
|
|
- <el-cascader v-model="getApiData.website_column_id" :props="{ checkStrictly: true }"
|
|
|
- :options="website_column_arr" clearable></el-cascader>
|
|
|
+ <div class="searchTitle">日期</div>
|
|
|
+ <el-date-picker
|
|
|
+ v-model="created_at"
|
|
|
+ type="date"
|
|
|
+ format="yyyy-MM-dd"
|
|
|
+ placeholder="选择日期">
|
|
|
+ </el-date-picker>
|
|
|
</div>
|
|
|
- </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6" class="right">
|
|
|
+ <div class="btnList">
|
|
|
+ <button class="search" @click="getData">搜索</button>
|
|
|
+ <button class="reset" @click="goReset">重置</button>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="layerBoxNoBg">
|
|
|
- <div></div>
|
|
|
- <div>
|
|
|
- <el-button type="info" @click="clearSearchList">重置</el-button>
|
|
|
- <el-button type="primary" @click="getData('search')">搜索</el-button>
|
|
|
- </div>
|
|
|
</div>
|
|
|
- <!--搜索功能 end------------------------------------------------------------>
|
|
|
<!--表格内容 start------------------------------------------------------------>
|
|
|
<div class="layerBox">
|
|
|
- <tableTitle :name="tableDivTitle" />
|
|
|
- <el-row>
|
|
|
- <template>
|
|
|
- <el-table :data="tableData" style="width: 100%">
|
|
|
- <el-table-column fixed prop="index" label="编号" width="50"></el-table-column>
|
|
|
- <el-table-column prop="website_name" label="商圈名称"></el-table-column>
|
|
|
- <el-table-column prop="column_name" label="分类" width="150"></el-table-column>
|
|
|
- <!-- <el-table-column prop="city_name" label="行政区划"></el-table-column> -->
|
|
|
- <el-table-column prop="created_at" label="作者" width="150"></el-table-column>
|
|
|
- <el-table-column prop="updated_at" label="创建时间" width="150"></el-table-column>
|
|
|
- <el-table-column prop="updated_at" label="修改时间" width="150"></el-table-column>
|
|
|
- <el-table-column fixed="right" label="操作" width="150" header-align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
- <div class="listBtnBox">
|
|
|
-
|
|
|
- <div class="listMainBtn" @click="manageRow(scope.row.id, tableData)"><i class="el-icon-edit-outline"></i>详情</div>
|
|
|
- </div>
|
|
|
-
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </template>
|
|
|
- </el-row>
|
|
|
+ <tableTitle :name="tableDivTitle" />
|
|
|
+ <el-row>
|
|
|
+ <template>
|
|
|
+ <el-table class="my-table" v-loading="loading" :data="tableData" style="width: 100%">
|
|
|
+ <el-table-column fixed prop="id" label="编号" width="90">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="title" label="商圈名称">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="topicname" label="分类" width="150">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="author" label="作者" width="150">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="created_at" label="创建时间" width="200">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="updated_at" label="修改时间" width="200">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column fixed="right" label="操作" width="100" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div class="listBtnBox">
|
|
|
+ <div class="listMainBtn" @click="manageRow(scope.row.id, tableData)"><i class="el-icon-edit-outline"></i>查看</div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ </el-table>
|
|
|
+ </template>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
+ <!--分页 start------------------------------------------------------------>
|
|
|
<div class="alignBox">
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <el-pagination :current-page="getApiData.page" @size-change="handleSizeChange"
|
|
|
- @current-change="handleCurrentChange" :page-size="10" layout="total, prev, pager, next, jumper"
|
|
|
- :total="allCount"></el-pagination>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
|
|
+ :current-page="page" :page-size="pageSize" layout="total, prev, pager, next, jumper"
|
|
|
+ :total="total">
|
|
|
+ </el-pagination>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
-
|
|
|
- <script>
|
|
|
- //本地编译城市代码
|
|
|
- //import getLocationNameById from '@/utils/citytocode';
|
|
|
- //城市级联选择器
|
|
|
-// import CityCascader from './components/CityCascader';
|
|
|
- //表格标题
|
|
|
- import tableTitle from './components/tableTitle';
|
|
|
- //引入公用样式
|
|
|
- import '@/styles/global.less';
|
|
|
- import InputTag from '@/components/InputTag'
|
|
|
- export default {
|
|
|
- components: {
|
|
|
- // CityCascader, //城市级联选择器
|
|
|
- tableTitle,//表格标题
|
|
|
- InputTag
|
|
|
- },
|
|
|
- data() {
|
|
|
- //0.全局操作 start ------------------------------------------------------------>
|
|
|
- //表单验证
|
|
|
- const validateEmpty = (rule, value, callback) => {
|
|
|
- if (value.length == 0) {
|
|
|
- callback(new Error('该项不能为空!'))
|
|
|
- } else {
|
|
|
- callback()
|
|
|
- }
|
|
|
- }
|
|
|
- const validateWebsiteUrl = (rule, value, callback) => {
|
|
|
- if (!value || value.trim() === "") {
|
|
|
- callback(new Error('至少要填写一个网站地址!'));
|
|
|
- } else {
|
|
|
- callback();
|
|
|
- }
|
|
|
- }
|
|
|
- const validateColumn = (rule, value, callback) => {
|
|
|
- if (value.length === 0) {
|
|
|
- callback(new Error('该项不能为空!'))
|
|
|
- } else {
|
|
|
- callback()
|
|
|
- }
|
|
|
- }
|
|
|
- let self = this;
|
|
|
- //0.全局操�� end ------------------------------------------------------------>
|
|
|
+ <!--分页 end------------------------------------------------------------>
|
|
|
+ <!--表格内容 end------------------------------------------------------------>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+//表格标题
|
|
|
+import tableTitle from './components/tableTitle.vue';
|
|
|
+import dayjs from 'dayjs';
|
|
|
+
|
|
|
+//引入公用样式
|
|
|
+import '@/styles/global.less';
|
|
|
+import { getTopicType,getBusinessDistrictList} from '@/api/chat'
|
|
|
+
|
|
|
+function formatDate(date) {
|
|
|
+ if (!date) return '';
|
|
|
+ const d = new Date(date);
|
|
|
+ const year = d.getFullYear();
|
|
|
+ const month = String(d.getMonth() + 1).padStart(2, '0');
|
|
|
+ const day = String(d.getDate()).padStart(2, '0');
|
|
|
+ return `${year}-${month}-${day}`;
|
|
|
+}
|
|
|
+
|
|
|
+export default {
|
|
|
+ components: {
|
|
|
+ tableTitle,//表格标题-
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+
|
|
|
return {
|
|
|
- tags: [],
|
|
|
- //1.列表和分页相关 start ------------------------------------------------------------>
|
|
|
- tableDivTitle: "网站列表",
|
|
|
- tableData: [],//内容
|
|
|
- editId: 0,//要修改的网站id
|
|
|
- getApiData: {
|
|
|
- keyword: "",//网站名称查询
|
|
|
- website_column_id: [],//使用网系id查询
|
|
|
- city_id: [],//使用城市id查询
|
|
|
- page: 1,//当前是第几页
|
|
|
- pageSize: 10,//一共多少条
|
|
|
- },
|
|
|
- allCount: 0,//总条数
|
|
|
- //分页相关 end ------------------------------------------------------------>
|
|
|
-
|
|
|
- //2.弹出框设置 start ------------------------------------------------------------>
|
|
|
- windowStatus: false, //显示第一层弹窗
|
|
|
- innerVisible: false, //显示第二层弹窗
|
|
|
- formLabelWidth: '120px',//表单的长度
|
|
|
- editBtn: false,//当显示编辑按钮的时候,就不显示提交
|
|
|
- //弹出框设置 start ------------------------------------------------------------>
|
|
|
-
|
|
|
- //3.弹出框中的表单设置 start ------------------------------------------------------------>
|
|
|
- //3.1 表单收集的数据
|
|
|
- form: {
|
|
|
- website_name: '',//需要提交的网站名称
|
|
|
- website_url: [//需要绑定的网站地址
|
|
|
- { url: "", show: true },
|
|
|
- { url: "", show: false },
|
|
|
- { url: "", show: false },
|
|
|
- { url: "", show: false },
|
|
|
- { url: "", show: false }
|
|
|
- ],
|
|
|
- website_column_arr_id: [],//需要提交的上级网系 数组
|
|
|
- //city_arr_id:[0],//需要提交的城市id
|
|
|
- logo: "",//logo地址 提交文件换取地址
|
|
|
- title: "",//需要提交的网站标题
|
|
|
- keywords: "",//需要提交的网站标题
|
|
|
- description: "",//需要提交的网站描述
|
|
|
- suffix: "",//需要提交的网站后缀
|
|
|
- //template_id:""//选择的网站皮肤
|
|
|
- },
|
|
|
- //3.2 表单验证规则
|
|
|
- formRules: {
|
|
|
- //网站名称不能为空
|
|
|
- website_name: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
- //网站地址不能为空
|
|
|
- 'website_url[0].url': [
|
|
|
- { required: true, message: '至少要填写一个网站地址!', trigger: 'blur' },
|
|
|
- { validator: this.validateWebsiteUrl, trigger: 'blur' }
|
|
|
- ],
|
|
|
- //网系不能为空 注意,因为是select框,只有提交的时候才会验证
|
|
|
- website_column_arr_id: [{ type: 'array', required: true, trigger: 'change', message: '必须选择一个网系!', validator: validateColumn }],
|
|
|
- //网站标题,关键词,描述不能为空
|
|
|
- //city_arr_id:[{required:true,trigger:'blur',validator:validateColumn}],
|
|
|
- title: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
- keywords: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
- description: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
- logo: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
- logoUrl: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
- suffix: [{ required: true, trigger: 'blur', validator: validateEmpty }],
|
|
|
- //template_id:[{required:true,trigger:'blur',validator:validateEmpty}],
|
|
|
- },
|
|
|
- //3.3 通过api获的的数据 弹窗
|
|
|
- website_column_arr: [],//api获得的网系列表
|
|
|
- //3.4 上传logo图片
|
|
|
- logoUrl: '',
|
|
|
- hovering: false, // 鼠标悬浮状态 悬浮时显示删除
|
|
|
- //3.5 模板列表
|
|
|
- TemplateList: [],
|
|
|
- getTemplateData: {
|
|
|
- template_class_id: 1,//模板类型,暂时为1
|
|
|
- page: 1,//当前是第几页
|
|
|
- pageSize: 9,//请求多少条
|
|
|
- },
|
|
|
- TemplateallCount: 0,//总条数
|
|
|
- TemplateName: "未选择模板..",//选择的模板名称
|
|
|
- TemplateImg: "",//选择的模板图片
|
|
|
- //弹出框中的表单设置 end ------------------------------------------------------------>
|
|
|
+ classList:[],//分类列表
|
|
|
+ tableDivTitle: "我加入的商圈", //列表标题
|
|
|
+ loading: true, //加载中
|
|
|
+ tableData: [],//表格数据
|
|
|
+ webSiteLoading: false,
|
|
|
+ // 分页相关
|
|
|
+ page: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ total: 0,
|
|
|
+ title:'',
|
|
|
+ type:'',
|
|
|
+ created_at: '',
|
|
|
}
|
|
|
- },
|
|
|
- methods: {
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
//1.列表和分页相关 start ------------------------------------------------------------>
|
|
|
//1.1 开始请求列表信息方法
|
|
|
- getData(type) {
|
|
|
- //搜索条件 - 网系和城市id只提交最后一个
|
|
|
- if (this.getApiData.website_column_id.length > 0) {
|
|
|
- this.getApiData.website_column_id = this.getApiData.website_column_id[this.getApiData.website_column_id.length - 1];
|
|
|
- }
|
|
|
- if (this.getApiData.city_id.length > 0) {
|
|
|
- this.getApiData.city_id = this.getApiData.city_id[this.getApiData.city_id.length - 1];
|
|
|
- }
|
|
|
- //如果是搜索,重新加载第一页
|
|
|
- if (type == "search") {
|
|
|
- this.getApiData.page = 1;
|
|
|
- }
|
|
|
- //console.log(this.getApiData)
|
|
|
- this.$store.dispatch('pool/getWebList', this.getApiData).then(res => {
|
|
|
- let newData = [];
|
|
|
- //显示原有的id
|
|
|
- // for(let item of res.data.rows){
|
|
|
- // if(item.city_name==null){item.city_name="--"}
|
|
|
- // newData.push(item)
|
|
|
- // }
|
|
|
- //显示1-10编号
|
|
|
- for (let i = 0; i < res.data.rows.length; i++) {
|
|
|
- newData[i] = res.data.rows[i];
|
|
|
- newData[i].index = i + 1;
|
|
|
- }
|
|
|
- console.log(newData)
|
|
|
- //格式化网站地址
|
|
|
- // res.data.rows.forEach(item => {
|
|
|
- // item.website_url = item.website_url.join(', ');
|
|
|
- // });
|
|
|
- this.tableData = newData; //给与内容
|
|
|
- this.allCount = res.data.count; //给与总条数
|
|
|
- }).catch(() => {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '网络错误,请重试!'
|
|
|
- });
|
|
|
- })
|
|
|
- },
|
|
|
- //1.2 删除内容
|
|
|
- deleteData(id) {
|
|
|
- this.$confirm('删除后,该条信息及其绑定关系全部删除,确定吗?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- console.log("当前删除:" + id)
|
|
|
- this.$store.dispatch('pool/deleteWebList', { id: id }).then(res => {
|
|
|
- this.getData();
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: '删除成功!'
|
|
|
- });
|
|
|
- }).catch(() => {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '网络错误,请重试!'
|
|
|
- });
|
|
|
- })
|
|
|
- }).catch(() => {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '已取消删除'
|
|
|
- });
|
|
|
- });
|
|
|
- },
|
|
|
- //1.3 修改用户状态
|
|
|
- upRow(id, status) {
|
|
|
- let data = {
|
|
|
- id: id,
|
|
|
- status: status
|
|
|
- }
|
|
|
- this.$store.dispatch('pool/updateWebsiteStatus',data).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: '网站状态已修改!'
|
|
|
- });
|
|
|
- }
|
|
|
- }).catch(() => {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '已取消修改'
|
|
|
- });
|
|
|
- });
|
|
|
+ getData() {
|
|
|
+ getBusinessDistrictList({
|
|
|
+ page: this.page,
|
|
|
+ page_size: this.pageSize,
|
|
|
+ type: this.type,
|
|
|
+ title: this.title,
|
|
|
+ created_at: formatDate(this.created_at), // 只传年月日
|
|
|
+ }).then(data => {
|
|
|
+ this.loading=false;
|
|
|
+ console.log("返回数据",data);
|
|
|
+ this.tableData = data.data.list
|
|
|
+ this.total = data.data.total
|
|
|
+
|
|
|
+ })
|
|
|
},
|
|
|
+
|
|
|
//1.4 列表内容分页
|
|
|
//直接跳转
|
|
|
handleSizeChange(val) {
|
|
|
- this.getApiData.page = val;
|
|
|
- this.getData();
|
|
|
+ this.page = val;
|
|
|
+ this.getData();
|
|
|
},
|
|
|
//1.5 点击分页
|
|
|
handleCurrentChange(val) {
|
|
|
- this.getApiData.page = val;
|
|
|
- this.getData();
|
|
|
- },
|
|
|
- //1.6 重置按钮
|
|
|
- clearSearchList() {
|
|
|
- this.tableData = [];
|
|
|
- this.getApiData.keyword = "";
|
|
|
- this.getApiData.website_column_id = [];
|
|
|
- this.getApiData.city_id = [];
|
|
|
- //this.getApiData.city_arr_id = [];
|
|
|
- this.getApiData.page = 1;
|
|
|
- this.getApiData.pageSize = 10;
|
|
|
- this.getData();
|
|
|
- },
|
|
|
- //1.7搜索栏的城市选择器
|
|
|
- updateCityId(value) {
|
|
|
- // 这里可以处理选择后的回调逻辑
|
|
|
- console.log("城市ID已更新:", value);
|
|
|
- // 可以在此处执行额外逻辑
|
|
|
- this.getApiData.city_id = value;
|
|
|
- },
|
|
|
- //列表和分页相关 end ------------------------------------------------------------>
|
|
|
-
|
|
|
- //2.弹出框设置 start ------------------------------------------------------------>
|
|
|
- //2.1 打开弹出框
|
|
|
- openWindow() {
|
|
|
- this.clearToServe();
|
|
|
- this.windowStatus = true;
|
|
|
- },
|
|
|
- //2.2 关闭弹出框
|
|
|
- closeWindow() {
|
|
|
- this.windowStatus = false;
|
|
|
- this.clearToServe();
|
|
|
+ this.page = val;
|
|
|
+ this.getData();
|
|
|
},
|
|
|
- //2.3 重置窗口内容
|
|
|
- clearToServe() {
|
|
|
- //还原表单
|
|
|
- this.form.website_name = "";
|
|
|
- this.form.website_column_arr_id = "";
|
|
|
- this.form.website_url = [
|
|
|
- { url: "", show: true },
|
|
|
- { url: "", show: false },
|
|
|
- { url: "", show: false },
|
|
|
- { url: "", show: false },
|
|
|
- { url: "", show: false }
|
|
|
- ];
|
|
|
- //this.form.city_arr_id = [0];
|
|
|
- this.form.logo = "";
|
|
|
- this.form.title = "";
|
|
|
- this.form.keywords = "";
|
|
|
- this.form.description = "";
|
|
|
- this.form.template_id = "";
|
|
|
- //还原logo缩略图
|
|
|
- this.logoUrl = "";
|
|
|
- //还原模板
|
|
|
- this.TemplateList = [];
|
|
|
- this.getTemplateData.page = 1;
|
|
|
- this.TemplateImg = "";
|
|
|
- this.TemplateallCount = 0;
|
|
|
- this.form.suffix = "";
|
|
|
- this.form.keywords = "";
|
|
|
- this.tags = [];
|
|
|
+
|
|
|
+ //1.7 重置按钮
|
|
|
+ goReset() {
|
|
|
+ this.page = 1
|
|
|
+ this.peageSize = 10
|
|
|
+ this.title = ''
|
|
|
+ this.type = ''
|
|
|
+ this.created_at = ''
|
|
|
+ this.getData()
|
|
|
},
|
|
|
- //弹出框设置 end ------------------------------------------------------------>
|
|
|
-
|
|
|
- //3.添加新网站 start ------------------------------------------------------------>
|
|
|
- //3.1 获得所有网系
|
|
|
- getwebsiteColumn() {
|
|
|
- let that = this;
|
|
|
- this.$store.dispatch('pool/getwebsiteColumn').then(res => {
|
|
|
- let arrData = this.transformData(res.data)
|
|
|
- this.website_column_arr = arrData;
|
|
|
- })
|
|
|
- },
|
|
|
- transformData(arrData) {
|
|
|
- let that = this;
|
|
|
- return arrData.map(item => {
|
|
|
- // 创建一个新的对象,替换键名
|
|
|
- let newItem = {
|
|
|
- label: item.column_name,
|
|
|
- value: item.id,
|
|
|
- // 保留其他不需要改动的字段
|
|
|
- pid: item.pid,
|
|
|
- sort: item.sort,
|
|
|
- remark: item.remark,
|
|
|
- column_arr_id: item.column_arr_id,
|
|
|
- updated_at: item.updated_at,
|
|
|
- created_at: item.created_at,
|
|
|
- };
|
|
|
-
|
|
|
- // 如果有 children,则递归处理 children 数组
|
|
|
- if (item.children && item.children.length > 0) {
|
|
|
- newItem.children = that.transformData(item.children);
|
|
|
- }
|
|
|
-
|
|
|
- return newItem;
|
|
|
- });
|
|
|
- },
|
|
|
- //3.2 开始添加内容
|
|
|
- addData() {
|
|
|
+ manageRow(id){
|
|
|
this.$router.push({
|
|
|
- path: '/addWebsite',
|
|
|
- });
|
|
|
- // //先获取所有网系
|
|
|
- // this.getwebsiteColumn()
|
|
|
- // //显示网系到弹出窗口
|
|
|
- // this.openWindow()
|
|
|
- // //修改添加和编辑窗口的文字提示
|
|
|
- // this.editId = 0;
|
|
|
- // //显示提交按钮
|
|
|
- // this.editBtn = false;
|
|
|
- //清除错误状态
|
|
|
- this.$refs.form.clearValidate();
|
|
|
- },
|
|
|
- //3.3 添加一条网站地址
|
|
|
- addUrlInput(key) {
|
|
|
- this.form.website_url[key].show = true;
|
|
|
- },
|
|
|
- //3.4 删除一条网站地址
|
|
|
- deleteUrlInput(key) {
|
|
|
- this.form.website_url[key].show = false;
|
|
|
- this.form.website_url[key].url = "";
|
|
|
- },
|
|
|
- //3.5 弹出框的城市选择器
|
|
|
- updateFormCityId(value) {
|
|
|
- //console.log("城市ID已更新:", value);
|
|
|
- //this.form.city_arr_id = value;
|
|
|
- },
|
|
|
- //3.6 上传图片操作
|
|
|
- beforeAvatarUpload(file) {
|
|
|
- const isJPG = file.type === 'image/jpeg';
|
|
|
- const isPNG = file.type === 'image/png';
|
|
|
- const isLt2M = file.size / 1024 / 1024 < 2;
|
|
|
-
|
|
|
- if (!isJPG && !isPNG) {
|
|
|
- this.$message.error('上传头像图片只能是 JPG 或 PNG 格式!');
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (!isLt2M) {
|
|
|
- this.$message.error('上传头像图片大小不能超过 2MB!');
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- const formData = new FormData();
|
|
|
- formData.append('file', file);
|
|
|
-
|
|
|
- this.$store.dispatch('pool/uploadFile', formData).then(res => {
|
|
|
- this.logoUrl = res.data.imgUrl;//显示缩略图
|
|
|
- this.form.logo = res.data.imgUrl;//提供表单地址
|
|
|
- console.log(res.data.imgUrl)
|
|
|
- }).catch(() => {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '网络错误,请重试!'
|
|
|
- });
|
|
|
- })
|
|
|
-
|
|
|
- // 阻止默认的上传行为
|
|
|
- return false;
|
|
|
- },
|
|
|
- handleDelete() {
|
|
|
- // 删除图片
|
|
|
- this.logoUrl = ''; // 清空图片 URL
|
|
|
- },
|
|
|
- //3.7 提交表单
|
|
|
- addToServe() {
|
|
|
- console.log(this.form)
|
|
|
- //先进行验证
|
|
|
- this.$refs.form.validate(valid => {
|
|
|
- if (valid) {
|
|
|
- //提交之前把域名列表转换成数组
|
|
|
- let webSiteArray = [];
|
|
|
- for (let item of this.form.website_url) {
|
|
|
- if (item.url != "") {
|
|
|
- webSiteArray.push(item.url)
|
|
|
- }
|
|
|
- }
|
|
|
- //循环完毕 重置提交的url
|
|
|
- this.form.website_url = webSiteArray;
|
|
|
- //console.log(webSiteArray)
|
|
|
- console.log(this.form)
|
|
|
- //提交表单
|
|
|
- this.$store.dispatch('pool/addWebsite', this.form).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- //汇报结果
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: '已成功添加网站!'
|
|
|
- });
|
|
|
- //重新获取表单
|
|
|
- this.getData();
|
|
|
- //清空并退出
|
|
|
- this.closeWindow();
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- type: 'error',
|
|
|
- message: '添加失败!请检查网络!'
|
|
|
- });
|
|
|
- //清空并退出
|
|
|
- this.closeWindow();
|
|
|
- }
|
|
|
-
|
|
|
- }).catch(() => {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '网络错误,请重试!'
|
|
|
- });
|
|
|
- })
|
|
|
+ path: '/businessDistrictDetail',
|
|
|
+ query: {
|
|
|
+ id: id
|
|
|
}
|
|
|
})
|
|
|
- },
|
|
|
- //3.8 检测网站名称是否存在
|
|
|
- checkWebsiteName(name) {
|
|
|
- let data = {
|
|
|
- website_name: name
|
|
|
- }
|
|
|
- if (this.editId != "") {
|
|
|
- data.id = this.editId;
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.getData()
|
|
|
+ //获取分类列表
|
|
|
+ getTopicType({}).then(data => {
|
|
|
+ this.classList = data.data
|
|
|
+ })
|
|
|
+ },
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped lang="less">
|
|
|
+input[aria-hidden=true] {
|
|
|
+ display: none !important;
|
|
|
+}
|
|
|
+
|
|
|
+// 提示信息
|
|
|
+.tips {
|
|
|
+ margin: 30px;
|
|
|
+ background-color: #e9ecf9;
|
|
|
+ border-radius: 11px;
|
|
|
+ .tipsIcon {
|
|
|
+ margin: 10px 15px;
|
|
|
+ display: inline-block;
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
+ background: url("../../assets/advertise/Info Circle.png") no-repeat;
|
|
|
+ vertical-align: middle;
|
|
|
+ }
|
|
|
+ .tipsText {
|
|
|
+ font-size: 14px;
|
|
|
+ color: #666666;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// 头部
|
|
|
+.title {
|
|
|
+ margin: 30px 30px 20px 30px;
|
|
|
+ padding: 30px 30px 40px 30px;
|
|
|
+ background-color: #fff;
|
|
|
+ border-radius: 20px 20px 20px 20px;
|
|
|
+ border: 1px solid #E9EDF7;
|
|
|
+ .left {
|
|
|
+ float: left;
|
|
|
+ }
|
|
|
+ .right {
|
|
|
+ float: right;
|
|
|
+ }
|
|
|
+ .searchBox {
|
|
|
+ ::v-deep .el-input {
|
|
|
+ position: relative;
|
|
|
+ font-size: 14px;
|
|
|
+ display: inline-block;
|
|
|
+ width: 80%;
|
|
|
}
|
|
|
- this.$store.dispatch('pool/checkWebsiteName', data).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.form.website_name = "";
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '网站名称已存在!请重新输入!'
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- //3.9 检测网站url是否存在
|
|
|
- checkWebsiteUrl(url, num) {
|
|
|
- let data = {
|
|
|
- website_url: url
|
|
|
+
|
|
|
+ .searchTitle {
|
|
|
+ padding-bottom: 10px;
|
|
|
+ font-family: Microsoft YaHei, Microsoft YaHei;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #999999;
|
|
|
+ line-height: 16px;
|
|
|
}
|
|
|
- if (this.editId != "") {
|
|
|
- data.id = this.editId;
|
|
|
+
|
|
|
+ .el-select {
|
|
|
+ width: 100%;
|
|
|
+ display: inline-block;
|
|
|
+ position: relative;
|
|
|
}
|
|
|
- this.$store.dispatch('pool/checkWebsiteUrl', data).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- if (num == 0) { this.form.website_url[0].url = "" }
|
|
|
- if (num == 1) { this.form.website_url[1].url = "" }
|
|
|
- if (num == 2) { this.form.website_url[2].url = "" }
|
|
|
- if (num == 3) { this.form.website_url[3].url = "" }
|
|
|
- if (num == 4) { this.form.website_url[4].url = "" }
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '当前网站已经被占用,请重新输入!'
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- //添加新网站 end ------------------------------------------------------------>
|
|
|
-
|
|
|
- //4.选择模板 start ------------------------------------------------------------>
|
|
|
- //4.1 获取模板列表
|
|
|
- getTemplateList() {
|
|
|
- //先打开弹出框
|
|
|
- this.innerVisible = true;
|
|
|
- //获取模板列表
|
|
|
- this.$store.dispatch('pool/getTemplate', this.getTemplateData).then(res => {
|
|
|
- //直接给与数据
|
|
|
- //this.TemplateList = res.data.rows;
|
|
|
- //格式化 目前缩略图给了两张,我只展示其中一张
|
|
|
- let data = res.data.rows;
|
|
|
- for (let item of data) {
|
|
|
- //item.template_img
|
|
|
- let imgSrc = item.template_img;
|
|
|
- item.template_img = imgSrc[0];
|
|
|
- }
|
|
|
- this.TemplateList = data;
|
|
|
- //给与总条数
|
|
|
- this.TemplateallCount = res.data.count;
|
|
|
- }).catch(() => {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '网络错误,请重试!'
|
|
|
- });
|
|
|
- })
|
|
|
- },
|
|
|
- //4.2 选择一个模板
|
|
|
- useThatTemplate(id, template_name, template_img) {
|
|
|
- console.log(template_name);
|
|
|
- console.log(template_img);
|
|
|
- // 关闭弹出框
|
|
|
- this.innerVisible = false;
|
|
|
- // 显示用户选择的名称
|
|
|
- this.TemplateName = template_name;
|
|
|
- // 确保这里设置了 TemplateImg
|
|
|
- this.TemplateImg = template_img; // 确保 template_img 是有效的路径
|
|
|
- // 记录选择的模板id
|
|
|
- this.form.template_id = id;
|
|
|
- },
|
|
|
- //4.1 模板列表分页
|
|
|
- //直接跳转
|
|
|
- handleTemplateSize(val) {
|
|
|
- this.getTemplateData.page = val;
|
|
|
- this.getTemplateList();
|
|
|
- },
|
|
|
- //4.2 点击分页
|
|
|
- handleChangeCurrent(val) {
|
|
|
- this.getTemplateData.page = val;
|
|
|
- this.getTemplateList();
|
|
|
- },
|
|
|
- //选择模板 end ------------------------------------------------------------>
|
|
|
-
|
|
|
- //5.编辑网站 start ------------------------------------------------------------>
|
|
|
- //5.1获取详情
|
|
|
- getDataMain(id) {
|
|
|
- this.$router.push({
|
|
|
- path: '/addwebsite',
|
|
|
- query: { id: id }
|
|
|
- });
|
|
|
- //先清空窗口
|
|
|
- this.clearToServe()
|
|
|
- //打开输入窗口
|
|
|
- // this.openWindow();
|
|
|
- //添加修改id
|
|
|
- // this.editId = id;
|
|
|
-
|
|
|
- //获取网站详情
|
|
|
- // this.$store.dispatch('pool/getWebsiteInfo', { id: id }).then(res => {
|
|
|
- // //清除错误状态
|
|
|
- // this.$refs.form.clearValidate();
|
|
|
- // console.log(res)
|
|
|
- // //回显网站名称
|
|
|
- // this.form.website_name = res.data.website_name;
|
|
|
- // //回显星系
|
|
|
- // this.form.website_column_arr_id = res.data.website_column_arr_id;
|
|
|
- // //回显logo
|
|
|
- // this.form.logo = res.data.logo;
|
|
|
- // this.logoUrl = res.data.logo;
|
|
|
- // //回显url
|
|
|
- // let that = this;
|
|
|
- // if (res.data.website_url == null) {
|
|
|
- // //为null什么都不执行
|
|
|
- // } else {
|
|
|
- // for (let index in res.data.website_url) {
|
|
|
- // this.form.website_url[index].url = res.data.website_url[index];
|
|
|
- // this.form.website_url[index].show = true;
|
|
|
- // }
|
|
|
- // }
|
|
|
- // //回显id
|
|
|
- // //存放城市id
|
|
|
- // //this.form.city_arr_id = res.data.city_arr_id;
|
|
|
- // //当cascaderKey的值改变的时候 级联选择器会重置里面的内容
|
|
|
- // //this.cascaderKey += 1;
|
|
|
- // //回显网站标题,描述,关键词
|
|
|
- // console.log(res.data.title, res.data.keywords, res.data.description)
|
|
|
- // this.form.title = res.data.title;
|
|
|
- // this.form.keywords = res.data.keywords;
|
|
|
- // this.tags = res.data.keywords ? res.data.keywords.split(',') : [];
|
|
|
- // this.form.description = res.data.description;
|
|
|
- // this.form.suffix = res.data.suffix;
|
|
|
- // //回显模板信息
|
|
|
- // // this.form.template_id = res.data.template_id;
|
|
|
- // // this.TemplateName = res.data.template_name;
|
|
|
- // // this.TemplateImg = JSON.parse(res.data.template_img)[0];
|
|
|
- // })
|
|
|
-
|
|
|
- this.editBtn = true;//显示编辑按钮
|
|
|
- },
|
|
|
- //5.2修改表单
|
|
|
- editToServe() {
|
|
|
- //执行验证
|
|
|
- this.$refs.form.validate(valid => {
|
|
|
- if (valid) {
|
|
|
- //提交之前把域名列表转换成数组
|
|
|
- let webSiteArray = [];
|
|
|
- for (let item of this.form.website_url) {
|
|
|
- if (item.url != "") {
|
|
|
- webSiteArray.push(item.url)
|
|
|
- }
|
|
|
- }
|
|
|
- //循环完毕 重置提交的url
|
|
|
- this.form.website_url = webSiteArray;
|
|
|
- this.form.id = this.editId;
|
|
|
- //提交表单
|
|
|
- this.$store.dispatch('pool/updateWebsite', this.form).then(res => {
|
|
|
- console.log(res.code)
|
|
|
- if (res.code == 200) {
|
|
|
- //汇报结果
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: '已成功修改网站信息!'
|
|
|
- });
|
|
|
- //清空并退出
|
|
|
- this.closeWindow();
|
|
|
- //重新请求列表
|
|
|
- this.getData();
|
|
|
- } else {
|
|
|
- this.$message.error('修改失败!')
|
|
|
- //清空并退出
|
|
|
- this.closeWindow();
|
|
|
- }
|
|
|
-
|
|
|
- }).catch(() => {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '网络错误,请重试!'
|
|
|
- });
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- //编辑旧网站 end ------------------------------------------------------------>
|
|
|
-
|
|
|
- //6.搭建网站 start ------------------------------------------------------------>
|
|
|
- creatWebsite(id) {
|
|
|
- this.$router.push({
|
|
|
- path: '/templateBase',
|
|
|
- query: { id: id }
|
|
|
- });
|
|
|
- },
|
|
|
- updateTags(newTags) {
|
|
|
- // this.foem.seo_keywords = newTags;
|
|
|
- this.tags = newTags;
|
|
|
- this.form.keywords = newTags.join(',');
|
|
|
- },
|
|
|
- //编辑旧网站 end ------------------------------------------------------------>
|
|
|
- //克隆网站
|
|
|
- cloneWebsite(id) {
|
|
|
- this.$confirm('克隆后,将生成一个一摸一样的网站,确定吗?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
- console.log("当前克隆:" + id)
|
|
|
- this.$store.dispatch('pool/cloneWebsite', { website_id: id }).then(res => {
|
|
|
- this.getData();
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: '克隆成功!'
|
|
|
- });
|
|
|
- }).catch(() => {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '网络错误,请重试!'
|
|
|
- });
|
|
|
- })
|
|
|
- }).catch(() => {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '已取消克隆'
|
|
|
- });
|
|
|
- });
|
|
|
- },
|
|
|
- },
|
|
|
- mounted() {
|
|
|
- //1.获得初始数据
|
|
|
- this.getData();
|
|
|
- //2.获取所有网系
|
|
|
- this.getwebsiteColumn();
|
|
|
- //本地转换id为文字
|
|
|
- //console.log(getLocationNameById("110000"))
|
|
|
}
|
|
|
- }
|
|
|
- </script>
|
|
|
-
|
|
|
- <style scoped lang="less">
|
|
|
- /*表单特殊样式 start------------------------------------------------------------>*/
|
|
|
- //1.1 模板表单
|
|
|
- .webSite {
|
|
|
- background: #f0f2f5;
|
|
|
- width: 200px;
|
|
|
- height: 300px;
|
|
|
- line-height: 300px;
|
|
|
- text-align: center;
|
|
|
- margin: 0 auto;
|
|
|
- }
|
|
|
-
|
|
|
- .webSiteTemplate {
|
|
|
- display: flex;
|
|
|
-
|
|
|
- .webSiteTitle {
|
|
|
- width: 120px;
|
|
|
- line-height: 140px;
|
|
|
- text-align: right;
|
|
|
- padding-right: 12px;
|
|
|
- font-weight: bold;
|
|
|
+
|
|
|
+
|
|
|
+ .btnList {
|
|
|
+ float: right;
|
|
|
+ padding-top: 28px;
|
|
|
+
|
|
|
+ button {
|
|
|
+ height: 38px;
|
|
|
+ border: none;
|
|
|
+ border-radius: 8px;
|
|
|
+ padding: 0 30px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .search {
|
|
|
+ background-color: #5570f1;
|
|
|
+ color: #fff;
|
|
|
+ margin-right: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .reset {
|
|
|
+ font-family: Microsoft YaHei, Microsoft YaHei;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #333333;
|
|
|
+ background: #F5F7FB;
|
|
|
+ border-radius: 8px 8px 8px 8px;
|
|
|
+ border: 1px solid rgba(85, 112, 241, 0.11);
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
- .webSiteBtn {
|
|
|
- padding: 50px 0 0 0;
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
-
|
|
|
- .formLabelFloatBox {
|
|
|
+}
|
|
|
+
|
|
|
+.layerBox {
|
|
|
+ padding: 30px 20px;
|
|
|
position: relative;
|
|
|
-
|
|
|
- .formLabeladdIcon {
|
|
|
- position: absolute;
|
|
|
- right: 45px;
|
|
|
- top: 5px;
|
|
|
- width: 38px;
|
|
|
- height: 24px;
|
|
|
+
|
|
|
+ .btn {
|
|
|
+ position: absolute;
|
|
|
+ top: 30px;
|
|
|
+ right: 20px;
|
|
|
+ height: 38px;
|
|
|
+ color: #fff;
|
|
|
+ background-color: #5570f1;
|
|
|
+ border: none;
|
|
|
+ border-radius: 8px;
|
|
|
+ padding: 8px 28px 9px;
|
|
|
+ box-sizing: border-box;
|
|
|
}
|
|
|
-
|
|
|
- .formLabelDelIcon {
|
|
|
- position: absolute;
|
|
|
- right: 5px;
|
|
|
- top: 5px;
|
|
|
- width: 38px;
|
|
|
- height: 24px;
|
|
|
+
|
|
|
+ .listBtnBox {
|
|
|
+ justify-content: left;
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
- .templateBox {
|
|
|
- display: flex;
|
|
|
-
|
|
|
- .templateListClass {
|
|
|
- margin-right: 20px;
|
|
|
-
|
|
|
- .templateListClassItem {
|
|
|
- width: 120px;
|
|
|
- height: 38px;
|
|
|
+
|
|
|
+
|
|
|
+ .listDeleteBtn,
|
|
|
+ .listEditBtn,
|
|
|
+ .listLookBtn {
|
|
|
+ margin-left: 0px;
|
|
|
+ padding-left: 0px;
|
|
|
+ margin-right: 20px;
|
|
|
+ width: 76px;
|
|
|
+ height: 36px;
|
|
|
+ line-height: 36px;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ .listLookBtn {
|
|
|
text-align: center;
|
|
|
- line-height: 38px;
|
|
|
- border: 1px solid #E3E8FA;
|
|
|
- background: #F5F7FB;
|
|
|
- margin-bottom: 10px;
|
|
|
border-radius: 8px;
|
|
|
cursor: pointer;
|
|
|
- }
|
|
|
+ color: #55b5f1;
|
|
|
+ background-color: rgba(85, 181, 241, 0.16);
|
|
|
+
|
|
|
+ >i {
|
|
|
+ padding-right: 8px;
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
- .templateListBox {
|
|
|
- box-sizing: border-box;
|
|
|
- width: 100%;
|
|
|
- display: flex;
|
|
|
- flex-wrap: wrap;
|
|
|
-
|
|
|
- .templateList {
|
|
|
- margin-right: 10px;
|
|
|
- text-align: center;
|
|
|
- font-size: 12px;
|
|
|
- margin-bottom: 10px;
|
|
|
- border: 1px solid #fff;
|
|
|
- padding: 5px;
|
|
|
-
|
|
|
- .templateImg {
|
|
|
- width: 129px;
|
|
|
- height: 157px;
|
|
|
- border-radius: 8px;
|
|
|
- cursor: pointer;
|
|
|
+
|
|
|
+ ::v-deep .el-form-item {
|
|
|
+ margin-bottom: 50px;
|
|
|
+ }
|
|
|
+
|
|
|
+ ::v-deep .el-select {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ ::v-deep .el-input--medium,
|
|
|
+ ::v-deep .el-form-item__label {
|
|
|
+ line-height: 36px;
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// 弹出层内容
|
|
|
+.dialogText {
|
|
|
+ margin: 0 7px 0 3px;
|
|
|
+ padding-bottom: 1px;
|
|
|
+ padding: 30px 60px 1px 20px;
|
|
|
+ background-color: #f5f7fb;
|
|
|
+
|
|
|
+ .adImage {
|
|
|
+ width: 140px;
|
|
|
+ height: 140px;
|
|
|
+ line-height: 210px;
|
|
|
+ border-radius: 12px;
|
|
|
+ border: 1px solid rgba(85, 112, 241, 0.11);
|
|
|
+
|
|
|
+ img {
|
|
|
+ width: 140px;
|
|
|
+ height: 80px;
|
|
|
}
|
|
|
- }
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
- //1.1 模板分页
|
|
|
- .pageNumBox {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ ::v-deep .avatar {
|
|
|
+ width: 140px;
|
|
|
+ height: auto;
|
|
|
+ }
|
|
|
+
|
|
|
+ .price {
|
|
|
+ ::v-deep .el-input {
|
|
|
+ width: 29%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .example {
|
|
|
+ font-family: Microsoft YaHei;
|
|
|
+ color: #5570F1;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el_btnList {
|
|
|
+ margin-right: 15px;
|
|
|
+ margin-top: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ //日期时间选择器的宽
|
|
|
+ ::v-deep .el-date-editor.el-input {
|
|
|
+ width: 48%;
|
|
|
+ }
|
|
|
+
|
|
|
+ ::v-deep .el-button+.el-button {
|
|
|
+ margin-left: 0px;
|
|
|
+ }
|
|
|
+
|
|
|
+ ::v-deep .el-select {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+
|
|
|
+ ::v-deep .el-form-item {
|
|
|
+ margin-bottom: 50px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// 弹出层按钮
|
|
|
+.dialogBtn {
|
|
|
text-align: center;
|
|
|
- padding-top: 20px;
|
|
|
- }
|
|
|
-
|
|
|
- .webSiteTemplateName {
|
|
|
- margin-left: 10px;
|
|
|
- line-height: 36px;
|
|
|
- }
|
|
|
-
|
|
|
- //1.2 模板缩略图
|
|
|
- .webSiteTemplateImg {
|
|
|
- width: 140px;
|
|
|
- height: 140px;
|
|
|
- cursor: pointer;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- border-radius: 12px;
|
|
|
- border: 1px solid #E1E2E9;
|
|
|
-
|
|
|
- .selectWebSiteTemplateImg {
|
|
|
- width: 140px;
|
|
|
- height: 140px;
|
|
|
- border-radius: 12px;
|
|
|
- display: block;
|
|
|
- cursor: pointer;
|
|
|
+ margin: 50px auto 20px;
|
|
|
+
|
|
|
+ button {
|
|
|
+ width: 184px;
|
|
|
+ padding: 16px;
|
|
|
+ font-family: Microsoft YaHei, Microsoft YaHei;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 20px;
|
|
|
+ border: none;
|
|
|
+ border-radius: 12px 12px 12px 12px;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 取消
|
|
|
+ .cancel {
|
|
|
+ color: #333333;
|
|
|
+ background-color: #f5f7fb;
|
|
|
+ border: 2px solid rgba(85, 112, 241, 0.11);
|
|
|
}
|
|
|
-
|
|
|
- .webSiteTemplateText {
|
|
|
- color: #5570F1;
|
|
|
- height: 36px;
|
|
|
- line-height: 36px;
|
|
|
- text-align: center;
|
|
|
+
|
|
|
+ // 提交
|
|
|
+ .submit {
|
|
|
+ color: #fff;
|
|
|
+ background-color: #5570F1;
|
|
|
+ margin-left: 40px;
|
|
|
}
|
|
|
-
|
|
|
- img {
|
|
|
- display: block;
|
|
|
+}
|
|
|
+
|
|
|
+//审核弹出框
|
|
|
+.radioGroup {
|
|
|
+ ::v-deep .el-form-item {
|
|
|
+ margin-top: 40px;
|
|
|
+ margin-bottom: 0;
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
- /*表单样式 end------------------------------------------------------------>*/
|
|
|
-
|
|
|
- //执行v-deep穿透scope选择器 start------------------------------------------------------------>*/
|
|
|
- ::v-deep .custom-form-item>.el-form-item__label {
|
|
|
- line-height: 140px !important;
|
|
|
- }
|
|
|
-
|
|
|
- ::v-deep .custom-textarea .el-textarea__inner {
|
|
|
- resize: none;
|
|
|
- /* 禁止用户拖拽调整大小 */
|
|
|
- }
|
|
|
-
|
|
|
- ::v-deep .custom-align-right .el-form-item__label {
|
|
|
- text-align: right;
|
|
|
- /* 设置标签文字右对齐 */
|
|
|
- }
|
|
|
-
|
|
|
- //执行v-deep穿透scope选择器 end------------------------------------------------------------>*/</style>
|
|
|
-
|
|
|
+}
|
|
|
+
|
|
|
+.graph {
|
|
|
+ background-color: #f5f7fb;
|
|
|
+ padding: 60px 100px;
|
|
|
+ overflow: hidden;
|
|
|
+
|
|
|
+ li {
|
|
|
+ float: left;
|
|
|
+ }
|
|
|
+
|
|
|
+ >li:first-child {
|
|
|
+ margin-right: 100px;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.dialog-footer {
|
|
|
+ margin: 0 auto;
|
|
|
+}
|
|
|
+
|
|
|
+.titleWidth {
|
|
|
+// width: 600px;
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+}
|
|
|
+::v-deep.el-cascader{
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
+</style>
|