优化plugin界面

This commit is contained in:
季圣华
2022-07-26 00:38:14 +08:00
parent 6fddca9093
commit d6ce65700a
2 changed files with 9 additions and 11 deletions

View File

@@ -17,6 +17,7 @@
<a-button type="primary" @click="searchQuery">查询</a-button> <a-button type="primary" @click="searchQuery">查询</a-button>
<a-button style="margin-left: 8px" @click="searchReset">重置</a-button> <a-button style="margin-left: 8px" @click="searchReset">重置</a-button>
<a-button type="primary" style="margin-left: 8px" @click="writeCode">填写激活码</a-button> <a-button type="primary" style="margin-left: 8px" @click="writeCode">填写激活码</a-button>
<a-button type="primary" style="margin-left: 8px" @click="writeAppCode">填写手机端激活码</a-button>
</a-col> </a-col>
</span> </span>
</a-row> </a-row>
@@ -73,6 +74,7 @@
<!-- table区域-end --> <!-- table区域-end -->
<!-- 表单区域 --> <!-- 表单区域 -->
<plugin-modal ref="modalForm" @ok="modalFormOk"></plugin-modal> <plugin-modal ref="modalForm" @ok="modalFormOk"></plugin-modal>
<plugin-app-modal ref="appModalForm" @ok="appModalFormOk"></plugin-app-modal>
</a-card> </a-card>
</a-col> </a-col>
</a-row> </a-row>
@@ -80,6 +82,7 @@
<!-- f r o m 7 5 2 7 1 8 9 2 0 --> <!-- f r o m 7 5 2 7 1 8 9 2 0 -->
<script> <script>
import PluginModal from './modules/PluginModal' import PluginModal from './modules/PluginModal'
import PluginAppModal from './modules/PluginAppModal'
import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import {postAction} from '@/api/manage'; import {postAction} from '@/api/manage';
import JDate from '@/components/jeecg/JDate' import JDate from '@/components/jeecg/JDate'
@@ -89,6 +92,7 @@
mixins:[JeecgListMixin], mixins:[JeecgListMixin],
components: { components: {
PluginModal, PluginModal,
PluginAppModal,
JDate JDate
}, },
data () { data () {
@@ -192,6 +196,11 @@
this.$refs.modalForm.title = "填写激活码"; this.$refs.modalForm.title = "填写激活码";
this.$refs.modalForm.disableSubmit = false; this.$refs.modalForm.disableSubmit = false;
}, },
writeAppCode() {
this.$refs.appModalForm.edit();
this.$refs.appModalForm.title = "填写手机端激活码";
this.$refs.appModalForm.disableSubmit = false;
},
linkUrl(record) { linkUrl(record) {
let desc = record.pluginDescriptor.pluginDescription let desc = record.pluginDescriptor.pluginDescription
if(desc.indexOf("|")){ if(desc.indexOf("|")){

View File

@@ -44,17 +44,6 @@
}, },
confirmLoading: false, confirmLoading: false,
form: this.$form.createForm(this), form: this.$form.createForm(this),
validatorRules:{
name:{
rules: [
{ required: true, message: '请输入姓名!' },
]},
type:{
rules: [
{ required: true, message: '请选择类型!' }
]
}
},
} }
}, },
created () { created () {