#新媒体管理
This commit is contained in:
parent
fd293ce05c
commit
c1497188fa
|
@ -2,19 +2,30 @@
|
|||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="fe80fe9d-781d-41d9-b1e6-2f6100c4c4eb" name="Default Changelist" comment="">
|
||||
<change afterPath="$PROJECT_DIR$/dashboard/templates/dashboard/paginator/weixin-management-paginate.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/management/templates/management/group-admin-create.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/management/templates/management/group-user-create.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/management/templates/management/newmedia-management-create-menu.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/management/templates/management/newmedia-management-create-weixin.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/management/templates/management/newmedia-management-edit-menu.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/management/templates/management/newmedia-management-edit-weixin.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/dashboard/templates/dashboard/paginator/qita-management-paginate.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/dashboard/templates/dashboard/paginator/toutiao-management-paginate.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/dashboard/templates/dashboard/paginator/weibo-management-paginate.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/management/templates/management/newmedia-management-create-qita.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/management/templates/management/newmedia-management-create-toutiao.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/management/templates/management/newmedia-management-create-weibo.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/management/templates/management/newmedia-management-edit-qita.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/management/templates/management/newmedia-management-edit-toutiao.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/management/templates/management/newmedia-management-edit-weibo.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/management/templates/management/newmedia-management-update-qita.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/management/templates/management/newmedia-management-update-toutiao.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/management/templates/management/newmedia-management-update-weibo.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/management/templates/management/newmedia-management-update-weixin.html" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/static/upload/qita.png" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/static/upload/toutiao.png" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/static/upload/weibo.png" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/static/upload/weixin.png" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/dashboard/models.py" beforeDir="false" afterPath="$PROJECT_DIR$/dashboard/models.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/dashboard/templates/dashboard/base/left.html" beforeDir="false" afterPath="$PROJECT_DIR$/dashboard/templates/dashboard/base/left.html" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/management/templates/management/group-management-update.html" beforeDir="false" afterPath="$PROJECT_DIR$/management/templates/management/group-management-update.html" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/management/templates/management/group-management.html" beforeDir="false" afterPath="$PROJECT_DIR$/management/templates/management/group-management.html" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/management/templates/management/organization-management-create.html" beforeDir="false" afterPath="$PROJECT_DIR$/management/templates/management/organization-management-create.html" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/dashboard/templates/dashboard/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/dashboard/templates/dashboard/index.html" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/dashboard/views.py" beforeDir="false" afterPath="$PROJECT_DIR$/dashboard/views.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/management/templates/management/newmedia-management-create-menu.html" beforeDir="false" afterPath="$PROJECT_DIR$/management/templates/management/newmedia-management-create-menu.html" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/management/templates/management/newmedia-management-edit-menu.html" beforeDir="false" afterPath="$PROJECT_DIR$/management/templates/management/newmedia-management-edit-menu.html" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/management/templates/management/newmedia-management-edit-weixin.html" beforeDir="false" afterPath="$PROJECT_DIR$/management/templates/management/newmedia-management-edit-weixin.html" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/management/urls.py" beforeDir="false" afterPath="$PROJECT_DIR$/management/urls.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/management/views.py" beforeDir="false" afterPath="$PROJECT_DIR$/management/views.py" afterDir="false" />
|
||||
</list>
|
||||
|
@ -81,112 +92,37 @@
|
|||
<component name="DjangoConsoleOptions" custom-start-script="import sys; print('Python %s on %s' % (sys.version, sys.platform)) import django; print('Django %s' % django.get_version()) sys.path.extend([WORKING_DIR_AND_PYTHON_PATHS]) if 'setup' in dir(django): django.setup() import django_manage_shell; django_manage_shell.run(PROJECT_ROOT)">
|
||||
<option name="myCustomStartScript" value="import sys; print('Python %s on %s' % (sys.version, sys.platform)) import django; print('Django %s' % django.get_version()) sys.path.extend([WORKING_DIR_AND_PYTHON_PATHS]) if 'setup' in dir(django): django.setup() import django_manage_shell; django_manage_shell.run(PROJECT_ROOT)" />
|
||||
</component>
|
||||
<component name="DockManager">
|
||||
<window id="1">
|
||||
<content type="file-editors">
|
||||
<state>
|
||||
<leaf>
|
||||
<file pinned="false" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/models.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="1232">
|
||||
<caret line="131" column="16" selection-start-line="131" selection-start-column="4" selection-end-line="131" selection-end-column="16" />
|
||||
<folding>
|
||||
<element signature="e#0#11#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
</leaf>
|
||||
</state>
|
||||
</content>
|
||||
</window>
|
||||
</component>
|
||||
<component name="FileEditorManager">
|
||||
<leaf SIDE_TABS_SIZE_LIMIT_KEY="375">
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/management/urls.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="368">
|
||||
<caret line="30" column="119" lean-forward="true" selection-start-line="30" selection-start-column="88" selection-end-line="30" selection-end-column="119" />
|
||||
<folding>
|
||||
<element signature="e#0#28#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/templates/dashboard/base/left.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="258">
|
||||
<caret line="103" column="75" selection-start-line="103" selection-start-column="75" selection-end-line="103" selection-end-column="75" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/management/views.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="295">
|
||||
<caret line="460" column="28" selection-start-line="460" selection-start-column="11" selection-end-line="460" selection-end-column="28" />
|
||||
<folding>
|
||||
<element signature="e#0#11#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-edit-weixin.html">
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/templates/dashboard/index.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="317">
|
||||
<caret line="45" column="125" selection-start-line="45" selection-start-column="125" selection-end-line="45" selection-end-column="125" />
|
||||
<state relative-caret-position="5170">
|
||||
<caret line="235" column="53" selection-start-line="235" selection-start-column="53" selection-end-line="235" selection-end-column="53" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/urls.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="66">
|
||||
<caret line="6" column="22" selection-start-line="6" selection-start-column="22" selection-end-line="6" selection-end-column="22" />
|
||||
<folding>
|
||||
<element signature="n#style#0;n#th#0;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#0;n#div#0;n#section#0;n#div#2;n#section#0;n#section#0;n#div#0;n#body#0;n#!!top" expanded="true" />
|
||||
<element signature="n#style#0;n#th#6;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#0;n#div#0;n#section#0;n#div#2;n#section#0;n#section#0;n#div#0;n#body#0;n#!!top" expanded="true" />
|
||||
<element signature="n#style#0;n#th#7;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#0;n#div#0;n#section#0;n#div#2;n#section#0;n#section#0;n#div#0;n#body#0;n#!!top" expanded="true" />
|
||||
<element signature="n#style#0;n#img#0;n#td#0;n#tr#0;n#tbody#0;n#table#0;n#div#0;n#div#0;n#div#0;n#section#0;n#div#2;n#section#0;n#section#0;n#div#0;n#body#0;n#!!top" expanded="true" />
|
||||
<element signature="n#style#0;n#td#2;n#tr#0;n#tbody#0;n#table#0;n#div#0;n#div#0;n#div#0;n#section#0;n#div#2;n#section#0;n#section#0;n#div#0;n#body#0;n#!!top" expanded="true" />
|
||||
<element signature="n#style#0;n#td#6;n#tr#0;n#tbody#0;n#table#0;n#div#0;n#div#0;n#div#0;n#section#0;n#div#2;n#section#0;n#section#0;n#div#0;n#body#0;n#!!top" expanded="true" />
|
||||
<element signature="e#0#32#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/templates/dashboard/paginator/weixin-management-paginate.html">
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/views.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="286">
|
||||
<caret line="13" column="13" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="13" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/user-management.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="338">
|
||||
<caret line="56" column="49" lean-forward="true" selection-end-line="80" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-create-weixin.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="53">
|
||||
<caret line="60" column="99" selection-start-line="60" selection-start-column="99" selection-end-line="60" selection-end-column="99" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/group-management-create.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="-1386">
|
||||
<caret line="9" column="35" lean-forward="true" selection-start-line="9" selection-start-column="35" selection-end-line="9" selection-end-column="35" />
|
||||
<state relative-caret-position="308">
|
||||
<caret line="26" column="157" selection-start-line="26" selection-start-column="157" selection-end-line="26" selection-end-column="157" />
|
||||
<folding>
|
||||
<element signature="e#0#45#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
|
@ -241,11 +177,9 @@
|
|||
<component name="IdeDocumentHistory">
|
||||
<option name="CHANGED_PATHS">
|
||||
<list>
|
||||
<option value="$PROJECT_DIR$/static/js/dashboard.js" />
|
||||
<option value="$PROJECT_DIR$/NewMediaMonitoring/urls.py" />
|
||||
<option value="$PROJECT_DIR$/dashboard/templates/dashboard/base/header.html" />
|
||||
<option value="$PROJECT_DIR$/dashboard/templates/dashboard/base/base.html" />
|
||||
<option value="$PROJECT_DIR$/dashboard/templates/dashboard/index.html" />
|
||||
<option value="$PROJECT_DIR$/NewMediaMonitoring/settings.py" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/user-management-update.html" />
|
||||
<option value="$PROJECT_DIR$/dashboard/templates/dashboard/login.html" />
|
||||
|
@ -253,7 +187,6 @@
|
|||
<option value="$PROJECT_DIR$/dashboard/templates/dashboard/register.html" />
|
||||
<option value="$PROJECT_DIR$/dashboard/templates/dashboard/paginator/user-management-paginate.html" />
|
||||
<option value="$PROJECT_DIR$/dashboard/urls.py" />
|
||||
<option value="$PROJECT_DIR$/dashboard/views.py" />
|
||||
<option value="$PROJECT_DIR$/dashboard/templates/dashboard/paginator/organization-management-paginate.html" />
|
||||
<option value="$PROJECT_DIR$/NewMediaMonitoring/local_settings.py" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/organization-management-update.html" />
|
||||
|
@ -263,7 +196,6 @@
|
|||
<option value="$PROJECT_DIR$/dashboard/templates/dashboard/paginator/group-management-paginate.html" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/group-management-create.html" />
|
||||
<option value="$APPLICATION_CONFIG_DIR$/consoles/db/0fffd6d4-73be-43bd-94b0-fcfe2a72c682/console.sql" />
|
||||
<option value="$APPLICATION_CONFIG_DIR$/consoles/.datagrid/cell_2" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/group-admin-create.html" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/group-user-create.html" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/group-management-update.html" />
|
||||
|
@ -271,15 +203,31 @@
|
|||
<option value="$PROJECT_DIR$/management/templates/management/newmedia-management.html" />
|
||||
<option value="$PROJECT_DIR$/static/css/style.css" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/organization-management-create.html" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/newmedia-management-create-weixin.html" />
|
||||
<option value="$PROJECT_DIR$/dashboard/templates/dashboard/base/left.html" />
|
||||
<option value="$PROJECT_DIR$/dashboard/templates/dashboard/paginator/weixin-management-paginate.html" />
|
||||
<option value="$PROJECT_DIR$/dashboard/models.py" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/newmedia-management-create-menu.html" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/newmedia-management-create-weixin.html" />
|
||||
<option value="$PROJECT_DIR$/management/urls.py" />
|
||||
<option value="$PROJECT_DIR$/dashboard/templates/dashboard/base/left.html" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/newmedia-management-create-toutiao.html" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/newmedia-management-create-qita.html" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/newmedia-management-edit-menu.html" />
|
||||
<option value="$APPLICATION_CONFIG_DIR$/consoles/.datagrid/cell_2" />
|
||||
<option value="$PROJECT_DIR$/dashboard/templates/dashboard/paginator/weibo-management-paginate.html" />
|
||||
<option value="$PROJECT_DIR$/dashboard/templates/dashboard/paginator/toutiao-management-paginate.html" />
|
||||
<option value="$PROJECT_DIR$/dashboard/templates/dashboard/paginator/qita-management-paginate.html" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/newmedia-management-create-weibo.html" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/newmedia-management-update-weixin.html" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/newmedia-management-update-weibo.html" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/newmedia-management-update-toutiao.html" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/newmedia-management-update-qita.html" />
|
||||
<option value="$PROJECT_DIR$/management/views.py" />
|
||||
<option value="$PROJECT_DIR$/dashboard/templates/dashboard/paginator/weixin-management-paginate.html" />
|
||||
<option value="$PROJECT_DIR$/management/urls.py" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/newmedia-management-edit-weixin.html" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/newmedia-management-edit-weibo.html" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/newmedia-management-edit-toutiao.html" />
|
||||
<option value="$PROJECT_DIR$/management/templates/management/newmedia-management-edit-qita.html" />
|
||||
<option value="$PROJECT_DIR$/dashboard/views.py" />
|
||||
<option value="$PROJECT_DIR$/dashboard/templates/dashboard/index.html" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
|
@ -377,13 +325,6 @@
|
|||
<item name="static" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="upload" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="NewMediaMonitoring" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="NewMediaMonitoring" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="static" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="upload" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="cover" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
</expand>
|
||||
<select />
|
||||
</subPane>
|
||||
|
@ -396,23 +337,23 @@
|
|||
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
|
||||
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||
<property name="database.console.LAST_STATE" value="false" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$/dashboard/templates/dashboard/paginator" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
||||
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
|
||||
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
|
||||
<property name="settings.editor.selected.configurable" value="com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable" />
|
||||
</component>
|
||||
<component name="RecentsManager">
|
||||
<key name="CopyFile.RECENT_KEYS">
|
||||
<recent name="D:\python\p3\NewMediaMonitoring\dashboard\templates\dashboard\paginator" />
|
||||
<recent name="D:\python\p3\NewMediaMonitoring\management\templates\management" />
|
||||
<recent name="D:\python\p3\NewMediaMonitoring\static\upload\profile" />
|
||||
<recent name="D:\python\p3\NewMediaMonitoring\static\upload\cover" />
|
||||
<recent name="D:\python\p3\NewMediaMonitoring" />
|
||||
</key>
|
||||
<key name="MoveFile.RECENT_KEYS">
|
||||
<recent name="D:\python\p3\NewMediaMonitoring\static\upload\cover" />
|
||||
<recent name="D:\python\p3\NewMediaMonitoring\static" />
|
||||
</key>
|
||||
<key name="CopyFile.RECENT_KEYS">
|
||||
<recent name="D:\python\p3\NewMediaMonitoring\management\templates\management" />
|
||||
<recent name="D:\python\p3\NewMediaMonitoring\dashboard\templates\dashboard\paginator" />
|
||||
<recent name="D:\python\p3\NewMediaMonitoring\static\upload" />
|
||||
<recent name="D:\python\p3\NewMediaMonitoring\static\upload\profile" />
|
||||
<recent name="D:\python\p3\NewMediaMonitoring\static\upload\cover" />
|
||||
</key>
|
||||
</component>
|
||||
<component name="RunDashboard">
|
||||
<option name="ruleStates">
|
||||
|
@ -507,7 +448,10 @@
|
|||
<workItem from="1597220433395" duration="3728000" />
|
||||
<workItem from="1597302887893" duration="9782000" />
|
||||
<workItem from="1597544025576" duration="385000" />
|
||||
<workItem from="1597634942607" duration="12428000" />
|
||||
<workItem from="1597634942607" duration="12508000" />
|
||||
<workItem from="1597711994674" duration="11767000" />
|
||||
<workItem from="1597798102293" duration="756000" />
|
||||
<workItem from="1597801813210" duration="613000" />
|
||||
</task>
|
||||
<task id="LOCAL-00001" summary="#create">
|
||||
<created>1595559693168</created>
|
||||
|
@ -530,11 +474,18 @@
|
|||
<option name="project" value="LOCAL" />
|
||||
<updated>1597312552800</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="4" />
|
||||
<task id="LOCAL-00004" summary="#新媒体管理">
|
||||
<created>1597659822368</created>
|
||||
<option name="number" value="00004" />
|
||||
<option name="presentableId" value="LOCAL-00004" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1597659822368</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="5" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TimeTrackingManager">
|
||||
<option name="totallyTimeSpent" value="148503000" />
|
||||
<option name="totallyTimeSpent" value="161719000" />
|
||||
</component>
|
||||
<component name="TodoView">
|
||||
<todo-panel id="selected-file">
|
||||
|
@ -547,9 +498,8 @@
|
|||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
|
||||
<editor active="true" />
|
||||
<layout>
|
||||
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.22936763" />
|
||||
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.27545553" />
|
||||
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
||||
<window_info id="Favorites" order="2" side_tool="true" />
|
||||
<window_info anchor="bottom" id="Message" order="0" />
|
||||
|
@ -563,7 +513,7 @@
|
|||
<window_info anchor="bottom" id="Version Control" order="8" />
|
||||
<window_info anchor="bottom" id="Database Changes" order="9" />
|
||||
<window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
|
||||
<window_info anchor="bottom" id="Terminal" order="11" visible="true" weight="0.33035713" />
|
||||
<window_info anchor="bottom" id="Terminal" order="11" visible="true" weight="0.33370537" />
|
||||
<window_info anchor="bottom" id="Python Console" order="12" weight="0.32924107" />
|
||||
<window_info anchor="bottom" id="Database Console" order="13" weight="0.32924107" />
|
||||
<window_info anchor="bottom" id="Messages" order="14" />
|
||||
|
@ -571,7 +521,7 @@
|
|||
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
|
||||
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
|
||||
<window_info anchor="right" id="SciView" order="3" weight="0.329582" />
|
||||
<window_info anchor="right" id="Database" order="4" weight="0.29474813" />
|
||||
<window_info anchor="right" id="Database" order="4" weight="0.3215434" />
|
||||
</layout>
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
|
@ -580,118 +530,13 @@
|
|||
<component name="VcsManagerConfiguration">
|
||||
<MESSAGE value="#create" />
|
||||
<MESSAGE value="#单位管理,群组管理,用户管理" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="#单位管理,群组管理,用户管理" />
|
||||
<MESSAGE value="#新媒体管理" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="#新媒体管理" />
|
||||
</component>
|
||||
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
||||
<SUITE FILE_PATH="coverage/NewMediaMonitoring$import_area.coverage" NAME="import_area Coverage Results" MODIFIED="1596157104628" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="editorHistoryManager">
|
||||
<entry file="file://D:/install/Lib/site-packages/django/contrib/auth/models.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="255">
|
||||
<caret line="299" column="20" selection-start-line="299" selection-start-column="20" selection-end-line="299" selection-end-column="20" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/import_area.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="176">
|
||||
<caret line="14" column="44" selection-start-line="14" selection-start-column="44" selection-end-line="14" selection-end-column="44" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/NewMediaMonitoring/settings.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="627">
|
||||
<caret line="84" column="36" selection-start-line="84" selection-start-column="21" selection-end-line="84" selection-end-column="36" />
|
||||
<folding>
|
||||
<element signature="e#319#328#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/static/upload/cover/微信图片_20200724112643.jpg">
|
||||
<provider selected="true" editor-type-id="images" />
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/static/upload/profile/20181201110659913.PNG">
|
||||
<provider selected="true" editor-type-id="images" />
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/templates/dashboard/paginator/user-management-paginate.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="242">
|
||||
<caret line="11" column="35" selection-start-line="11" selection-start-column="35" selection-end-line="11" selection-end-column="35" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/migrations/0001_initial.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="220">
|
||||
<caret line="85" column="28" selection-start-line="85" selection-start-column="28" selection-end-line="85" selection-end-column="28" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://D:/install/Lib/site-packages/django/db/models/deletion.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="189">
|
||||
<caret line="13" column="4" selection-start-line="13" selection-start-column="4" selection-end-line="13" selection-end-column="4" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/templates/dashboard/register.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="117">
|
||||
<caret line="60" column="47" selection-start-line="60" selection-start-column="18" selection-end-line="60" selection-end-column="47" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/templates/dashboard/paginator/organization-management-paginate.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="242">
|
||||
<caret line="11" column="34" selection-start-line="11" selection-start-column="34" selection-end-line="11" selection-end-column="34" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="das://0fffd6d4-73be-43bd-94b0-fcfe2a72c682/database/newmediaDB1/schema/public/table/dashboard_area_code_2020/index/dashboard_area_code_2020_pkey">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="22">
|
||||
<caret line="1" column="20" selection-start-line="1" selection-start-column="20" selection-end-line="1" selection-end-column="20" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="das://0fffd6d4-73be-43bd-94b0-fcfe2a72c682/database/newmediaDB1/schema/public/table/dashboard_area_code_2020">
|
||||
<provider selected="true" editor-type-id="com.intellij.database.editor.DatabaseTableFileEditorProvider">
|
||||
<state>
|
||||
<filtering enabled="true">
|
||||
<filter text="" />
|
||||
</filtering>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="das://0fffd6d4-73be-43bd-94b0-fcfe2a72c682/database/newmediaDB1/schema/public/table/auth_group_permissions">
|
||||
<provider selected="true" editor-type-id="com.intellij.database.editor.DatabaseTableFileEditorProvider">
|
||||
<state>
|
||||
<filtering enabled="true">
|
||||
<filter text="" />
|
||||
</filtering>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="das://0fffd6d4-73be-43bd-94b0-fcfe2a72c682/database/newmediaDB1/schema/public/table/auth_permission">
|
||||
<provider selected="true" editor-type-id="com.intellij.database.editor.DatabaseTableFileEditorProvider">
|
||||
<state>
|
||||
<filtering enabled="true">
|
||||
<filter text="" />
|
||||
</filtering>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/NewMediaMonitoring/local_settings.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="726">
|
||||
<caret line="36" column="51" selection-start-line="36" selection-start-column="51" selection-end-line="36" selection-end-column="51" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/admin.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="419">
|
||||
|
@ -712,16 +557,6 @@
|
|||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/organization-management-update.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="387">
|
||||
<caret line="63" column="75" lean-forward="true" selection-start-line="60" selection-start-column="84" selection-end-line="63" selection-end-column="75" />
|
||||
<folding>
|
||||
<element signature="n#style#0;n#img#0;n#div#0;n#label#0;n#div#1;n#form#0;n#div#0;n#div#0;n#div#0;n#section#0;n#div#3;n#section#0;n#section#0;n#div#0;n#body#0;n#!!top" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/organization-management.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="206">
|
||||
|
@ -754,29 +589,9 @@
|
|||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/views.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="-1311">
|
||||
<caret line="111" column="46" selection-start-line="111" selection-start-column="12" selection-end-line="111" selection-end-column="46" />
|
||||
<folding>
|
||||
<element signature="e#0#45#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/tests.py">
|
||||
<provider selected="true" editor-type-id="text-editor" />
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/urls.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="214">
|
||||
<caret line="10" column="29" selection-start-line="10" selection-start-column="29" selection-end-line="10" selection-end-column="29" />
|
||||
<folding>
|
||||
<element signature="e#0#32#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/models.py">
|
||||
<provider selected="true" editor-type-id="text-editor" />
|
||||
</entry>
|
||||
|
@ -796,13 +611,6 @@
|
|||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/templates/dashboard/index.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="264">
|
||||
<caret line="114" column="34" selection-start-line="69" selection-start-column="28" selection-end-line="114" selection-end-column="34" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/static/css/style.css">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="223">
|
||||
|
@ -817,13 +625,6 @@
|
|||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/group-management-create.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="-1386">
|
||||
<caret line="9" column="35" lean-forward="true" selection-start-line="9" selection-start-column="35" selection-end-line="9" selection-end-column="35" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/group-user-create.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="22">
|
||||
|
@ -838,13 +639,6 @@
|
|||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-create-menu.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="264">
|
||||
<caret line="13" column="15" selection-start-line="13" selection-start-column="15" selection-end-line="13" selection-end-column="15" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/group-management-update.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="333">
|
||||
|
@ -861,59 +655,7 @@
|
|||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-create-weixin.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="53">
|
||||
<caret line="60" column="99" selection-start-line="60" selection-start-column="99" selection-end-line="60" selection-end-column="99" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/user-management.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="338">
|
||||
<caret line="56" column="49" lean-forward="true" selection-end-line="80" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-edit.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="-396" />
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/templates/dashboard/base/left.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="258">
|
||||
<caret line="103" column="75" selection-start-line="103" selection-start-column="75" selection-end-line="103" selection-end-column="75" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/urls.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="368">
|
||||
<caret line="30" column="119" lean-forward="true" selection-start-line="30" selection-start-column="88" selection-end-line="30" selection-end-column="119" />
|
||||
<folding>
|
||||
<element signature="e#0#28#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-edit-menu.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="75">
|
||||
<caret line="62" column="88" selection-start-line="62" selection-start-column="88" selection-end-line="62" selection-end-column="88" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/models.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="1232">
|
||||
<caret line="131" column="16" selection-start-line="131" selection-start-column="4" selection-end-line="131" selection-end-column="16" />
|
||||
<folding>
|
||||
<element signature="e#0#11#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-edit.html" />
|
||||
<entry file="das://0fffd6d4-73be-43bd-94b0-fcfe2a72c682/database/newmediaDB1/schema/public/table/dashboard_organization">
|
||||
<provider selected="true" editor-type-id="com.intellij.database.editor.DatabaseTableFileEditorProvider">
|
||||
<state>
|
||||
|
@ -932,22 +674,10 @@
|
|||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="das://0fffd6d4-73be-43bd-94b0-fcfe2a72c682/database/newmediaDB1/schema/public/table/dashboard_weixin">
|
||||
<provider selected="true" editor-type-id="com.intellij.database.editor.DatabaseTableFileEditorProvider">
|
||||
<state>
|
||||
<filtering enabled="true">
|
||||
<filter text="" />
|
||||
</filtering>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/views.py">
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/templates/dashboard/base/left.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="295">
|
||||
<caret line="460" column="28" selection-start-line="460" selection-start-column="11" selection-end-line="460" selection-end-column="28" />
|
||||
<folding>
|
||||
<element signature="e#0#11#0" expanded="true" />
|
||||
</folding>
|
||||
<state relative-caret-position="2266">
|
||||
<caret line="103" column="75" selection-start-line="103" selection-start-column="75" selection-end-line="103" selection-end-column="75" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
|
@ -958,17 +688,226 @@
|
|||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/user-management.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="1232">
|
||||
<caret line="56" column="49" selection-end-line="80" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/group-management-create.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="198">
|
||||
<caret line="9" column="35" selection-start-line="9" selection-start-column="35" selection-end-line="9" selection-end-column="35" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-create-menu.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="594">
|
||||
<caret line="78" column="91" selection-start-line="78" selection-start-column="64" selection-end-line="78" selection-end-column="91" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-edit-menu.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="405">
|
||||
<caret line="92" column="114" selection-start-line="92" selection-start-column="114" selection-end-line="92" selection-end-column="114" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="das://0fffd6d4-73be-43bd-94b0-fcfe2a72c682/database/newmediaDB1/schema/public/table/dashboard_toutiao">
|
||||
<provider selected="true" editor-type-id="com.intellij.database.editor.DatabaseTableFileEditorProvider">
|
||||
<state>
|
||||
<filtering enabled="true">
|
||||
<filter text="" />
|
||||
</filtering>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/templates/dashboard/paginator/weibo-management-paginate.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="264">
|
||||
<caret line="12" column="58" selection-start-line="12" selection-start-column="58" selection-end-line="12" selection-end-column="58" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/templates/dashboard/paginator/toutiao-management-paginate.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="264">
|
||||
<caret line="12" column="60" selection-start-line="12" selection-start-column="60" selection-end-line="12" selection-end-column="60" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/templates/dashboard/paginator/qita-management-paginate.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="352">
|
||||
<caret line="16" column="10" selection-start-line="16" selection-start-column="10" selection-end-line="16" selection-end-column="10" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-create-weixin.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="211">
|
||||
<caret line="46" column="48" lean-forward="true" selection-end-line="105" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/organization-management-update.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="387">
|
||||
<caret line="63" column="75" lean-forward="true" selection-start-line="60" selection-start-column="84" selection-end-line="63" selection-end-column="75" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="das://0fffd6d4-73be-43bd-94b0-fcfe2a72c682/database/newmediaDB1/schema/public/table/dashboard_weixin">
|
||||
<provider selected="true" editor-type-id="com.intellij.database.editor.DatabaseTableFileEditorProvider">
|
||||
<state>
|
||||
<filtering enabled="true">
|
||||
<filter text="" />
|
||||
</filtering>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="das://0fffd6d4-73be-43bd-94b0-fcfe2a72c682/database/newmediaDB1/schema/public/table/dashboard_weibo">
|
||||
<provider selected="true" editor-type-id="com.intellij.database.editor.DatabaseTableFileEditorProvider">
|
||||
<state>
|
||||
<filtering enabled="true">
|
||||
<filter text="" />
|
||||
</filtering>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-create-weibo.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="264">
|
||||
<caret line="50" column="46" lean-forward="true" selection-end-line="105" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/models.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="421">
|
||||
<caret line="264" lean-forward="true" selection-start-line="264" selection-end-line="264" />
|
||||
<folding>
|
||||
<element signature="e#0#11#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-create-toutiao.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="242">
|
||||
<caret line="83" column="55" selection-end-line="105" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-update-weixin.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="387">
|
||||
<caret line="83" column="75" lean-forward="true" selection-start-line="80" selection-start-column="84" selection-end-line="83" selection-end-column="75" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-update-toutiao.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="286">
|
||||
<caret line="91" column="84" selection-start-line="91" selection-start-column="84" selection-end-line="91" selection-end-column="84" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-create-qita.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="220">
|
||||
<caret line="84" column="43" lean-forward="true" selection-end-line="111" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-update-weibo.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="211">
|
||||
<caret line="83" column="75" lean-forward="true" selection-start-line="80" selection-start-column="84" selection-end-line="83" selection-end-column="75" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-update-qita.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="198">
|
||||
<caret line="43" column="89" selection-start-line="43" selection-start-column="58" selection-end-line="43" selection-end-column="89" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-edit-weixin.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="317">
|
||||
<caret line="45" column="125" selection-start-line="45" selection-start-column="125" selection-end-line="45" selection-end-column="125" />
|
||||
<state relative-caret-position="274">
|
||||
<caret line="56" column="108" selection-start-line="56" selection-start-column="108" selection-end-line="56" selection-end-column="108" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/views.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="402">
|
||||
<caret line="860" column="74" selection-start-line="860" selection-start-column="74" selection-end-line="860" selection-end-column="74" />
|
||||
<folding>
|
||||
<element signature="n#style#0;n#th#0;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#0;n#div#0;n#section#0;n#div#2;n#section#0;n#section#0;n#div#0;n#body#0;n#!!top" expanded="true" />
|
||||
<element signature="n#style#0;n#th#6;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#0;n#div#0;n#section#0;n#div#2;n#section#0;n#section#0;n#div#0;n#body#0;n#!!top" expanded="true" />
|
||||
<element signature="n#style#0;n#th#7;n#tr#0;n#thead#0;n#table#0;n#div#0;n#div#0;n#div#0;n#section#0;n#div#2;n#section#0;n#section#0;n#div#0;n#body#0;n#!!top" expanded="true" />
|
||||
<element signature="n#style#0;n#img#0;n#td#0;n#tr#0;n#tbody#0;n#table#0;n#div#0;n#div#0;n#div#0;n#section#0;n#div#2;n#section#0;n#section#0;n#div#0;n#body#0;n#!!top" expanded="true" />
|
||||
<element signature="n#style#0;n#td#2;n#tr#0;n#tbody#0;n#table#0;n#div#0;n#div#0;n#div#0;n#section#0;n#div#2;n#section#0;n#section#0;n#div#0;n#body#0;n#!!top" expanded="true" />
|
||||
<element signature="n#style#0;n#td#6;n#tr#0;n#tbody#0;n#table#0;n#div#0;n#div#0;n#div#0;n#section#0;n#div#2;n#section#0;n#section#0;n#div#0;n#body#0;n#!!top" expanded="true" />
|
||||
<element signature="e#0#11#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-edit-weibo.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="176">
|
||||
<caret line="56" column="107" selection-start-line="56" selection-start-column="107" selection-end-line="56" selection-end-column="107" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-edit-toutiao.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="440">
|
||||
<caret line="56" column="109" selection-start-line="56" selection-start-column="109" selection-end-line="56" selection-end-column="109" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/urls.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="968">
|
||||
<caret line="44" column="128" selection-start-line="44" selection-start-column="97" selection-end-line="44" selection-end-column="128" />
|
||||
<folding>
|
||||
<element signature="e#0#28#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/management/templates/management/newmedia-management-edit-qita.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="132">
|
||||
<caret line="58" column="106" selection-start-line="58" selection-start-column="106" selection-end-line="58" selection-end-column="106" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/templates/dashboard/index.html">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="5170">
|
||||
<caret line="235" column="53" selection-start-line="235" selection-start-column="53" selection-end-line="235" selection-end-column="53" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/urls.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="66">
|
||||
<caret line="6" column="22" selection-start-line="6" selection-start-column="22" selection-end-line="6" selection-end-column="22" />
|
||||
<folding>
|
||||
<element signature="e#0#32#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/dashboard/views.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="308">
|
||||
<caret line="26" column="157" selection-start-line="26" selection-start-column="157" selection-end-line="26" selection-end-column="157" />
|
||||
<folding>
|
||||
<element signature="e#0#45#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
|
|
|
@ -321,7 +321,7 @@ class Qita(models.Model):
|
|||
id = models.UUIDField('id', primary_key=True, default=uuid.uuid4)
|
||||
type = models.CharField('新媒体类型', max_length=256, null=True, blank=True)
|
||||
name = models.CharField('新媒体名称', max_length=256, null=True, blank=True)
|
||||
toutiaoid = models.CharField('新媒体ID', max_length=256, null=True, blank=True)
|
||||
qitaid = models.CharField('新媒体ID', max_length=256, null=True, blank=True)
|
||||
alias = models.CharField('别名', max_length=256, null=True, blank=True)
|
||||
image = models.FileField(upload_to='cover', null=True, blank=True)
|
||||
organization = models.ForeignKey(Organization, on_delete=models.CASCADE, null=True, blank=True)
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
<img src="{% static 'dashboard/image/weixin.png' %}"
|
||||
class='pull-left fa fa-thumbs-up '>
|
||||
<div class="stats">
|
||||
<h4><strong>200</strong></h4>
|
||||
<h4><strong>{{ weixin_count }}</strong></h4>
|
||||
<span>微信</span>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -85,7 +85,7 @@
|
|||
<img src="{% static 'dashboard/image/weibo.png' %}"
|
||||
class='pull-left fa fa-thumbs-up '>
|
||||
<div class="stats">
|
||||
<h4><strong>500</strong></h4>
|
||||
<h4><strong>{{ weibo_count }}</strong></h4>
|
||||
<span>微博</span>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -96,7 +96,7 @@
|
|||
<img src="{% static 'dashboard/image/toutiao.png' %}"
|
||||
class='pull-left fa fa-thumbs-up '>
|
||||
<div class="stats">
|
||||
<h4><strong>424</strong></h4>
|
||||
<h4><strong>{{ toutiao_count }}</strong></h4>
|
||||
<span>今日头条</span>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -107,7 +107,7 @@
|
|||
<img src="{% static 'dashboard/image/qita.png' %}"
|
||||
class='pull-left fa fa-thumbs-up '>
|
||||
<div class="stats">
|
||||
<h4><strong>1433</strong></h4>
|
||||
<h4><strong>{{ qita_count }}</strong></h4>
|
||||
<span>其他新媒体</span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
<div id="pages" class="text-center">
|
||||
<nav>
|
||||
<ul class="pagination">
|
||||
<li class="step-links">
|
||||
{% if qita.has_previous %}
|
||||
<a class='active' href="?page={{ qita.previous_page_number }}">上一页</a>
|
||||
{% endif %}
|
||||
|
||||
<span class="current">
|
||||
第{{ qita.number }}页 共{{ qita.paginator.num_pages }}页</span>
|
||||
|
||||
{% if qita.has_next %}
|
||||
<a class='active' href="?page={{ qita.next_page_number }}">下一页</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
|
@ -0,0 +1,18 @@
|
|||
<div id="pages" class="text-center">
|
||||
<nav>
|
||||
<ul class="pagination">
|
||||
<li class="step-links">
|
||||
{% if toutiao.has_previous %}
|
||||
<a class='active' href="?page={{ toutiao.previous_page_number }}">上一页</a>
|
||||
{% endif %}
|
||||
|
||||
<span class="current">
|
||||
第{{ toutiao.number }}页 共{{ toutiao.paginator.num_pages }}页</span>
|
||||
|
||||
{% if toutiao.has_next %}
|
||||
<a class='active' href="?page={{ toutiao.next_page_number }}">下一页</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
|
@ -0,0 +1,18 @@
|
|||
<div id="pages" class="text-center">
|
||||
<nav>
|
||||
<ul class="pagination">
|
||||
<li class="step-links">
|
||||
{% if weibo.has_previous %}
|
||||
<a class='active' href="?page={{ weibo.previous_page_number }}">上一页</a>
|
||||
{% endif %}
|
||||
|
||||
<span class="current">
|
||||
第{{ weibo.number }}页 共{{ weibo.paginator.num_pages }}页</span>
|
||||
|
||||
{% if weibo.has_next %}
|
||||
<a class='active' href="?page={{ weibo.next_page_number }}">下一页</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
|
@ -10,7 +10,7 @@ import datetime
|
|||
|
||||
|
||||
# Create your views here.
|
||||
from dashboard.models import Userprofile, Organization, Area_code_2020
|
||||
from dashboard.models import Userprofile, Organization, Area_code_2020, Weixin, Weibo, Toutiao, Qita
|
||||
|
||||
|
||||
def refresh_captcha(request):
|
||||
|
@ -20,7 +20,11 @@ def refresh_captcha(request):
|
|||
to_json_response['new_cptch_image'] = captcha_image_url(to_json_response['new_cptch_key'])
|
||||
return JsonResponse(to_json_response)
|
||||
def index(request):
|
||||
return render(request,'dashboard/index.html')
|
||||
weixin_count = Weixin.objects.all().count()
|
||||
weibo_count = Weibo.objects.all().count()
|
||||
toutiao_count = Toutiao.objects.all().count()
|
||||
qita_count = Qita.objects.all().count()
|
||||
return render(request,'dashboard/index.html',{'weixin_count':weixin_count,'weibo_count':weibo_count,'toutiao_count':toutiao_count,'qita_count':qita_count})
|
||||
def user_login(request):
|
||||
username = None
|
||||
password = None
|
||||
|
|
|
@ -65,29 +65,31 @@
|
|||
</div>
|
||||
<div class="col-md-3 col-sm-6 col-xs-6 c">
|
||||
<div class="r4_counter db_box">
|
||||
<img src="{% static 'dashboard/image/weibo.png' %}"
|
||||
class=' fa fa-thumbs-up '>
|
||||
<a href="" {% url 'newmedia-management-create-weibo' %}><img
|
||||
src="{% static 'dashboard/image/weibo.png' %}"
|
||||
class=' fa fa-thumbs-up '></a>
|
||||
</div>
|
||||
<div class="stats">
|
||||
<span>微博</span>
|
||||
<a href="{% url 'newmedia-management-create-weibo' %}"><span>微博</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 col-sm-6 col-xs-6 c">
|
||||
<div class="r4_counter db_box">
|
||||
<img src="{% static 'dashboard/image/toutiao.png' %}"
|
||||
class='fa fa-thumbs-up '>
|
||||
<a href="{% url 'newmedia-management-create-toutiao' %}"><img
|
||||
src="{% static 'dashboard/image/toutiao.png' %}"
|
||||
class='fa fa-thumbs-up '></a>
|
||||
</div>
|
||||
<div class="stats">
|
||||
<span>今日头条</span>
|
||||
<a href="{% url 'newmedia-management-create-toutiao' %}"><span>今日头条</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 col-sm-6 col-xs-6 c">
|
||||
<div class="r4_counter db_box">
|
||||
<img src="{% static 'dashboard/image/qita.png' %}"
|
||||
class='fa fa-thumbs-up '>
|
||||
<a href="{% url 'newmedia-management-create-qita' %}"><img src="{% static 'dashboard/image/qita.png' %}"
|
||||
class='fa fa-thumbs-up '></a>
|
||||
</div>
|
||||
<div class="stats">
|
||||
<span>其他新媒体</span>
|
||||
<a href="{% url 'newmedia-management-create-qita' %}"><span>其他新媒体</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,111 @@
|
|||
{% extends 'dashboard/base/base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<body class=" ">
|
||||
<!-- START TOPBAR -->
|
||||
|
||||
<!-- START CONTAINER -->
|
||||
<div class="page-container row-fluid">
|
||||
|
||||
<div class="page-sidebar ">
|
||||
{% include 'dashboard/base/left.html' %}
|
||||
</div>
|
||||
<section id="main-content" class=" ">
|
||||
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
|
||||
{% if messages %}
|
||||
<div class="alert alert-success alert-dismissible" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert">
|
||||
<span aria-hidden="true">×</span>
|
||||
<span class="sr-only">Close</span>
|
||||
</button>
|
||||
{% for message in messages %}
|
||||
{{ message }}.<br/>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
|
||||
<div class="page-title">
|
||||
|
||||
<div class="pull-left">
|
||||
<h1 class="title">新建新媒体</h1></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-xs-12 col-sm-12">
|
||||
<section class="box ">
|
||||
<header class="panel_header">
|
||||
<h2 class="title pull-left">新建其他新媒体</h2>
|
||||
</header>
|
||||
<div class="content-body">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-sm-9 col-xs-10">
|
||||
<form method="post"
|
||||
action="{% url 'newmedia-management-create-qita' %}"
|
||||
enctype="multipart/form-data">{% csrf_token %}
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="type">新媒体类型</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="type">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="name">新媒体名称</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="name">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="qitaid">ID</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="qitaid">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="alias">别名</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="alias">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="organization">单位</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" name="organization">
|
||||
{% for o in organization %}
|
||||
<option value="{{ o.id }}">{{ o.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="image">图标
|
||||
<div class="controls">
|
||||
<input type="file" name="image">
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="status">状态</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" name="status">
|
||||
{% for w in qita_status_choices_list %}
|
||||
<option value="{{ w }}">{{ w }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success" style="margin-top: 50px">点击新建
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<div class="chatapi-windows "></div>
|
||||
</div>
|
||||
</body>
|
||||
{% endblock %}
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
{% extends 'dashboard/base/base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<body class=" ">
|
||||
<!-- START TOPBAR -->
|
||||
|
||||
<!-- START CONTAINER -->
|
||||
<div class="page-container row-fluid">
|
||||
|
||||
<div class="page-sidebar ">
|
||||
{% include 'dashboard/base/left.html' %}
|
||||
</div>
|
||||
<section id="main-content" class=" ">
|
||||
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
|
||||
{% if messages %}
|
||||
<div class="alert alert-success alert-dismissible" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert">
|
||||
<span aria-hidden="true">×</span>
|
||||
<span class="sr-only">Close</span>
|
||||
</button>
|
||||
{% for message in messages %}
|
||||
{{ message }}.<br/>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
|
||||
<div class="page-title">
|
||||
|
||||
<div class="pull-left">
|
||||
<h1 class="title">新建新媒体</h1></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-xs-12 col-sm-12">
|
||||
<section class="box ">
|
||||
<header class="panel_header">
|
||||
<h2 class="title pull-left">新建头条</h2>
|
||||
</header>
|
||||
<div class="content-body">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-sm-9 col-xs-10">
|
||||
<form method="post"
|
||||
action="{% url 'newmedia-management-create-toutiao' %}"
|
||||
enctype="multipart/form-data">{% csrf_token %}
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="code">头条号</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="code">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="toutiaoid">ID</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="toutiaoid">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="alias">别名</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="alias">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="organization">单位</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" name="organization">
|
||||
{% for o in organization %}
|
||||
<option value="{{ o.id }}">{{ o.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="image">图标
|
||||
<div class="controls">
|
||||
<input type="file" name="image">
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="status">状态</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" name="status">
|
||||
{% for w in toutiao_status_choices_list %}
|
||||
<option value="{{ w }}">{{ w }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success" style="margin-top: 50px">点击新建
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<div class="chatapi-windows "></div>
|
||||
</div>
|
||||
</body>
|
||||
{% endblock %}
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
{% extends 'dashboard/base/base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<body class=" ">
|
||||
<!-- START TOPBAR -->
|
||||
|
||||
<!-- START CONTAINER -->
|
||||
<div class="page-container row-fluid">
|
||||
|
||||
<div class="page-sidebar ">
|
||||
{% include 'dashboard/base/left.html' %}
|
||||
</div>
|
||||
<section id="main-content" class=" ">
|
||||
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
|
||||
{% if messages %}
|
||||
<div class="alert alert-success alert-dismissible" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert">
|
||||
<span aria-hidden="true">×</span>
|
||||
<span class="sr-only">Close</span>
|
||||
</button>
|
||||
{% for message in messages %}
|
||||
{{ message }}.<br/>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
|
||||
<div class="page-title">
|
||||
|
||||
<div class="pull-left">
|
||||
<h1 class="title">新建新媒体</h1></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-xs-12 col-sm-12">
|
||||
<section class="box ">
|
||||
<header class="panel_header">
|
||||
<h2 class="title pull-left">新建微博</h2>
|
||||
</header>
|
||||
<div class="content-body">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-sm-9 col-xs-10">
|
||||
<form method="post"
|
||||
action="{% url 'newmedia-management-create-weibo' %}"
|
||||
enctype="multipart/form-data">{% csrf_token %}
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="code">微博号</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="code">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="weiboid">ID</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="weiboid">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="alias">别名</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="alias">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="organization">单位</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" name="organization">
|
||||
{% for o in organization %}
|
||||
<option value="{{ o.id }}">{{ o.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="image">图标
|
||||
<div class="controls">
|
||||
<input type="file" name="image">
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="status">状态</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" name="status">
|
||||
{% for w in weibo_status_choices_list %}
|
||||
<option value="{{ w }}">{{ w }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success" style="margin-top: 50px">点击新建
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<div class="chatapi-windows "></div>
|
||||
</div>
|
||||
</body>
|
||||
{% endblock %}
|
||||
|
|
@ -65,29 +65,32 @@
|
|||
</div>
|
||||
<div class="col-md-3 col-sm-6 col-xs-6 c">
|
||||
<div class="r4_counter db_box">
|
||||
<img src="{% static 'dashboard/image/weibo.png' %}"
|
||||
class=' fa fa-thumbs-up '>
|
||||
<a href="{% url 'newmedia-management-edit-weibo' %}"><img
|
||||
src="{% static 'dashboard/image/weibo.png' %}"
|
||||
class=' fa fa-thumbs-up '></a>
|
||||
</div>
|
||||
<div class="stats">
|
||||
<span>微博</span>
|
||||
<a href="{% url 'newmedia-management-edit-weibo' %}"><span>微博</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 col-sm-6 col-xs-6 c">
|
||||
<div class="r4_counter db_box">
|
||||
<img src="{% static 'dashboard/image/toutiao.png' %}"
|
||||
class='fa fa-thumbs-up '>
|
||||
<a href="{% url 'newmedia-management-edit-toutiao' %}"><img
|
||||
src="{% static 'dashboard/image/toutiao.png' %}"
|
||||
class='fa fa-thumbs-up '></a>
|
||||
</div>
|
||||
<div class="stats">
|
||||
<span>今日头条</span>
|
||||
<a href="{% url 'newmedia-management-edit-toutiao' %}"><span>今日头条</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3 col-sm-6 col-xs-6 c">
|
||||
<div class="r4_counter db_box">
|
||||
<img src="{% static 'dashboard/image/qita.png' %}"
|
||||
class='fa fa-thumbs-up '>
|
||||
<a href="{% url 'newmedia-management-edit-qita' %}"><img
|
||||
src="{% static 'dashboard/image/qita.png' %}"
|
||||
class='fa fa-thumbs-up '></a>
|
||||
</div>
|
||||
<div class="stats">
|
||||
<span>其他新媒体</span>
|
||||
<a href="{% url 'newmedia-management-edit-qita' %}"><span>其他新媒体</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,86 @@
|
|||
{% extends 'dashboard/base/base.html' %}
|
||||
{% load static %}
|
||||
{% block css %}
|
||||
<link href="{% static 'management/css/uikit.min.css' %}" rel="stylesheet" type="text/css" media="screen"/>
|
||||
<link href="{% static 'management/css/nestable.min.css' %}" rel="stylesheet" type="text/css" media="screen"/>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<body class=" ">
|
||||
<div class="page-container row-fluid">
|
||||
<div class="page-sidebar ">
|
||||
{% include 'dashboard/base/left.html' %}
|
||||
</div>
|
||||
<section id="main-content" class=" ">
|
||||
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
|
||||
<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
|
||||
<div class="page-title">
|
||||
<div class="pull-left">
|
||||
<h1 class="title">新媒体编辑</h1></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="col-lg-12">
|
||||
<section class="box ">
|
||||
<header class="panel_header">
|
||||
<h2 class="title pull-left">其他新媒体列表</h2>
|
||||
</header>
|
||||
<div class="content-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align: center">图标</th>
|
||||
<th style="text-align: center">新媒体类型</th>
|
||||
<th style="text-align: center">新媒体名称</th>
|
||||
<th style="text-align: center">新媒体ID</th>
|
||||
<th style="text-align: center">责任主体</th>
|
||||
<th style="text-align: center">主体类型</th>
|
||||
<th style="text-align: center">行政区划</th>
|
||||
<th style="text-align: center">状态</th>
|
||||
<th style="text-align: center">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for w in res %}
|
||||
<tr>
|
||||
<td><img src="{{ w.image.url }}" style="width: 60px;height: 60px;margin: auto"
|
||||
class="img-circle"></td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.type }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.name }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.qitaid }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.organization }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.organization_type }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.administrativedivision }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.status }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">
|
||||
<a href="{% url 'newmedia-management-update-qita' w.id %}"
|
||||
class="btn btn-primary btn-mini">编辑</a>
|
||||
<a href="{% url 'newmedia-management-delete-qita' w.id %}"
|
||||
class="btn btn-danger btn-mini">删除</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="metadata-pagination">
|
||||
{% include 'dashboard/paginator/qita-management-paginate.html' %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<div class="chatapi-windows ">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
{% endblock %}
|
||||
{% block add_js %}
|
||||
<script src="{% static 'management/js/uikit.min.js' %}" type="text/javascript"></script>
|
||||
<script src="{% static 'management/js/nestable.min.js' %}" type="text/javascript"></script>
|
||||
<script>
|
||||
</script>
|
||||
{% endblock %}
|
|
@ -0,0 +1,84 @@
|
|||
{% extends 'dashboard/base/base.html' %}
|
||||
{% load static %}
|
||||
{% block css %}
|
||||
<link href="{% static 'management/css/uikit.min.css' %}" rel="stylesheet" type="text/css" media="screen"/>
|
||||
<link href="{% static 'management/css/nestable.min.css' %}" rel="stylesheet" type="text/css" media="screen"/>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<body class=" ">
|
||||
<div class="page-container row-fluid">
|
||||
<div class="page-sidebar ">
|
||||
{% include 'dashboard/base/left.html' %}
|
||||
</div>
|
||||
<section id="main-content" class=" ">
|
||||
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
|
||||
<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
|
||||
<div class="page-title">
|
||||
<div class="pull-left">
|
||||
<h1 class="title">新媒体编辑</h1></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="col-lg-12">
|
||||
<section class="box ">
|
||||
<header class="panel_header">
|
||||
<h2 class="title pull-left">头条列表</h2>
|
||||
</header>
|
||||
<div class="content-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align: center">图标</th>
|
||||
<th style="text-align: center">新媒体名称</th>
|
||||
<th style="text-align: center">新媒体ID</th>
|
||||
<th style="text-align: center">责任主体</th>
|
||||
<th style="text-align: center">主体类型</th>
|
||||
<th style="text-align: center">行政区划</th>
|
||||
<th style="text-align: center">状态</th>
|
||||
<th style="text-align: center">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for w in res %}
|
||||
<tr>
|
||||
<td><img src="{{ w.image.url }}" style="width: 60px;height: 60px;margin: auto"
|
||||
class="img-circle"></td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.code }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.toutiaoid }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.organization }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.organization_type }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.administrativedivision }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.status }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">
|
||||
<a href="{% url 'newmedia-management-update-toutiao' w.id %}"
|
||||
class="btn btn-primary btn-mini">编辑</a>
|
||||
<a href="{% url 'newmedia-management-delete-toutiao' w.id %}"
|
||||
class="btn btn-danger btn-mini">删除</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="metadata-pagination">
|
||||
{% include 'dashboard/paginator/toutiao-management-paginate.html' %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<div class="chatapi-windows ">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
{% endblock %}
|
||||
{% block add_js %}
|
||||
<script src="{% static 'management/js/uikit.min.js' %}" type="text/javascript"></script>
|
||||
<script src="{% static 'management/js/nestable.min.js' %}" type="text/javascript"></script>
|
||||
<script>
|
||||
</script>
|
||||
{% endblock %}
|
|
@ -0,0 +1,84 @@
|
|||
{% extends 'dashboard/base/base.html' %}
|
||||
{% load static %}
|
||||
{% block css %}
|
||||
<link href="{% static 'management/css/uikit.min.css' %}" rel="stylesheet" type="text/css" media="screen"/>
|
||||
<link href="{% static 'management/css/nestable.min.css' %}" rel="stylesheet" type="text/css" media="screen"/>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<body class=" ">
|
||||
<div class="page-container row-fluid">
|
||||
<div class="page-sidebar ">
|
||||
{% include 'dashboard/base/left.html' %}
|
||||
</div>
|
||||
<section id="main-content" class=" ">
|
||||
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
|
||||
<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
|
||||
<div class="page-title">
|
||||
<div class="pull-left">
|
||||
<h1 class="title">新媒体编辑</h1></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="col-lg-12">
|
||||
<section class="box ">
|
||||
<header class="panel_header">
|
||||
<h2 class="title pull-left">微博列表</h2>
|
||||
</header>
|
||||
<div class="content-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align: center">图标</th>
|
||||
<th style="text-align: center">新媒体名称</th>
|
||||
<th style="text-align: center">新媒体ID</th>
|
||||
<th style="text-align: center">责任主体</th>
|
||||
<th style="text-align: center">主体类型</th>
|
||||
<th style="text-align: center">行政区划</th>
|
||||
<th style="text-align: center">状态</th>
|
||||
<th style="text-align: center">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for w in res %}
|
||||
<tr>
|
||||
<td><img src="{{ w.image.url }}" style="width: 60px;height: 60px;margin: auto"
|
||||
class="img-circle"></td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.code }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.weiboid }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.organization }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.organization_type }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.administrativedivision }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.status }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">
|
||||
<a href="{% url 'newmedia-management-update-weibo' w.id %}"
|
||||
class="btn btn-primary btn-mini">编辑</a>
|
||||
<a href="{% url 'newmedia-management-delete-weibo' w.id %}"
|
||||
class="btn btn-danger btn-mini">删除</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="metadata-pagination">
|
||||
{% include 'dashboard/paginator/weibo-management-paginate.html' %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<div class="chatapi-windows ">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
{% endblock %}
|
||||
{% block add_js %}
|
||||
<script src="{% static 'management/js/uikit.min.js' %}" type="text/javascript"></script>
|
||||
<script src="{% static 'management/js/nestable.min.js' %}" type="text/javascript"></script>
|
||||
<script>
|
||||
</script>
|
||||
{% endblock %}
|
|
@ -52,7 +52,9 @@
|
|||
<td style="vertical-align: middle;text-align: center">{{ w.administrativedivision }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.status }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">
|
||||
<a href=""
|
||||
<a href="{% url 'newmedia-management-update-weixin' w.id %}"
|
||||
class="btn btn-primary btn-mini">编辑</a>
|
||||
<a href="{% url 'newmedia-management-delete-weixin' w.id %}"
|
||||
class="btn btn-danger btn-mini">删除</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -0,0 +1,120 @@
|
|||
{% extends 'dashboard/base/base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<body class=" ">
|
||||
<!-- START TOPBAR -->
|
||||
|
||||
<!-- START CONTAINER -->
|
||||
<div class="page-container row-fluid">
|
||||
|
||||
<div class="page-sidebar ">
|
||||
{% include 'dashboard/base/left.html' %}
|
||||
</div>
|
||||
<section id="main-content" class=" ">
|
||||
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
|
||||
{% if messages %}
|
||||
<div class="alert alert-success alert-dismissible" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert">
|
||||
<span aria-hidden="true">×</span>
|
||||
<span class="sr-only">Close</span>
|
||||
</button>
|
||||
{% for message in messages %}
|
||||
{{ message }}.<br/>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
|
||||
<div class="page-title">
|
||||
|
||||
<div class="pull-left">
|
||||
<h1 class="title">新媒体编辑</h1></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-xs-12 col-sm-12">
|
||||
<section class="box ">
|
||||
<header class="panel_header">
|
||||
<h2 class="title pull-left">其他新媒体编辑</h2>
|
||||
</header>
|
||||
<div class="content-body">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-sm-9 col-xs-10">
|
||||
<form method="post"
|
||||
action="{% url 'newmedia-management-update-qita' qita.id %}"
|
||||
enctype="multipart/form-data">{% csrf_token %}
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="type">新媒体类型</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="type"
|
||||
value="{{ qita.type }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="name">新媒体名称</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="name"
|
||||
value="{{ qita.name }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="qitaid">ID</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="qitaid"
|
||||
value="{{ qita.qitaid }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="alias">别名</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="alias"
|
||||
value="{{ qita.alias }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="organization">单位</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" name="organization">
|
||||
<option value="{{ qita.organization.id }}">{{ qita.organization.name }}</option>
|
||||
{% for o in organization %}
|
||||
<option value="{{ o.id }}">{{ o.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="image">图标
|
||||
<div class="controls">
|
||||
<input type="file" name="image"><img
|
||||
src="{{ qita.image.url }}"
|
||||
style="width: 80px;height: 80px;"
|
||||
class="img-circle">
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="status">状态</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" name="status">
|
||||
<option value="{{ qita.status }}">{{ qita.status }}</option>
|
||||
{% for w in qita_status_choices_list %}
|
||||
<option value="{{ w }}">{{ w }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success" style="margin-top: 50px">点击新建
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<div class="chatapi-windows "></div>
|
||||
</div>
|
||||
</body>
|
||||
{% endblock %}
|
||||
|
|
@ -0,0 +1,113 @@
|
|||
{% extends 'dashboard/base/base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<body class=" ">
|
||||
<!-- START TOPBAR -->
|
||||
|
||||
<!-- START CONTAINER -->
|
||||
<div class="page-container row-fluid">
|
||||
|
||||
<div class="page-sidebar ">
|
||||
{% include 'dashboard/base/left.html' %}
|
||||
</div>
|
||||
<section id="main-content" class=" ">
|
||||
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
|
||||
{% if messages %}
|
||||
<div class="alert alert-success alert-dismissible" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert">
|
||||
<span aria-hidden="true">×</span>
|
||||
<span class="sr-only">Close</span>
|
||||
</button>
|
||||
{% for message in messages %}
|
||||
{{ message }}.<br/>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
|
||||
<div class="page-title">
|
||||
|
||||
<div class="pull-left">
|
||||
<h1 class="title">新媒体编辑</h1></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-xs-12 col-sm-12">
|
||||
<section class="box ">
|
||||
<header class="panel_header">
|
||||
<h2 class="title pull-left">头条编辑</h2>
|
||||
</header>
|
||||
<div class="content-body">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-sm-9 col-xs-10">
|
||||
<form method="post"
|
||||
action="{% url 'newmedia-management-update-toutiao' toutiao.id %}"
|
||||
enctype="multipart/form-data">{% csrf_token %}
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="code">头条号</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="code"
|
||||
value="{{ toutiao.code }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="toutiaoid">ID</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="toutiaoid"
|
||||
value="{{ toutiao.toutiaoid }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="alias">别名</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="alias"
|
||||
value="{{ toutiao.alias }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="organization">单位</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" name="organization">
|
||||
<option value="{{ toutiao.organization.id }}">{{ toutiao.organization.name }}</option>
|
||||
{% for o in organization %}
|
||||
<option value="{{ o.id }}">{{ o.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="image">图标
|
||||
<div class="controls">
|
||||
<input type="file" name="image"><img
|
||||
src="{{ toutiao.image.url }}"
|
||||
style="width: 80px;height: 80px;"
|
||||
class="img-circle">
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="status">状态</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" name="status">
|
||||
<option value="{{ toutiao.status }}">{{ toutiao.status }}</option>
|
||||
{% for w in toutiao_status_choices_list %}
|
||||
<option value="{{ w }}">{{ w }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success" style="margin-top: 50px">点击新建
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<div class="chatapi-windows "></div>
|
||||
</div>
|
||||
</body>
|
||||
{% endblock %}
|
||||
|
|
@ -0,0 +1,113 @@
|
|||
{% extends 'dashboard/base/base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<body class=" ">
|
||||
<!-- START TOPBAR -->
|
||||
|
||||
<!-- START CONTAINER -->
|
||||
<div class="page-container row-fluid">
|
||||
|
||||
<div class="page-sidebar ">
|
||||
{% include 'dashboard/base/left.html' %}
|
||||
</div>
|
||||
<section id="main-content" class=" ">
|
||||
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
|
||||
{% if messages %}
|
||||
<div class="alert alert-success alert-dismissible" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert">
|
||||
<span aria-hidden="true">×</span>
|
||||
<span class="sr-only">Close</span>
|
||||
</button>
|
||||
{% for message in messages %}
|
||||
{{ message }}.<br/>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
|
||||
<div class="page-title">
|
||||
|
||||
<div class="pull-left">
|
||||
<h1 class="title">新媒体编辑</h1></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-xs-12 col-sm-12">
|
||||
<section class="box ">
|
||||
<header class="panel_header">
|
||||
<h2 class="title pull-left">微博编辑</h2>
|
||||
</header>
|
||||
<div class="content-body">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-sm-9 col-xs-10">
|
||||
<form method="post"
|
||||
action="{% url 'newmedia-management-update-weibo' weibo.id %}"
|
||||
enctype="multipart/form-data">{% csrf_token %}
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="code">微博号</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="code"
|
||||
value="{{ weibo.code }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="weiboid">ID</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="weiboid"
|
||||
value="{{ weibo.weiboid }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="alias">别名</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="alias"
|
||||
value="{{ weibo.alias }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="organization">单位</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" name="organization">
|
||||
<option value="{{ weibo.organization.id }}">{{ weibo.organization.name }}</option>
|
||||
{% for o in organization %}
|
||||
<option value="{{ o.id }}">{{ o.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="image">图标
|
||||
<div class="controls">
|
||||
<input type="file" name="image"><img
|
||||
src="{{ weibo.image.url }}"
|
||||
style="width: 80px;height: 80px;"
|
||||
class="img-circle">
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="status">状态</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" name="status">
|
||||
<option value="{{ weibo.status }}">{{ weibo.status }}</option>
|
||||
{% for w in weibo_status_choices_list %}
|
||||
<option value="{{ w }}">{{ w }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-success" style="margin-top: 50px">点击新建
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<div class="chatapi-windows "></div>
|
||||
</div>
|
||||
</body>
|
||||
{% endblock %}
|
||||
|
|
@ -0,0 +1,113 @@
|
|||
{% extends 'dashboard/base/base.html' %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<body class=" ">
|
||||
<!-- START TOPBAR -->
|
||||
|
||||
<!-- START CONTAINER -->
|
||||
<div class="page-container row-fluid">
|
||||
|
||||
<div class="page-sidebar ">
|
||||
{% include 'dashboard/base/left.html' %}
|
||||
</div>
|
||||
<section id="main-content" class=" ">
|
||||
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
|
||||
{% if messages %}
|
||||
<div class="alert alert-success alert-dismissible" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert">
|
||||
<span aria-hidden="true">×</span>
|
||||
<span class="sr-only">Close</span>
|
||||
</button>
|
||||
{% for message in messages %}
|
||||
{{ message }}.<br/>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
|
||||
<div class="page-title">
|
||||
|
||||
<div class="pull-left">
|
||||
<h1 class="title">新媒体编辑</h1></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="col-lg-12 col-md-12 col-xs-12 col-sm-12">
|
||||
<section class="box ">
|
||||
<header class="panel_header">
|
||||
<h2 class="title pull-left">微信编辑</h2>
|
||||
</header>
|
||||
<div class="content-body">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-sm-9 col-xs-10">
|
||||
<form method="post"
|
||||
action="{% url 'newmedia-management-update-weixin' weixin.id %}"
|
||||
enctype="multipart/form-data">{% csrf_token %}
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="code">微信公众号</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="code"
|
||||
value="{{ weixin.code }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="weixinid">ID</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="weixinid"
|
||||
value="{{ weixin.weixinid }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="alias">别名</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" name="alias"
|
||||
value="{{ weixin.alias }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="organization">单位</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" name="organization">
|
||||
<option value="{{ weixin.organization.id }}">{{ weixin.organization.name }}</option>
|
||||
{% for o in organization %}
|
||||
<option value="{{ o.id }}">{{ o.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="image">图标
|
||||
<div class="controls">
|
||||
<input type="file" name="image"><img
|
||||
src="{{ weixin.image.url }}"
|
||||
style="width: 80px;height: 80px;"
|
||||
class="img-circle">
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="status">状态</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" name="status">
|
||||
<option value="{{ weixin.status }}">{{ weixin.status }}</option>
|
||||
{% for w in weixin_status_choices_list %}
|
||||
<option value="{{ w }}">{{ w }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary" style="margin-top: 50px">提交修改
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<div class="chatapi-windows "></div>
|
||||
</div>
|
||||
</body>
|
||||
{% endblock %}
|
||||
|
|
@ -28,6 +28,20 @@ urlpatterns = [
|
|||
path('newmedia/management/create/menu/',views.newmedia_management_create_menu,name='newmedia-management-create-menu'),
|
||||
path('newmedia/management/edit/menu/',views.newmedia_management_edit_menu,name='newmedia-management-edit-menu'),
|
||||
path('newmedia/management/create/weixin/',views.newmedia_management_create_weixin,name='newmedia-management-create-weixin'),
|
||||
path('newmedia/management/create/weibo/',views.newmedia_management_create_weibo,name='newmedia-management-create-weibo'),
|
||||
path('newmedia/management/create/toutiao/',views.newmedia_management_create_toutiao,name='newmedia-management-create-toutiao'),
|
||||
path('newmedia/management/create/qita/',views.newmedia_management_create_qita,name='newmedia-management-create-qita'),
|
||||
path('newmedia/management/edit/weixin/',views.newmedia_management_edit_weixin,name='newmedia-management-edit-weixin'),
|
||||
path('newmedia/management/edit/weibo/',views.newmedia_management_edit_weibo,name='newmedia-management-edit-weibo'),
|
||||
path('newmedia/management/edit/toutiao/',views.newmedia_management_edit_toutiao,name='newmedia-management-edit-toutiao'),
|
||||
path('newmedia/management/edit/qita/',views.newmedia_management_edit_qita,name='newmedia-management-edit-qita'),
|
||||
path('newmedia/management/update/weixin/<str:pk>/',views.newmedia_management_update_weixin,name='newmedia-management-update-weixin'),
|
||||
path('newmedia/management/update/weibo/<str:pk>/',views.newmedia_management_update_weibo,name='newmedia-management-update-weibo'),
|
||||
path('newmedia/management/update/toutiao/<str:pk>/',views.newmedia_management_update_toutiao,name='newmedia-management-update-toutiao'),
|
||||
path('newmedia/management/update/qita/<str:pk>/',views.newmedia_management_update_qita,name='newmedia-management-update-qita'),
|
||||
path('newmedia/management/delete/weixin/<str:pk>/',views.newmedia_management_delete_weixin,name='newmedia-management-delete-weixin'),
|
||||
path('newmedia/management/delete/weibo/<str:pk>/',views.newmedia_management_delete_weibo,name='newmedia-management-delete-weibo'),
|
||||
path('newmedia/management/delete/toutiao/<str:pk>/',views.newmedia_management_delete_toutiao,name='newmedia-management-delete-toutiao'),
|
||||
path('newmedia/management/delete/qita/<str:pk>/',views.newmedia_management_delete_qita,name='newmedia-management-delete-qita'),
|
||||
|
||||
]
|
||||
|
|
|
@ -419,7 +419,7 @@ def newmedia_management_create_weixin(request):
|
|||
messages.success(request, '创建成功')
|
||||
return HttpResponseRedirect('/management/newmedia/management/create/weixin/')
|
||||
else:
|
||||
weixin = Weixin(code=code, weixinid=weixinid, alias=alias, image='cover/weixin.PNG',
|
||||
weixin = Weixin(code=code, weixinid=weixinid, alias=alias, image='weixin.png',
|
||||
organization_id=organization, status=status)
|
||||
weixin.save()
|
||||
messages.success(request, '创建成功')
|
||||
|
@ -436,12 +436,132 @@ def newmedia_management_create_weixin(request):
|
|||
{'weixin_status_choices_list': weixin_status_choices_list, "organization": organization})
|
||||
|
||||
|
||||
def newmedia_management_create_weibo(request):
|
||||
WEIBO_STATUS_CHOICES = Weibo.WEIBO_STATUS_CHOICES
|
||||
weibo_status_choices_list = []
|
||||
for w in WEIBO_STATUS_CHOICES:
|
||||
weibo_status_choices_list.append(list(w)[1])
|
||||
organization = Organization.objects.all()
|
||||
if request.method == 'POST':
|
||||
code = request.POST.get('code')
|
||||
weiboid = request.POST.get('weiboid')
|
||||
print(str(weiboid) + "11111111111111111111111111111111111111")
|
||||
alias = request.POST.get('alias')
|
||||
image = request.FILES.get('image')
|
||||
organization = request.POST.get('organization')
|
||||
status = request.POST.get('status')
|
||||
if code is not None:
|
||||
if organization is not None:
|
||||
if image is not None:
|
||||
weibo = Weibo(code=code, weiboid=weiboid, alias=alias, image=image,
|
||||
organization_id=organization, status=status)
|
||||
weibo.save()
|
||||
messages.success(request, '创建成功')
|
||||
return HttpResponseRedirect('/management/newmedia/management/create/weibo/')
|
||||
else:
|
||||
weibo = Weibo(code=code, weiboid=weiboid, alias=alias, image='weibo.png',
|
||||
organization_id=organization, status=status)
|
||||
weibo.save()
|
||||
messages.success(request, '创建成功')
|
||||
return HttpResponseRedirect('/management/newmedia/management/create/weibo/')
|
||||
else:
|
||||
messages.success(request, "请选择单位")
|
||||
return render(request, 'management/newmedia-management-create-weibo.html',
|
||||
{'weibo_status_choices_list': weibo_status_choices_list, "organization": organization})
|
||||
else:
|
||||
messages.success(request, "微博号不能为空")
|
||||
return render(request, 'management/newmedia-management-create-weibo.html',
|
||||
{'weixin_status_choices_list': weibo_status_choices_list, "organization": organization})
|
||||
return render(request, 'management/newmedia-management-create-weibo.html',
|
||||
{'weibo_status_choices_list': weibo_status_choices_list, "organization": organization})
|
||||
|
||||
|
||||
def newmedia_management_create_toutiao(request):
|
||||
TOUTIAO_STATUS_CHOICES = Toutiao.TOUTIAO_STATUS_CHOICES
|
||||
toutiao_status_choices_list = []
|
||||
for w in TOUTIAO_STATUS_CHOICES:
|
||||
toutiao_status_choices_list.append(list(w)[1])
|
||||
organization = Organization.objects.all()
|
||||
if request.method == 'POST':
|
||||
code = request.POST.get('code')
|
||||
toutiaoid = request.POST.get('toutiaoid')
|
||||
alias = request.POST.get('alias')
|
||||
image = request.FILES.get('image')
|
||||
organization = request.POST.get('organization')
|
||||
status = request.POST.get('status')
|
||||
if code is not None:
|
||||
if organization is not None:
|
||||
if image is not None:
|
||||
toutiao = Toutiao(code=code, toutiaoid=toutiaoid, alias=alias, image=image,
|
||||
organization_id=organization, status=status)
|
||||
toutiao.save()
|
||||
messages.success(request, '创建成功')
|
||||
return HttpResponseRedirect('/management/newmedia/management/create/toutiao/')
|
||||
else:
|
||||
toutiao = Toutiao(code=code, toutiaoid=toutiaoid, alias=alias, image='toutiao.png',
|
||||
organization_id=organization, status=status)
|
||||
toutiao.save()
|
||||
messages.success(request, '创建成功')
|
||||
return HttpResponseRedirect('/management/newmedia/management/create/toutiao/')
|
||||
else:
|
||||
messages.success(request, "请选择单位")
|
||||
return render(request, 'management/newmedia-management-create-toutiao.html',
|
||||
{'toutiao_status_choices_list': toutiao_status_choices_list,
|
||||
"organization": organization})
|
||||
else:
|
||||
messages.success(request, "头条号不能为空")
|
||||
return render(request, 'management/newmedia-management-create-toutiao.html',
|
||||
{'toutiao_status_choices_list': toutiao_status_choices_list, "organization": organization})
|
||||
return render(request, 'management/newmedia-management-create-toutiao.html',
|
||||
{'toutiao_status_choices_list': toutiao_status_choices_list, "organization": organization})
|
||||
|
||||
|
||||
def newmedia_management_create_qita(request):
|
||||
QITA_STATUS_CHOICES = Qita.QITA_STATUS_CHOICES
|
||||
qita_status_choices_list = []
|
||||
for w in QITA_STATUS_CHOICES:
|
||||
qita_status_choices_list.append(list(w)[1])
|
||||
organization = Organization.objects.all()
|
||||
if request.method == 'POST':
|
||||
type = request.POST.get('type')
|
||||
name = request.POST.get('name')
|
||||
qitaid = request.POST.get('qitaid')
|
||||
alias = request.POST.get('alias')
|
||||
image = request.FILES.get('image')
|
||||
organization = request.POST.get('organization')
|
||||
status = request.POST.get('status')
|
||||
if name is not None:
|
||||
if organization is not None:
|
||||
if image is not None:
|
||||
qita = Qita(type=type, name=name, qitaid=qitaid, alias=alias, image=image,
|
||||
organization_id=organization, status=status)
|
||||
qita.save()
|
||||
messages.success(request, '创建成功')
|
||||
return HttpResponseRedirect('/management/newmedia/management/create/qita/')
|
||||
else:
|
||||
qita = Qita(type=type, name=name, qitaid=qitaid, alias=alias, image='qita.png',
|
||||
organization_id=organization, status=status)
|
||||
qita.save()
|
||||
messages.success(request, '创建成功')
|
||||
return HttpResponseRedirect('/management/newmedia/management/create/qita/')
|
||||
else:
|
||||
messages.success(request, "请选择单位")
|
||||
return render(request, 'management/newmedia-management-create-qita.html',
|
||||
{'qita_status_choices_list': qita_status_choices_list, "organization": organization})
|
||||
else:
|
||||
messages.success(request, "新媒体名称不能为空")
|
||||
return render(request, 'management/newmedia-management-create-qita.html',
|
||||
{'qita_status_choices_list': qita_status_choices_list, "organization": organization})
|
||||
return render(request, 'management/newmedia-management-create-qita.html',
|
||||
{'qita_status_choices_list': qita_status_choices_list, "organization": organization})
|
||||
|
||||
|
||||
def newmedia_management_edit_menu(request):
|
||||
return render(request, 'management/newmedia-management-edit-menu.html')
|
||||
|
||||
|
||||
def newmedia_management_edit_weixin(request):
|
||||
weixin = Weixin.objects.all()
|
||||
weixin = Weixin.objects.all().order_by('-created')
|
||||
paginator = Paginator(weixin, 6)
|
||||
page = int(request.GET.get('page', 1))
|
||||
try:
|
||||
|
@ -464,3 +584,278 @@ def newmedia_management_edit_weixin(request):
|
|||
o['status'] = w.status
|
||||
res.append(o)
|
||||
return render(request, 'management/newmedia-management-edit-weixin.html', {'weixin': weixin, 'res': res})
|
||||
|
||||
|
||||
def newmedia_management_edit_weibo(request):
|
||||
weibo = Weibo.objects.all().order_by('-created')
|
||||
paginator = Paginator(weibo, 6)
|
||||
page = int(request.GET.get('page', 1))
|
||||
try:
|
||||
weibo = paginator.page(page)
|
||||
except PageNotAnInteger:
|
||||
weibo = paginator.page(1)
|
||||
except EmptyPage:
|
||||
weibo = paginator.page(paginator.num_pages)
|
||||
res = []
|
||||
for w in weibo:
|
||||
o = dict()
|
||||
o['id'] = str(w.id)
|
||||
o['image'] = w.image
|
||||
o['code'] = w.code
|
||||
o['weiboid'] = w.weiboid
|
||||
o['organization'] = w.organization.name
|
||||
o['organization_type'] = w.organization.organizationtype.organizationtype
|
||||
o['administrativedivision'] = str(w.organization.province) + '-' + str(w.organization.cities) + '-' + str(
|
||||
w.organization.district) + '-' + str(w.organization.town) + '-' + str(w.organization.village)
|
||||
o['status'] = w.status
|
||||
res.append(o)
|
||||
return render(request, 'management/newmedia-management-edit-weibo.html', {'weibo': weibo, 'res': res})
|
||||
|
||||
|
||||
def newmedia_management_edit_toutiao(request):
|
||||
toutiao = Toutiao.objects.all().order_by('-created')
|
||||
paginator = Paginator(toutiao, 6)
|
||||
page = int(request.GET.get('page', 1))
|
||||
try:
|
||||
toutiao = paginator.page(page)
|
||||
except PageNotAnInteger:
|
||||
toutiao = paginator.page(1)
|
||||
except EmptyPage:
|
||||
toutiao = paginator.page(paginator.num_pages)
|
||||
res = []
|
||||
for w in toutiao:
|
||||
o = dict()
|
||||
o['id'] = str(w.id)
|
||||
o['image'] = w.image
|
||||
o['code'] = w.code
|
||||
o['toutiaoid'] = w.toutiaoid
|
||||
o['organization'] = w.organization.name
|
||||
o['organization_type'] = w.organization.organizationtype.organizationtype
|
||||
o['administrativedivision'] = str(w.organization.province) + '-' + str(w.organization.cities) + '-' + str(
|
||||
w.organization.district) + '-' + str(w.organization.town) + '-' + str(w.organization.village)
|
||||
o['status'] = w.status
|
||||
res.append(o)
|
||||
return render(request, 'management/newmedia-management-edit-toutiao.html', {'toutiao': toutiao, 'res': res})
|
||||
|
||||
|
||||
def newmedia_management_edit_qita(request):
|
||||
qita = Qita.objects.all().order_by('-created')
|
||||
paginator = Paginator(qita, 6)
|
||||
page = int(request.GET.get('page', 1))
|
||||
try:
|
||||
qita = paginator.page(page)
|
||||
except PageNotAnInteger:
|
||||
qita = paginator.page(1)
|
||||
except EmptyPage:
|
||||
qita = paginator.page(paginator.num_pages)
|
||||
res = []
|
||||
for w in qita:
|
||||
o = dict()
|
||||
o['id'] = str(w.id)
|
||||
o['image'] = w.image
|
||||
o['type'] = w.type
|
||||
o['name'] = w.name
|
||||
o['qitaid'] = w.qitaid
|
||||
o['organization'] = w.organization.name
|
||||
o['organization_type'] = w.organization.organizationtype.organizationtype
|
||||
o['administrativedivision'] = str(w.organization.province) + '-' + str(w.organization.cities) + '-' + str(
|
||||
w.organization.district) + '-' + str(w.organization.town) + '-' + str(w.organization.village)
|
||||
o['status'] = w.status
|
||||
res.append(o)
|
||||
return render(request, 'management/newmedia-management-edit-qita.html', {'qita': qita, 'res': res})
|
||||
|
||||
|
||||
def newmedia_management_update_weixin(request, pk):
|
||||
WEIXIN_STATUS_CHOICES = Weixin.WEIXIN_STATUS_CHOICES
|
||||
weixin_status_choices_list = []
|
||||
for w in WEIXIN_STATUS_CHOICES:
|
||||
weixin_status_choices_list.append(list(w)[1])
|
||||
weixin = Weixin.objects.get(id=pk)
|
||||
organization = Organization.objects.all()
|
||||
if request.method == 'POST':
|
||||
code = request.POST.get('code')
|
||||
weixinid = request.POST.get('weixinid')
|
||||
alias = request.POST.get('alias')
|
||||
image = request.FILES.get('image')
|
||||
organization = request.POST.get('organization')
|
||||
status = request.POST.get('status')
|
||||
if code is not None:
|
||||
if organization is not None:
|
||||
if image is not None:
|
||||
Weixin.objects.filter(id=pk).update(code=code, weixinid=weixinid, alias=alias,
|
||||
organization_id=organization, status=status)
|
||||
weixin.image = image
|
||||
weixin.save()
|
||||
messages.success(request, '修改成功')
|
||||
return HttpResponseRedirect('/management/newmedia/management/edit/weixin/')
|
||||
else:
|
||||
Weixin.objects.filter(id=pk).update(code=code, weixinid=weixinid, alias=alias,
|
||||
organization_id=organization, status=status)
|
||||
messages.success(request, '修改成功')
|
||||
return HttpResponseRedirect('/management/newmedia/management/edit/weixin/')
|
||||
else:
|
||||
messages.success(request, "请选择单位")
|
||||
return render(request, 'management/newmedia-management-update-weixin.html',
|
||||
{'weixin': weixin, 'organization': organization,
|
||||
'weixin_status_choices_list': weixin_status_choices_list})
|
||||
else:
|
||||
messages.success(request, "微信公众号不能为空")
|
||||
return render(request, 'management/newmedia-management-update-weixin.html',
|
||||
{'weixin': weixin, 'organization': organization,
|
||||
'weixin_status_choices_list': weixin_status_choices_list})
|
||||
return render(request, 'management/newmedia-management-update-weixin.html',
|
||||
{'weixin': weixin, 'organization': organization,
|
||||
'weixin_status_choices_list': weixin_status_choices_list})
|
||||
|
||||
def newmedia_management_update_weibo(request, pk):
|
||||
WEIBO_STATUS_CHOICES = Weibo.WEIBO_STATUS_CHOICES
|
||||
weibo_status_choices_list = []
|
||||
for w in WEIBO_STATUS_CHOICES:
|
||||
weibo_status_choices_list.append(list(w)[1])
|
||||
weibo = Weibo.objects.get(id=pk)
|
||||
organization = Organization.objects.all()
|
||||
if request.method == 'POST':
|
||||
code = request.POST.get('code')
|
||||
weiboid = request.POST.get('weiboid')
|
||||
alias = request.POST.get('alias')
|
||||
image = request.FILES.get('image')
|
||||
organization = request.POST.get('organization')
|
||||
status = request.POST.get('status')
|
||||
if code is not None:
|
||||
if organization is not None:
|
||||
if image is not None:
|
||||
Weibo.objects.filter(id=pk).update(code=code, weiboid=weiboid, alias=alias,
|
||||
organization_id=organization, status=status)
|
||||
weibo.image = image
|
||||
weibo.save()
|
||||
messages.success(request, '修改成功')
|
||||
return HttpResponseRedirect('/management/newmedia/management/edit/weibo/')
|
||||
else:
|
||||
Weibo.objects.filter(id=pk).update(code=code, weiboid=weiboid, alias=alias,
|
||||
organization_id=organization, status=status)
|
||||
messages.success(request, '修改成功')
|
||||
return HttpResponseRedirect('/management/newmedia/management/edit/weibo/')
|
||||
else:
|
||||
messages.success(request, "请选择单位")
|
||||
return render(request, 'management/newmedia-management-update-weibo.html',
|
||||
{'weibo': weibo, 'organization': organization,
|
||||
'weibo_status_choices_list': weibo_status_choices_list})
|
||||
else:
|
||||
messages.success(request, "微博号不能为空")
|
||||
return render(request, 'management/newmedia-management-update-weibo.html',
|
||||
{'weibo': weibo, 'organization': organization,
|
||||
'weibo_status_choices_list': weibo_status_choices_list})
|
||||
return render(request, 'management/newmedia-management-update-weibo.html',
|
||||
{'weibo': weibo, 'organization': organization,
|
||||
'weibo_status_choices_list': weibo_status_choices_list})
|
||||
|
||||
|
||||
def newmedia_management_update_toutiao(request, pk):
|
||||
TOUTIAO_STATUS_CHOICES = Toutiao.TOUTIAO_STATUS_CHOICES
|
||||
toutiao_status_choices_list = []
|
||||
for w in TOUTIAO_STATUS_CHOICES:
|
||||
toutiao_status_choices_list.append(list(w)[1])
|
||||
toutiao = Toutiao.objects.get(id=pk)
|
||||
organization = Organization.objects.all()
|
||||
if request.method == 'POST':
|
||||
code = request.POST.get('code')
|
||||
toutiaoid = request.POST.get('toutiaoid')
|
||||
alias = request.POST.get('alias')
|
||||
image = request.FILES.get('image')
|
||||
organization = request.POST.get('organization')
|
||||
status = request.POST.get('status')
|
||||
if code is not None:
|
||||
if organization is not None:
|
||||
if image is not None:
|
||||
Toutiao.objects.filter(id=pk).update(code=code, toutiaoid=toutiaoid, alias=alias,
|
||||
organization_id=organization, status=status)
|
||||
toutiao.image = image
|
||||
toutiao.save()
|
||||
messages.success(request, '修改成功')
|
||||
return HttpResponseRedirect('/management/newmedia/management/edit/toutiao/')
|
||||
else:
|
||||
Toutiao.objects.filter(id=pk).update(code=code, toutiaoid=toutiaoid, alias=alias,
|
||||
organization_id=organization, status=status)
|
||||
messages.success(request, '修改成功')
|
||||
return HttpResponseRedirect('/management/newmedia/management/edit/toutiao/')
|
||||
else:
|
||||
messages.success(request, "请选择单位")
|
||||
return render(request, 'management/newmedia-management-update-toutiao.html',
|
||||
{'toutiao': toutiao, 'organization': organization,
|
||||
'toutiao_status_choices_list': toutiao_status_choices_list})
|
||||
else:
|
||||
messages.success(request, "头条号不能为空")
|
||||
return render(request, 'management/newmedia-management-update-toutiao.html',
|
||||
{'toutiao': toutiao, 'organization': organization,
|
||||
'toutiao_status_choices_list': toutiao_status_choices_list})
|
||||
return render(request, 'management/newmedia-management-update-toutiao.html',
|
||||
{'toutiao': toutiao, 'organization': organization,
|
||||
'toutiao_status_choices_list': toutiao_status_choices_list})
|
||||
|
||||
|
||||
def newmedia_management_update_qita(request, pk):
|
||||
QITA_STATUS_CHOICES = Qita.QITA_STATUS_CHOICES
|
||||
qita_status_choices_list = []
|
||||
for w in QITA_STATUS_CHOICES:
|
||||
qita_status_choices_list.append(list(w)[1])
|
||||
organization = Organization.objects.all()
|
||||
qita = Qita.objects.get(id=pk)
|
||||
if request.method == 'POST':
|
||||
type = request.POST.get('type')
|
||||
name = request.POST.get('name')
|
||||
qitaid = request.POST.get('qitaid')
|
||||
alias = request.POST.get('alias')
|
||||
image = request.FILES.get('image')
|
||||
organization = request.POST.get('organization')
|
||||
status = request.POST.get('status')
|
||||
if name is not None:
|
||||
if organization is not None:
|
||||
if image is not None:
|
||||
Qita.objects.filter(id=pk).update(type=type, name=name, qitaid=qitaid, alias=alias,
|
||||
organization_id=organization, status=status)
|
||||
qita.image = image
|
||||
qita.save()
|
||||
messages.success(request, '修改成功')
|
||||
return HttpResponseRedirect('/management/newmedia/management/edit/qita/')
|
||||
else:
|
||||
Qita.objects.filter(id=pk).update(type=type, name=name, qitaid=qitaid, alias=alias,
|
||||
organization_id=organization, status=status)
|
||||
messages.success(request, '修改成功')
|
||||
return HttpResponseRedirect('/management/newmedia/management/edit/qita/')
|
||||
else:
|
||||
messages.success(request, "请选择单位")
|
||||
return render(request, 'management/newmedia-management-update-qita.html',
|
||||
{'qita': qita, 'organization': organization,
|
||||
'qita_status_choices_list': qita_status_choices_list})
|
||||
else:
|
||||
messages.success(request, "新媒体名称不能为空")
|
||||
return render(request, 'management/newmedia-management-update-qita.html',
|
||||
{'qita': qita, 'organization': organization,
|
||||
'qita_status_choices_list': qita_status_choices_list})
|
||||
return render(request, 'management/newmedia-management-update-qita.html',
|
||||
{'qita': qita, 'organization': organization,
|
||||
'qita_status_choices_list': qita_status_choices_list})
|
||||
|
||||
def newmedia_management_delete_weixin(request,pk):
|
||||
weixin = Weixin.objects.get(id=pk)
|
||||
weixin.delete()
|
||||
messages.success(request,"删除成功")
|
||||
return HttpResponseRedirect('/management/newmedia/management/edit/weixin/')
|
||||
|
||||
def newmedia_management_delete_weibo(request,pk):
|
||||
weibo = Weibo.objects.get(id=pk)
|
||||
weibo.delete()
|
||||
messages.success(request,"删除成功")
|
||||
return HttpResponseRedirect('/management/newmedia/management/edit/weibo/')
|
||||
|
||||
def newmedia_management_delete_toutiao(request,pk):
|
||||
toutiao = Toutiao.objects.get(id=pk)
|
||||
toutiao.delete()
|
||||
messages.success(request,"删除成功")
|
||||
return HttpResponseRedirect('/management/newmedia/management/edit/toutiao/')
|
||||
|
||||
def newmedia_management_delete_qita(request,pk):
|
||||
qita = Qita.objects.get(id=pk)
|
||||
qita.delete()
|
||||
messages.success(request,"删除成功")
|
||||
return HttpResponseRedirect('/management/newmedia/management/edit/qita/')
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
After Width: | Height: | Size: 8.7 KiB |
Binary file not shown.
After Width: | Height: | Size: 7.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 7.4 KiB |
Loading…
Reference in New Issue