Skip to content

Commit

Permalink
新增文件批量操作功能
Browse files Browse the repository at this point in the history
  • Loading branch information
Firesuiry committed Apr 9, 2022
1 parent 9af8853 commit a75b01d
Show file tree
Hide file tree
Showing 3 changed files with 465 additions and 1 deletion.
201 changes: 200 additions & 1 deletion client.ui
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<item>
<widget class="QTabWidget" name="mainTab">
<property name="currentIndex">
<number>0</number>
<number>4</number>
</property>
<widget class="QWidget" name="loginTab">
<attribute name="title">
Expand Down Expand Up @@ -777,6 +777,205 @@ p, li { white-space: pre-wrap; }
</item>
</layout>
</widget>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>批量操作页</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_7">
<item row="0" column="0">
<widget class="QLabel" name="label_29">
<property name="text">
<string>文件ID列表</string>
</property>
</widget>
</item>
<item row="1" column="0" rowspan="4">
<layout class="QVBoxLayout" name="verticalLayout_8">
<item>
<widget class="QPlainTextEdit" name="file_list">
<property name="documentTitle">
<string comment="此处填写文件ID,多个ID用空格分开" extracomment="此处填写文件ID,多个ID用空格分开"/>
</property>
<property name="plainText">
<string comment="此处填写文件ID,多个ID用空格分开" extracomment="此处填写文件ID,多个ID用空格分开"/>
</property>
<property name="placeholderText">
<string>此处填写文件ID,多个ID用空格分开</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="file_list_read_btn">
<property name="text">
<string>从A.xlsx中读取文件列表</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_15">
<item>
<widget class="QPushButton" name="file_off_btn">
<property name="text">
<string>全部下架</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="file_on_btn">
<property name="text">
<string>全部上架</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_14">
<item>
<widget class="QLabel" name="label_30">
<property name="text">
<string>要修改的价格</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="money_edit">
<property name="placeholderText">
<string>如改成2.3元 则输入2.3</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="file_money_change_btn">
<property name="text">
<string>价格修改</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="3" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_13">
<item>
<widget class="QLabel" name="label_33">
<property name="text">
<string>要修改的价格折扣</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="money_percent_edit">
<property name="text">
<string/>
</property>
<property name="placeholderText">
<string>价格百分比</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_35">
<property name="text">
<string>%</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="file_money_precent_change_btn">
<property name="text">
<string>价格百分比修改</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="4" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_16">
<item>
<widget class="QLabel" name="label_36">
<property name="text">
<string>要添加的收藏夹ID</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="collection_id_edit">
<property name="text">
<string/>
</property>
<property name="placeholderText">
<string>收藏夹ID</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="file_add_collection_btn">
<property name="text">
<string>添加收藏夹</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="5" column="0">
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="label_28">
<property name="text">
<string>日志</string>
</property>
</widget>
</item>
<item>
<widget class="QTextBrowser" name="file_batch_info">
<property name="markdown">
<string/>
</property>
<property name="html">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'SimSun'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="placeholderText">
<string>运行日志</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="5" column="1">
<widget class="QTextBrowser" name="textBrowser_4">
<property name="html">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'SimSun'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;修改的价格:&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;直接写多少钱 比如修改到2.3元就写2.3&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;价格百分比:&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;1代表将新价格修改为原价格的1%&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;100代表将新价格修改为原价格的100%&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;200代表将新价格修改为原价格的200% 以此类推&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;关于A.xlsx文件:&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;需要自行手动创建,第一列放上文件id列表,其他东西无效&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;文件ID列表:&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;输入文件ID,如有多个请以空格分割&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;收藏夹ID:&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;点击我的收藏 点击要添加的收藏夹 进入后网址末尾是收藏夹ID 如下则为130&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;a href=&quot;https://www.jdmm.top/web/collection/130&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;https://www.jdmm.top/web/collection/130&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
<item>
Expand Down
Loading

0 comments on commit a75b01d

Please sign in to comment.