|
@@ -66,7 +66,7 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
|
- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索1</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
@@ -258,6 +258,15 @@
|
|
|
>
|
|
>
|
|
|
禁用插件
|
|
禁用插件
|
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ icon="el-icon-user-solid"
|
|
|
|
|
+ plain
|
|
|
|
|
+ @click="handleTime(scope.row)"
|
|
|
|
|
+ >
|
|
|
|
|
+ 设置延迟执行时间
|
|
|
|
|
+ </el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="主机" align="center" class-name="small-padding fixed-width" width="110px" fixed="right">
|
|
<el-table-column label="主机" align="center" class-name="small-padding fixed-width" width="110px" fixed="right">
|
|
@@ -360,6 +369,27 @@
|
|
|
<fast-gpt-role ref="fastGptRole" @refreshFastGptList="refreshFastGptList" ></fast-gpt-role>
|
|
<fast-gpt-role ref="fastGptRole" @refreshFastGptList="refreshFastGptList" ></fast-gpt-role>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
+ <!-- 设置执行时间对话框 -->
|
|
|
|
|
+<el-dialog :title="timeSettingOpen.title" :visible.sync="timeSettingOpen.open" width="500px" append-to-body>
|
|
|
|
|
+ <el-form ref="timeSettingForm" :model="timeSettingForm" :rules="timeSettingRules" label-width="120px">
|
|
|
|
|
+ <el-form-item label="延迟执行开始(ms)" prop="delayStart">
|
|
|
|
|
+ <el-input-number
|
|
|
|
|
+ v-model="timeSettingForm.delayStart"
|
|
|
|
|
+ controls-position="right"
|
|
|
|
|
+ placeholder="请输入开始延迟执行" />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="延迟执行结束(ms)" prop="delayEnd">
|
|
|
|
|
+ <el-input-number
|
|
|
|
|
+ v-model="timeSettingForm.delayEnd"
|
|
|
|
|
+ controls-position="right"
|
|
|
|
|
+ placeholder="请输入结束延迟执行" />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
|
+ <el-button @click="cancelTimeSetting">取 消</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="submitTimeSettingForm">确 定</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</el-dialog>
|
|
|
<!-- <el-dialog :visible.sync="updateIp.open" width="600px" append-to-body>-->
|
|
<!-- <el-dialog :visible.sync="updateIp.open" width="600px" append-to-body>-->
|
|
|
<!-- <el-form ref="updateIpForm" :model="updateIpForm" :rules="updateIpRule" label-width="100px">-->
|
|
<!-- <el-form ref="updateIpForm" :model="updateIpForm" :rules="updateIpRule" label-width="100px">-->
|
|
|
<!-- <el-form-item label="新云主机IP" prop="Ip">-->
|
|
<!-- <el-form-item label="新云主机IP" prop="Ip">-->
|
|
@@ -580,6 +610,21 @@ export default {
|
|
|
components: { fastGptRole,Treeselect},
|
|
components: { fastGptRole,Treeselect},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ // 设置执行时间对话框相关数据
|
|
|
|
|
+ timeSettingOpen: {
|
|
|
|
|
+ open: false,
|
|
|
|
|
+ title: '设置延迟执行时间'
|
|
|
|
|
+ },
|
|
|
|
|
+ timeSettingForm: {
|
|
|
|
|
+ id: null,
|
|
|
|
|
+ delayStart: null,
|
|
|
|
|
+ delayEnd: null
|
|
|
|
|
+ },
|
|
|
|
|
+ timeSettingRules: {
|
|
|
|
|
+ delayStart: [{ required: true, message: '消息发送延迟开始不能为空', trigger: 'blur' }],
|
|
|
|
|
+ delayEnd: [{ required: true, message: '消息发送延迟结束不能为空', trigger: 'blur' }]
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
deptOptions:[], // 企微部门
|
|
deptOptions:[], // 企微部门
|
|
|
isAutoOptions:[],
|
|
isAutoOptions:[],
|
|
|
updateIp:{
|
|
updateIp:{
|
|
@@ -749,6 +794,51 @@ export default {
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 处理设置执行时间
|
|
|
|
|
+ */
|
|
|
|
|
+ handleTime(row) {
|
|
|
|
|
+ this.timeSettingOpen.open = true
|
|
|
|
|
+ this.timeSettingForm.id = row.id
|
|
|
|
|
+ this.timeSettingForm.delayStart = row.delayStart
|
|
|
|
|
+ this.timeSettingForm.delayEnd = row.delayEnd
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 提交执行时间设置
|
|
|
|
|
+ */
|
|
|
|
|
+ submitTimeSettingForm() {
|
|
|
|
|
+ this.$refs['timeSettingForm'].validate(valid => {
|
|
|
|
|
+ if (valid) {
|
|
|
|
|
+ updateUser(this.timeSettingForm).then(res => {
|
|
|
|
|
+ this.$message.success('设置延迟执行时间成功')
|
|
|
|
|
+ this.timeSettingOpen.open = false
|
|
|
|
|
+ this.getList()
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 取消执行时间设置
|
|
|
|
|
+ */
|
|
|
|
|
+ cancelTimeSetting() {
|
|
|
|
|
+ this.timeSettingOpen.open = false
|
|
|
|
|
+ this.resetTimeSettingForm()
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 重置执行时间表单
|
|
|
|
|
+ */
|
|
|
|
|
+ resetTimeSettingForm() {
|
|
|
|
|
+ this.timeSettingForm = {
|
|
|
|
|
+ id: null,
|
|
|
|
|
+ delayStart: null,
|
|
|
|
|
+ delayEnd: null
|
|
|
|
|
+ }
|
|
|
|
|
+ this.resetForm('timeSettingForm')
|
|
|
|
|
+ },
|
|
|
/** 查询部门下拉树结构 */
|
|
/** 查询部门下拉树结构 */
|
|
|
getTreeselect() {
|
|
getTreeselect() {
|
|
|
var that=this;
|
|
var that=this;
|