<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>管理后台</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="renderer" content="webkit"> <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"> <link href="/sitefiles/assets/images/favicon.png" rel="icon" type="image/png"> <link href="/sitefiles/assets/css/font-awesome-4.7.0.min.css?v=1618992755943" rel="stylesheet" type="text/css"> <link href="/sitefiles/assets/css/ionicons-2.0.0.min.css?v=1618992755943" rel="stylesheet" type="text/css"> <link href="/sitefiles/assets/lib/elementui/themechalk/index.css?v=1618992755943" rel="stylesheet" type="text/css"> <link href="/sitefiles/assets/css/element-ui.css?v=1618992755943" rel="stylesheet" type="text/css"> </head> <body> <div id="main"> <div v-if="this.pageLoad" style="display: none" :style="{display: ''}"> <div style="height: 10px"></div> <template v-if="pageType === 'sites'"> <el-form ref="form" :model="form" size="small" status-icon label-width="120px"> <el-form-item label="插件"> {{ pluginId }} </el-form-item> <el-form-item label="插件排序" prop="taxis" :rules="[
      { required: true, message: '请输入插件排序' },
      { validator: utils.validateInt }
    ]"> <el-input-number controls-position="right" size="small" :min="0" v-model.number="form.taxis" style="width: 100px"></el-input-number> <div class="tips">插件排序会影响到插件的显示顺序，0代表默认排序</div> </el-form-item> <el-form-item v-if="plugin.applyToSites" label="站点设置"> <el-radio v-model="form.allSites" :label="true">为所有站点开启插件</el-radio> <el-radio v-model="form.allSites" :label="false">为指定站点开启插件</el-radio> </el-form-item> <el-form-item v-if="plugin.applyToSites && !form.allSites" label="指定站点"> <el-cascader-panel ref="siteIds" v-model="form.siteIds" :options="sites" :props="{ checkStrictly: true, multiple: true }" filterable placeholder="请选择站点"> </el-cascader-panel> </el-form-item> <el-form-item v-if="plugin.applyToSites && plugin.applyToChannels" label="栏目设置"> <el-row> <el-col :span="8" v-for="site in sites" v-if="form.allSites || siteIds.indexOf(site.value) !== -1" style="margin-bottom: 20px; padding: 10px"> <el-card> <div slot="header" class="clearfix"> <span>{{site.label}}</span> <el-button style="float: right; font-size: 14px;" type="text" v-on:click="btnChannelsClick(site)">栏目设置</el-button> </div> <div> {{getSiteConfig(site).allChannels ? '为所有栏目开启插件' : '为指定栏目开启插件'}} </div> </el-card> </el-col> </el-row> </el-form-item> </el-form> <el-divider></el-divider> <div style="height: 10px"></div> <el-row> <el-col :span="24" align="center"> <el-button type="primary" v-on:click="btnSubmitClick" size="small">保 存</el-button> <el-button size="small" v-on:click="btnCloseClick">关 闭</el-button> </el-col> </el-row> </template> <template v-if="pageType === 'channels'"> <el-form ref="channelsForm" :model="channelsForm" size="small" status-icon label-width="160px"> <el-form-item label="插件"> {{ pluginId }} </el-form-item> <el-form-item label="站点"> {{ siteName }} </el-form-item> <el-form-item label="栏目设置"> <el-radio v-model="channelsForm.allChannels" :label="true">为所有栏目开启插件</el-radio> <el-radio v-model="channelsForm.allChannels" :label="false">为指定栏目开启插件</el-radio> </el-form-item> <el-form-item v-if="!channelsForm.allChannels" label="开启插件的栏目"> <el-tree :data="treeData" ref="tree" show-checkbox check-strictly node-key="id" :check-on-click-node="false" :default-expanded-keys="defaultExpandedKeys" :default-checked-keys="channelsForm.channelIds" :expand-on-click-node="true" v-on:check-change="handleTreeChanged"> <span class="custom-tree-node" slot-scope="{ node, data }"> {{ data.channelName }} </span> </el-tree> </el-form-item> </el-form> <el-divider></el-divider> <div style="height: 10px"></div> <el-row> <el-col :span="24" align="center"> <el-button type="primary" v-on:click="btnChannelsSubmitClick" size="small">确 定</el-button> <el-button v-if="siteId === 0" size="small" v-on:click="btnCancelClick">取 消</el-button> </el-col> </el-row> </template> </div> <div v-else :style="{top: ($(window).height()/2 - 30) + 'px'}" v-loading="true" element-loading-text="页面加载中"></div> </div> </body> </html> <script src="/sitefiles/assets/lib/es6-promise.auto.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/axios-0.17.1.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/core-js-3.6.5.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/lodash-4.17.10.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/jquery-1.9.1.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/layer/layer-3.1.1.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/sweetalert2-7.28.4.all.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/vue-2.5.16.min.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/lib/elementui/index.js?v=1618992755943"></script> <script src="/sitefiles/assets/js/admin.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/js/utils.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/js/cloud.js?v=1618992755943" type="text/javascript"></script> <script src="/sitefiles/assets/js/admin/plugins/config.js?v=1618992755943" type="text/javascript"></script> 